From 2d36f3d54dbb75105cf5072c0acea4c1fc5136d4 Mon Sep 17 00:00:00 2001 From: Robot Date: Thu, 7 May 2020 10:14:59 +0000 Subject: [PATCH] Update type of bank_account_type in shared definition --- GoCardless/Resources/CreditorBankAccount.cs | 2 +- GoCardless/Resources/CustomerBankAccount.cs | 2 +- GoCardless/Services/CreditorBankAccountService.cs | 2 +- GoCardless/Services/CustomerBankAccountService.cs | 2 +- GoCardless/Services/MandatePdfService.cs | 2 +- GoCardless/Services/RedirectFlowService.cs | 10 +++++----- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/GoCardless/Resources/CreditorBankAccount.cs b/GoCardless/Resources/CreditorBankAccount.cs index 85a4744..33097fd 100644 --- a/GoCardless/Resources/CreditorBankAccount.cs +++ b/GoCardless/Resources/CreditorBankAccount.cs @@ -47,7 +47,7 @@ public class CreditorBankAccount /// details](#local-bank-details-united-states) for more information. /// [JsonProperty("account_type")] - public string AccountType { get; set; } + public CreditorBankAccountAccountType? AccountType { get; set; } /// /// Name of bank, taken from the bank details. diff --git a/GoCardless/Resources/CustomerBankAccount.cs b/GoCardless/Resources/CustomerBankAccount.cs index 2323fe8..f989843 100644 --- a/GoCardless/Resources/CustomerBankAccount.cs +++ b/GoCardless/Resources/CustomerBankAccount.cs @@ -45,7 +45,7 @@ public class CustomerBankAccount /// details](#local-bank-details-united-states) for more information. /// [JsonProperty("account_type")] - public string AccountType { get; set; } + public CustomerBankAccountAccountType? AccountType { get; set; } /// /// Name of bank, taken from the bank details. diff --git a/GoCardless/Services/CreditorBankAccountService.cs b/GoCardless/Services/CreditorBankAccountService.cs index e1ad54d..91b316e 100644 --- a/GoCardless/Services/CreditorBankAccountService.cs +++ b/GoCardless/Services/CreditorBankAccountService.cs @@ -192,7 +192,7 @@ public class CreditorBankAccountCreateRequest : IHasIdempotencyKey /// details](#local-bank-details-united-states) for more information. /// [JsonProperty("account_type")] - public string AccountType { get; set; } + public CreditorBankAccountAccountType? AccountType { get; set; } /// /// Bank account type. Required for USD-denominated bank accounts. Must diff --git a/GoCardless/Services/CustomerBankAccountService.cs b/GoCardless/Services/CustomerBankAccountService.cs index 65f6317..f48760f 100644 --- a/GoCardless/Services/CustomerBankAccountService.cs +++ b/GoCardless/Services/CustomerBankAccountService.cs @@ -235,7 +235,7 @@ public class CustomerBankAccountCreateRequest : IHasIdempotencyKey /// details](#local-bank-details-united-states) for more information. /// [JsonProperty("account_type")] - public string AccountType { get; set; } + public CustomerBankAccountAccountType? AccountType { get; set; } /// /// Bank account type. Required for USD-denominated bank accounts. Must diff --git a/GoCardless/Services/MandatePdfService.cs b/GoCardless/Services/MandatePdfService.cs index 4bcfe7b..ec22898 100644 --- a/GoCardless/Services/MandatePdfService.cs +++ b/GoCardless/Services/MandatePdfService.cs @@ -165,7 +165,7 @@ public class MandatePdfCreateRequest /// details](#local-bank-details-united-states) for more information. /// [JsonProperty("account_type")] - public string AccountType { get; set; } + public MandatePdfAccountType? AccountType { get; set; } /// /// Bank account type. Required for USD-denominated bank accounts. Must diff --git a/GoCardless/Services/RedirectFlowService.cs b/GoCardless/Services/RedirectFlowService.cs index 33d6749..2f4474c 100644 --- a/GoCardless/Services/RedirectFlowService.cs +++ b/GoCardless/Services/RedirectFlowService.cs @@ -192,16 +192,16 @@ public class RedirectFlowPrefilledBankAccount { /// - /// Bank account type. Required for USD-denominated bank accounts. - /// Must not be provided for bank accounts in other currencies. See - /// [local details](#local-bank-details-united-states) for more + /// Bank account type for USD-denominated bank accounts. Must not be + /// provided for bank accounts in other currencies. See [local + /// details](#local-bank-details-united-states) for more /// information. /// [JsonProperty("account_type")] public RedirectFlowAccountType? AccountType { get; set; } /// - /// Bank account type. Required for USD-denominated bank accounts. Must - /// not be provided for bank accounts in other currencies. See [local + /// Bank account type for USD-denominated bank accounts. Must not be + /// provided for bank accounts in other currencies. See [local /// details](#local-bank-details-united-states) for more information. /// [JsonConverter(typeof(StringEnumConverter))]