Skip to content

Commit

Permalink
Merge pull request #1732 from stripe/remi-various-changes
Browse files Browse the repository at this point in the history
Add various changes to the API
  • Loading branch information
remi-stripe authored Aug 8, 2019
2 parents 58e2391 + 04bde42 commit a4e1fd2
Showing 10 changed files with 123 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/Charges/Charge.cs
Original file line number Diff line number Diff line change
@@ -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>
Original file line number Diff line number Diff line change
@@ -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; }
}
9 changes: 9 additions & 0 deletions src/Stripe.net/Entities/PaymentIntents/PaymentIntent.cs
Original file line number Diff line number Diff line change
@@ -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>,
9 changes: 9 additions & 0 deletions src/Stripe.net/Services/Charges/ChargeCaptureOptions.cs
Original file line number Diff line number Diff line change
@@ -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
@@ -116,6 +116,15 @@ public class ChargeCreateOptions : BaseOptions, IHasMetadata
[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; }
}
Original file line number Diff line number Diff line change
@@ -73,6 +73,15 @@ public class SessionPaymentIntentDataOptions : INestedOptions, IHasMetadata
[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>
10 changes: 10 additions & 0 deletions src/Stripe.net/Services/Checkout/SessionSubscriptionDataOptions.cs
Original file line number Diff line number Diff line change
@@ -7,6 +7,16 @@ namespace Stripe.Checkout

public class SessionSubscriptionDataOptions : INestedOptions, IHasMetadata
{
/// <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>
Original file line number Diff line number Diff line change
@@ -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">
Original file line number Diff line number Diff line change
@@ -174,6 +174,15 @@ public class PaymentIntentCreateOptions : BaseOptions, IHasMetadata
[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">
Original file line number Diff line number Diff line change
@@ -115,6 +115,15 @@ public class PaymentIntentUpdateOptions : BaseOptions, IHasMetadata
[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">

0 comments on commit a4e1fd2

Please sign in to comment.