Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for kana and kanji variations of statement descriptors #1618

Merged
merged 1 commit into from
May 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/Stripe.net/Entities/Accounts/AccountSettingsPayments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,19 @@ public class AccountSettingsPayments : StripeEntity
/// </summary>
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// The Kana variation of the default text that appears on credit card statements when a
/// charge is made (Japan only).
/// </summary>
[JsonProperty("statement_descriptor_kana")]
public string StatementDescriptorKana { get; set; }

/// <summary>
/// The Kanji variation of the default text that appears on credit card statements when a
/// charge is made (Japan only).
/// </summary>
[JsonProperty("statement_descriptor_kanji")]
public string StatementDescriptorKanji { get; set; }
}
}
18 changes: 18 additions & 0 deletions src/Stripe.net/Services/Account/AccountSettingsPaymentsOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,25 @@ namespace Stripe

public class AccountSettingsPaymentsOptions : INestedOptions
{
/// <summary>
/// The default text that appears on credit card statements when a charge is made. This
/// field prefixes any dynamic <c>statement_descriptor</c> specified on the charge.
/// </summary>
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// The Kana variation of the default text that appears on credit card statements when a
/// charge is made (Japan only).
/// </summary>
[JsonProperty("statement_descriptor_kana")]
public string StatementDescriptorKana { get; set; }

/// <summary>
/// The Kanji variation of the default text that appears on credit card statements when a
/// charge is made (Japan only).
/// </summary>
[JsonProperty("statement_descriptor_kanji")]
public string StatementDescriptorKanji { get; set; }
}
}