Skip to content

Commit

Permalink
Update type of bank_account_type in shared definition
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-robot authored and ankithads committed May 18, 2020
1 parent e450659 commit 2d36f3d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion GoCardless/Resources/CreditorBankAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class CreditorBankAccount
/// details](#local-bank-details-united-states) for more information.
/// </summary>
[JsonProperty("account_type")]
public string AccountType { get; set; }
public CreditorBankAccountAccountType? AccountType { get; set; }

/// <summary>
/// Name of bank, taken from the bank details.
Expand Down
2 changes: 1 addition & 1 deletion GoCardless/Resources/CustomerBankAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class CustomerBankAccount
/// details](#local-bank-details-united-states) for more information.
/// </summary>
[JsonProperty("account_type")]
public string AccountType { get; set; }
public CustomerBankAccountAccountType? AccountType { get; set; }

/// <summary>
/// Name of bank, taken from the bank details.
Expand Down
2 changes: 1 addition & 1 deletion GoCardless/Services/CreditorBankAccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public class CreditorBankAccountCreateRequest : IHasIdempotencyKey
/// details](#local-bank-details-united-states) for more information.
/// </summary>
[JsonProperty("account_type")]
public string AccountType { get; set; }
public CreditorBankAccountAccountType? AccountType { get; set; }

/// <summary>
/// Bank account type. Required for USD-denominated bank accounts. Must
Expand Down
2 changes: 1 addition & 1 deletion GoCardless/Services/CustomerBankAccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public class CustomerBankAccountCreateRequest : IHasIdempotencyKey
/// details](#local-bank-details-united-states) for more information.
/// </summary>
[JsonProperty("account_type")]
public string AccountType { get; set; }
public CustomerBankAccountAccountType? AccountType { get; set; }

/// <summary>
/// Bank account type. Required for USD-denominated bank accounts. Must
Expand Down
2 changes: 1 addition & 1 deletion GoCardless/Services/MandatePdfService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public class MandatePdfCreateRequest
/// details](#local-bank-details-united-states) for more information.
/// </summary>
[JsonProperty("account_type")]
public string AccountType { get; set; }
public MandatePdfAccountType? AccountType { get; set; }

/// <summary>
/// Bank account type. Required for USD-denominated bank accounts. Must
Expand Down
10 changes: 5 additions & 5 deletions GoCardless/Services/RedirectFlowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,16 @@ public class RedirectFlowPrefilledBankAccount
{

/// <summary>
/// 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.
/// </summary>
[JsonProperty("account_type")]
public RedirectFlowAccountType? AccountType { get; set; }
/// <summary>
/// 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.
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
Expand Down

0 comments on commit 2d36f3d

Please sign in to comment.