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 various changes to the API #1732

Merged
merged 1 commit into from
Aug 8, 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
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/Charges/Charge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,15 @@ public Transfer SourceTransfer
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

/// <summary>
/// The status of the payment is either succeeded, pending, or failed
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,74 @@ namespace Stripe

public class ChargePaymentMethodDetailsCard : StripeEntity
{
/// <summary>
/// Card brand. Can be <c>amex</c>, <c>diners</c>, <c>discover</c>, <c>jcb</c>,
/// <c>mastercard</c>, <c>unionpay</c>, <c>visa</c>, or <c>unknown</c>.
/// </summary>
[JsonProperty("brand")]
public string Brand { get; set; }

/// <summary>
/// Check results by Card networks on Card address and CVC at time of payment.
/// </summary>
[JsonProperty("checks")]
public ChargePaymentMethodDetailsCardChecks Checks { get; set; }

/// <summary>
/// Two-letter ISO code representing the country of the card. You could use this attribute
/// to get a sense of the international breakdown of cards you’ve collected.
/// </summary>
[JsonProperty("country")]
public string Country { get; set; }

/// <summary>
/// Two-digit number representing the card’s expiration month.
/// </summary>
[JsonProperty("exp_month")]
public long ExpMonth { get; set; }

/// <summary>
/// Four-digit number representing the card’s expiration year.
/// </summary>
[JsonProperty("exp_year")]
public long ExpYear { get; set; }

/// <summary>
/// Uniquely identifies this particular card number. You can use this attribute to check
/// whether two customers who’ve signed up with you are using the same card number, for
/// example.
/// </summary>
[JsonProperty("fingerprint")]
public string Fingerprint { get; set; }

/// <summary>
/// Card funding type. Can be <c>credit</c>, <c>debit</c>, <c>prepaid</c>, or
/// <c>unknown</c>.
/// </summary>
[JsonProperty("funding")]
public string Funding { get; set; }

/// <summary>
/// The last four digits of the card.
/// </summary>
[JsonProperty("last4")]
public string Last4 { get; set; }

/// <summary>
/// True if this payment was marked as MOTO and out of scope for SCA.
/// </summary>
[JsonProperty("moto")]
public bool Moto { get; set; }

/// <summary>
/// Populated if this transaction used 3D Secure authentication.
/// </summary>
[JsonProperty("three_d_secure")]
public ChargePaymentMethodDetailsCardThreeDSecure ThreeDSecure { get; set; }

/// <summary>
/// If this Card is part of a card wallet, this contains the details of the card wallet.
/// </summary>
[JsonProperty("wallet")]
public ChargePaymentMethodDetailsCardWallet Wallet { get; set; }
}
Expand Down
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,15 @@ public IPaymentSource Source
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

/// <summary>
/// Status of this PaymentIntent, one of <c>requires_payment_method</c>,
/// <c>requires_confirmation</c>, <c>requires_action</c>, <c>processing</c>,
Expand Down
9 changes: 9 additions & 0 deletions src/Stripe.net/Services/Charges/ChargeCaptureOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,14 @@ public class ChargeCaptureOptions : BaseOptions
/// </summary>
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }
}
}
9 changes: 9 additions & 0 deletions src/Stripe.net/Services/Charges/ChargeCreateOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ public class ChargeCreateOptions : BaseOptions
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

[JsonProperty("transfer_data")]
public ChargeTransferDataOptions TransferData { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,15 @@ public class SessionPaymentIntentDataOptions : INestedOptions
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

/// <summary>
/// The parameters used to automatically create a Transfer when the payment succeeds.
/// </summary>
Expand Down
10 changes: 10 additions & 0 deletions src/Stripe.net/Services/Checkout/SessionSubscriptionDataOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ namespace Stripe.Checkout

public class SessionSubscriptionDataOptions : INestedOptions
{
/// <summary>
/// A non-negative decimal between 0 and 100, with at most two decimal places. This
/// represents the percentage of the subscription invoice subtotal that will be transferred
/// to the application owner’s Stripe account. The request must be made with an OAuth key in
/// order to set an application fee percentage. For more information, see the application
/// fees <see href="https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions">documentation</see>.
/// </summary>
[JsonProperty("application_fee_percent")]
public decimal? ApplicationFeePercent { get; set; }

/// <summary>
/// List of items, each with an attached plan.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ public class PaymentIntentCaptureOptions : BaseOptions
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

/// <summary>
/// The parameters used to automatically create a Transfer when the payment succeeds. For
/// more information, see the PaymentIntents <a href="https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,15 @@ public class PaymentIntentCreateOptions : BaseOptions
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

/// <summary>
/// The data with which to automatically create a Transfer when the payment is finalized.
/// See the PaymentIntents <a href="https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,15 @@ public class PaymentIntentUpdateOptions : BaseOptions
[JsonProperty("statement_descriptor")]
public string StatementDescriptor { get; set; }

/// <summary>
/// Provides information about the charge that customers see on their statements.
/// Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set
/// on the account to form the complete statement descriptor. Maximum 22 characters for the
/// concatenated descriptor.
/// </summary>
[JsonProperty("statement_descriptor_suffix")]
public string StatementDescriptorSuffix { get; set; }

/// <summary>
/// The data with which to automatically create a Transfer when the payment is finalized.
/// See the PaymentIntents <a href="https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts">
Expand Down