From c2c2835ca2a7598db7ed537d94f6a7aea84637a6 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 23 Mar 2026 21:40:05 +0000
Subject: [PATCH 01/24] codegen metadata
---
.stats.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 2f89707..7d1e0e6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c125ce952e66ce3ea3b9a4d1c5a2449584ec7290497e3b6bba8358960713fb79.yml
-openapi_spec_hash: 1ed3f6bc7b08ca891adea5fab74430c9
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9087e34382028c4280cc85971d3157d33b0157853d8e71a3801db9856aa1d2c3.yml
+openapi_spec_hash: 8a0bfcef9a0f9ec3e3398493de20d98c
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
From efa546ff6ead9bdc0f3dde5d63e2658bfd4a696e Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 15:22:36 +0000
Subject: [PATCH 02/24] chore(ci): skip lint on metadata-only changes
Note that we still want to run tests, as these depend on the metadata.
---
.github/workflows/ci.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0a8ad7e..434d81b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -19,7 +19,7 @@ jobs:
timeout-minutes: 10
name: lint
runs-on: ${{ github.repository == 'stainless-sdks/increase-csharp' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
- if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
+ if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
@@ -38,7 +38,7 @@ jobs:
timeout-minutes: 10
name: build
runs-on: ${{ github.repository == 'stainless-sdks/increase-csharp' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
- if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
+ if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
- uses: actions/checkout@v6
From 4a88992bd2a8929bd26d524afc129f396b30a2a5 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 15:49:38 +0000
Subject: [PATCH 03/24] chore(tests): bump steady to v0.19.7
---
scripts/mock | 6 +++---
scripts/test | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/mock b/scripts/mock
index 1983fb9..5f1bb80 100755
--- a/scripts/mock
+++ b/scripts/mock
@@ -22,9 +22,9 @@ echo "==> Starting mock server with URL ${URL}"
# Run steady mock on the given spec
if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
- npm exec --package=@stdy/cli@0.19.6 -- steady --version
+ npm exec --package=@stdy/cli@0.19.7 -- steady --version
- npm exec --package=@stdy/cli@0.19.6 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL" &> .stdy.log &
+ npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL" &> .stdy.log &
# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
@@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then
echo
else
- npm exec --package=@stdy/cli@0.19.6 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL"
+ npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL"
fi
diff --git a/scripts/test b/scripts/test
index 0d79aad..70e6471 100755
--- a/scripts/test
+++ b/scripts/test
@@ -47,7 +47,7 @@ elif ! steady_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the steady command:"
echo
- echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.6 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots${NC}"
+ echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots${NC}"
echo
exit 1
From fbb5df55c354758f270b0bcbf98e217ab868f22f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 18:32:45 +0000
Subject: [PATCH 04/24] feat(api): api update
---
.stats.yml | 4 ++--
src/Increase.Api/Models/Entities/EntityCreateParams.cs | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 7d1e0e6..c8c7388 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9087e34382028c4280cc85971d3157d33b0157853d8e71a3801db9856aa1d2c3.yml
-openapi_spec_hash: 8a0bfcef9a0f9ec3e3398493de20d98c
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b95cd103dded0963ab1ae960b10846a8640c538d12beefb085cfcccd40e4e374.yml
+openapi_spec_hash: 4cea779180b9bcdc631ae2cbc3aa9c4c
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api/Models/Entities/EntityCreateParams.cs b/src/Increase.Api/Models/Entities/EntityCreateParams.cs
index 0390e1a..e8f5f2e 100644
--- a/src/Increase.Api/Models/Entities/EntityCreateParams.cs
+++ b/src/Increase.Api/Models/Entities/EntityCreateParams.cs
@@ -3143,7 +3143,7 @@ public sealed record class JointIndividualIdentificationPassport : JsonModel
{
///
/// The two-character ISO 3166-1 code representing the country that issued the
- /// passport (e.g., `US`).
+ /// document (e.g., `US`).
///
public required string Country
{
@@ -4002,7 +4002,7 @@ public sealed record class NaturalPersonIdentificationPassport : JsonModel
{
///
/// The two-character ISO 3166-1 code representing the country that issued the
- /// passport (e.g., `US`).
+ /// document (e.g., `US`).
///
public required string Country
{
@@ -5827,7 +5827,7 @@ public sealed record class TrusteeIndividualIdentificationPassport : JsonModel
{
///
/// The two-character ISO 3166-1 code representing the country that issued the
- /// passport (e.g., `US`).
+ /// document (e.g., `US`).
///
public required string Country
{
@@ -6667,7 +6667,7 @@ public sealed record class GrantorIdentificationPassport : JsonModel
{
///
/// The two-character ISO 3166-1 code representing the country that issued the
- /// passport (e.g., `US`).
+ /// document (e.g., `US`).
///
public required string Country
{
From 9adaaf524863a6b2593c85356923986ad1dbf4b2 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 22:31:56 +0000
Subject: [PATCH 05/24] feat(api): api update
---
.stats.yml | 4 +--
...ealTimePaymentsTransferCreateParamsTest.cs | 18 ----------
.../RealTimePaymentsTransferCreateParams.cs | 36 -------------------
3 files changed, 2 insertions(+), 56 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index c8c7388..8967e15 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b95cd103dded0963ab1ae960b10846a8640c538d12beefb085cfcccd40e4e374.yml
-openapi_spec_hash: 4cea779180b9bcdc631ae2cbc3aa9c4c
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-297d19c04d7384ffc16c672182c0439c3880fc912fbabf20a378d38182cc7420.yml
+openapi_spec_hash: 02126c1ab3c22027a0f0aa1ce12cf7f6
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api.Tests/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParamsTest.cs b/src/Increase.Api.Tests/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParamsTest.cs
index 17de44f..64678f1 100644
--- a/src/Increase.Api.Tests/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParamsTest.cs
+++ b/src/Increase.Api.Tests/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParamsTest.cs
@@ -16,8 +16,6 @@ public void FieldRoundtrip_Works()
UnstructuredRemittanceInformation = "Invoice 29582",
AccountNumber = "987654321",
DebtorName = "x",
- DestinationAccountNumber = "x",
- DestinationRoutingNumber = "xxxxxxxxx",
ExternalAccountID = "external_account_id",
RequireApproval = true,
RoutingNumber = "101050001",
@@ -31,8 +29,6 @@ public void FieldRoundtrip_Works()
string expectedUnstructuredRemittanceInformation = "Invoice 29582";
string expectedAccountNumber = "987654321";
string expectedDebtorName = "x";
- string expectedDestinationAccountNumber = "x";
- string expectedDestinationRoutingNumber = "xxxxxxxxx";
string expectedExternalAccountID = "external_account_id";
bool expectedRequireApproval = true;
string expectedRoutingNumber = "101050001";
@@ -48,8 +44,6 @@ public void FieldRoundtrip_Works()
);
Assert.Equal(expectedAccountNumber, parameters.AccountNumber);
Assert.Equal(expectedDebtorName, parameters.DebtorName);
- Assert.Equal(expectedDestinationAccountNumber, parameters.DestinationAccountNumber);
- Assert.Equal(expectedDestinationRoutingNumber, parameters.DestinationRoutingNumber);
Assert.Equal(expectedExternalAccountID, parameters.ExternalAccountID);
Assert.Equal(expectedRequireApproval, parameters.RequireApproval);
Assert.Equal(expectedRoutingNumber, parameters.RoutingNumber);
@@ -72,10 +66,6 @@ public void OptionalNonNullableParamsUnsetAreNotSet_Works()
Assert.False(parameters.RawBodyData.ContainsKey("account_number"));
Assert.Null(parameters.DebtorName);
Assert.False(parameters.RawBodyData.ContainsKey("debtor_name"));
- Assert.Null(parameters.DestinationAccountNumber);
- Assert.False(parameters.RawBodyData.ContainsKey("destination_account_number"));
- Assert.Null(parameters.DestinationRoutingNumber);
- Assert.False(parameters.RawBodyData.ContainsKey("destination_routing_number"));
Assert.Null(parameters.ExternalAccountID);
Assert.False(parameters.RawBodyData.ContainsKey("external_account_id"));
Assert.Null(parameters.RequireApproval);
@@ -101,8 +91,6 @@ public void OptionalNonNullableParamsSetToNullAreNotSet_Works()
// Null should be interpreted as omitted for these properties
AccountNumber = null,
DebtorName = null,
- DestinationAccountNumber = null,
- DestinationRoutingNumber = null,
ExternalAccountID = null,
RequireApproval = null,
RoutingNumber = null,
@@ -114,10 +102,6 @@ public void OptionalNonNullableParamsSetToNullAreNotSet_Works()
Assert.False(parameters.RawBodyData.ContainsKey("account_number"));
Assert.Null(parameters.DebtorName);
Assert.False(parameters.RawBodyData.ContainsKey("debtor_name"));
- Assert.Null(parameters.DestinationAccountNumber);
- Assert.False(parameters.RawBodyData.ContainsKey("destination_account_number"));
- Assert.Null(parameters.DestinationRoutingNumber);
- Assert.False(parameters.RawBodyData.ContainsKey("destination_routing_number"));
Assert.Null(parameters.ExternalAccountID);
Assert.False(parameters.RawBodyData.ContainsKey("external_account_id"));
Assert.Null(parameters.RequireApproval);
@@ -157,8 +141,6 @@ public void CopyConstructor_Works()
UnstructuredRemittanceInformation = "Invoice 29582",
AccountNumber = "987654321",
DebtorName = "x",
- DestinationAccountNumber = "x",
- DestinationRoutingNumber = "xxxxxxxxx",
ExternalAccountID = "external_account_id",
RequireApproval = true,
RoutingNumber = "101050001",
diff --git a/src/Increase.Api/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParams.cs b/src/Increase.Api/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParams.cs
index b1b52d7..0598fe1 100644
--- a/src/Increase.Api/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParams.cs
+++ b/src/Increase.Api/Models/RealTimePaymentsTransfers/RealTimePaymentsTransferCreateParams.cs
@@ -119,42 +119,6 @@ public string? DebtorName
}
}
- public string? DestinationAccountNumber
- {
- get
- {
- this._rawBodyData.Freeze();
- return this._rawBodyData.GetNullableClass("destination_account_number");
- }
- init
- {
- if (value == null)
- {
- return;
- }
-
- this._rawBodyData.Set("destination_account_number", value);
- }
- }
-
- public string? DestinationRoutingNumber
- {
- get
- {
- this._rawBodyData.Freeze();
- return this._rawBodyData.GetNullableClass("destination_routing_number");
- }
- init
- {
- if (value == null)
- {
- return;
- }
-
- this._rawBodyData.Set("destination_routing_number", value);
- }
- }
-
///
/// The ID of an External Account to initiate a transfer to. If this parameter
/// is provided, `account_number` and `routing_number` must be absent.
From 9d743a86448720e56848d8ec51d2c72b4ee21250 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 23:26:39 +0000
Subject: [PATCH 06/24] feat(api): api update
---
.stats.yml | 4 +-
.../CardPushTransferCreateParamsTest.cs | 54 ++++++++
.../CardPushTransferCreateParams.cs | 129 ++++++++++++++++++
3 files changed, 185 insertions(+), 2 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 8967e15..e076552 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-297d19c04d7384ffc16c672182c0439c3880fc912fbabf20a378d38182cc7420.yml
-openapi_spec_hash: 02126c1ab3c22027a0f0aa1ce12cf7f6
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a16a9b919e2ea18d09e373a7ecb0f10d6bb6a34c3c03397b2c7582a0b372c15e.yml
+openapi_spec_hash: 7d45d8bb661f1f3e6000c9e0b683fa4e
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api.Tests/Models/CardPushTransfers/CardPushTransferCreateParamsTest.cs b/src/Increase.Api.Tests/Models/CardPushTransfers/CardPushTransferCreateParamsTest.cs
index 778ed11..8bd7199 100644
--- a/src/Increase.Api.Tests/Models/CardPushTransfers/CardPushTransferCreateParamsTest.cs
+++ b/src/Increase.Api.Tests/Models/CardPushTransfers/CardPushTransferCreateParamsTest.cs
@@ -29,6 +29,12 @@ public void FieldRoundtrip_Works()
SenderAddressState = "NY",
SenderName = "Ian Crease",
SourceAccountNumberID = "account_number_v18nkfqm6afpsrvy82b2",
+ MerchantLegalBusinessName = "x",
+ MerchantStreetAddress = "x",
+ RecipientAddressCity = "x",
+ RecipientAddressLine1 = "x",
+ RecipientAddressPostalCode = "x",
+ RecipientAddressState = "x",
RequireApproval = true,
};
@@ -53,6 +59,12 @@ public void FieldRoundtrip_Works()
string expectedSenderAddressState = "NY";
string expectedSenderName = "Ian Crease";
string expectedSourceAccountNumberID = "account_number_v18nkfqm6afpsrvy82b2";
+ string expectedMerchantLegalBusinessName = "x";
+ string expectedMerchantStreetAddress = "x";
+ string expectedRecipientAddressCity = "x";
+ string expectedRecipientAddressLine1 = "x";
+ string expectedRecipientAddressPostalCode = "x";
+ string expectedRecipientAddressState = "x";
bool expectedRequireApproval = true;
Assert.Equal(
@@ -74,6 +86,12 @@ public void FieldRoundtrip_Works()
Assert.Equal(expectedSenderAddressState, parameters.SenderAddressState);
Assert.Equal(expectedSenderName, parameters.SenderName);
Assert.Equal(expectedSourceAccountNumberID, parameters.SourceAccountNumberID);
+ Assert.Equal(expectedMerchantLegalBusinessName, parameters.MerchantLegalBusinessName);
+ Assert.Equal(expectedMerchantStreetAddress, parameters.MerchantStreetAddress);
+ Assert.Equal(expectedRecipientAddressCity, parameters.RecipientAddressCity);
+ Assert.Equal(expectedRecipientAddressLine1, parameters.RecipientAddressLine1);
+ Assert.Equal(expectedRecipientAddressPostalCode, parameters.RecipientAddressPostalCode);
+ Assert.Equal(expectedRecipientAddressState, parameters.RecipientAddressState);
Assert.Equal(expectedRequireApproval, parameters.RequireApproval);
}
@@ -100,6 +118,18 @@ public void OptionalNonNullableParamsUnsetAreNotSet_Works()
SourceAccountNumberID = "account_number_v18nkfqm6afpsrvy82b2",
};
+ Assert.Null(parameters.MerchantLegalBusinessName);
+ Assert.False(parameters.RawBodyData.ContainsKey("merchant_legal_business_name"));
+ Assert.Null(parameters.MerchantStreetAddress);
+ Assert.False(parameters.RawBodyData.ContainsKey("merchant_street_address"));
+ Assert.Null(parameters.RecipientAddressCity);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_city"));
+ Assert.Null(parameters.RecipientAddressLine1);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_line1"));
+ Assert.Null(parameters.RecipientAddressPostalCode);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_postal_code"));
+ Assert.Null(parameters.RecipientAddressState);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_state"));
Assert.Null(parameters.RequireApproval);
Assert.False(parameters.RawBodyData.ContainsKey("require_approval"));
}
@@ -127,9 +157,27 @@ public void OptionalNonNullableParamsSetToNullAreNotSet_Works()
SourceAccountNumberID = "account_number_v18nkfqm6afpsrvy82b2",
// Null should be interpreted as omitted for these properties
+ MerchantLegalBusinessName = null,
+ MerchantStreetAddress = null,
+ RecipientAddressCity = null,
+ RecipientAddressLine1 = null,
+ RecipientAddressPostalCode = null,
+ RecipientAddressState = null,
RequireApproval = null,
};
+ Assert.Null(parameters.MerchantLegalBusinessName);
+ Assert.False(parameters.RawBodyData.ContainsKey("merchant_legal_business_name"));
+ Assert.Null(parameters.MerchantStreetAddress);
+ Assert.False(parameters.RawBodyData.ContainsKey("merchant_street_address"));
+ Assert.Null(parameters.RecipientAddressCity);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_city"));
+ Assert.Null(parameters.RecipientAddressLine1);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_line1"));
+ Assert.Null(parameters.RecipientAddressPostalCode);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_postal_code"));
+ Assert.Null(parameters.RecipientAddressState);
+ Assert.False(parameters.RawBodyData.ContainsKey("recipient_address_state"));
Assert.Null(parameters.RequireApproval);
Assert.False(parameters.RawBodyData.ContainsKey("require_approval"));
}
@@ -183,6 +231,12 @@ public void CopyConstructor_Works()
SenderAddressState = "NY",
SenderName = "Ian Crease",
SourceAccountNumberID = "account_number_v18nkfqm6afpsrvy82b2",
+ MerchantLegalBusinessName = "x",
+ MerchantStreetAddress = "x",
+ RecipientAddressCity = "x",
+ RecipientAddressLine1 = "x",
+ RecipientAddressPostalCode = "x",
+ RecipientAddressState = "x",
RequireApproval = true,
};
diff --git a/src/Increase.Api/Models/CardPushTransfers/CardPushTransferCreateParams.cs b/src/Increase.Api/Models/CardPushTransfers/CardPushTransferCreateParams.cs
index 4dc38d2..7c980b8 100644
--- a/src/Increase.Api/Models/CardPushTransfers/CardPushTransferCreateParams.cs
+++ b/src/Increase.Api/Models/CardPushTransfers/CardPushTransferCreateParams.cs
@@ -247,6 +247,135 @@ public required string SourceAccountNumberID
init { this._rawBodyData.Set("source_account_number_id", value); }
}
+ ///
+ /// The legal business name of the merchant (generally your business) sending
+ /// the transfer. Required if the card is issued in Canada.
+ ///
+ public string? MerchantLegalBusinessName
+ {
+ get
+ {
+ this._rawBodyData.Freeze();
+ return this._rawBodyData.GetNullableClass("merchant_legal_business_name");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawBodyData.Set("merchant_legal_business_name", value);
+ }
+ }
+
+ ///
+ /// The street address of the merchant (generally your business) sending the transfer.
+ /// Required if the card is issued in Canada.
+ ///
+ public string? MerchantStreetAddress
+ {
+ get
+ {
+ this._rawBodyData.Freeze();
+ return this._rawBodyData.GetNullableClass("merchant_street_address");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawBodyData.Set("merchant_street_address", value);
+ }
+ }
+
+ ///
+ /// The city of the recipient. Required if the card is issued in Canada.
+ ///
+ public string? RecipientAddressCity
+ {
+ get
+ {
+ this._rawBodyData.Freeze();
+ return this._rawBodyData.GetNullableClass("recipient_address_city");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawBodyData.Set("recipient_address_city", value);
+ }
+ }
+
+ ///
+ /// The first line of the recipient's address. Required if the card is issued
+ /// in Canada.
+ ///
+ public string? RecipientAddressLine1
+ {
+ get
+ {
+ this._rawBodyData.Freeze();
+ return this._rawBodyData.GetNullableClass("recipient_address_line1");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawBodyData.Set("recipient_address_line1", value);
+ }
+ }
+
+ ///
+ /// The postal code of the recipient. Required if the card is issued in Canada.
+ ///
+ public string? RecipientAddressPostalCode
+ {
+ get
+ {
+ this._rawBodyData.Freeze();
+ return this._rawBodyData.GetNullableClass("recipient_address_postal_code");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawBodyData.Set("recipient_address_postal_code", value);
+ }
+ }
+
+ ///
+ /// The state or province of the recipient. Required if the card is issued in Canada.
+ ///
+ public string? RecipientAddressState
+ {
+ get
+ {
+ this._rawBodyData.Freeze();
+ return this._rawBodyData.GetNullableClass("recipient_address_state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawBodyData.Set("recipient_address_state", value);
+ }
+ }
+
///
/// Whether the transfer requires explicit approval via the dashboard or API.
///
From 0df1b29b5b197be1e405efe2a2b8442ee52d196f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Tue, 24 Mar 2026 23:34:28 +0000
Subject: [PATCH 07/24] feat(api): api update
---
.stats.yml | 4 +--
.../CheckDepositListPageResponseTest.cs | 14 ++++----
.../Models/CheckDeposits/CheckDepositTest.cs | 34 +++++++++----------
.../InboundCheckDepositTest.cs | 6 ----
.../Models/CheckDeposits/CheckDeposit.cs | 16 ---------
.../InboundCheckDeposit.cs | 22 ------------
6 files changed, 25 insertions(+), 71 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index e076552..c8871b7 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a16a9b919e2ea18d09e373a7ecb0f10d6bb6a34c3c03397b2c7582a0b372c15e.yml
-openapi_spec_hash: 7d45d8bb661f1f3e6000c9e0b683fa4e
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d31504be6985a7ded14abd0da36f4272e585f43332b4b844a6950c98ddcd525.yml
+openapi_spec_hash: f1a49121780ec8b6678b864ac9b1deca
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositListPageResponseTest.cs b/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositListPageResponseTest.cs
index 3fe2724..6bd0ad2 100644
--- a/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositListPageResponseTest.cs
+++ b/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositListPageResponseTest.cs
@@ -38,7 +38,7 @@ public void FieldRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -116,7 +116,7 @@ public void FieldRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -206,7 +206,7 @@ public void SerializationRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -298,7 +298,7 @@ public void FieldRoundtripThroughSerialization_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -383,7 +383,7 @@ public void FieldRoundtripThroughSerialization_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -473,7 +473,7 @@ public void Validation_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -559,7 +559,7 @@ public void CopyConstructor_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
diff --git a/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositTest.cs b/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositTest.cs
index 1f14b83..82053da 100644
--- a/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositTest.cs
+++ b/src/Increase.Api.Tests/Models/CheckDeposits/CheckDepositTest.cs
@@ -35,7 +35,7 @@ public void FieldRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -106,7 +106,7 @@ public void FieldRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
];
@@ -204,7 +204,7 @@ public void SerializationRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -289,7 +289,7 @@ public void FieldRoundtripThroughSerialization_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -367,7 +367,7 @@ public void FieldRoundtripThroughSerialization_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
];
@@ -465,7 +465,7 @@ public void Validation_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -544,7 +544,7 @@ public void CopyConstructor_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
},
],
@@ -794,13 +794,14 @@ public void FieldRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
};
DateTimeOffset expectedAdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
long expectedAmount = 1750;
- ApiEnum expectedReason = CheckDeposits::Reason.LateReturn;
+ ApiEnum expectedReason =
+ CheckDeposits::Reason.AdjustedAmount;
string expectedTransactionID = "transaction_uyrp7fld2ium70oa7oi";
Assert.Equal(expectedAdjustedAt, model.AdjustedAt);
@@ -816,7 +817,7 @@ public void SerializationRoundtrip_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
};
@@ -836,7 +837,7 @@ public void FieldRoundtripThroughSerialization_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
};
@@ -849,7 +850,8 @@ public void FieldRoundtripThroughSerialization_Works()
DateTimeOffset expectedAdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
long expectedAmount = 1750;
- ApiEnum expectedReason = CheckDeposits::Reason.LateReturn;
+ ApiEnum expectedReason =
+ CheckDeposits::Reason.AdjustedAmount;
string expectedTransactionID = "transaction_uyrp7fld2ium70oa7oi";
Assert.Equal(expectedAdjustedAt, deserialized.AdjustedAt);
@@ -865,7 +867,7 @@ public void Validation_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
};
@@ -879,7 +881,7 @@ public void CopyConstructor_Works()
{
AdjustedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
Amount = 1750,
- Reason = CheckDeposits::Reason.LateReturn,
+ Reason = CheckDeposits::Reason.AdjustedAmount,
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
};
@@ -892,8 +894,6 @@ public void CopyConstructor_Works()
public class ReasonTest : TestBase
{
[Theory]
- [InlineData(CheckDeposits::Reason.LateReturn)]
- [InlineData(CheckDeposits::Reason.WrongPayeeCredit)]
[InlineData(CheckDeposits::Reason.AdjustedAmount)]
[InlineData(CheckDeposits::Reason.NonConformingItem)]
[InlineData(CheckDeposits::Reason.Paid)]
@@ -917,8 +917,6 @@ public void InvalidEnumValidationThrows_Works()
}
[Theory]
- [InlineData(CheckDeposits::Reason.LateReturn)]
- [InlineData(CheckDeposits::Reason.WrongPayeeCredit)]
[InlineData(CheckDeposits::Reason.AdjustedAmount)]
[InlineData(CheckDeposits::Reason.NonConformingItem)]
[InlineData(CheckDeposits::Reason.Paid)]
diff --git a/src/Increase.Api.Tests/Models/InboundCheckDeposits/InboundCheckDepositTest.cs b/src/Increase.Api.Tests/Models/InboundCheckDeposits/InboundCheckDepositTest.cs
index 71ac1bd..f1d2290 100644
--- a/src/Increase.Api.Tests/Models/InboundCheckDeposits/InboundCheckDepositTest.cs
+++ b/src/Increase.Api.Tests/Models/InboundCheckDeposits/InboundCheckDepositTest.cs
@@ -482,9 +482,6 @@ public class AdjustmentReasonTest : TestBase
[Theory]
[InlineData(InboundCheckDeposits::AdjustmentReason.LateReturn)]
[InlineData(InboundCheckDeposits::AdjustmentReason.WrongPayeeCredit)]
- [InlineData(InboundCheckDeposits::AdjustmentReason.AdjustedAmount)]
- [InlineData(InboundCheckDeposits::AdjustmentReason.NonConformingItem)]
- [InlineData(InboundCheckDeposits::AdjustmentReason.Paid)]
public void Validation_Works(InboundCheckDeposits::AdjustmentReason rawValue)
{
// force implicit conversion because Theory can't do that for us
@@ -506,9 +503,6 @@ public void InvalidEnumValidationThrows_Works()
[Theory]
[InlineData(InboundCheckDeposits::AdjustmentReason.LateReturn)]
[InlineData(InboundCheckDeposits::AdjustmentReason.WrongPayeeCredit)]
- [InlineData(InboundCheckDeposits::AdjustmentReason.AdjustedAmount)]
- [InlineData(InboundCheckDeposits::AdjustmentReason.NonConformingItem)]
- [InlineData(InboundCheckDeposits::AdjustmentReason.Paid)]
public void SerializationRoundtrip_Works(InboundCheckDeposits::AdjustmentReason rawValue)
{
// force implicit conversion because Theory can't do that for us
diff --git a/src/Increase.Api/Models/CheckDeposits/CheckDeposit.cs b/src/Increase.Api/Models/CheckDeposits/CheckDeposit.cs
index 553ba29..7e7a1de 100644
--- a/src/Increase.Api/Models/CheckDeposits/CheckDeposit.cs
+++ b/src/Increase.Api/Models/CheckDeposits/CheckDeposit.cs
@@ -646,18 +646,6 @@ public DepositAdjustment FromRawUnchecked(IReadOnlyDictionary
- /// The return was initiated too late and the receiving institution has responded
- /// with a Late Return Claim.
- ///
- LateReturn,
-
- ///
- /// The check was deposited to the wrong payee and the depositing institution
- /// has reimbursed the funds with a Wrong Payee Credit.
- ///
- WrongPayeeCredit,
-
///
/// The check was deposited with a different amount than what was written on the check.
///
@@ -685,8 +673,6 @@ JsonSerializerOptions options
{
return JsonSerializer.Deserialize(ref reader, options) switch
{
- "late_return" => Reason.LateReturn,
- "wrong_payee_credit" => Reason.WrongPayeeCredit,
"adjusted_amount" => Reason.AdjustedAmount,
"non_conforming_item" => Reason.NonConformingItem,
"paid" => Reason.Paid,
@@ -700,8 +686,6 @@ public override void Write(Utf8JsonWriter writer, Reason value, JsonSerializerOp
writer,
value switch
{
- Reason.LateReturn => "late_return",
- Reason.WrongPayeeCredit => "wrong_payee_credit",
Reason.AdjustedAmount => "adjusted_amount",
Reason.NonConformingItem => "non_conforming_item",
Reason.Paid => "paid",
diff --git a/src/Increase.Api/Models/InboundCheckDeposits/InboundCheckDeposit.cs b/src/Increase.Api/Models/InboundCheckDeposits/InboundCheckDeposit.cs
index 5ab9f20..4fd19a7 100644
--- a/src/Increase.Api/Models/InboundCheckDeposits/InboundCheckDeposit.cs
+++ b/src/Increase.Api/Models/InboundCheckDeposits/InboundCheckDeposit.cs
@@ -479,22 +479,6 @@ public enum AdjustmentReason
/// has reimbursed the funds with a Wrong Payee Credit.
///
WrongPayeeCredit,
-
- ///
- /// The check was deposited with a different amount than what was written on the check.
- ///
- AdjustedAmount,
-
- ///
- /// The recipient was not able to process the check. This usually happens for
- /// e.g., low quality images.
- ///
- NonConformingItem,
-
- ///
- /// The check has already been deposited elsewhere and so this is a duplicate.
- ///
- Paid,
}
sealed class AdjustmentReasonConverter : JsonConverter
@@ -509,9 +493,6 @@ JsonSerializerOptions options
{
"late_return" => AdjustmentReason.LateReturn,
"wrong_payee_credit" => AdjustmentReason.WrongPayeeCredit,
- "adjusted_amount" => AdjustmentReason.AdjustedAmount,
- "non_conforming_item" => AdjustmentReason.NonConformingItem,
- "paid" => AdjustmentReason.Paid,
_ => (AdjustmentReason)(-1),
};
}
@@ -528,9 +509,6 @@ JsonSerializerOptions options
{
AdjustmentReason.LateReturn => "late_return",
AdjustmentReason.WrongPayeeCredit => "wrong_payee_credit",
- AdjustmentReason.AdjustedAmount => "adjusted_amount",
- AdjustmentReason.NonConformingItem => "non_conforming_item",
- AdjustmentReason.Paid => "paid",
_ => throw new IncreaseInvalidDataException(
string.Format("Invalid value '{0}' in {1}", value, nameof(value))
),
From e5125437fadd0e21b7bc78f6d3eca5a9ead5a021 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 25 Mar 2026 18:27:06 +0000
Subject: [PATCH 08/24] feat(api): api update
---
.stats.yml | 4 +-
.../Models/Entities/EntityCreateParamsTest.cs | 342 +++++++++++++++---
.../Entities/EntityListPageResponseTest.cs | 49 ++-
.../Models/Entities/EntityTest.cs | 251 ++++++++++++-
src/Increase.Api/Core/ModelBase.cs | 4 +-
src/Increase.Api/Models/Entities/Entity.cs | 165 ++++++++-
.../Models/Entities/EntityCreateParams.cs | 199 ++++++++--
7 files changed, 907 insertions(+), 107 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index c8871b7..5d64e13 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d31504be6985a7ded14abd0da36f4272e585f43332b4b844a6950c98ddcd525.yml
-openapi_spec_hash: f1a49121780ec8b6678b864ac9b1deca
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e2a6ff4685a5e09babcce1fb8bac1f373d707d5b5aa82aae375d923de890e56e.yml
+openapi_spec_hash: 244249a4dfb6c746c161a704764d7630
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs
index 765b1f5..15c3599 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs
@@ -74,8 +74,12 @@ public void FieldRoundtrip_Works()
CompanyTitle = "CEO",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "602214076",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -95,7 +99,7 @@ public void FieldRoundtrip_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -365,8 +369,12 @@ public void FieldRoundtrip_Works()
CompanyTitle = "CEO",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "602214076",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -386,7 +394,7 @@ public void FieldRoundtrip_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -769,8 +777,12 @@ public void CopyConstructor_Works()
CompanyTitle = "CEO",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "602214076",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -790,7 +802,7 @@ public void CopyConstructor_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -1134,8 +1146,12 @@ public void FieldRoundtrip_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -1201,8 +1217,12 @@ public void FieldRoundtrip_Works()
CompanyTitle = "x",
},
];
+ LegalIdentifier expectedLegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
string expectedName = "x";
- string expectedTaxIdentifier = "x";
ApiEnum<
string,
BeneficialOwnershipExemptionReason
@@ -1219,8 +1239,8 @@ public void FieldRoundtrip_Works()
{
Assert.Equal(expectedBeneficialOwners[i], model.BeneficialOwners[i]);
}
+ Assert.Equal(expectedLegalIdentifier, model.LegalIdentifier);
Assert.Equal(expectedName, model.Name);
- Assert.Equal(expectedTaxIdentifier, model.TaxIdentifier);
Assert.Equal(
expectedBeneficialOwnershipExemptionReason,
model.BeneficialOwnershipExemptionReason
@@ -1293,8 +1313,12 @@ public void SerializationRoundtrip_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -1374,8 +1398,12 @@ public void FieldRoundtripThroughSerialization_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -1448,8 +1476,12 @@ public void FieldRoundtripThroughSerialization_Works()
CompanyTitle = "x",
},
];
+ LegalIdentifier expectedLegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
string expectedName = "x";
- string expectedTaxIdentifier = "x";
ApiEnum<
string,
BeneficialOwnershipExemptionReason
@@ -1466,8 +1498,8 @@ public void FieldRoundtripThroughSerialization_Works()
{
Assert.Equal(expectedBeneficialOwners[i], deserialized.BeneficialOwners[i]);
}
+ Assert.Equal(expectedLegalIdentifier, deserialized.LegalIdentifier);
Assert.Equal(expectedName, deserialized.Name);
- Assert.Equal(expectedTaxIdentifier, deserialized.TaxIdentifier);
Assert.Equal(
expectedBeneficialOwnershipExemptionReason,
deserialized.BeneficialOwnershipExemptionReason
@@ -1540,8 +1572,12 @@ public void Validation_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -1615,8 +1651,12 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
Assert.Null(model.BeneficialOwnershipExemptionReason);
@@ -1693,8 +1733,12 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
model.Validate();
@@ -1762,8 +1806,12 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
// Null should be interpreted as omitted for these properties
BeneficialOwnershipExemptionReason = null,
@@ -1847,8 +1895,12 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
// Null should be interpreted as omitted for these properties
BeneficialOwnershipExemptionReason = null,
@@ -1923,8 +1975,12 @@ public void CopyConstructor_Works()
CompanyTitle = "x",
},
],
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
BeneficialOwnershipExemptionReason =
BeneficialOwnershipExemptionReason.RegulatedFinancialInstitution,
Email = "dev@stainless.com",
@@ -4296,6 +4352,196 @@ public void InvalidEnumSerializationRoundtrip_Works()
}
}
+public class LegalIdentifierTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
+
+ string expectedValue = "x";
+ ApiEnum expectedCategory = Category.UsEmployerIdentificationNumber;
+
+ Assert.Equal(expectedValue, model.Value);
+ Assert.Equal(expectedCategory, model.Category);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedValue = "x";
+ ApiEnum expectedCategory = Category.UsEmployerIdentificationNumber;
+
+ Assert.Equal(expectedValue, deserialized.Value);
+ Assert.Equal(expectedCategory, deserialized.Category);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
+ {
+ var model = new LegalIdentifier { Value = "x" };
+
+ Assert.Null(model.Category);
+ Assert.False(model.RawData.ContainsKey("category"));
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesUnsetValidation_Works()
+ {
+ var model = new LegalIdentifier { Value = "x" };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+
+ // Null should be interpreted as omitted for these properties
+ Category = null,
+ };
+
+ Assert.Null(model.Category);
+ Assert.False(model.RawData.ContainsKey("category"));
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+
+ // Null should be interpreted as omitted for these properties
+ Category = null,
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new LegalIdentifier
+ {
+ Value = "x",
+ Category = Category.UsEmployerIdentificationNumber,
+ };
+
+ LegalIdentifier copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class CategoryTest : TestBase
+{
+ [Theory]
+ [InlineData(Category.UsEmployerIdentificationNumber)]
+ [InlineData(Category.Other)]
+ public void Validation_Works(Category rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize>(
+ JsonSerializer.SerializeToElement("invalid value"),
+ ModelBase.SerializerOptions
+ );
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(Category.UsEmployerIdentificationNumber)]
+ [InlineData(Category.Other)]
+ public void SerializationRoundtrip_Works(Category rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize>(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize>(
+ JsonSerializer.SerializeToElement("invalid value"),
+ ModelBase.SerializerOptions
+ );
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize>(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class BeneficialOwnershipExemptionReasonTest : TestBase
{
[Theory]
@@ -4372,7 +4618,7 @@ public void FieldRoundtrip_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -4387,7 +4633,8 @@ public void FieldRoundtrip_Works()
Line2 = "x",
};
List expectedAuthorizedPersons = [new("x")];
- ApiEnum expectedCategory = Category.Municipality;
+ ApiEnum expectedCategory =
+ GovernmentAuthorityCategory.Municipality;
string expectedName = "x";
string expectedTaxIdentifier = "x";
string expectedWebsite = "website";
@@ -4418,7 +4665,7 @@ public void SerializationRoundtrip_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -4447,7 +4694,7 @@ public void FieldRoundtripThroughSerialization_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -4469,7 +4716,8 @@ public void FieldRoundtripThroughSerialization_Works()
Line2 = "x",
};
List expectedAuthorizedPersons = [new("x")];
- ApiEnum expectedCategory = Category.Municipality;
+ ApiEnum expectedCategory =
+ GovernmentAuthorityCategory.Municipality;
string expectedName = "x";
string expectedTaxIdentifier = "x";
string expectedWebsite = "website";
@@ -4500,7 +4748,7 @@ public void Validation_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -4523,7 +4771,7 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
};
@@ -4546,7 +4794,7 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
};
@@ -4568,7 +4816,7 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
@@ -4594,7 +4842,7 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
@@ -4619,7 +4867,7 @@ public void CopyConstructor_Works()
Line2 = "x",
},
AuthorizedPersons = [new("x")],
- Category = Category.Municipality,
+ Category = GovernmentAuthorityCategory.Municipality,
Name = "x",
TaxIdentifier = "x",
Website = "website",
@@ -4870,24 +5118,24 @@ public void CopyConstructor_Works()
}
}
-public class CategoryTest : TestBase
+public class GovernmentAuthorityCategoryTest : TestBase
{
[Theory]
- [InlineData(Category.Municipality)]
- [InlineData(Category.StateAgency)]
- [InlineData(Category.StateGovernment)]
- [InlineData(Category.FederalAgency)]
- public void Validation_Works(Category rawValue)
+ [InlineData(GovernmentAuthorityCategory.Municipality)]
+ [InlineData(GovernmentAuthorityCategory.StateAgency)]
+ [InlineData(GovernmentAuthorityCategory.StateGovernment)]
+ [InlineData(GovernmentAuthorityCategory.FederalAgency)]
+ public void Validation_Works(GovernmentAuthorityCategory rawValue)
{
// force implicit conversion because Theory can't do that for us
- ApiEnum value = rawValue;
+ ApiEnum value = rawValue;
value.Validate();
}
[Fact]
public void InvalidEnumValidationThrows_Works()
{
- var value = JsonSerializer.Deserialize>(
+ var value = JsonSerializer.Deserialize>(
JsonSerializer.SerializeToElement("invalid value"),
ModelBase.SerializerOptions
);
@@ -4897,17 +5145,17 @@ public void InvalidEnumValidationThrows_Works()
}
[Theory]
- [InlineData(Category.Municipality)]
- [InlineData(Category.StateAgency)]
- [InlineData(Category.StateGovernment)]
- [InlineData(Category.FederalAgency)]
- public void SerializationRoundtrip_Works(Category rawValue)
+ [InlineData(GovernmentAuthorityCategory.Municipality)]
+ [InlineData(GovernmentAuthorityCategory.StateAgency)]
+ [InlineData(GovernmentAuthorityCategory.StateGovernment)]
+ [InlineData(GovernmentAuthorityCategory.FederalAgency)]
+ public void SerializationRoundtrip_Works(GovernmentAuthorityCategory rawValue)
{
// force implicit conversion because Theory can't do that for us
- ApiEnum value = rawValue;
+ ApiEnum value = rawValue;
string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
- var deserialized = JsonSerializer.Deserialize>(
+ var deserialized = JsonSerializer.Deserialize>(
json,
ModelBase.SerializerOptions
);
@@ -4918,12 +5166,12 @@ public void SerializationRoundtrip_Works(Category rawValue)
[Fact]
public void InvalidEnumSerializationRoundtrip_Works()
{
- var value = JsonSerializer.Deserialize>(
+ var value = JsonSerializer.Deserialize>(
JsonSerializer.SerializeToElement("invalid value"),
ModelBase.SerializerOptions
);
string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
- var deserialized = JsonSerializer.Deserialize>(
+ var deserialized = JsonSerializer.Deserialize>(
json,
ModelBase.SerializerOptions
);
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs
index 7f71a98..710df3d 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs
@@ -65,8 +65,13 @@ public void FieldRoundtrip_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -306,8 +311,13 @@ public void FieldRoundtrip_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -559,8 +569,13 @@ public void SerializationRoundtrip_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -814,8 +829,13 @@ public void FieldRoundtripThroughSerialization_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -1062,8 +1082,13 @@ public void FieldRoundtripThroughSerialization_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -1315,8 +1340,13 @@ public void Validation_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -1564,8 +1594,13 @@ public void CopyConstructor_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityTest.cs
index 10fee25..443460a 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityTest.cs
@@ -62,8 +62,13 @@ public void FieldRoundtrip_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -295,8 +300,13 @@ public void FieldRoundtrip_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
};
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
@@ -557,8 +567,13 @@ public void SerializationRoundtrip_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -804,8 +819,13 @@ public void FieldRoundtripThroughSerialization_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -1044,8 +1064,13 @@ public void FieldRoundtripThroughSerialization_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
};
DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
@@ -1306,8 +1331,13 @@ public void Validation_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -1547,8 +1577,13 @@ public void CopyConstructor_Works()
Email = null,
IncorporationState = "NY",
IndustryCode = null,
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "602214076",
+ },
Name = "National Phonograph Company",
- TaxIdentifier = "602214076",
Website = "https://example.com",
},
CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
@@ -1790,8 +1825,13 @@ public void FieldRoundtrip_Works()
Email = "email",
IncorporationState = "incorporation_state",
IndustryCode = "industry_code",
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ },
Name = "name",
- TaxIdentifier = "tax_identifier",
Website = "website",
};
@@ -1839,8 +1879,13 @@ public void FieldRoundtrip_Works()
string expectedEmail = "email";
string expectedIncorporationState = "incorporation_state";
string expectedIndustryCode = "industry_code";
+ Entities::EntityCorporationLegalIdentifier expectedLegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
string expectedName = "name";
- string expectedTaxIdentifier = "tax_identifier";
string expectedWebsite = "website";
Assert.Equal(expectedAddress, model.Address);
@@ -1852,8 +1897,8 @@ public void FieldRoundtrip_Works()
Assert.Equal(expectedEmail, model.Email);
Assert.Equal(expectedIncorporationState, model.IncorporationState);
Assert.Equal(expectedIndustryCode, model.IndustryCode);
+ Assert.Equal(expectedLegalIdentifier, model.LegalIdentifier);
Assert.Equal(expectedName, model.Name);
- Assert.Equal(expectedTaxIdentifier, model.TaxIdentifier);
Assert.Equal(expectedWebsite, model.Website);
}
@@ -1906,8 +1951,13 @@ public void SerializationRoundtrip_Works()
Email = "email",
IncorporationState = "incorporation_state",
IndustryCode = "industry_code",
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ },
Name = "name",
- TaxIdentifier = "tax_identifier",
Website = "website",
};
@@ -1969,8 +2019,13 @@ public void FieldRoundtripThroughSerialization_Works()
Email = "email",
IncorporationState = "incorporation_state",
IndustryCode = "industry_code",
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ },
Name = "name",
- TaxIdentifier = "tax_identifier",
Website = "website",
};
@@ -2025,8 +2080,13 @@ public void FieldRoundtripThroughSerialization_Works()
string expectedEmail = "email";
string expectedIncorporationState = "incorporation_state";
string expectedIndustryCode = "industry_code";
+ Entities::EntityCorporationLegalIdentifier expectedLegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
string expectedName = "name";
- string expectedTaxIdentifier = "tax_identifier";
string expectedWebsite = "website";
Assert.Equal(expectedAddress, deserialized.Address);
@@ -2038,8 +2098,8 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Equal(expectedEmail, deserialized.Email);
Assert.Equal(expectedIncorporationState, deserialized.IncorporationState);
Assert.Equal(expectedIndustryCode, deserialized.IndustryCode);
+ Assert.Equal(expectedLegalIdentifier, deserialized.LegalIdentifier);
Assert.Equal(expectedName, deserialized.Name);
- Assert.Equal(expectedTaxIdentifier, deserialized.TaxIdentifier);
Assert.Equal(expectedWebsite, deserialized.Website);
}
@@ -2092,8 +2152,13 @@ public void Validation_Works()
Email = "email",
IncorporationState = "incorporation_state",
IndustryCode = "industry_code",
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ },
Name = "name",
- TaxIdentifier = "tax_identifier",
Website = "website",
};
@@ -2149,8 +2214,13 @@ public void CopyConstructor_Works()
Email = "email",
IncorporationState = "incorporation_state",
IndustryCode = "industry_code",
+ LegalIdentifier = new()
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ },
Name = "name",
- TaxIdentifier = "tax_identifier",
Website = "website",
};
@@ -3116,6 +3186,155 @@ public void InvalidEnumSerializationRoundtrip_Works()
}
}
+public class EntityCorporationLegalIdentifierTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new Entities::EntityCorporationLegalIdentifier
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
+
+ ApiEnum expectedCategory =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber;
+ string expectedValue = "value";
+
+ Assert.Equal(expectedCategory, model.Category);
+ Assert.Equal(expectedValue, model.Value);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new Entities::EntityCorporationLegalIdentifier
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new Entities::EntityCorporationLegalIdentifier
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ ApiEnum expectedCategory =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber;
+ string expectedValue = "value";
+
+ Assert.Equal(expectedCategory, deserialized.Category);
+ Assert.Equal(expectedValue, deserialized.Value);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new Entities::EntityCorporationLegalIdentifier
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new Entities::EntityCorporationLegalIdentifier
+ {
+ Category =
+ Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ Value = "value",
+ };
+
+ Entities::EntityCorporationLegalIdentifier copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class EntityCorporationLegalIdentifierCategoryTest : TestBase
+{
+ [Theory]
+ [InlineData(Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber)]
+ [InlineData(Entities::EntityCorporationLegalIdentifierCategory.Other)]
+ public void Validation_Works(Entities::EntityCorporationLegalIdentifierCategory rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(Entities::EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber)]
+ [InlineData(Entities::EntityCorporationLegalIdentifierCategory.Other)]
+ public void SerializationRoundtrip_Works(
+ Entities::EntityCorporationLegalIdentifierCategory rawValue
+ )
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class EntityGovernmentAuthorityTest : TestBase
{
[Fact]
diff --git a/src/Increase.Api/Core/ModelBase.cs b/src/Increase.Api/Core/ModelBase.cs
index bfa7b09..078dd1e 100644
--- a/src/Increase.Api/Core/ModelBase.cs
+++ b/src/Increase.Api/Core/ModelBase.cs
@@ -1243,6 +1243,7 @@ protected ModelBase(ModelBase modelBase)
Entities::EntityCorporationBeneficialOwnerIndividualIdentificationMethod
>(),
new ApiEnumConverter(),
+ new ApiEnumConverter(),
new ApiEnumConverter(),
new ApiEnumConverter(),
new ApiEnumConverter(),
@@ -1265,8 +1266,9 @@ protected ModelBase(ModelBase modelBase)
new ApiEnumConverter(),
new ApiEnumConverter(),
new ApiEnumConverter(),
- new ApiEnumConverter(),
new ApiEnumConverter(),
+ new ApiEnumConverter(),
+ new ApiEnumConverter(),
new ApiEnumConverter(),
new ApiEnumConverter(),
new ApiEnumConverter(),
diff --git a/src/Increase.Api/Models/Entities/Entity.cs b/src/Increase.Api/Models/Entities/Entity.cs
index 297b236..b4b3f32 100644
--- a/src/Increase.Api/Models/Entities/Entity.cs
+++ b/src/Increase.Api/Models/Entities/Entity.cs
@@ -434,29 +434,31 @@ public required string? IndustryCode
}
///
- /// The legal name of the corporation.
+ /// The legal identifier of the corporation.
///
- public required string Name
+ public required EntityCorporationLegalIdentifier? LegalIdentifier
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("name");
+ return this._rawData.GetNullableClass(
+ "legal_identifier"
+ );
}
- init { this._rawData.Set("name", value); }
+ init { this._rawData.Set("legal_identifier", value); }
}
///
- /// The Employer Identification Number (EIN) for the corporation.
+ /// The legal name of the corporation.
///
- public required string? TaxIdentifier
+ public required string Name
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("tax_identifier");
+ return this._rawData.GetNotNullClass("name");
}
- init { this._rawData.Set("tax_identifier", value); }
+ init { this._rawData.Set("name", value); }
}
///
@@ -483,8 +485,8 @@ public override void Validate()
_ = this.Email;
_ = this.IncorporationState;
_ = this.IndustryCode;
+ this.LegalIdentifier?.Validate();
_ = this.Name;
- _ = this.TaxIdentifier;
_ = this.Website;
}
@@ -1261,6 +1263,151 @@ JsonSerializerOptions options
}
}
+///
+/// The legal identifier of the corporation.
+///
+[JsonConverter(
+ typeof(JsonModelConverter<
+ EntityCorporationLegalIdentifier,
+ EntityCorporationLegalIdentifierFromRaw
+ >)
+)]
+public sealed record class EntityCorporationLegalIdentifier : JsonModel
+{
+ ///
+ /// The category of the legal identifier.
+ ///
+ public required ApiEnum Category
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass<
+ ApiEnum
+ >("category");
+ }
+ init { this._rawData.Set("category", value); }
+ }
+
+ ///
+ /// The identifier of the legal identifier.
+ ///
+ public required string Value
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("value");
+ }
+ init { this._rawData.Set("value", value); }
+ }
+
+ ///
+ public override void Validate()
+ {
+ this.Category.Validate();
+ _ = this.Value;
+ }
+
+ public EntityCorporationLegalIdentifier() { }
+
+#pragma warning disable CS8618
+ [SetsRequiredMembers]
+ public EntityCorporationLegalIdentifier(
+ EntityCorporationLegalIdentifier entityCorporationLegalIdentifier
+ )
+ : base(entityCorporationLegalIdentifier) { }
+#pragma warning restore CS8618
+
+ public EntityCorporationLegalIdentifier(IReadOnlyDictionary rawData)
+ {
+ this._rawData = new(rawData);
+ }
+
+#pragma warning disable CS8618
+ [SetsRequiredMembers]
+ EntityCorporationLegalIdentifier(FrozenDictionary rawData)
+ {
+ this._rawData = new(rawData);
+ }
+#pragma warning restore CS8618
+
+ ///
+ public static EntityCorporationLegalIdentifier FromRawUnchecked(
+ IReadOnlyDictionary rawData
+ )
+ {
+ return new(FrozenDictionary.ToFrozenDictionary(rawData));
+ }
+}
+
+class EntityCorporationLegalIdentifierFromRaw : IFromRawJson
+{
+ ///
+ public EntityCorporationLegalIdentifier FromRawUnchecked(
+ IReadOnlyDictionary rawData
+ ) => EntityCorporationLegalIdentifier.FromRawUnchecked(rawData);
+}
+
+///
+/// The category of the legal identifier.
+///
+[JsonConverter(typeof(EntityCorporationLegalIdentifierCategoryConverter))]
+public enum EntityCorporationLegalIdentifierCategory
+{
+ ///
+ /// The Employer Identification Number (EIN) for the company. The EIN is a 9-digit
+ /// number assigned by the IRS.
+ ///
+ UsEmployerIdentificationNumber,
+
+ ///
+ /// A legal identifier issued by a foreign government, like a tax identification
+ /// number or registration number.
+ ///
+ Other,
+}
+
+sealed class EntityCorporationLegalIdentifierCategoryConverter
+ : JsonConverter
+{
+ public override EntityCorporationLegalIdentifierCategory Read(
+ ref Utf8JsonReader reader,
+ System::Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ return JsonSerializer.Deserialize(ref reader, options) switch
+ {
+ "us_employer_identification_number" =>
+ EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ "other" => EntityCorporationLegalIdentifierCategory.Other,
+ _ => (EntityCorporationLegalIdentifierCategory)(-1),
+ };
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ EntityCorporationLegalIdentifierCategory value,
+ JsonSerializerOptions options
+ )
+ {
+ JsonSerializer.Serialize(
+ writer,
+ value switch
+ {
+ EntityCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber =>
+ "us_employer_identification_number",
+ EntityCorporationLegalIdentifierCategory.Other => "other",
+ _ => throw new IncreaseInvalidDataException(
+ string.Format("Invalid value '{0}' in {1}", value, nameof(value))
+ ),
+ },
+ options
+ );
+ }
+}
+
///
/// Details of the government authority entity. Will be present if `structure` is
/// equal to `government_authority`.
diff --git a/src/Increase.Api/Models/Entities/EntityCreateParams.cs b/src/Increase.Api/Models/Entities/EntityCreateParams.cs
index e8f5f2e..ee18fba 100644
--- a/src/Increase.Api/Models/Entities/EntityCreateParams.cs
+++ b/src/Increase.Api/Models/Entities/EntityCreateParams.cs
@@ -500,29 +500,30 @@ public required IReadOnlyList BeneficialOwners
}
///
- /// The legal name of the corporation.
+ /// The legal identifier of the corporation. This is usually the Employer Identification
+ /// Number (EIN).
///
- public required string Name
+ public required LegalIdentifier LegalIdentifier
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("name");
+ return this._rawData.GetNotNullClass("legal_identifier");
}
- init { this._rawData.Set("name", value); }
+ init { this._rawData.Set("legal_identifier", value); }
}
///
- /// The Employer Identification Number (EIN) for the corporation.
+ /// The legal name of the corporation.
///
- public required string TaxIdentifier
+ public required string Name
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("tax_identifier");
+ return this._rawData.GetNotNullClass("name");
}
- init { this._rawData.Set("tax_identifier", value); }
+ init { this._rawData.Set("name", value); }
}
///
@@ -646,8 +647,8 @@ public override void Validate()
{
item.Validate();
}
+ this.LegalIdentifier.Validate();
_ = this.Name;
- _ = this.TaxIdentifier;
this.BeneficialOwnershipExemptionReason?.Validate();
_ = this.Email;
_ = this.IncorporationState;
@@ -1805,6 +1806,148 @@ public override void Write(Utf8JsonWriter writer, Prong value, JsonSerializerOpt
}
}
+///
+/// The legal identifier of the corporation. This is usually the Employer Identification
+/// Number (EIN).
+///
+[JsonConverter(typeof(JsonModelConverter))]
+public sealed record class LegalIdentifier : JsonModel
+{
+ ///
+ /// The legal identifier.
+ ///
+ public required string Value
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("value");
+ }
+ init { this._rawData.Set("value", value); }
+ }
+
+ ///
+ /// The category of the legal identifier. If not provided, the default is `us_employer_identification_number`.
+ ///
+ public ApiEnum? Category
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNullableClass>("category");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("category", value);
+ }
+ }
+
+ ///
+ public override void Validate()
+ {
+ _ = this.Value;
+ this.Category?.Validate();
+ }
+
+ public LegalIdentifier() { }
+
+#pragma warning disable CS8618
+ [SetsRequiredMembers]
+ public LegalIdentifier(LegalIdentifier legalIdentifier)
+ : base(legalIdentifier) { }
+#pragma warning restore CS8618
+
+ public LegalIdentifier(IReadOnlyDictionary rawData)
+ {
+ this._rawData = new(rawData);
+ }
+
+#pragma warning disable CS8618
+ [SetsRequiredMembers]
+ LegalIdentifier(FrozenDictionary rawData)
+ {
+ this._rawData = new(rawData);
+ }
+#pragma warning restore CS8618
+
+ ///
+ public static LegalIdentifier FromRawUnchecked(IReadOnlyDictionary rawData)
+ {
+ return new(FrozenDictionary.ToFrozenDictionary(rawData));
+ }
+
+ [SetsRequiredMembers]
+ public LegalIdentifier(string value)
+ : this()
+ {
+ this.Value = value;
+ }
+}
+
+class LegalIdentifierFromRaw : IFromRawJson
+{
+ ///
+ public LegalIdentifier FromRawUnchecked(IReadOnlyDictionary rawData) =>
+ LegalIdentifier.FromRawUnchecked(rawData);
+}
+
+///
+/// The category of the legal identifier. If not provided, the default is `us_employer_identification_number`.
+///
+[JsonConverter(typeof(CategoryConverter))]
+public enum Category
+{
+ ///
+ /// The Employer Identification Number (EIN) for the company. The EIN is a 9-digit
+ /// number assigned by the IRS.
+ ///
+ UsEmployerIdentificationNumber,
+
+ ///
+ /// A legal identifier issued by a foreign government, like a tax identification
+ /// number or registration number.
+ ///
+ Other,
+}
+
+sealed class CategoryConverter : JsonConverter
+{
+ public override Category Read(
+ ref Utf8JsonReader reader,
+ System::Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ return JsonSerializer.Deserialize(ref reader, options) switch
+ {
+ "us_employer_identification_number" => Category.UsEmployerIdentificationNumber,
+ "other" => Category.Other,
+ _ => (Category)(-1),
+ };
+ }
+
+ public override void Write(Utf8JsonWriter writer, Category value, JsonSerializerOptions options)
+ {
+ JsonSerializer.Serialize(
+ writer,
+ value switch
+ {
+ Category.UsEmployerIdentificationNumber => "us_employer_identification_number",
+ Category.Other => "other",
+ _ => throw new IncreaseInvalidDataException(
+ string.Format("Invalid value '{0}' in {1}", value, nameof(value))
+ ),
+ },
+ options
+ );
+ }
+}
+
///
/// If the entity is exempt from the requirement to submit beneficial owners, provide
/// the justification. If a reason is provided, you do not need to submit a list
@@ -1926,12 +2069,14 @@ public required IReadOnlyList AuthorizedPersons
///
/// The category of the government authority.
///
- public required ApiEnum Category
+ public required ApiEnum Category
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass>("category");
+ return this._rawData.GetNotNullClass>(
+ "category"
+ );
}
init { this._rawData.Set("category", value); }
}
@@ -2234,8 +2379,8 @@ public AuthorizedPerson FromRawUnchecked(IReadOnlyDictionary
/// The category of the government authority.
///
-[JsonConverter(typeof(CategoryConverter))]
-public enum Category
+[JsonConverter(typeof(GovernmentAuthorityCategoryConverter))]
+public enum GovernmentAuthorityCategory
{
///
/// A municipality.
@@ -2258,9 +2403,9 @@ public enum Category
FederalAgency,
}
-sealed class CategoryConverter : JsonConverter
+sealed class GovernmentAuthorityCategoryConverter : JsonConverter
{
- public override Category Read(
+ public override GovernmentAuthorityCategory Read(
ref Utf8JsonReader reader,
System::Type typeToConvert,
JsonSerializerOptions options
@@ -2268,24 +2413,28 @@ JsonSerializerOptions options
{
return JsonSerializer.Deserialize(ref reader, options) switch
{
- "municipality" => Category.Municipality,
- "state_agency" => Category.StateAgency,
- "state_government" => Category.StateGovernment,
- "federal_agency" => Category.FederalAgency,
- _ => (Category)(-1),
+ "municipality" => GovernmentAuthorityCategory.Municipality,
+ "state_agency" => GovernmentAuthorityCategory.StateAgency,
+ "state_government" => GovernmentAuthorityCategory.StateGovernment,
+ "federal_agency" => GovernmentAuthorityCategory.FederalAgency,
+ _ => (GovernmentAuthorityCategory)(-1),
};
}
- public override void Write(Utf8JsonWriter writer, Category value, JsonSerializerOptions options)
+ public override void Write(
+ Utf8JsonWriter writer,
+ GovernmentAuthorityCategory value,
+ JsonSerializerOptions options
+ )
{
JsonSerializer.Serialize(
writer,
value switch
{
- Category.Municipality => "municipality",
- Category.StateAgency => "state_agency",
- Category.StateGovernment => "state_government",
- Category.FederalAgency => "federal_agency",
+ GovernmentAuthorityCategory.Municipality => "municipality",
+ GovernmentAuthorityCategory.StateAgency => "state_agency",
+ GovernmentAuthorityCategory.StateGovernment => "state_government",
+ GovernmentAuthorityCategory.FederalAgency => "federal_agency",
_ => throw new IncreaseInvalidDataException(
string.Format("Invalid value '{0}' in {1}", value, nameof(value))
),
From 5a98590482b32f43fbe78fc6cf42d26e7d4e5507 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Wed, 25 Mar 2026 22:02:14 +0000
Subject: [PATCH 09/24] feat(api): api update
---
.stats.yml | 4 +-
.../Models/Entities/EntityCreateParamsTest.cs | 561 ++++++++++++------
.../Entities/EntityListPageResponseTest.cs | 49 ++
.../Models/Entities/EntityTest.cs | 189 ++++++
.../Models/Entities/EntityUpdateParamsTest.cs | 162 +++--
src/Increase.Api/Models/Entities/Entity.cs | 238 +++++---
.../Models/Entities/EntityCreateParams.cs | 300 +++++++---
.../Models/Entities/EntityUpdateParams.cs | 120 +++-
8 files changed, 1205 insertions(+), 418 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 5d64e13..8ba24b6 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e2a6ff4685a5e09babcce1fb8bac1f373d707d5b5aa82aae375d923de890e56e.yml
-openapi_spec_hash: 244249a4dfb6c746c161a704764d7630
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b51c9307c5fd4c662426ca9bbdbe00d0721edcb2eb899d4b9a3539aa01623873.yml
+openapi_spec_hash: e5767b8639a1573ae70b25be22cc77a3
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs
index 15c3599..1b03f22 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityCreateParamsTest.cs
@@ -20,10 +20,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "x",
Line1 = "33 Liberty Street",
+ Line2 = "x",
State = "NY",
Zip = "10045",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -111,10 +112,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -153,10 +155,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -226,10 +229,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -270,10 +274,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -315,10 +320,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "x",
Line1 = "33 Liberty Street",
+ Line2 = "x",
State = "NY",
Zip = "10045",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -406,10 +412,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -448,10 +455,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -528,10 +536,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -572,10 +581,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -723,10 +733,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "x",
Line1 = "33 Liberty Street",
+ Line2 = "x",
State = "NY",
Zip = "10045",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -814,10 +825,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -856,10 +868,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -929,10 +942,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -973,10 +987,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -1092,10 +1107,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1163,10 +1179,11 @@ public void FieldRoundtrip_Works()
Address expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
List expectedBeneficialOwners =
[
@@ -1259,10 +1276,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1344,10 +1362,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1422,10 +1441,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
List expectedBeneficialOwners =
[
@@ -1518,10 +1538,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1597,10 +1618,11 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1679,10 +1701,11 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1752,10 +1775,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1841,10 +1865,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -1921,10 +1946,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
BeneficialOwners =
[
@@ -2003,23 +2029,26 @@ public void FieldRoundtrip_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -2028,10 +2057,11 @@ public void SerializationRoundtrip_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -2046,10 +2076,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -2060,16 +2091,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -2078,10 +2111,11 @@ public void Validation_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -2093,13 +2127,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -2108,9 +2145,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -2122,16 +2158,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -2140,12 +2181,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -2157,10 +2199,11 @@ public void CopyConstructor_Works()
var model = new Address
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
Address copied = new(model);
@@ -5194,10 +5237,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5239,10 +5283,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5295,10 +5340,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5351,10 +5397,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5400,10 +5447,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5456,10 +5504,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5509,10 +5558,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5563,10 +5613,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5602,10 +5653,11 @@ public void FieldRoundtrip_Works()
JointIndividualAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
JointIndividualIdentification expectedIdentification = new()
@@ -5652,10 +5704,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5705,10 +5758,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5751,10 +5805,11 @@ public void FieldRoundtripThroughSerialization_Works()
JointIndividualAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
JointIndividualIdentification expectedIdentification = new()
@@ -5801,10 +5856,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5848,10 +5904,11 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5895,10 +5952,11 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5941,10 +5999,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -5991,10 +6050,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -6040,10 +6100,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -6090,23 +6151,26 @@ public void FieldRoundtrip_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -6115,10 +6179,11 @@ public void SerializationRoundtrip_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -6136,10 +6201,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -6150,16 +6216,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -6168,10 +6236,11 @@ public void Validation_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -6183,13 +6252,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -6198,9 +6270,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -6212,16 +6283,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -6230,12 +6306,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -6247,10 +6324,11 @@ public void CopyConstructor_Works()
var model = new JointIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
JointIndividualAddress copied = new(model);
@@ -7076,10 +7154,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7115,10 +7194,11 @@ public void FieldRoundtrip_Works()
NaturalPersonAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
NaturalPersonIdentification expectedIdentification = new()
@@ -7165,10 +7245,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7218,10 +7299,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7264,10 +7346,11 @@ public void FieldRoundtripThroughSerialization_Works()
NaturalPersonAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
NaturalPersonIdentification expectedIdentification = new()
@@ -7314,10 +7397,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7361,10 +7445,11 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7408,10 +7493,11 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7454,10 +7540,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7504,10 +7591,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7553,10 +7641,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -7603,23 +7692,26 @@ public void FieldRoundtrip_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -7628,10 +7720,11 @@ public void SerializationRoundtrip_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -7649,10 +7742,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -7663,16 +7757,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -7681,10 +7777,11 @@ public void Validation_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -7696,13 +7793,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -7711,9 +7811,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -7725,16 +7824,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -7743,12 +7847,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -7760,10 +7865,11 @@ public void CopyConstructor_Works()
var model = new NaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
NaturalPersonAddress copied = new(model);
@@ -9041,10 +9147,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9085,10 +9192,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9143,10 +9251,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9187,10 +9296,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9263,10 +9373,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9307,10 +9418,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9376,10 +9488,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9420,10 +9533,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9482,10 +9596,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9526,10 +9641,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9602,10 +9718,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9646,10 +9763,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9712,10 +9830,11 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9786,10 +9905,11 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9853,10 +9973,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -9933,10 +10054,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10006,10 +10128,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10050,10 +10173,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10342,10 +10466,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10385,10 +10510,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10436,10 +10562,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10490,10 +10617,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10540,10 +10668,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10591,10 +10720,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10688,10 +10818,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10797,10 +10928,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10836,10 +10968,11 @@ public void FieldRoundtrip_Works()
TrusteeIndividualAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
TrusteeIndividualIdentification expectedIdentification = new()
@@ -10886,10 +11019,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10939,10 +11073,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -10985,10 +11120,11 @@ public void FieldRoundtripThroughSerialization_Works()
TrusteeIndividualAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
TrusteeIndividualIdentification expectedIdentification = new()
@@ -11035,10 +11171,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -11082,10 +11219,11 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -11129,10 +11267,11 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -11175,10 +11314,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -11225,10 +11365,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -11274,10 +11415,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -11324,23 +11466,26 @@ public void FieldRoundtrip_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -11349,10 +11494,11 @@ public void SerializationRoundtrip_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -11370,10 +11516,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -11384,16 +11531,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -11402,10 +11551,11 @@ public void Validation_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -11417,13 +11567,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -11432,9 +11585,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -11446,16 +11598,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -11464,12 +11621,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -11481,10 +11639,11 @@ public void CopyConstructor_Works()
var model = new TrusteeIndividualAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
TrusteeIndividualAddress copied = new(model);
@@ -12312,10 +12471,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12351,10 +12511,11 @@ public void FieldRoundtrip_Works()
GrantorAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
GrantorIdentification expectedIdentification = new()
@@ -12401,10 +12562,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12451,10 +12613,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12497,10 +12660,11 @@ public void FieldRoundtripThroughSerialization_Works()
GrantorAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedDateOfBirth = "2019-12-27";
GrantorIdentification expectedIdentification = new()
@@ -12547,10 +12711,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12594,10 +12759,11 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12641,10 +12807,11 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12687,10 +12854,11 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12737,10 +12905,11 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12786,10 +12955,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
DateOfBirth = "2019-12-27",
Identification = new()
@@ -12836,23 +13006,26 @@ public void FieldRoundtrip_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -12861,10 +13034,11 @@ public void SerializationRoundtrip_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -12882,10 +13056,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -12896,16 +13071,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -12914,10 +13091,11 @@ public void Validation_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -12929,13 +13107,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -12944,9 +13125,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -12958,16 +13138,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -12976,12 +13161,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -12993,10 +13179,11 @@ public void CopyConstructor_Works()
var model = new GrantorAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
GrantorAddress copied = new(model);
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs
index 710df3d..bd01b0d 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityListPageResponseTest.cs
@@ -24,6 +24,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -82,6 +83,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -106,6 +108,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -128,6 +131,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -179,6 +183,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -192,6 +197,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -217,6 +223,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -270,6 +277,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -328,6 +336,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -352,6 +361,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -374,6 +384,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -425,6 +436,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -438,6 +450,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -463,6 +476,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -528,6 +542,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -586,6 +601,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -610,6 +626,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -632,6 +649,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -683,6 +701,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -696,6 +715,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -721,6 +741,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -788,6 +809,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -846,6 +868,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -870,6 +893,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -892,6 +916,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -943,6 +968,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -956,6 +982,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -981,6 +1008,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1041,6 +1069,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1099,6 +1128,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1123,6 +1153,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1145,6 +1176,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1196,6 +1228,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1209,6 +1242,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1234,6 +1268,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1299,6 +1334,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1357,6 +1393,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1381,6 +1418,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1403,6 +1441,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1454,6 +1493,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1467,6 +1507,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1492,6 +1533,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1553,6 +1595,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1611,6 +1654,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1635,6 +1679,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1657,6 +1702,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1708,6 +1754,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1721,6 +1768,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1746,6 +1794,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityTest.cs
index 443460a..d59f674 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityTest.cs
@@ -21,6 +21,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -79,6 +80,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -103,6 +105,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -125,6 +128,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -175,6 +179,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -188,6 +193,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -213,6 +219,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -259,6 +266,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -315,6 +323,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -338,6 +347,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -360,6 +370,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -411,6 +422,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -424,6 +436,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -448,6 +461,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -526,6 +540,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -584,6 +599,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -608,6 +624,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -630,6 +647,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -680,6 +698,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -693,6 +712,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -718,6 +738,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -778,6 +799,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -836,6 +858,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -860,6 +883,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -882,6 +906,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -932,6 +957,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -945,6 +971,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -970,6 +997,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1023,6 +1051,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1079,6 +1108,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1102,6 +1132,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1124,6 +1155,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1175,6 +1207,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1188,6 +1221,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1212,6 +1246,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1290,6 +1325,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1348,6 +1384,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1372,6 +1409,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1394,6 +1432,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1444,6 +1483,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1457,6 +1497,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1482,6 +1523,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1536,6 +1578,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1594,6 +1637,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1618,6 +1662,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1640,6 +1685,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1690,6 +1736,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1703,6 +1750,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1728,6 +1776,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1784,6 +1833,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1838,6 +1888,7 @@ public void FieldRoundtrip_Works()
Entities::EntityCorporationAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1910,6 +1961,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -1978,6 +2030,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2039,6 +2092,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityCorporationAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2111,6 +2165,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2173,6 +2228,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2238,6 +2294,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityCorporationAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2245,11 +2302,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -2262,6 +2321,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityCorporationAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2283,6 +2343,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityCorporationAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2297,11 +2358,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -2314,6 +2377,7 @@ public void Validation_Works()
var model = new Entities::EntityCorporationAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -2329,6 +2393,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityCorporationAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3345,6 +3410,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3363,6 +3429,7 @@ public void FieldRoundtrip_Works()
Entities::EntityGovernmentAuthorityAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3398,6 +3465,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3430,6 +3498,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3455,6 +3524,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityGovernmentAuthorityAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3490,6 +3560,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3516,6 +3587,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3545,6 +3617,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityGovernmentAuthorityAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3552,11 +3625,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -3569,6 +3644,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityGovernmentAuthorityAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3590,6 +3666,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityGovernmentAuthorityAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3604,11 +3681,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -3621,6 +3700,7 @@ public void Validation_Works()
var model = new Entities::EntityGovernmentAuthorityAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3636,6 +3716,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityGovernmentAuthorityAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3808,6 +3889,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3833,6 +3915,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3870,6 +3953,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3909,6 +3993,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3941,6 +4026,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -3978,6 +4064,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4011,6 +4098,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4045,6 +4133,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4062,6 +4151,7 @@ public void FieldRoundtrip_Works()
Entities::EntityJointIndividualAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4089,6 +4179,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4120,6 +4211,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4144,6 +4236,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityJointIndividualAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4171,6 +4264,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4196,6 +4290,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4224,6 +4319,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityJointIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4231,11 +4327,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -4248,6 +4346,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityJointIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4269,6 +4368,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityJointIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4283,11 +4383,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -4300,6 +4402,7 @@ public void Validation_Works()
var model = new Entities::EntityJointIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4315,6 +4418,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityJointIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4493,6 +4597,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4510,6 +4615,7 @@ public void FieldRoundtrip_Works()
Entities::EntityNaturalPersonAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4537,6 +4643,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4568,6 +4675,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4592,6 +4700,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityNaturalPersonAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4619,6 +4728,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4644,6 +4754,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4672,6 +4783,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityNaturalPersonAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4679,11 +4791,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -4696,6 +4810,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityNaturalPersonAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4717,6 +4832,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityNaturalPersonAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4731,11 +4847,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -4748,6 +4866,7 @@ public void Validation_Works()
var model = new Entities::EntityNaturalPersonAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -4763,6 +4882,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityNaturalPersonAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5452,6 +5572,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5465,6 +5586,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5489,6 +5611,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5511,6 +5634,7 @@ public void FieldRoundtrip_Works()
Entities::EntityTrustAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5525,6 +5649,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5549,6 +5674,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5589,6 +5715,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5602,6 +5729,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5626,6 +5754,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5662,6 +5791,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5675,6 +5805,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5699,6 +5830,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5728,6 +5860,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityTrustAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5742,6 +5875,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5766,6 +5900,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5806,6 +5941,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5819,6 +5955,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5843,6 +5980,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5873,6 +6011,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5886,6 +6025,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5910,6 +6050,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5943,6 +6084,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityTrustAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5950,11 +6092,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -5967,6 +6111,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityTrustAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -5988,6 +6133,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityTrustAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6002,11 +6148,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -6019,6 +6167,7 @@ public void Validation_Works()
var model = new Entities::EntityTrustAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6034,6 +6183,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityTrustAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6112,6 +6262,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6129,6 +6280,7 @@ public void FieldRoundtrip_Works()
Entities::EntityTrustGrantorAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6156,6 +6308,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6187,6 +6340,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6211,6 +6365,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityTrustGrantorAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6238,6 +6393,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6263,6 +6419,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6291,6 +6448,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityTrustGrantorAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6298,11 +6456,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -6315,6 +6475,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityTrustGrantorAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6336,6 +6497,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityTrustGrantorAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6350,11 +6512,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -6367,6 +6531,7 @@ public void Validation_Works()
var model = new Entities::EntityTrustGrantorAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6382,6 +6547,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityTrustGrantorAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6560,6 +6726,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6582,6 +6749,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6613,6 +6781,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6649,6 +6818,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6678,6 +6848,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6709,6 +6880,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6739,6 +6911,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6772,6 +6945,7 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6790,6 +6964,7 @@ public void FieldRoundtrip_Works()
Entities::EntityTrustTrusteeIndividualAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6818,6 +6993,7 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6850,6 +7026,7 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6875,6 +7052,7 @@ public void FieldRoundtripThroughSerialization_Works()
Entities::EntityTrustTrusteeIndividualAddress expectedAddress = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6903,6 +7081,7 @@ public void Validation_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6929,6 +7108,7 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6958,6 +7138,7 @@ public void FieldRoundtrip_Works()
var model = new Entities::EntityTrustTrusteeIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -6965,11 +7146,13 @@ public void FieldRoundtrip_Works()
};
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
Assert.Null(model.Line2);
Assert.Equal(expectedState, model.State);
@@ -6982,6 +7165,7 @@ public void SerializationRoundtrip_Works()
var model = new Entities::EntityTrustTrusteeIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -7004,6 +7188,7 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new Entities::EntityTrustTrusteeIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -7019,11 +7204,13 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "New York";
+ string expectedCountry = "US";
string expectedLine1 = "33 Liberty Street";
string expectedState = "NY";
string expectedZip = "10045";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
Assert.Null(deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
@@ -7036,6 +7223,7 @@ public void Validation_Works()
var model = new Entities::EntityTrustTrusteeIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
@@ -7051,6 +7239,7 @@ public void CopyConstructor_Works()
var model = new Entities::EntityTrustTrusteeIndividualAddress
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
Line2 = null,
State = "NY",
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs
index bc06dd8..3b55f43 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs
@@ -19,10 +19,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
+ Line2 = "Unit 2",
State = "NY",
Zip = "10045",
- Line2 = "Unit 2",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -48,10 +49,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
},
@@ -85,10 +87,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
+ Line2 = "Unit 2",
State = "NY",
Zip = "10045",
- Line2 = "Unit 2",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -116,10 +119,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
};
@@ -231,10 +235,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "New York",
+ Country = "US",
Line1 = "33 Liberty Street",
+ Line2 = "Unit 2",
State = "NY",
Zip = "10045",
- Line2 = "Unit 2",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -260,10 +265,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
},
@@ -307,10 +313,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -322,10 +329,11 @@ public void FieldRoundtrip_Works()
EntityUpdateParamsCorporationAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedEmail = "dev@stainless.com";
string expectedIncorporationState = "x";
@@ -349,10 +357,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -378,10 +387,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -400,10 +410,11 @@ public void FieldRoundtripThroughSerialization_Works()
EntityUpdateParamsCorporationAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedEmail = "dev@stainless.com";
string expectedIncorporationState = "x";
@@ -427,10 +438,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -522,10 +534,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Email = "dev@stainless.com",
IncorporationState = "x",
@@ -548,23 +561,26 @@ public void FieldRoundtrip_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -573,10 +589,11 @@ public void SerializationRoundtrip_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -594,10 +611,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -608,16 +626,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -626,10 +646,11 @@ public void Validation_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -641,13 +662,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -656,9 +680,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -670,16 +693,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -688,12 +716,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -705,10 +734,11 @@ public void CopyConstructor_Works()
var model = new EntityUpdateParamsCorporationAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
EntityUpdateParamsCorporationAddress copied = new(model);
@@ -1087,10 +1117,11 @@ public void FieldRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
};
@@ -1098,10 +1129,11 @@ public void FieldRoundtrip_Works()
EntityUpdateParamsNaturalPersonAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedName = "x";
@@ -1117,10 +1149,11 @@ public void SerializationRoundtrip_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
};
@@ -1142,10 +1175,11 @@ public void FieldRoundtripThroughSerialization_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
};
@@ -1160,10 +1194,11 @@ public void FieldRoundtripThroughSerialization_Works()
EntityUpdateParamsNaturalPersonAddress expectedAddress = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedName = "x";
@@ -1179,10 +1214,11 @@ public void Validation_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
};
@@ -1246,10 +1282,11 @@ public void CopyConstructor_Works()
Address = new()
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
},
Name = "x",
};
@@ -1268,23 +1305,26 @@ public void FieldRoundtrip_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, model.City);
+ Assert.Equal(expectedCountry, model.Country);
Assert.Equal(expectedLine1, model.Line1);
+ Assert.Equal(expectedLine2, model.Line2);
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedZip, model.Zip);
- Assert.Equal(expectedLine2, model.Line2);
}
[Fact]
@@ -1293,10 +1333,11 @@ public void SerializationRoundtrip_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -1314,10 +1355,11 @@ public void FieldRoundtripThroughSerialization_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -1328,16 +1370,18 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.NotNull(deserialized);
string expectedCity = "x";
+ string expectedCountry = "x";
string expectedLine1 = "x";
+ string expectedLine2 = "x";
string expectedState = "x";
string expectedZip = "x";
- string expectedLine2 = "x";
Assert.Equal(expectedCity, deserialized.City);
+ Assert.Equal(expectedCountry, deserialized.Country);
Assert.Equal(expectedLine1, deserialized.Line1);
+ Assert.Equal(expectedLine2, deserialized.Line2);
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedZip, deserialized.Zip);
- Assert.Equal(expectedLine2, deserialized.Line2);
}
[Fact]
@@ -1346,10 +1390,11 @@ public void Validation_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
model.Validate();
@@ -1361,13 +1406,16 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -1376,9 +1424,8 @@ public void OptionalNonNullablePropertiesUnsetValidation_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
};
model.Validate();
@@ -1390,16 +1437,21 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
Assert.Null(model.Line2);
Assert.False(model.RawData.ContainsKey("line2"));
+ Assert.Null(model.State);
+ Assert.False(model.RawData.ContainsKey("state"));
+ Assert.Null(model.Zip);
+ Assert.False(model.RawData.ContainsKey("zip"));
}
[Fact]
@@ -1408,12 +1460,13 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
- State = "x",
- Zip = "x",
// Null should be interpreted as omitted for these properties
Line2 = null,
+ State = null,
+ Zip = null,
};
model.Validate();
@@ -1425,10 +1478,11 @@ public void CopyConstructor_Works()
var model = new EntityUpdateParamsNaturalPersonAddress
{
City = "x",
+ Country = "x",
Line1 = "x",
+ Line2 = "x",
State = "x",
Zip = "x",
- Line2 = "x",
};
EntityUpdateParamsNaturalPersonAddress copied = new(model);
diff --git a/src/Increase.Api/Models/Entities/Entity.cs b/src/Increase.Api/Models/Entities/Entity.cs
index b4b3f32..d930f48 100644
--- a/src/Increase.Api/Models/Entities/Entity.cs
+++ b/src/Increase.Api/Models/Entities/Entity.cs
@@ -536,18 +536,31 @@ public EntityCorporation FromRawUnchecked(IReadOnlyDictionary
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -575,28 +588,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -605,6 +618,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
@@ -1569,18 +1583,31 @@ IReadOnlyDictionary rawData
public sealed record class EntityGovernmentAuthorityAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -1608,28 +1635,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -1638,6 +1665,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
@@ -2035,18 +2063,31 @@ IReadOnlyDictionary rawData
public sealed record class EntityJointIndividualAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -2074,28 +2115,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -2104,6 +2145,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
@@ -2431,18 +2473,31 @@ public EntityNaturalPerson FromRawUnchecked(IReadOnlyDictionary
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -2470,28 +2525,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -2500,6 +2555,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
@@ -3408,18 +3464,31 @@ public EntityTrust FromRawUnchecked(IReadOnlyDictionary raw
public sealed record class EntityTrustAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -3447,28 +3516,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -3477,6 +3546,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
@@ -3689,18 +3759,31 @@ public EntityTrustGrantor FromRawUnchecked(IReadOnlyDictionary
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -3728,28 +3811,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -3758,6 +3841,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
@@ -4166,18 +4250,31 @@ IReadOnlyDictionary rawData
public sealed record class EntityTrustTrusteeIndividualAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
- public required string City
+ public required string? City
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("city");
+ return this._rawData.GetNullableClass("city");
}
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address.
///
@@ -4205,28 +4302,28 @@ public required string? Line2
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address.
///
- public required string State
+ public required string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("state");
}
init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The ZIP or postal code of the address.
///
- public required string Zip
+ public required string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("zip");
}
init { this._rawData.Set("zip", value); }
}
@@ -4235,6 +4332,7 @@ public required string Zip
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
_ = this.Line2;
_ = this.State;
diff --git a/src/Increase.Api/Models/Entities/EntityCreateParams.cs b/src/Increase.Api/Models/Entities/EntityCreateParams.cs
index ee18fba..cda36b5 100644
--- a/src/Increase.Api/Models/Entities/EntityCreateParams.cs
+++ b/src/Increase.Api/Models/Entities/EntityCreateParams.cs
@@ -699,7 +699,7 @@ public Corporation FromRawUnchecked(IReadOnlyDictionary raw
public sealed record class Address : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -711,6 +711,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -725,41 +738,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -768,7 +797,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -776,10 +805,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public Address() { }
@@ -2652,7 +2682,7 @@ public JointIndividual FromRawUnchecked(IReadOnlyDictionary
public sealed record class JointIndividualAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -2664,6 +2694,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -2678,41 +2721,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -2721,7 +2780,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -2729,10 +2788,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public JointIndividualAddress() { }
@@ -3516,7 +3576,7 @@ public NaturalPerson FromRawUnchecked(IReadOnlyDictionary r
public sealed record class NaturalPersonAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -3528,6 +3588,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -3542,41 +3615,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -3585,7 +3674,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -3593,10 +3682,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public NaturalPersonAddress() { }
@@ -5332,7 +5422,7 @@ public TrusteeIndividual FromRawUnchecked(IReadOnlyDictionary
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -5344,6 +5434,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -5358,41 +5461,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -5401,7 +5520,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -5409,10 +5528,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public TrusteeIndividualAddress() { }
@@ -6198,7 +6318,7 @@ public Grantor FromRawUnchecked(IReadOnlyDictionary rawData
public sealed record class GrantorAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -6210,6 +6330,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -6224,41 +6357,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -6267,7 +6416,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -6275,10 +6424,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public GrantorAddress() { }
diff --git a/src/Increase.Api/Models/Entities/EntityUpdateParams.cs b/src/Increase.Api/Models/Entities/EntityUpdateParams.cs
index c7a0a18..0b17e26 100644
--- a/src/Increase.Api/Models/Entities/EntityUpdateParams.cs
+++ b/src/Increase.Api/Models/Entities/EntityUpdateParams.cs
@@ -516,7 +516,7 @@ IReadOnlyDictionary rawData
public sealed record class EntityUpdateParamsCorporationAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -528,6 +528,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -542,41 +555,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -585,7 +614,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -593,10 +622,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public EntityUpdateParamsCorporationAddress() { }
@@ -1001,7 +1031,7 @@ IReadOnlyDictionary rawData
public sealed record class EntityUpdateParamsNaturalPersonAddress : JsonModel
{
///
- /// The city of the address.
+ /// The city, district, town, or village of the address.
///
public required string City
{
@@ -1013,6 +1043,19 @@ public required string City
init { this._rawData.Set("city", value); }
}
+ ///
+ /// The two-letter ISO 3166-1 alpha-2 code for the country of the address.
+ ///
+ public required string Country
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("country");
+ }
+ init { this._rawData.Set("country", value); }
+ }
+
///
/// The first line of the address. This is usually the street number and street.
///
@@ -1027,41 +1070,57 @@ public required string Line1
}
///
- /// The two-letter United States Postal Service (USPS) abbreviation for the state
- /// of the address.
+ /// The second line of the address. This might be the floor or room number.
///
- public required string State
+ public string? Line2
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("state");
+ return this._rawData.GetNullableClass("line2");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("line2", value);
}
- init { this._rawData.Set("state", value); }
}
///
- /// The ZIP code of the address.
+ /// The two-letter United States Postal Service (USPS) abbreviation for the US
+ /// state, province, or region of the address. Required in certain countries.
///
- public required string Zip
+ public string? State
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNotNullClass("zip");
+ return this._rawData.GetNullableClass("state");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("state", value);
}
- init { this._rawData.Set("zip", value); }
}
///
- /// The second line of the address. This might be the floor or room number.
+ /// The ZIP or postal code of the address. Required in certain countries.
///
- public string? Line2
+ public string? Zip
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("line2");
+ return this._rawData.GetNullableClass("zip");
}
init
{
@@ -1070,7 +1129,7 @@ public string? Line2
return;
}
- this._rawData.Set("line2", value);
+ this._rawData.Set("zip", value);
}
}
@@ -1078,10 +1137,11 @@ public string? Line2
public override void Validate()
{
_ = this.City;
+ _ = this.Country;
_ = this.Line1;
+ _ = this.Line2;
_ = this.State;
_ = this.Zip;
- _ = this.Line2;
}
public EntityUpdateParamsNaturalPersonAddress() { }
From a7178580659ac154ea217f895ce03c28445609a5 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Thu, 26 Mar 2026 19:29:29 +0000
Subject: [PATCH 10/24] chore(internal): update multipart form array
serialization
---
scripts/mock | 4 ++--
scripts/test | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/mock b/scripts/mock
index 5f1bb80..f99ce05 100755
--- a/scripts/mock
+++ b/scripts/mock
@@ -24,7 +24,7 @@ if [ "$1" == "--daemon" ]; then
# Pre-install the package so the download doesn't eat into the startup timeout
npm exec --package=@stdy/cli@0.19.7 -- steady --version
- npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL" &> .stdy.log &
+ npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=dots --validator-form-object-format=dots "$URL" &> .stdy.log &
# Wait for server to come online via health endpoint (max 30s)
echo -n "Waiting for server"
@@ -48,5 +48,5 @@ if [ "$1" == "--daemon" ]; then
echo
else
- npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots "$URL"
+ npm exec --package=@stdy/cli@0.19.7 -- steady --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=dots --validator-form-object-format=dots "$URL"
fi
diff --git a/scripts/test b/scripts/test
index 70e6471..8f36c26 100755
--- a/scripts/test
+++ b/scripts/test
@@ -47,7 +47,7 @@ elif ! steady_is_running ; then
echo -e "To run the server, pass in the path or url of your OpenAPI"
echo -e "spec to the steady command:"
echo
- echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-form-array-format=comma --validator-query-array-format=comma --validator-form-object-format=dots --validator-query-object-format=dots${NC}"
+ echo -e " \$ ${YELLOW}npm exec --package=@stdy/cli@0.19.7 -- steady path/to/your.openapi.yml --host 127.0.0.1 -p 4010 --validator-query-array-format=comma --validator-form-array-format=comma --validator-query-object-format=dots --validator-form-object-format=dots${NC}"
echo
exit 1
From 0ce3dabb33e81b15631bfe34fe5689ec36e55b26 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Fri, 27 Mar 2026 01:57:08 +0000
Subject: [PATCH 11/24] feat(api): api update
---
.stats.yml | 4 +-
.../Models/Entities/EntityUpdateParamsTest.cs | 285 ++++++++++++++++--
src/Increase.Api/Core/ModelBase.cs | 4 +
src/Increase.Api/Models/Entities/Entity.cs | 2 +-
.../Models/Entities/EntityUpdateParams.cs | 185 +++++++++++-
5 files changed, 450 insertions(+), 30 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 8ba24b6..46d00e0 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-b51c9307c5fd4c662426ca9bbdbe00d0721edcb2eb899d4b9a3539aa01623873.yml
-openapi_spec_hash: e5767b8639a1573ae70b25be22cc77a3
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-57310f0e57b0996b79f938ef778b40e54f5b62cefb78c3e6405cefacfa704c66.yml
+openapi_spec_hash: c6d65e9ebf76cb81a5395b8ab4251a95
config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
diff --git a/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs b/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs
index 3b55f43..3383ca8 100644
--- a/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs
+++ b/src/Increase.Api.Tests/Models/Entities/EntityUpdateParamsTest.cs
@@ -28,8 +28,13 @@ public void FieldRoundtrip_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
},
DetailsConfirmedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
GovernmentAuthority = new()
@@ -96,8 +101,13 @@ public void FieldRoundtrip_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
DateTimeOffset expectedDetailsConfirmedAt = DateTimeOffset.Parse(
"2019-12-27T18:11:19.117Z"
@@ -244,8 +254,13 @@ public void CopyConstructor_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
},
DetailsConfirmedAt = DateTimeOffset.Parse("2019-12-27T18:11:19.117Z"),
GovernmentAuthority = new()
@@ -322,8 +337,13 @@ public void FieldRoundtrip_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
EntityUpdateParamsCorporationAddress expectedAddress = new()
@@ -338,15 +358,20 @@ public void FieldRoundtrip_Works()
string expectedEmail = "dev@stainless.com";
string expectedIncorporationState = "x";
string expectedIndustryCode = "x";
+ EntityUpdateParamsCorporationLegalIdentifier expectedLegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
string expectedName = "x";
- string expectedTaxIdentifier = "x";
Assert.Equal(expectedAddress, model.Address);
Assert.Equal(expectedEmail, model.Email);
Assert.Equal(expectedIncorporationState, model.IncorporationState);
Assert.Equal(expectedIndustryCode, model.IndustryCode);
+ Assert.Equal(expectedLegalIdentifier, model.LegalIdentifier);
Assert.Equal(expectedName, model.Name);
- Assert.Equal(expectedTaxIdentifier, model.TaxIdentifier);
}
[Fact]
@@ -366,8 +391,13 @@ public void SerializationRoundtrip_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -396,8 +426,13 @@ public void FieldRoundtripThroughSerialization_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
@@ -419,15 +454,20 @@ public void FieldRoundtripThroughSerialization_Works()
string expectedEmail = "dev@stainless.com";
string expectedIncorporationState = "x";
string expectedIndustryCode = "x";
+ EntityUpdateParamsCorporationLegalIdentifier expectedLegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
string expectedName = "x";
- string expectedTaxIdentifier = "x";
Assert.Equal(expectedAddress, deserialized.Address);
Assert.Equal(expectedEmail, deserialized.Email);
Assert.Equal(expectedIncorporationState, deserialized.IncorporationState);
Assert.Equal(expectedIndustryCode, deserialized.IndustryCode);
+ Assert.Equal(expectedLegalIdentifier, deserialized.LegalIdentifier);
Assert.Equal(expectedName, deserialized.Name);
- Assert.Equal(expectedTaxIdentifier, deserialized.TaxIdentifier);
}
[Fact]
@@ -447,8 +487,13 @@ public void Validation_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
model.Validate();
@@ -467,10 +512,10 @@ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
Assert.False(model.RawData.ContainsKey("incorporation_state"));
Assert.Null(model.IndustryCode);
Assert.False(model.RawData.ContainsKey("industry_code"));
+ Assert.Null(model.LegalIdentifier);
+ Assert.False(model.RawData.ContainsKey("legal_identifier"));
Assert.Null(model.Name);
Assert.False(model.RawData.ContainsKey("name"));
- Assert.Null(model.TaxIdentifier);
- Assert.False(model.RawData.ContainsKey("tax_identifier"));
}
[Fact]
@@ -491,8 +536,8 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Email = null,
IncorporationState = null,
IndustryCode = null,
+ LegalIdentifier = null,
Name = null,
- TaxIdentifier = null,
};
Assert.Null(model.Address);
@@ -503,10 +548,10 @@ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
Assert.False(model.RawData.ContainsKey("incorporation_state"));
Assert.Null(model.IndustryCode);
Assert.False(model.RawData.ContainsKey("industry_code"));
+ Assert.Null(model.LegalIdentifier);
+ Assert.False(model.RawData.ContainsKey("legal_identifier"));
Assert.Null(model.Name);
Assert.False(model.RawData.ContainsKey("name"));
- Assert.Null(model.TaxIdentifier);
- Assert.False(model.RawData.ContainsKey("tax_identifier"));
}
[Fact]
@@ -519,8 +564,8 @@ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
Email = null,
IncorporationState = null,
IndustryCode = null,
+ LegalIdentifier = null,
Name = null,
- TaxIdentifier = null,
};
model.Validate();
@@ -543,8 +588,13 @@ public void CopyConstructor_Works()
Email = "dev@stainless.com",
IncorporationState = "x",
IndustryCode = "x",
+ LegalIdentifier = new()
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ },
Name = "x",
- TaxIdentifier = "x",
};
EntityUpdateParamsCorporation copied = new(model);
@@ -747,6 +797,205 @@ public void CopyConstructor_Works()
}
}
+public class EntityUpdateParamsCorporationLegalIdentifierTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
+
+ string expectedValue = "x";
+ ApiEnum expectedCategory =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber;
+
+ Assert.Equal(expectedValue, model.Value);
+ Assert.Equal(expectedCategory, model.Category);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedValue = "x";
+ ApiEnum expectedCategory =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber;
+
+ Assert.Equal(expectedValue, deserialized.Value);
+ Assert.Equal(expectedCategory, deserialized.Category);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesUnsetAreNotSet_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier { Value = "x" };
+
+ Assert.Null(model.Category);
+ Assert.False(model.RawData.ContainsKey("category"));
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesUnsetValidation_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier { Value = "x" };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesSetToNullAreNotSet_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+
+ // Null should be interpreted as omitted for these properties
+ Category = null,
+ };
+
+ Assert.Null(model.Category);
+ Assert.False(model.RawData.ContainsKey("category"));
+ }
+
+ [Fact]
+ public void OptionalNonNullablePropertiesSetToNullValidation_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+
+ // Null should be interpreted as omitted for these properties
+ Category = null,
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new EntityUpdateParamsCorporationLegalIdentifier
+ {
+ Value = "x",
+ Category =
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ };
+
+ EntityUpdateParamsCorporationLegalIdentifier copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class EntityUpdateParamsCorporationLegalIdentifierCategoryTest : TestBase
+{
+ [Theory]
+ [InlineData(
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber
+ )]
+ [InlineData(EntityUpdateParamsCorporationLegalIdentifierCategory.Other)]
+ public void Validation_Works(EntityUpdateParamsCorporationLegalIdentifierCategory rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber
+ )]
+ [InlineData(EntityUpdateParamsCorporationLegalIdentifierCategory.Other)]
+ public void SerializationRoundtrip_Works(
+ EntityUpdateParamsCorporationLegalIdentifierCategory rawValue
+ )
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class EntityUpdateParamsGovernmentAuthorityTest : TestBase
{
[Fact]
diff --git a/src/Increase.Api/Core/ModelBase.cs b/src/Increase.Api/Core/ModelBase.cs
index 078dd1e..064f87d 100644
--- a/src/Increase.Api/Core/ModelBase.cs
+++ b/src/Increase.Api/Core/ModelBase.cs
@@ -1277,6 +1277,10 @@ protected ModelBase(ModelBase modelBase)
new ApiEnumConverter(),
new ApiEnumConverter(),
new ApiEnumConverter(),
+ new ApiEnumConverter<
+ string,
+ Entities::EntityUpdateParamsCorporationLegalIdentifierCategory
+ >(),
new ApiEnumConverter(),
new ApiEnumConverter<
string,
diff --git a/src/Increase.Api/Models/Entities/Entity.cs b/src/Increase.Api/Models/Entities/Entity.cs
index d930f48..b0919ce 100644
--- a/src/Increase.Api/Models/Entities/Entity.cs
+++ b/src/Increase.Api/Models/Entities/Entity.cs
@@ -5042,7 +5042,7 @@ public enum IssueCategory
{
///
/// The entity's tax identifier could not be validated. Update the tax ID with
- /// the [update an entity API](/documentation/api/entities#update-an-entity.corporation.tax_identifier).
+ /// the [update an entity API](/documentation/api/entities#update-an-entity.corporation.legal_identifier).
///
EntityTaxIdentifier,
diff --git a/src/Increase.Api/Models/Entities/EntityUpdateParams.cs b/src/Increase.Api/Models/Entities/EntityUpdateParams.cs
index 0b17e26..4877503 100644
--- a/src/Increase.Api/Models/Entities/EntityUpdateParams.cs
+++ b/src/Increase.Api/Models/Entities/EntityUpdateParams.cs
@@ -411,14 +411,17 @@ public string? IndustryCode
}
///
- /// The legal name of the corporation.
+ /// The legal identifier of the corporation. This is usually the Employer Identification
+ /// Number (EIN).
///
- public string? Name
+ public EntityUpdateParamsCorporationLegalIdentifier? LegalIdentifier
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("name");
+ return this._rawData.GetNullableClass(
+ "legal_identifier"
+ );
}
init
{
@@ -427,19 +430,19 @@ public string? Name
return;
}
- this._rawData.Set("name", value);
+ this._rawData.Set("legal_identifier", value);
}
}
///
- /// The Employer Identification Number (EIN) for the corporation.
+ /// The legal name of the corporation.
///
- public string? TaxIdentifier
+ public string? Name
{
get
{
this._rawData.Freeze();
- return this._rawData.GetNullableClass("tax_identifier");
+ return this._rawData.GetNullableClass("name");
}
init
{
@@ -448,7 +451,7 @@ public string? TaxIdentifier
return;
}
- this._rawData.Set("tax_identifier", value);
+ this._rawData.Set("name", value);
}
}
@@ -459,8 +462,8 @@ public override void Validate()
_ = this.Email;
_ = this.IncorporationState;
_ = this.IndustryCode;
+ this.LegalIdentifier?.Validate();
_ = this.Name;
- _ = this.TaxIdentifier;
}
public EntityUpdateParamsCorporation() { }
@@ -670,6 +673,170 @@ IReadOnlyDictionary rawData
) => EntityUpdateParamsCorporationAddress.FromRawUnchecked(rawData);
}
+///
+/// The legal identifier of the corporation. This is usually the Employer Identification
+/// Number (EIN).
+///
+[JsonConverter(
+ typeof(JsonModelConverter<
+ EntityUpdateParamsCorporationLegalIdentifier,
+ EntityUpdateParamsCorporationLegalIdentifierFromRaw
+ >)
+)]
+public sealed record class EntityUpdateParamsCorporationLegalIdentifier : JsonModel
+{
+ ///
+ /// The identifier of the legal identifier.
+ ///
+ public required string Value
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNotNullClass("value");
+ }
+ init { this._rawData.Set("value", value); }
+ }
+
+ ///
+ /// The category of the legal identifier.
+ ///
+ public ApiEnum? Category
+ {
+ get
+ {
+ this._rawData.Freeze();
+ return this._rawData.GetNullableClass<
+ ApiEnum
+ >("category");
+ }
+ init
+ {
+ if (value == null)
+ {
+ return;
+ }
+
+ this._rawData.Set("category", value);
+ }
+ }
+
+ ///
+ public override void Validate()
+ {
+ _ = this.Value;
+ this.Category?.Validate();
+ }
+
+ public EntityUpdateParamsCorporationLegalIdentifier() { }
+
+#pragma warning disable CS8618
+ [SetsRequiredMembers]
+ public EntityUpdateParamsCorporationLegalIdentifier(
+ EntityUpdateParamsCorporationLegalIdentifier entityUpdateParamsCorporationLegalIdentifier
+ )
+ : base(entityUpdateParamsCorporationLegalIdentifier) { }
+#pragma warning restore CS8618
+
+ public EntityUpdateParamsCorporationLegalIdentifier(
+ IReadOnlyDictionary rawData
+ )
+ {
+ this._rawData = new(rawData);
+ }
+
+#pragma warning disable CS8618
+ [SetsRequiredMembers]
+ EntityUpdateParamsCorporationLegalIdentifier(FrozenDictionary rawData)
+ {
+ this._rawData = new(rawData);
+ }
+#pragma warning restore CS8618
+
+ ///
+ public static EntityUpdateParamsCorporationLegalIdentifier FromRawUnchecked(
+ IReadOnlyDictionary rawData
+ )
+ {
+ return new(FrozenDictionary.ToFrozenDictionary(rawData));
+ }
+
+ [SetsRequiredMembers]
+ public EntityUpdateParamsCorporationLegalIdentifier(string value)
+ : this()
+ {
+ this.Value = value;
+ }
+}
+
+class EntityUpdateParamsCorporationLegalIdentifierFromRaw
+ : IFromRawJson
+{
+ ///
+ public EntityUpdateParamsCorporationLegalIdentifier FromRawUnchecked(
+ IReadOnlyDictionary rawData
+ ) => EntityUpdateParamsCorporationLegalIdentifier.FromRawUnchecked(rawData);
+}
+
+///
+/// The category of the legal identifier.
+///
+[JsonConverter(typeof(EntityUpdateParamsCorporationLegalIdentifierCategoryConverter))]
+public enum EntityUpdateParamsCorporationLegalIdentifierCategory
+{
+ ///
+ /// The Employer Identification Number (EIN) for the company. The EIN is a 9-digit
+ /// number assigned by the IRS.
+ ///
+ UsEmployerIdentificationNumber,
+
+ ///
+ /// A legal identifier issued by a foreign government, like a tax identification
+ /// number or registration number.
+ ///
+ Other,
+}
+
+sealed class EntityUpdateParamsCorporationLegalIdentifierCategoryConverter
+ : JsonConverter
+{
+ public override EntityUpdateParamsCorporationLegalIdentifierCategory Read(
+ ref Utf8JsonReader reader,
+ System::Type typeToConvert,
+ JsonSerializerOptions options
+ )
+ {
+ return JsonSerializer.Deserialize(ref reader, options) switch
+ {
+ "us_employer_identification_number" =>
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber,
+ "other" => EntityUpdateParamsCorporationLegalIdentifierCategory.Other,
+ _ => (EntityUpdateParamsCorporationLegalIdentifierCategory)(-1),
+ };
+ }
+
+ public override void Write(
+ Utf8JsonWriter writer,
+ EntityUpdateParamsCorporationLegalIdentifierCategory value,
+ JsonSerializerOptions options
+ )
+ {
+ JsonSerializer.Serialize(
+ writer,
+ value switch
+ {
+ EntityUpdateParamsCorporationLegalIdentifierCategory.UsEmployerIdentificationNumber =>
+ "us_employer_identification_number",
+ EntityUpdateParamsCorporationLegalIdentifierCategory.Other => "other",
+ _ => throw new IncreaseInvalidDataException(
+ string.Format("Invalid value '{0}' in {1}", value, nameof(value))
+ ),
+ },
+ options
+ );
+ }
+}
+
///
/// Details of the government authority entity to update. If you specify this parameter
/// and the entity is not a government authority, the request will fail.
From 332ece25b76d57ddee0a779536e18d9d1f75c217 Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Fri, 27 Mar 2026 16:51:57 +0000
Subject: [PATCH 12/24] codegen metadata
---
.stats.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.stats.yml b/.stats.yml
index 46d00e0..1c40aac 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-57310f0e57b0996b79f938ef778b40e54f5b62cefb78c3e6405cefacfa704c66.yml
openapi_spec_hash: c6d65e9ebf76cb81a5395b8ab4251a95
-config_hash: 0997ade8b52ec04e82d5b0c3b61bb51e
+config_hash: 4945e03affdf289484733306e4797f81
From 03709bc20250cde62ae7e44ac9b0eafb27254e3f Mon Sep 17 00:00:00 2001
From: "stainless-app[bot]"
<142633134+stainless-app[bot]@users.noreply.github.com>
Date: Mon, 30 Mar 2026 20:38:32 +0000
Subject: [PATCH 13/24] feat(api): api update
---
.stats.yml | 4 +-
.../CardPaymentListPageResponseTest.cs | 3810 +-
.../Models/CardPayments/CardPaymentTest.cs | 9355 ++++-
...DeclinedTransactionListPageResponseTest.cs | 89 +
.../DeclinedTransactionTest.cs | 549 +
.../PendingTransactionListPageResponseTest.cs | 89 +
.../PendingTransactionTest.cs | 548 +
.../CardAuthorizationCreateResponseTest.cs | 168 +
.../TransactionListPageResponseTest.cs | 266 +
.../Models/Transactions/TransactionTest.cs | 1743 +-
src/Increase.Api/Core/ModelBase.cs | 32 +-
.../Models/CardPayments/CardPayment.cs | 31674 +++++++++-------
.../DeclinedTransaction.cs | 500 +
.../PendingTransactions/PendingTransaction.cs | 500 +
.../Models/Transactions/Transaction.cs | 2426 +-
15 files changed, 37233 insertions(+), 14520 deletions(-)
diff --git a/.stats.yml b/.stats.yml
index 1c40aac..d76d554 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,4 +1,4 @@
configured_endpoints: 236
-openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-57310f0e57b0996b79f938ef778b40e54f5b62cefb78c3e6405cefacfa704c66.yml
-openapi_spec_hash: c6d65e9ebf76cb81a5395b8ab4251a95
+openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-1537e933795625528b93b601e286a513458f9aad05160ee018383e6b29986956.yml
+openapi_spec_hash: f34d800917618bf012b466c1f88e8eca
config_hash: 4945e03affdf289484733306e4797f81
diff --git a/src/Increase.Api.Tests/Models/CardPayments/CardPaymentListPageResponseTest.cs b/src/Increase.Api.Tests/Models/CardPayments/CardPaymentListPageResponseTest.cs
index 23d53d4..90d6f3f 100644
--- a/src/Increase.Api.Tests/Models/CardPayments/CardPaymentListPageResponseTest.cs
+++ b/src/Increase.Api.Tests/Models/CardPayments/CardPaymentListPageResponseTest.cs
@@ -179,6 +179,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -264,6 +276,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -350,6 +376,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -432,6 +471,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -471,6 +523,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -507,6 +573,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -644,6 +723,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -672,6 +764,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -818,6 +923,20 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -875,6 +994,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -1056,6 +1189,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -1141,6 +1286,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -1227,6 +1386,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -1309,6 +1481,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -1348,6 +1533,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -1384,6 +1583,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -1521,6 +1733,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -1549,6 +1774,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -1695,6 +1933,20 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -1752,6 +2004,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -1933,6 +2199,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -2018,6 +2296,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -2104,6 +2396,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -2186,6 +2491,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -2225,6 +2543,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -2261,6 +2593,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -2398,6 +2743,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -2426,6 +2784,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -2572,6 +2943,20 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -2629,6 +3014,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -2810,6 +3209,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -2895,6 +3306,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -2981,6 +3406,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -3063,6 +3501,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -3102,6 +3553,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -3138,6 +3603,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -3275,6 +3753,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -3303,6 +3794,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -3449,6 +3953,20 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -3506,6 +4024,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -3534,18 +4066,6 @@ public void FieldRoundtrip_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -3725,6 +4245,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -3810,6 +4342,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -3896,9 +4442,22 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
- TerminalID = "RCN5VNXS",
- Verification = new()
- {
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
+ TerminalID = "RCN5VNXS",
+ Verification = new()
+ {
CardVerificationCode = new(
CardPayments::CardDeclineVerificationCardVerificationCodeResult.Match
),
@@ -3977,6 +4536,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -4016,6 +4588,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -4052,6 +4638,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -4186,6 +4785,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -4214,6 +4826,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -4359,6 +4984,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -4415,6 +5053,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -4593,6 +5244,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -4678,6 +5341,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -4764,6 +5441,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -4845,6 +5535,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -4884,6 +5587,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -4920,6 +5637,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -5054,6 +5784,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -5082,6 +5825,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -5227,6 +5983,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -5283,6 +6052,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -5461,6 +6243,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -5546,6 +6340,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -5632,6 +6440,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -5713,6 +6534,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -5752,6 +6586,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -5788,6 +6636,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -5922,6 +6783,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -5950,6 +6824,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -6095,6 +6982,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -6151,6 +7051,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -6329,6 +7242,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -6414,6 +7339,20 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -6500,6 +7439,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -6581,6 +7533,19 @@ public void FieldRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -6620,6 +7585,20 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -6656,6 +7635,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -6790,6 +7782,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -6818,6 +7823,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -6963,6 +7981,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -7019,6 +8050,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -7047,18 +8091,6 @@ public void FieldRoundtrip_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -7253,6 +8285,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -7338,6 +8382,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -7424,6 +8482,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -7506,6 +8577,19 @@ public void SerializationRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -7545,6 +8629,20 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -7581,6 +8679,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -7718,6 +8829,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -7746,6 +8870,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -7892,6 +9029,20 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -7949,6 +9100,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -8130,6 +9295,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -8215,6 +9392,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -8301,6 +9492,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -8383,6 +9587,19 @@ public void SerializationRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -8422,6 +9639,20 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -8458,6 +9689,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -8595,6 +9839,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -8623,6 +9880,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -8769,6 +10039,20 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -8826,6 +10110,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -9007,6 +10305,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -9092,6 +10402,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -9178,6 +10502,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -9260,6 +10597,19 @@ public void SerializationRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -9299,6 +10649,20 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -9335,6 +10699,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -9472,6 +10849,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -9500,6 +10890,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -9646,6 +11049,20 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -9703,6 +11120,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -9884,6 +11315,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -9969,6 +11412,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -10055,6 +11512,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -10137,6 +11607,19 @@ public void SerializationRoundtrip_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -10176,6 +11659,20 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -10212,6 +11709,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -10349,6 +11859,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -10377,6 +11900,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -10523,6 +12059,20 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -10580,6 +12130,20 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -10608,18 +12172,6 @@ public void SerializationRoundtrip_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -10816,6 +12368,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -10901,6 +12465,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -10987,6 +12565,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -11069,6 +12660,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -11108,6 +12712,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -11144,6 +12762,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -11281,6 +12912,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -11309,6 +12953,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -11455,6 +13112,20 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -11512,6 +13183,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -11693,6 +13378,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -11778,6 +13475,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -11864,6 +13575,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -11946,6 +13670,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -11985,6 +13722,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -12021,6 +13772,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -12158,6 +13922,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -12186,6 +13963,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -12332,10 +14122,24 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
- Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
- TransactionID = "transaction_uyrp7fld2ium70oa7oi",
- Type = CardPayments::CardSettlementType.CardSettlement,
- },
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
+ Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
+ TransactionID = "transaction_uyrp7fld2ium70oa7oi",
+ Type = CardPayments::CardSettlementType.CardSettlement,
+ },
CardValidation = new()
{
ID = "card_validation_yi4e59jiaz6n9hx8tczv",
@@ -12389,6 +14193,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -12570,6 +14388,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -12655,6 +14485,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -12741,6 +14585,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -12823,6 +14680,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -12862,6 +14732,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -12898,6 +14782,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -13035,6 +14932,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -13063,6 +14973,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -13209,6 +15132,20 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -13266,6 +15203,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -13447,6 +15398,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -13532,6 +15495,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -13618,6 +15595,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -13700,6 +15690,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -13739,6 +15742,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -13775,6 +15792,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -13912,6 +15942,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -13940,6 +15983,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -14086,6 +16142,20 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -14143,6 +16213,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -14171,18 +16255,6 @@ public void FieldRoundtripThroughSerialization_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -14369,6 +16441,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -14454,6 +16538,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -14540,6 +16638,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -14621,6 +16732,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -14660,6 +16784,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -14696,6 +16834,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -14830,6 +16981,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -14858,6 +17022,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -15003,6 +17180,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -15059,6 +17249,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -15237,6 +17440,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -15322,6 +17537,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -15408,6 +17637,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -15489,6 +17731,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -15528,6 +17783,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -15564,6 +17833,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -15698,6 +17980,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -15726,6 +18021,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -15871,6 +18179,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -15927,6 +18248,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -16105,6 +18439,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -16190,6 +18536,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -16276,6 +18636,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -16357,6 +18730,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -16396,6 +18782,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -16432,6 +18832,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -16566,6 +18979,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -16594,6 +19020,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -16739,6 +19178,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -16795,6 +19247,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -16973,6 +19438,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -17058,6 +19535,20 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -17144,6 +19635,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -17225,6 +19729,19 @@ public void FieldRoundtripThroughSerialization_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -17264,6 +19781,20 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -17300,6 +19831,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -17434,6 +19978,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -17462,6 +20019,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -17607,6 +20177,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -17663,6 +20246,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -17691,18 +20287,6 @@ public void FieldRoundtripThroughSerialization_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -17897,6 +20481,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -17982,6 +20578,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -18068,6 +20678,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -18150,6 +20773,19 @@ public void Validation_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -18189,6 +20825,20 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -18225,6 +20875,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -18362,6 +21025,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -18390,6 +21066,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -18536,6 +21225,20 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -18593,6 +21296,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -18774,6 +21491,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -18859,6 +21588,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -18945,6 +21688,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -19027,6 +21783,19 @@ public void Validation_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -19066,6 +21835,20 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -19102,6 +21885,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -19239,6 +22035,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -19267,6 +22076,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -19413,6 +22235,20 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -19470,6 +22306,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -19651,6 +22501,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -19736,6 +22598,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -19822,6 +22698,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -19904,6 +22793,19 @@ public void Validation_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -19943,6 +22845,20 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -19979,6 +22895,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -20116,6 +23045,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -20144,6 +23086,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -20290,6 +23245,20 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -20347,6 +23316,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -20528,6 +23511,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -20613,6 +23608,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -20699,6 +23708,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -20781,6 +23803,19 @@ public void Validation_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -20820,6 +23855,20 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -20856,8 +23905,21 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
- Type = CardPayments::CardIncrementType.CardIncrement,
- UpdatedAuthorizationAmount = 120,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
+ Type = CardPayments::CardIncrementType.CardIncrement,
+ UpdatedAuthorizationAmount = 120,
},
CardRefund = new()
{
@@ -20993,6 +24055,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -21021,6 +24096,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -21167,6 +24255,20 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -21224,6 +24326,20 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -21252,18 +24368,6 @@ public void Validation_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -21454,6 +24558,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -21539,6 +24655,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -21625,6 +24755,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -21707,6 +24850,19 @@ public void CopyConstructor_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -21746,6 +24902,20 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -21782,6 +24952,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -21919,6 +25102,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -21947,6 +25143,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -22093,6 +25302,20 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -22150,6 +25373,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -22331,6 +25568,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -22416,6 +25665,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -22502,6 +25765,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -22584,6 +25860,19 @@ public void CopyConstructor_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -22623,6 +25912,20 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -22659,6 +25962,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -22796,6 +26112,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -22824,6 +26153,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -22970,6 +26312,20 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -23027,6 +26383,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -23208,6 +26578,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -23293,6 +26675,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -23379,6 +26775,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -23461,6 +26870,19 @@ public void CopyConstructor_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -23500,6 +26922,20 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -23536,6 +26972,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -23673,6 +27122,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -23701,6 +27163,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -23847,6 +27322,20 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -23904,6 +27393,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -24085,6 +27588,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -24170,6 +27685,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -24256,6 +27785,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -24338,6 +27880,19 @@ public void CopyConstructor_Works()
ProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -24377,6 +27932,20 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -24413,6 +27982,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -24550,6 +28132,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -24578,6 +28173,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -24724,6 +28332,20 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -24781,6 +28403,20 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency =
+ CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -24809,18 +28445,6 @@ public void CopyConstructor_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
diff --git a/src/Increase.Api.Tests/Models/CardPayments/CardPaymentTest.cs b/src/Increase.Api.Tests/Models/CardPayments/CardPaymentTest.cs
index a83f78c..5db84b2 100644
--- a/src/Increase.Api.Tests/Models/CardPayments/CardPaymentTest.cs
+++ b/src/Increase.Api.Tests/Models/CardPayments/CardPaymentTest.cs
@@ -170,6 +170,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -254,6 +266,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -339,6 +364,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -419,6 +457,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -458,6 +509,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -494,6 +558,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -624,6 +701,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -652,6 +742,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -794,6 +897,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -850,6 +966,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -1025,6 +1154,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -1109,6 +1250,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -1194,6 +1348,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -1274,6 +1441,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -1313,6 +1493,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -1349,6 +1542,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -1479,6 +1685,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -1507,6 +1726,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -1649,6 +1881,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -1705,6 +1950,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -1880,6 +2138,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -1964,6 +2234,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -2049,6 +2332,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -2129,6 +2425,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -2168,6 +2477,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -2204,6 +2526,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -2334,6 +2669,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -2362,6 +2710,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -2504,6 +2865,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -2560,6 +2934,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -2735,6 +3122,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -2819,6 +3218,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -2904,6 +3316,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -2984,6 +3409,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -3023,6 +3461,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -3059,6 +3510,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -3189,6 +3653,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -3217,6 +3694,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -3359,6 +3849,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -3415,6 +3918,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -3443,18 +3959,6 @@ public void FieldRoundtrip_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -3620,6 +4124,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -3704,6 +4220,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -3789,6 +4318,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -3869,6 +4411,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -3908,6 +4463,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -3944,6 +4512,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -4072,6 +4653,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -4100,6 +4694,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -4240,6 +4847,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -4296,6 +4916,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -4468,6 +5101,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -4552,6 +5197,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -4637,6 +5295,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -4717,6 +5388,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -4756,6 +5440,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -4792,6 +5489,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -4920,6 +5630,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -4948,6 +5671,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -5088,6 +5824,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -5144,6 +5893,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -5316,6 +6078,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -5400,6 +6174,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -5485,6 +6272,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -5565,6 +6365,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -5604,6 +6417,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -5640,6 +6466,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -5768,6 +6607,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -5796,6 +6648,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -5936,6 +6801,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -5992,6 +6870,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -6164,6 +7055,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -6248,6 +7151,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -6333,6 +7249,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -6413,6 +7342,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -6452,6 +7394,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -6488,6 +7443,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -6616,6 +7584,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -6644,6 +7625,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -6784,6 +7778,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -6840,6 +7847,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -6867,18 +7887,6 @@ public void FieldRoundtrip_Works()
Other = new(),
},
];
- List expectedSchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ];
CardPayments::State expectedState = new()
{
AuthorizedAmount = 100,
@@ -6903,11 +7911,6 @@ public void FieldRoundtrip_Works()
Assert.Equal(expectedElements[i], model.Elements[i]);
}
Assert.Null(model.PhysicalCardID);
- Assert.Equal(expectedSchemeFees.Count, model.SchemeFees.Count);
- for (int i = 0; i < expectedSchemeFees.Count; i++)
- {
- Assert.Equal(expectedSchemeFees[i], model.SchemeFees[i]);
- }
Assert.Equal(expectedState, model.State);
Assert.Equal(expectedType, model.Type);
}
@@ -7073,6 +8076,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -7157,6 +8172,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -7242,6 +8270,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -7322,6 +8363,19 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -7361,6 +8415,19 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -7397,6 +8464,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -7527,6 +8607,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -7555,6 +8648,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -7697,6 +8803,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -7753,6 +8872,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -7928,6 +9060,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -8012,6 +9156,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -8097,6 +9254,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -8177,6 +9347,19 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -8216,6 +9399,19 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -8252,6 +9448,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -8382,6 +9591,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -8410,6 +9632,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -8552,6 +9787,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -8608,6 +9856,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -8783,6 +10044,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -8867,6 +10140,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -8952,6 +10238,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -9032,6 +10331,19 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -9071,6 +10383,19 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -9107,6 +10432,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -9237,6 +10575,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -9265,6 +10616,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -9407,6 +10771,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -9463,6 +10840,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -9638,6 +11028,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -9722,6 +11124,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -9807,6 +11222,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -9887,6 +11315,19 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -9926,6 +11367,19 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -9962,6 +11416,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -10092,6 +11559,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -10120,6 +11600,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -10262,6 +11755,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -10318,6 +11824,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -10346,18 +11865,6 @@ public void SerializationRoundtrip_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -10541,6 +12048,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -10625,6 +12144,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -10710,6 +12242,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -10790,6 +12335,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -10829,6 +12387,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -10865,6 +12436,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -10995,6 +12579,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -11023,6 +12620,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -11165,6 +12775,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -11221,6 +12844,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -11396,6 +13032,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -11480,6 +13128,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -11565,6 +13226,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -11645,6 +13319,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -11684,6 +13371,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -11720,6 +13420,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -11850,6 +13563,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -11878,6 +13604,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -12020,6 +13759,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -12076,6 +13828,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -12251,6 +14016,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -12335,6 +14112,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -12420,6 +14210,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -12500,6 +14303,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -12539,6 +14355,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -12575,6 +14404,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -12705,6 +14547,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -12733,6 +14588,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -12875,6 +14743,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -12931,6 +14812,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -13106,6 +15000,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -13190,6 +15096,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -13275,6 +15194,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -13355,6 +15287,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -13394,6 +15339,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -13430,6 +15388,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -13560,6 +15531,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -13588,6 +15572,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -13730,6 +15727,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -13786,6 +15796,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -13814,18 +15837,6 @@ public void FieldRoundtripThroughSerialization_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -13998,6 +16009,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -14082,6 +16105,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -14167,6 +16203,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -14247,6 +16296,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -14286,6 +16348,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -14322,6 +16397,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -14450,6 +16538,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -14478,6 +16579,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -14618,6 +16732,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -14674,6 +16801,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -14846,6 +16986,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -14930,6 +17082,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -15015,6 +17180,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -15095,6 +17273,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -15134,6 +17325,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -15170,6 +17374,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -15298,6 +17515,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -15326,6 +17556,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -15466,6 +17709,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -15522,6 +17778,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -15694,6 +17963,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -15778,6 +18059,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -15863,6 +18157,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -15943,6 +18250,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -15982,6 +18302,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -16018,6 +18351,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -16146,6 +18492,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -16174,6 +18533,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -16314,6 +18686,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -16370,6 +18755,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -16542,6 +18940,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -16626,6 +19036,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -16711,6 +19134,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -16791,6 +19227,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -16830,6 +19279,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -16866,6 +19328,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -16994,6 +19469,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -17022,6 +19510,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -17162,6 +19663,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -17218,6 +19732,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -17245,18 +19772,6 @@ public void FieldRoundtripThroughSerialization_Works()
Other = new(),
},
];
- List expectedSchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ];
CardPayments::State expectedState = new()
{
AuthorizedAmount = 100,
@@ -17281,11 +19796,6 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Equal(expectedElements[i], deserialized.Elements[i]);
}
Assert.Null(deserialized.PhysicalCardID);
- Assert.Equal(expectedSchemeFees.Count, deserialized.SchemeFees.Count);
- for (int i = 0; i < expectedSchemeFees.Count; i++)
- {
- Assert.Equal(expectedSchemeFees[i], deserialized.SchemeFees[i]);
- }
Assert.Equal(expectedState, deserialized.State);
Assert.Equal(expectedType, deserialized.Type);
}
@@ -17451,6 +19961,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -17535,6 +20057,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -17620,6 +20155,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -17700,6 +20248,19 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -17739,6 +20300,19 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -17775,6 +20349,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -17905,6 +20492,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -17933,6 +20533,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -18075,6 +20688,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -18131,6 +20757,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -18306,6 +20945,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -18390,6 +21041,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -18475,6 +21139,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -18555,6 +21232,19 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -18594,6 +21284,19 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -18630,6 +21333,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -18760,6 +21476,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -18788,6 +21517,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -18930,6 +21672,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -18986,6 +21741,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -19161,6 +21929,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -19245,6 +22025,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -19330,6 +22123,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -19410,6 +22216,19 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -19449,6 +22268,19 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -19485,6 +22317,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -19615,6 +22460,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -19643,6 +22501,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -19785,6 +22656,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -19841,6 +22725,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -20016,6 +22913,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -20100,6 +23009,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -20185,6 +23107,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -20265,6 +23200,19 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -20304,6 +23252,19 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -20340,6 +23301,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -20470,6 +23444,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -20498,6 +23485,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -20640,6 +23640,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -20696,6 +23709,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -20724,18 +23750,6 @@ public void Validation_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -20913,6 +23927,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -20997,6 +24023,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -21082,6 +24121,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -21162,6 +24214,19 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -21201,6 +24266,19 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -21237,6 +24315,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -21367,6 +24458,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -21395,6 +24499,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -21537,6 +24654,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -21593,6 +24723,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -21768,6 +24911,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -21852,6 +25007,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -21937,6 +25105,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -22017,6 +25198,19 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -22056,6 +25250,19 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -22092,6 +25299,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -22222,6 +25442,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -22250,6 +25483,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -22392,6 +25638,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -22448,6 +25707,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -22623,6 +25895,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -22707,6 +25991,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -22792,6 +26089,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -22872,6 +26182,19 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -22911,6 +26234,19 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -22947,6 +26283,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -23077,6 +26426,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -23105,6 +26467,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -23247,6 +26622,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -23303,6 +26691,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -23478,6 +26879,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -23562,6 +26975,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -23647,6 +27073,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -23727,6 +27166,19 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -23766,6 +27218,19 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -23802,6 +27267,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -23932,6 +27410,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -23960,6 +27451,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -24102,6 +27606,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -24158,6 +27675,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -24186,18 +27716,6 @@ public void CopyConstructor_Works()
},
],
PhysicalCardID = null,
- SchemeFees =
- [
- new()
- {
- Amount = "0.137465",
- CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- Currency = CardPayments::SchemeFeeCurrency.Usd,
- FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
- FixedComponent = null,
- VariableRate = "0.0002",
- },
- ],
State = new()
{
AuthorizedAmount = 100,
@@ -24366,6 +27884,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -24449,6 +27979,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -24534,6 +28077,19 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -24614,6 +28170,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -24653,6 +28222,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -24689,6 +28271,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -24814,6 +28409,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -24842,6 +28450,19 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -24982,6 +28603,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -25038,6 +28672,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -25206,6 +28853,18 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -25288,6 +28947,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -25373,6 +29045,18 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -25453,6 +29137,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -25492,6 +29189,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -25528,6 +29238,19 @@ public void FieldRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
};
@@ -25649,6 +29372,18 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
};
@@ -25677,6 +29412,18 @@ public void FieldRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -25817,6 +29564,19 @@ public void FieldRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -25873,6 +29633,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -26063,6 +29836,18 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -26146,6 +29931,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -26231,6 +30029,19 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -26311,6 +30122,19 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -26350,6 +30174,19 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -26386,6 +30223,19 @@ public void SerializationRoundtrip_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -26511,6 +30361,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -26539,6 +30402,19 @@ public void SerializationRoundtrip_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -26679,6 +30555,19 @@ public void SerializationRoundtrip_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -26735,6 +30624,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -26918,6 +30820,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -27001,6 +30915,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -27086,6 +31013,19 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -27166,6 +31106,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -27205,6 +31158,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -27241,6 +31207,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -27366,6 +31345,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -27394,6 +31386,19 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -27534,6 +31539,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -27590,6 +31608,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -27765,6 +31796,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -27847,6 +31890,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -27932,6 +31988,18 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -28012,6 +32080,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -28051,6 +32132,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -28087,6 +32181,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
};
@@ -28208,6 +32315,18 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
};
@@ -28236,6 +32355,18 @@ public void FieldRoundtripThroughSerialization_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -28376,6 +32507,19 @@ public void FieldRoundtripThroughSerialization_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -28432,6 +32576,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -28622,6 +32779,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -28705,6 +32874,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -28790,6 +32972,19 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -28870,6 +33065,19 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -28909,6 +33117,19 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -28945,6 +33166,19 @@ public void Validation_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -29070,6 +33304,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -29098,6 +33345,19 @@ public void Validation_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -29238,6 +33498,19 @@ public void Validation_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -29294,6 +33567,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -29597,6 +33883,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -29680,6 +33978,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -29765,6 +34076,19 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -29845,6 +34169,19 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -29884,6 +34221,19 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
},
@@ -29920,6 +34270,19 @@ public void CopyConstructor_Works()
PresentmentAmount = 20,
PresentmentCurrency = "USD",
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardIncrementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardIncrementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardIncrementType.CardIncrement,
UpdatedAuthorizationAmount = 120,
},
@@ -30045,6 +34408,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardRefundSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardRefundSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardRefundType.CardRefund,
},
@@ -30073,6 +34449,19 @@ public void CopyConstructor_Works()
ReversalAmount = 20,
ReversalPresentmentAmount = 20,
ReversalReason = CardPayments::ReversalReason.ReversedByCustomer,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardReversalSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardReversalSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardReversalType.CardReversal,
UpdatedAuthorizationAmount = 80,
@@ -30213,6 +34602,19 @@ public void CopyConstructor_Works()
],
},
},
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardSettlementSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardSettlementSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Surcharge = new() { Amount = 0, PresentmentAmount = 0 },
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardSettlementType.CardSettlement,
@@ -30269,6 +34671,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardValidationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardValidationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardValidationType.InboundCardValidation,
Verification = new()
@@ -32864,193 +37279,234 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
- TerminalID = "RCN5VNXS",
- Type = CardPayments::CardAuthorizationType.CardAuthorization,
- Verification = new()
- {
- CardVerificationCode = new(CardPayments::Result.Match),
- CardholderAddress = new()
- {
- ActualLine1 = "33 Liberty Street",
- ActualPostalCode = "94131",
- ProvidedLine1 = "33 Liberty Street",
- ProvidedPostalCode = "94132",
- Result = CardPayments::CardholderAddressResult.PostalCodeNoMatchAddressMatch,
- },
- CardholderName = new()
- {
- ProvidedFirstName = "provided_first_name",
- ProvidedLastName = "provided_last_name",
- ProvidedMiddleName = "provided_middle_name",
- },
- },
- };
-
- string expectedID = "card_authorization_6iqxap6ivd0fo5eu3i8x";
- ApiEnum expectedActioner = CardPayments::Actioner.Increase;
- CardPayments::AdditionalAmounts expectedAdditionalAmounts = new()
- {
- Clinic = new() { Amount = 0, Currency = "currency" },
- Dental = new() { Amount = 0, Currency = "currency" },
- Original = new() { Amount = 0, Currency = "currency" },
- Prescription = new() { Amount = 0, Currency = "currency" },
- Surcharge = new() { Amount = 10, Currency = "USD" },
- TotalCumulative = new() { Amount = 0, Currency = "currency" },
- TotalHealthcare = new() { Amount = 0, Currency = "currency" },
- Transit = new() { Amount = 0, Currency = "currency" },
- Unknown = new() { Amount = 0, Currency = "currency" },
- Vision = new() { Amount = 0, Currency = "currency" },
- };
- long expectedAmount = 100;
- string expectedCardPaymentID = "card_payment_nd3k2kacrqjli8482ave";
- ApiEnum expectedCurrency = CardPayments::Currency.Usd;
- ApiEnum expectedDirection =
- CardPayments::Direction.Settlement;
- DateTimeOffset expectedExpiresAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
- string expectedMerchantAcceptorID = "5665270011000168";
- string expectedMerchantCategoryCode = "5734";
- string expectedMerchantCity = "New York";
- string expectedMerchantCountry = "US";
- string expectedMerchantDescriptor = "AMAZON.COM";
- string expectedMerchantPostalCode = "10045";
- string expectedMerchantState = "NY";
- CardPayments::NetworkDetails expectedNetworkDetails = new()
- {
- Category = CardPayments::NetworkDetailsCategory.Visa,
- Pulse = new(),
- Visa = new()
- {
- ElectronicCommerceIndicator =
- CardPayments::ElectronicCommerceIndicator.SecureElectronicCommerce,
- PointOfServiceEntryMode = CardPayments::PointOfServiceEntryMode.Manual,
- StandInProcessingReason = null,
- TerminalEntryCapability = CardPayments::TerminalEntryCapability.MagneticStripe,
- },
- };
- CardPayments::NetworkIdentifiers expectedNetworkIdentifiers = new()
- {
- AuthorizationIdentificationResponse = null,
- RetrievalReferenceNumber = "785867080153",
- TraceNumber = "487941",
- TransactionID = "627199945183184",
- };
- long expectedNetworkRiskScore = 10;
- long expectedPresentmentAmount = 100;
- string expectedPresentmentCurrency = "USD";
- ApiEnum expectedProcessingCategory =
- CardPayments::ProcessingCategory.Purchase;
- string expectedTerminalID = "RCN5VNXS";
- ApiEnum expectedType =
- CardPayments::CardAuthorizationType.CardAuthorization;
- CardPayments::Verification expectedVerification = new()
- {
- CardVerificationCode = new(CardPayments::Result.Match),
- CardholderAddress = new()
- {
- ActualLine1 = "33 Liberty Street",
- ActualPostalCode = "94131",
- ProvidedLine1 = "33 Liberty Street",
- ProvidedPostalCode = "94132",
- Result = CardPayments::CardholderAddressResult.PostalCodeNoMatchAddressMatch,
- },
- CardholderName = new()
- {
- ProvidedFirstName = "provided_first_name",
- ProvidedLastName = "provided_last_name",
- ProvidedMiddleName = "provided_middle_name",
- },
- };
-
- Assert.Equal(expectedID, model.ID);
- Assert.Equal(expectedActioner, model.Actioner);
- Assert.Equal(expectedAdditionalAmounts, model.AdditionalAmounts);
- Assert.Equal(expectedAmount, model.Amount);
- Assert.Equal(expectedCardPaymentID, model.CardPaymentID);
- Assert.Equal(expectedCurrency, model.Currency);
- Assert.Null(model.DigitalWalletTokenID);
- Assert.Equal(expectedDirection, model.Direction);
- Assert.Equal(expectedExpiresAt, model.ExpiresAt);
- Assert.Equal(expectedMerchantAcceptorID, model.MerchantAcceptorID);
- Assert.Equal(expectedMerchantCategoryCode, model.MerchantCategoryCode);
- Assert.Equal(expectedMerchantCity, model.MerchantCity);
- Assert.Equal(expectedMerchantCountry, model.MerchantCountry);
- Assert.Equal(expectedMerchantDescriptor, model.MerchantDescriptor);
- Assert.Equal(expectedMerchantPostalCode, model.MerchantPostalCode);
- Assert.Equal(expectedMerchantState, model.MerchantState);
- Assert.Equal(expectedNetworkDetails, model.NetworkDetails);
- Assert.Equal(expectedNetworkIdentifiers, model.NetworkIdentifiers);
- Assert.Equal(expectedNetworkRiskScore, model.NetworkRiskScore);
- Assert.Null(model.PendingTransactionID);
- Assert.Null(model.PhysicalCardID);
- Assert.Equal(expectedPresentmentAmount, model.PresentmentAmount);
- Assert.Equal(expectedPresentmentCurrency, model.PresentmentCurrency);
- Assert.Equal(expectedProcessingCategory, model.ProcessingCategory);
- Assert.Null(model.RealTimeDecisionID);
- Assert.Equal(expectedTerminalID, model.TerminalID);
- Assert.Equal(expectedType, model.Type);
- Assert.Equal(expectedVerification, model.Verification);
- }
-
- [Fact]
- public void SerializationRoundtrip_Works()
- {
- var model = new CardPayments::CardAuthorization
- {
- ID = "card_authorization_6iqxap6ivd0fo5eu3i8x",
- Actioner = CardPayments::Actioner.Increase,
- AdditionalAmounts = new()
- {
- Clinic = new() { Amount = 0, Currency = "currency" },
- Dental = new() { Amount = 0, Currency = "currency" },
- Original = new() { Amount = 0, Currency = "currency" },
- Prescription = new() { Amount = 0, Currency = "currency" },
- Surcharge = new() { Amount = 10, Currency = "USD" },
- TotalCumulative = new() { Amount = 0, Currency = "currency" },
- TotalHealthcare = new() { Amount = 0, Currency = "currency" },
- Transit = new() { Amount = 0, Currency = "currency" },
- Unknown = new() { Amount = 0, Currency = "currency" },
- Vision = new() { Amount = 0, Currency = "currency" },
- },
- Amount = 100,
- CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
- Currency = CardPayments::Currency.Usd,
- DigitalWalletTokenID = null,
- Direction = CardPayments::Direction.Settlement,
- ExpiresAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
- MerchantAcceptorID = "5665270011000168",
- MerchantCategoryCode = "5734",
- MerchantCity = "New York",
- MerchantCountry = "US",
- MerchantDescriptor = "AMAZON.COM",
- MerchantPostalCode = "10045",
- MerchantState = "NY",
- NetworkDetails = new()
- {
- Category = CardPayments::NetworkDetailsCategory.Visa,
- Pulse = new(),
- Visa = new()
+ SchemeFees =
+ [
+ new()
{
- ElectronicCommerceIndicator =
- CardPayments::ElectronicCommerceIndicator.SecureElectronicCommerce,
- PointOfServiceEntryMode = CardPayments::PointOfServiceEntryMode.Manual,
- StandInProcessingReason = null,
- TerminalEntryCapability = CardPayments::TerminalEntryCapability.MagneticStripe,
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
},
- },
- NetworkIdentifiers = new()
- {
- AuthorizationIdentificationResponse = null,
- RetrievalReferenceNumber = "785867080153",
- TraceNumber = "487941",
- TransactionID = "627199945183184",
- },
- NetworkRiskScore = 10,
- PendingTransactionID = null,
- PhysicalCardID = null,
- PresentmentAmount = 100,
- PresentmentCurrency = "USD",
- ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
- RealTimeDecisionID = null,
+ ],
+ TerminalID = "RCN5VNXS",
+ Type = CardPayments::CardAuthorizationType.CardAuthorization,
+ Verification = new()
+ {
+ CardVerificationCode = new(CardPayments::Result.Match),
+ CardholderAddress = new()
+ {
+ ActualLine1 = "33 Liberty Street",
+ ActualPostalCode = "94131",
+ ProvidedLine1 = "33 Liberty Street",
+ ProvidedPostalCode = "94132",
+ Result = CardPayments::CardholderAddressResult.PostalCodeNoMatchAddressMatch,
+ },
+ CardholderName = new()
+ {
+ ProvidedFirstName = "provided_first_name",
+ ProvidedLastName = "provided_last_name",
+ ProvidedMiddleName = "provided_middle_name",
+ },
+ },
+ };
+
+ string expectedID = "card_authorization_6iqxap6ivd0fo5eu3i8x";
+ ApiEnum expectedActioner = CardPayments::Actioner.Increase;
+ CardPayments::AdditionalAmounts expectedAdditionalAmounts = new()
+ {
+ Clinic = new() { Amount = 0, Currency = "currency" },
+ Dental = new() { Amount = 0, Currency = "currency" },
+ Original = new() { Amount = 0, Currency = "currency" },
+ Prescription = new() { Amount = 0, Currency = "currency" },
+ Surcharge = new() { Amount = 10, Currency = "USD" },
+ TotalCumulative = new() { Amount = 0, Currency = "currency" },
+ TotalHealthcare = new() { Amount = 0, Currency = "currency" },
+ Transit = new() { Amount = 0, Currency = "currency" },
+ Unknown = new() { Amount = 0, Currency = "currency" },
+ Vision = new() { Amount = 0, Currency = "currency" },
+ };
+ long expectedAmount = 100;
+ string expectedCardPaymentID = "card_payment_nd3k2kacrqjli8482ave";
+ ApiEnum expectedCurrency = CardPayments::Currency.Usd;
+ ApiEnum expectedDirection =
+ CardPayments::Direction.Settlement;
+ DateTimeOffset expectedExpiresAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ string expectedMerchantAcceptorID = "5665270011000168";
+ string expectedMerchantCategoryCode = "5734";
+ string expectedMerchantCity = "New York";
+ string expectedMerchantCountry = "US";
+ string expectedMerchantDescriptor = "AMAZON.COM";
+ string expectedMerchantPostalCode = "10045";
+ string expectedMerchantState = "NY";
+ CardPayments::NetworkDetails expectedNetworkDetails = new()
+ {
+ Category = CardPayments::NetworkDetailsCategory.Visa,
+ Pulse = new(),
+ Visa = new()
+ {
+ ElectronicCommerceIndicator =
+ CardPayments::ElectronicCommerceIndicator.SecureElectronicCommerce,
+ PointOfServiceEntryMode = CardPayments::PointOfServiceEntryMode.Manual,
+ StandInProcessingReason = null,
+ TerminalEntryCapability = CardPayments::TerminalEntryCapability.MagneticStripe,
+ },
+ };
+ CardPayments::NetworkIdentifiers expectedNetworkIdentifiers = new()
+ {
+ AuthorizationIdentificationResponse = null,
+ RetrievalReferenceNumber = "785867080153",
+ TraceNumber = "487941",
+ TransactionID = "627199945183184",
+ };
+ long expectedNetworkRiskScore = 10;
+ long expectedPresentmentAmount = 100;
+ string expectedPresentmentCurrency = "USD";
+ ApiEnum expectedProcessingCategory =
+ CardPayments::ProcessingCategory.Purchase;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
+ string expectedTerminalID = "RCN5VNXS";
+ ApiEnum expectedType =
+ CardPayments::CardAuthorizationType.CardAuthorization;
+ CardPayments::Verification expectedVerification = new()
+ {
+ CardVerificationCode = new(CardPayments::Result.Match),
+ CardholderAddress = new()
+ {
+ ActualLine1 = "33 Liberty Street",
+ ActualPostalCode = "94131",
+ ProvidedLine1 = "33 Liberty Street",
+ ProvidedPostalCode = "94132",
+ Result = CardPayments::CardholderAddressResult.PostalCodeNoMatchAddressMatch,
+ },
+ CardholderName = new()
+ {
+ ProvidedFirstName = "provided_first_name",
+ ProvidedLastName = "provided_last_name",
+ ProvidedMiddleName = "provided_middle_name",
+ },
+ };
+
+ Assert.Equal(expectedID, model.ID);
+ Assert.Equal(expectedActioner, model.Actioner);
+ Assert.Equal(expectedAdditionalAmounts, model.AdditionalAmounts);
+ Assert.Equal(expectedAmount, model.Amount);
+ Assert.Equal(expectedCardPaymentID, model.CardPaymentID);
+ Assert.Equal(expectedCurrency, model.Currency);
+ Assert.Null(model.DigitalWalletTokenID);
+ Assert.Equal(expectedDirection, model.Direction);
+ Assert.Equal(expectedExpiresAt, model.ExpiresAt);
+ Assert.Equal(expectedMerchantAcceptorID, model.MerchantAcceptorID);
+ Assert.Equal(expectedMerchantCategoryCode, model.MerchantCategoryCode);
+ Assert.Equal(expectedMerchantCity, model.MerchantCity);
+ Assert.Equal(expectedMerchantCountry, model.MerchantCountry);
+ Assert.Equal(expectedMerchantDescriptor, model.MerchantDescriptor);
+ Assert.Equal(expectedMerchantPostalCode, model.MerchantPostalCode);
+ Assert.Equal(expectedMerchantState, model.MerchantState);
+ Assert.Equal(expectedNetworkDetails, model.NetworkDetails);
+ Assert.Equal(expectedNetworkIdentifiers, model.NetworkIdentifiers);
+ Assert.Equal(expectedNetworkRiskScore, model.NetworkRiskScore);
+ Assert.Null(model.PendingTransactionID);
+ Assert.Null(model.PhysicalCardID);
+ Assert.Equal(expectedPresentmentAmount, model.PresentmentAmount);
+ Assert.Equal(expectedPresentmentCurrency, model.PresentmentCurrency);
+ Assert.Equal(expectedProcessingCategory, model.ProcessingCategory);
+ Assert.Null(model.RealTimeDecisionID);
+ Assert.Equal(expectedSchemeFees.Count, model.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], model.SchemeFees[i]);
+ }
+ Assert.Equal(expectedTerminalID, model.TerminalID);
+ Assert.Equal(expectedType, model.Type);
+ Assert.Equal(expectedVerification, model.Verification);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new CardPayments::CardAuthorization
+ {
+ ID = "card_authorization_6iqxap6ivd0fo5eu3i8x",
+ Actioner = CardPayments::Actioner.Increase,
+ AdditionalAmounts = new()
+ {
+ Clinic = new() { Amount = 0, Currency = "currency" },
+ Dental = new() { Amount = 0, Currency = "currency" },
+ Original = new() { Amount = 0, Currency = "currency" },
+ Prescription = new() { Amount = 0, Currency = "currency" },
+ Surcharge = new() { Amount = 10, Currency = "USD" },
+ TotalCumulative = new() { Amount = 0, Currency = "currency" },
+ TotalHealthcare = new() { Amount = 0, Currency = "currency" },
+ Transit = new() { Amount = 0, Currency = "currency" },
+ Unknown = new() { Amount = 0, Currency = "currency" },
+ Vision = new() { Amount = 0, Currency = "currency" },
+ },
+ Amount = 100,
+ CardPaymentID = "card_payment_nd3k2kacrqjli8482ave",
+ Currency = CardPayments::Currency.Usd,
+ DigitalWalletTokenID = null,
+ Direction = CardPayments::Direction.Settlement,
+ ExpiresAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ MerchantAcceptorID = "5665270011000168",
+ MerchantCategoryCode = "5734",
+ MerchantCity = "New York",
+ MerchantCountry = "US",
+ MerchantDescriptor = "AMAZON.COM",
+ MerchantPostalCode = "10045",
+ MerchantState = "NY",
+ NetworkDetails = new()
+ {
+ Category = CardPayments::NetworkDetailsCategory.Visa,
+ Pulse = new(),
+ Visa = new()
+ {
+ ElectronicCommerceIndicator =
+ CardPayments::ElectronicCommerceIndicator.SecureElectronicCommerce,
+ PointOfServiceEntryMode = CardPayments::PointOfServiceEntryMode.Manual,
+ StandInProcessingReason = null,
+ TerminalEntryCapability = CardPayments::TerminalEntryCapability.MagneticStripe,
+ },
+ },
+ NetworkIdentifiers = new()
+ {
+ AuthorizationIdentificationResponse = null,
+ RetrievalReferenceNumber = "785867080153",
+ TraceNumber = "487941",
+ TransactionID = "627199945183184",
+ },
+ NetworkRiskScore = 10,
+ PendingTransactionID = null,
+ PhysicalCardID = null,
+ PresentmentAmount = 100,
+ PresentmentCurrency = "USD",
+ ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
+ RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -33142,6 +37598,18 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -33224,6 +37692,18 @@ public void FieldRoundtripThroughSerialization_Works()
string expectedPresentmentCurrency = "USD";
ApiEnum expectedProcessingCategory =
CardPayments::ProcessingCategory.Purchase;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
ApiEnum expectedType =
CardPayments::CardAuthorizationType.CardAuthorization;
@@ -33271,6 +37751,11 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Equal(expectedPresentmentCurrency, deserialized.PresentmentCurrency);
Assert.Equal(expectedProcessingCategory, deserialized.ProcessingCategory);
Assert.Null(deserialized.RealTimeDecisionID);
+ Assert.Equal(expectedSchemeFees.Count, deserialized.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], deserialized.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, deserialized.TerminalID);
Assert.Equal(expectedType, deserialized.Type);
Assert.Equal(expectedVerification, deserialized.Verification);
@@ -33336,6 +37821,18 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -33421,6 +37918,18 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::ProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardAuthorizationType.CardAuthorization,
Verification = new()
@@ -35289,6 +39798,296 @@ public void InvalidEnumSerializationRoundtrip_Works()
}
}
+public class SchemeFeeTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new CardPayments::SchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::SchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::FeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, model.Amount);
+ Assert.Equal(expectedCreatedAt, model.CreatedAt);
+ Assert.Equal(expectedCurrency, model.Currency);
+ Assert.Equal(expectedFeeType, model.FeeType);
+ Assert.Null(model.FixedComponent);
+ Assert.Equal(expectedVariableRate, model.VariableRate);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new CardPayments::SchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new CardPayments::SchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::SchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::FeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, deserialized.Amount);
+ Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
+ Assert.Equal(expectedCurrency, deserialized.Currency);
+ Assert.Equal(expectedFeeType, deserialized.FeeType);
+ Assert.Null(deserialized.FixedComponent);
+ Assert.Equal(expectedVariableRate, deserialized.VariableRate);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new CardPayments::SchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new CardPayments::SchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::SchemeFeeCurrency.Usd,
+ FeeType = CardPayments::FeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ CardPayments::SchemeFee copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class SchemeFeeCurrencyTest : TestBase
+{
+ [Theory]
+ [InlineData(CardPayments::SchemeFeeCurrency.Usd)]
+ public void Validation_Works(CardPayments::SchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize>(
+ JsonSerializer.SerializeToElement("invalid value"),
+ ModelBase.SerializerOptions
+ );
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(CardPayments::SchemeFeeCurrency.Usd)]
+ public void SerializationRoundtrip_Works(CardPayments::SchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize>(
+ JsonSerializer.SerializeToElement("invalid value"),
+ ModelBase.SerializerOptions
+ );
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
+public class FeeTypeTest : TestBase
+{
+ [Theory]
+ [InlineData(CardPayments::FeeType.VisaInternationalServiceAssessmentSingleCurrency)]
+ [InlineData(CardPayments::FeeType.VisaInternationalServiceAssessmentCrossCurrency)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationDomesticPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationInternationalPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationCanadaPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationReversalPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationReversalInternationalPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationAddressVerificationService)]
+ [InlineData(CardPayments::FeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::FeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::FeeType.VisaAccountVerificationDomestic)]
+ [InlineData(CardPayments::FeeType.VisaAccountVerificationInternational)]
+ [InlineData(CardPayments::FeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::FeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::FeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::FeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::FeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::FeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::FeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::FeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::FeeType.VisaServiceCommercialCredit)]
+ [InlineData(CardPayments::FeeType.VisaAdvertisingServiceCommercialCredit)]
+ [InlineData(CardPayments::FeeType.VisaCommunityGrowthAccelerationProgram)]
+ [InlineData(CardPayments::FeeType.VisaProcessingGuaranteeCommercialCredit)]
+ [InlineData(CardPayments::FeeType.PulseSwitchFee)]
+ public void Validation_Works(CardPayments::FeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize>(
+ JsonSerializer.SerializeToElement("invalid value"),
+ ModelBase.SerializerOptions
+ );
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(CardPayments::FeeType.VisaInternationalServiceAssessmentSingleCurrency)]
+ [InlineData(CardPayments::FeeType.VisaInternationalServiceAssessmentCrossCurrency)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationDomesticPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationInternationalPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationCanadaPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationReversalPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationReversalInternationalPointOfSale)]
+ [InlineData(CardPayments::FeeType.VisaAuthorizationAddressVerificationService)]
+ [InlineData(CardPayments::FeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::FeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::FeeType.VisaAccountVerificationDomestic)]
+ [InlineData(CardPayments::FeeType.VisaAccountVerificationInternational)]
+ [InlineData(CardPayments::FeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::FeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::FeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::FeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::FeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::FeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::FeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::FeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::FeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::FeeType.VisaServiceCommercialCredit)]
+ [InlineData(CardPayments::FeeType.VisaAdvertisingServiceCommercialCredit)]
+ [InlineData(CardPayments::FeeType.VisaCommunityGrowthAccelerationProgram)]
+ [InlineData(CardPayments::FeeType.VisaProcessingGuaranteeCommercialCredit)]
+ [InlineData(CardPayments::FeeType.PulseSwitchFee)]
+ public void SerializationRoundtrip_Works(CardPayments::FeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize>(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize>(
+ JsonSerializer.SerializeToElement("invalid value"),
+ ModelBase.SerializerOptions
+ );
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize>(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class CardAuthorizationTypeTest : TestBase
{
[Theory]
@@ -36280,6 +41079,19 @@ public void FieldRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -36353,6 +41165,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
};
long expectedNetworkRiskScore = 10;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
ApiEnum expectedType =
CardPayments::CardBalanceInquiryType.CardBalanceInquiry;
@@ -36396,6 +41221,11 @@ public void FieldRoundtrip_Works()
Assert.Equal(expectedNetworkRiskScore, model.NetworkRiskScore);
Assert.Null(model.PhysicalCardID);
Assert.Null(model.RealTimeDecisionID);
+ Assert.Equal(expectedSchemeFees.Count, model.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], model.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, model.TerminalID);
Assert.Equal(expectedType, model.Type);
Assert.Equal(expectedVerification, model.Verification);
@@ -36456,6 +41286,19 @@ public void SerializationRoundtrip_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -36545,6 +41388,19 @@ public void FieldRoundtripThroughSerialization_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -36625,6 +41481,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
};
long expectedNetworkRiskScore = 10;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
ApiEnum expectedType =
CardPayments::CardBalanceInquiryType.CardBalanceInquiry;
@@ -36668,6 +41537,11 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Equal(expectedNetworkRiskScore, deserialized.NetworkRiskScore);
Assert.Null(deserialized.PhysicalCardID);
Assert.Null(deserialized.RealTimeDecisionID);
+ Assert.Equal(expectedSchemeFees.Count, deserialized.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], deserialized.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, deserialized.TerminalID);
Assert.Equal(expectedType, deserialized.Type);
Assert.Equal(expectedVerification, deserialized.Verification);
@@ -36728,6 +41602,19 @@ public void Validation_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -36811,6 +41698,19 @@ public void CopyConstructor_Works()
NetworkRiskScore = 10,
PhysicalCardID = null,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Type = CardPayments::CardBalanceInquiryType.CardBalanceInquiry,
Verification = new()
@@ -39017,6 +43917,342 @@ public void CopyConstructor_Works()
}
}
+public class CardBalanceInquirySchemeFeeTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new CardPayments::CardBalanceInquirySchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, model.Amount);
+ Assert.Equal(expectedCreatedAt, model.CreatedAt);
+ Assert.Equal(expectedCurrency, model.Currency);
+ Assert.Equal(expectedFeeType, model.FeeType);
+ Assert.Null(model.FixedComponent);
+ Assert.Equal(expectedVariableRate, model.VariableRate);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new CardPayments::CardBalanceInquirySchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new CardPayments::CardBalanceInquirySchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, deserialized.Amount);
+ Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
+ Assert.Equal(expectedCurrency, deserialized.Currency);
+ Assert.Equal(expectedFeeType, deserialized.FeeType);
+ Assert.Null(deserialized.FixedComponent);
+ Assert.Equal(expectedVariableRate, deserialized.VariableRate);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new CardPayments::CardBalanceInquirySchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new CardPayments::CardBalanceInquirySchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ CardPayments::CardBalanceInquirySchemeFee copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class CardBalanceInquirySchemeFeeCurrencyTest : TestBase
+{
+ [Theory]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd)]
+ public void Validation_Works(CardPayments::CardBalanceInquirySchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeCurrency.Usd)]
+ public void SerializationRoundtrip_Works(
+ CardPayments::CardBalanceInquirySchemeFeeCurrency rawValue
+ )
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
+public class CardBalanceInquirySchemeFeeFeeTypeTest : TestBase
+{
+ [Theory]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationReversalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAccountVerificationInternational
+ )]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit
+ )]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.PulseSwitchFee)]
+ public void Validation_Works(CardPayments::CardBalanceInquirySchemeFeeFeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationReversalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAccountVerificationInternational
+ )]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram
+ )]
+ [InlineData(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit
+ )]
+ [InlineData(CardPayments::CardBalanceInquirySchemeFeeFeeType.PulseSwitchFee)]
+ public void SerializationRoundtrip_Works(
+ CardPayments::CardBalanceInquirySchemeFeeFeeType rawValue
+ )
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class CardBalanceInquiryTypeTest : TestBase
{
[Theory]
@@ -39793,6 +45029,18 @@ public void FieldRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -39875,6 +45123,18 @@ public void FieldRoundtrip_Works()
CardPayments::CardDeclineProcessingCategory.Purchase;
ApiEnum expectedReason =
CardPayments::Reason.InsufficientFunds;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
CardPayments::CardDeclineVerification expectedVerification = new()
{
@@ -39925,6 +45185,11 @@ public void FieldRoundtrip_Works()
Assert.Null(model.RealTimeDecisionID);
Assert.Null(model.RealTimeDecisionReason);
Assert.Equal(expectedReason, model.Reason);
+ Assert.Equal(expectedSchemeFees.Count, model.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], model.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, model.TerminalID);
Assert.Equal(expectedVerification, model.Verification);
}
@@ -39993,6 +45258,18 @@ public void SerializationRoundtrip_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -40090,6 +45367,18 @@ public void FieldRoundtripThroughSerialization_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -40179,6 +45468,18 @@ public void FieldRoundtripThroughSerialization_Works()
CardPayments::CardDeclineProcessingCategory.Purchase;
ApiEnum expectedReason =
CardPayments::Reason.InsufficientFunds;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
CardPayments::CardDeclineVerification expectedVerification = new()
{
@@ -40229,6 +45530,11 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Null(deserialized.RealTimeDecisionID);
Assert.Null(deserialized.RealTimeDecisionReason);
Assert.Equal(expectedReason, deserialized.Reason);
+ Assert.Equal(expectedSchemeFees.Count, deserialized.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], deserialized.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, deserialized.TerminalID);
Assert.Equal(expectedVerification, deserialized.Verification);
}
@@ -40297,6 +45603,18 @@ public void Validation_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -40388,6 +45706,18 @@ public void CopyConstructor_Works()
RealTimeDecisionID = null,
RealTimeDecisionReason = null,
Reason = CardPayments::Reason.InsufficientFunds,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
Verification = new()
{
@@ -42839,6 +48169,310 @@ public void InvalidEnumSerializationRoundtrip_Works()
}
}
+public class CardDeclineSchemeFeeTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new CardPayments::CardDeclineSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardDeclineSchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, model.Amount);
+ Assert.Equal(expectedCreatedAt, model.CreatedAt);
+ Assert.Equal(expectedCurrency, model.Currency);
+ Assert.Equal(expectedFeeType, model.FeeType);
+ Assert.Null(model.FixedComponent);
+ Assert.Equal(expectedVariableRate, model.VariableRate);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new CardPayments::CardDeclineSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new CardPayments::CardDeclineSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardDeclineSchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, deserialized.Amount);
+ Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
+ Assert.Equal(expectedCurrency, deserialized.Currency);
+ Assert.Equal(expectedFeeType, deserialized.FeeType);
+ Assert.Null(deserialized.FixedComponent);
+ Assert.Equal(expectedVariableRate, deserialized.VariableRate);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new CardPayments::CardDeclineSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new CardPayments::CardDeclineSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardDeclineSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ CardPayments::CardDeclineSchemeFee copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class CardDeclineSchemeFeeCurrencyTest : TestBase
+{
+ [Theory]
+ [InlineData(CardPayments::CardDeclineSchemeFeeCurrency.Usd)]
+ public void Validation_Works(CardPayments::CardDeclineSchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(CardPayments::CardDeclineSchemeFeeCurrency.Usd)]
+ public void SerializationRoundtrip_Works(CardPayments::CardDeclineSchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
+public class CardDeclineSchemeFeeFeeTypeTest : TestBase
+{
+ [Theory]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale)]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationReversalPointOfSale)]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAccountVerificationInternational)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.PulseSwitchFee)]
+ public void Validation_Works(CardPayments::CardDeclineSchemeFeeFeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale)]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationReversalPointOfSale)]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardDeclineSchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAccountVerificationInternational)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit)]
+ [InlineData(CardPayments::CardDeclineSchemeFeeFeeType.PulseSwitchFee)]
+ public void SerializationRoundtrip_Works(CardPayments::CardDeclineSchemeFeeFeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class CardDeclineVerificationTest : TestBase
{
[Fact]
@@ -43539,6 +49173,19 @@ public void FieldRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -43621,6 +49268,18 @@ public void FieldRoundtrip_Works()
string expectedPresentmentCurrency = "USD";
ApiEnum expectedProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
string expectedTransactionID = "transaction_uyrp7fld2ium70oa7oi";
ApiEnum expectedType =
@@ -43670,6 +49329,11 @@ public void FieldRoundtrip_Works()
Assert.Equal(expectedPresentmentCurrency, model.PresentmentCurrency);
Assert.Equal(expectedProcessingCategory, model.ProcessingCategory);
Assert.Null(model.RealTimeDecisionID);
+ Assert.Equal(expectedSchemeFees.Count, model.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], model.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, model.TerminalID);
Assert.Equal(expectedTransactionID, model.TransactionID);
Assert.Equal(expectedType, model.Type);
@@ -43736,6 +49400,19 @@ public void SerializationRoundtrip_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -43831,6 +49508,19 @@ public void FieldRoundtripThroughSerialization_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -43920,6 +49610,18 @@ public void FieldRoundtripThroughSerialization_Works()
string expectedPresentmentCurrency = "USD";
ApiEnum expectedProcessingCategory =
CardPayments::CardFinancialProcessingCategory.Purchase;
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
string expectedTerminalID = "RCN5VNXS";
string expectedTransactionID = "transaction_uyrp7fld2ium70oa7oi";
ApiEnum expectedType =
@@ -43969,6 +49671,11 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Equal(expectedPresentmentCurrency, deserialized.PresentmentCurrency);
Assert.Equal(expectedProcessingCategory, deserialized.ProcessingCategory);
Assert.Null(deserialized.RealTimeDecisionID);
+ Assert.Equal(expectedSchemeFees.Count, deserialized.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], deserialized.SchemeFees[i]);
+ }
Assert.Equal(expectedTerminalID, deserialized.TerminalID);
Assert.Equal(expectedTransactionID, deserialized.TransactionID);
Assert.Equal(expectedType, deserialized.Type);
@@ -44035,6 +49742,19 @@ public void Validation_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -44124,6 +49844,19 @@ public void CopyConstructor_Works()
PresentmentCurrency = "USD",
ProcessingCategory = CardPayments::CardFinancialProcessingCategory.Purchase,
RealTimeDecisionID = null,
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
TerminalID = "RCN5VNXS",
TransactionID = "transaction_uyrp7fld2ium70oa7oi",
Type = CardPayments::CardFinancialType.CardFinancial,
@@ -46463,6 +52196,314 @@ public void InvalidEnumSerializationRoundtrip_Works()
}
}
+public class CardFinancialSchemeFeeTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new CardPayments::CardFinancialSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardFinancialSchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, model.Amount);
+ Assert.Equal(expectedCreatedAt, model.CreatedAt);
+ Assert.Equal(expectedCurrency, model.Currency);
+ Assert.Equal(expectedFeeType, model.FeeType);
+ Assert.Null(model.FixedComponent);
+ Assert.Equal(expectedVariableRate, model.VariableRate);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new CardPayments::CardFinancialSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new CardPayments::CardFinancialSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardFinancialSchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, deserialized.Amount);
+ Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
+ Assert.Equal(expectedCurrency, deserialized.Currency);
+ Assert.Equal(expectedFeeType, deserialized.FeeType);
+ Assert.Null(deserialized.FixedComponent);
+ Assert.Equal(expectedVariableRate, deserialized.VariableRate);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new CardPayments::CardFinancialSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new CardPayments::CardFinancialSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFinancialSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ CardPayments::CardFinancialSchemeFee copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class CardFinancialSchemeFeeCurrencyTest : TestBase
+{
+ [Theory]
+ [InlineData(CardPayments::CardFinancialSchemeFeeCurrency.Usd)]
+ public void Validation_Works(CardPayments::CardFinancialSchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(CardPayments::CardFinancialSchemeFeeCurrency.Usd)]
+ public void SerializationRoundtrip_Works(CardPayments::CardFinancialSchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
+public class CardFinancialSchemeFeeFeeTypeTest : TestBase
+{
+ [Theory]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale)]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationReversalPointOfSale)]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAccountVerificationInternational)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram)]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.PulseSwitchFee)]
+ public void Validation_Works(CardPayments::CardFinancialSchemeFeeFeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale)]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationReversalPointOfSale)]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAccountVerificationInternational)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit)]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram)]
+ [InlineData(
+ CardPayments::CardFinancialSchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit
+ )]
+ [InlineData(CardPayments::CardFinancialSchemeFeeFeeType.PulseSwitchFee)]
+ public void SerializationRoundtrip_Works(CardPayments::CardFinancialSchemeFeeFeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
public class CardFinancialTypeTest : TestBase
{
[Theory]
@@ -47176,6 +53217,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -47194,6 +53248,19 @@ public void FieldRoundtrip_Works()
TransactionID = "627199945183184",
};
string expectedPendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4";
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
ApiEnum expectedType =
CardPayments::CardFuelConfirmationType.CardFuelConfirmation;
long expectedUpdatedAuthorizationAmount = 120;
@@ -47204,6 +53271,11 @@ public void FieldRoundtrip_Works()
Assert.Equal(expectedNetwork, model.Network);
Assert.Equal(expectedNetworkIdentifiers, model.NetworkIdentifiers);
Assert.Equal(expectedPendingTransactionID, model.PendingTransactionID);
+ Assert.Equal(expectedSchemeFees.Count, model.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], model.SchemeFees[i]);
+ }
Assert.Equal(expectedType, model.Type);
Assert.Equal(expectedUpdatedAuthorizationAmount, model.UpdatedAuthorizationAmount);
}
@@ -47225,6 +53297,19 @@ public void SerializationRoundtrip_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -47255,6 +53340,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -47280,6 +53378,19 @@ public void FieldRoundtripThroughSerialization_Works()
TransactionID = "627199945183184",
};
string expectedPendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4";
+ List expectedSchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ];
ApiEnum expectedType =
CardPayments::CardFuelConfirmationType.CardFuelConfirmation;
long expectedUpdatedAuthorizationAmount = 120;
@@ -47290,6 +53401,11 @@ public void FieldRoundtripThroughSerialization_Works()
Assert.Equal(expectedNetwork, deserialized.Network);
Assert.Equal(expectedNetworkIdentifiers, deserialized.NetworkIdentifiers);
Assert.Equal(expectedPendingTransactionID, deserialized.PendingTransactionID);
+ Assert.Equal(expectedSchemeFees.Count, deserialized.SchemeFees.Count);
+ for (int i = 0; i < expectedSchemeFees.Count; i++)
+ {
+ Assert.Equal(expectedSchemeFees[i], deserialized.SchemeFees[i]);
+ }
Assert.Equal(expectedType, deserialized.Type);
Assert.Equal(expectedUpdatedAuthorizationAmount, deserialized.UpdatedAuthorizationAmount);
}
@@ -47311,6 +53427,19 @@ public void Validation_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -47335,6 +53464,19 @@ public void CopyConstructor_Works()
TransactionID = "627199945183184",
},
PendingTransactionID = "pending_transaction_k1sfetcau2qbvjbzgju4",
+ SchemeFees =
+ [
+ new()
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ },
+ ],
Type = CardPayments::CardFuelConfirmationType.CardFuelConfirmation,
UpdatedAuthorizationAmount = 120,
};
@@ -47555,6 +53697,342 @@ public void CopyConstructor_Works()
}
}
+public class CardFuelConfirmationSchemeFeeTest : TestBase
+{
+ [Fact]
+ public void FieldRoundtrip_Works()
+ {
+ var model = new CardPayments::CardFuelConfirmationSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, model.Amount);
+ Assert.Equal(expectedCreatedAt, model.CreatedAt);
+ Assert.Equal(expectedCurrency, model.Currency);
+ Assert.Equal(expectedFeeType, model.FeeType);
+ Assert.Null(model.FixedComponent);
+ Assert.Equal(expectedVariableRate, model.VariableRate);
+ }
+
+ [Fact]
+ public void SerializationRoundtrip_Works()
+ {
+ var model = new CardPayments::CardFuelConfirmationSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string json = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ json,
+ ModelBase.SerializerOptions
+ );
+
+ Assert.Equal(model, deserialized);
+ }
+
+ [Fact]
+ public void FieldRoundtripThroughSerialization_Works()
+ {
+ var model = new CardPayments::CardFuelConfirmationSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ string element = JsonSerializer.Serialize(model, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize(
+ element,
+ ModelBase.SerializerOptions
+ );
+ Assert.NotNull(deserialized);
+
+ string expectedAmount = "0.137465";
+ DateTimeOffset expectedCreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z");
+ ApiEnum expectedCurrency =
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd;
+ ApiEnum expectedFeeType =
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee;
+ string expectedVariableRate = "0.0002";
+
+ Assert.Equal(expectedAmount, deserialized.Amount);
+ Assert.Equal(expectedCreatedAt, deserialized.CreatedAt);
+ Assert.Equal(expectedCurrency, deserialized.Currency);
+ Assert.Equal(expectedFeeType, deserialized.FeeType);
+ Assert.Null(deserialized.FixedComponent);
+ Assert.Equal(expectedVariableRate, deserialized.VariableRate);
+ }
+
+ [Fact]
+ public void Validation_Works()
+ {
+ var model = new CardPayments::CardFuelConfirmationSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ model.Validate();
+ }
+
+ [Fact]
+ public void CopyConstructor_Works()
+ {
+ var model = new CardPayments::CardFuelConfirmationSchemeFee
+ {
+ Amount = "0.137465",
+ CreatedAt = DateTimeOffset.Parse("2020-01-31T23:59:59Z"),
+ Currency = CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd,
+ FeeType = CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee,
+ FixedComponent = null,
+ VariableRate = "0.0002",
+ };
+
+ CardPayments::CardFuelConfirmationSchemeFee copied = new(model);
+
+ Assert.Equal(model, copied);
+ }
+}
+
+public class CardFuelConfirmationSchemeFeeCurrencyTest : TestBase
+{
+ [Theory]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd)]
+ public void Validation_Works(CardPayments::CardFuelConfirmationSchemeFeeCurrency rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws(() => value.Validate());
+ }
+
+ [Theory]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeCurrency.Usd)]
+ public void SerializationRoundtrip_Works(
+ CardPayments::CardFuelConfirmationSchemeFeeCurrency rawValue
+ )
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+
+ [Fact]
+ public void InvalidEnumSerializationRoundtrip_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+ string json = JsonSerializer.Serialize(value, ModelBase.SerializerOptions);
+ var deserialized = JsonSerializer.Deserialize<
+ ApiEnum
+ >(json, ModelBase.SerializerOptions);
+
+ Assert.Equal(value, deserialized);
+ }
+}
+
+public class CardFuelConfirmationSchemeFeeFeeTypeTest : TestBase
+{
+ [Theory]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaInternationalServiceAssessmentSingleCurrency
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaInternationalServiceAssessmentCrossCurrency
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAuthorizationDomesticPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAuthorizationInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAuthorizationCanadaPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAuthorizationReversalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAuthorizationReversalInternationalPointOfSale
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAuthorizationAddressVerificationService
+ )]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAdvancedAuthorization)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaMessageTransmission)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAccountVerificationDomestic)]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAccountVerificationInternational
+ )]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAccountVerificationCanada)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCorporateAcceptanceFee)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaConsumerDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaBusinessDebitAcceptanceFee)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaPurchasingAcceptanceFee)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaPurchaseDomestic)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaPurchaseInternational)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCreditPurchaseToken)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaDebitPurchaseToken)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaClearingTransmission)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaDirectAuthorization)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaDirectTransactionDomestic)]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaServiceCommercialCredit)]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaAdvertisingServiceCommercialCredit
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaCommunityGrowthAccelerationProgram
+ )]
+ [InlineData(
+ CardPayments::CardFuelConfirmationSchemeFeeFeeType.VisaProcessingGuaranteeCommercialCredit
+ )]
+ [InlineData(CardPayments::CardFuelConfirmationSchemeFeeFeeType.PulseSwitchFee)]
+ public void Validation_Works(CardPayments::CardFuelConfirmationSchemeFeeFeeType rawValue)
+ {
+ // force implicit conversion because Theory can't do that for us
+ ApiEnum value = rawValue;
+ value.Validate();
+ }
+
+ [Fact]
+ public void InvalidEnumValidationThrows_Works()
+ {
+ var value = JsonSerializer.Deserialize<
+ ApiEnum
+ >(JsonSerializer.SerializeToElement("invalid value"), ModelBase.SerializerOptions);
+
+ Assert.NotNull(value);
+ Assert.Throws