Skip to content

Commit

Permalink
[generated] source: spec3.sdk.yaml@spec-19c20f3 in master (stripe#776)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickjermsurawong-stripe authored May 11, 2019
1 parent 0793eac commit 9eaf316
Show file tree
Hide file tree
Showing 10 changed files with 82 additions and 65 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -986,10 +986,10 @@ public static class PaymentMethodDetails extends StripeObject {

/**
* The type of transaction-specific details of the payment method used in the payment, one of
* `ach_credit_transfer`, `alipay`, `bancontact`, `card`, `eps`, `giropay`, `ideal`,
* `multibanco`, `p24`, `sepa_debit`, or `sofort`. An additional hash is included on
* `payment_method_details` with a name matching this value. It contains information specific to
* the payment method.
* `ach_credit_transfer`, `ach_debit`, `alipay`, `bancontact`, `card`, `card_present`, `eps`,
* `giropay`, `ideal`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or
* `wechat`. An additional hash is included on `payment_method_details` with a name matching
* this value. It contains information specific to the payment method.
*/
@SerializedName("type")
String type;
Expand Down
25 changes: 14 additions & 11 deletions src/main/java/com/stripe/model/PaymentIntent.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P

/**
* The amount of the application fee (if any) for the resulting payment. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("application_fee_amount")
Expand All @@ -59,7 +60,7 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P

/**
* User-given reason for cancellation of this PaymentIntent, one of `duplicate`, `fraudulent`,
* `requested_by_customer`, or `failed_invoice`.
* `requested_by_customer`, `failed_invoice`, or `void_invoice`.
*/
@SerializedName("cancellation_reason")
String cancellationReason;
Expand Down Expand Up @@ -150,8 +151,9 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P

/**
* The account (if any) for which the funds of the PaymentIntent are intended. See the
* PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for details.
* PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("on_behalf_of")
@Getter(lombok.AccessLevel.NONE)
Expand Down Expand Up @@ -197,24 +199,25 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore<P

/**
* Status of this PaymentIntent, one of `requires_payment_method`, `requires_confirmation`,
* `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. You can read
* more about PaymentIntent statuses
* [here](https://stripe.com/docs/payments/payment-intents/usage#paymentintent-status-overview).
* `requires_action`, `processing`, `requires_capture`, `canceled`, or `succeeded`. Read more
* about each PaymentIntent [status](https://stripe.com/docs/payments/payment-intents/status).
*/
@SerializedName("status")
String status;

/**
* The data with which to automatically create a Transfer when the payment is finalized. See the
* PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for details.
* PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("transfer_data")
TransferData transferData;

/**
* A string that identifies the resulting payment as part of a group. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use
* case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("transfer_group")
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/com/stripe/model/Subscription.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,13 @@ public class Subscription extends ApiResource implements HasId, MetadataStore<Su
@SerializedName("start")
Long start;

/**
* Date when the subscription was first created. The date might differ from the `created` date due
* to backdating.
*/
@SerializedName("start_date")
Long startDate;

/**
* Possible values are `incomplete`, `incomplete_expired`, `trialing`, `active`, `past_due`,
* `canceled`, or `unpaid`.
Expand Down
14 changes: 8 additions & 6 deletions src/main/java/com/stripe/param/InvoiceCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,10 @@ public class InvoiceCreateParams extends ApiRequestParams {

/**
* The ID of the subscription to invoice, if any. If not set, the created invoice will include all
* pending invoice items for the customer. If set, the created invoice will exclude pending
* invoice items that pertain to other subscriptions. The subscription's billing cycle and regular
* subscription events won't be affected.
* pending invoice items for the customer. If set, the created invoice will only include pending
* invoice items for that subscription and pending invoice items not associated with any
* subscription. The subscription's billing cycle and regular subscription events won't be
* affected.
*/
@SerializedName("subscription")
String subscription;
Expand Down Expand Up @@ -459,9 +460,10 @@ public Builder setStatementDescriptor(String statementDescriptor) {

/**
* The ID of the subscription to invoice, if any. If not set, the created invoice will include
* all pending invoice items for the customer. If set, the created invoice will exclude pending
* invoice items that pertain to other subscriptions. The subscription's billing cycle and
* regular subscription events won't be affected.
* all pending invoice items for the customer. If set, the created invoice will only include
* pending invoice items for that subscription and pending invoice items not associated with any
* subscription. The subscription's billing cycle and regular subscription events won't be
* affected.
*/
public Builder setSubscription(String subscription) {
this.subscription = subscription;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/stripe/param/PaymentIntentCancelParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ public enum CancellationReason implements ApiRequestParams.EnumParam {
@SerializedName("duplicate")
DUPLICATE("duplicate"),

@SerializedName("failed_invoice")
FAILED_INVOICE("failed_invoice"),

@SerializedName("fraudulent")
FRAUDULENT("fraudulent"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ public class PaymentIntentCaptureParams extends ApiRequestParams {

/**
* The amount of the application fee (if any) that will be applied to the payment and transferred
* to the application owner's Stripe account. For more information, see the PaymentIntents
* [Connect usage guide](/docs/payments/payment-intents/usage#connect).
* to the application owner's Stripe account. For more information, see the PaymentIntents [use
* case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("application_fee_amount")
Long applicationFeeAmount;
Expand Down Expand Up @@ -82,7 +83,8 @@ public Builder setAmountToCapture(Long amountToCapture) {
/**
* The amount of the application fee (if any) that will be applied to the payment and
* transferred to the application owner's Stripe account. For more information, see the
* PaymentIntents [Connect usage guide](/docs/payments/payment-intents/usage#connect).
* PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setApplicationFeeAmount(Long applicationFeeAmount) {
this.applicationFeeAmount = applicationFeeAmount;
Expand Down
30 changes: 18 additions & 12 deletions src/main/java/com/stripe/param/PaymentIntentCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public class PaymentIntentCreateParams extends ApiRequestParams {

/**
* The amount of the application fee (if any) that will be applied to the payment and transferred
* to the application owner's Stripe account. For more information, see the PaymentIntents
* [Connect usage guide](/docs/payments/payment-intents/usage#connect).
* to the application owner's Stripe account. For more information, see the PaymentIntents [use
* case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("application_fee_amount")
Long applicationFeeAmount;
Expand Down Expand Up @@ -95,7 +96,8 @@ public class PaymentIntentCreateParams extends ApiRequestParams {

/**
* The Stripe account ID for which these funds are intended. For details, see the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("on_behalf_of")
String onBehalfOf;
Expand Down Expand Up @@ -152,15 +154,16 @@ public class PaymentIntentCreateParams extends ApiRequestParams {

/**
* The parameters used to automatically create a Transfer when the payment succeeds. For more
* information, see the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* information, see the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("transfer_data")
TransferData transferData;

/**
* A string that identifies the resulting payment as part of a group. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* A string that identifies the resulting payment as part of a group. See the PaymentIntents [use
* case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("transfer_group")
Expand Down Expand Up @@ -304,7 +307,8 @@ public Builder setAmount(Long amount) {
/**
* The amount of the application fee (if any) that will be applied to the payment and
* transferred to the application owner's Stripe account. For more information, see the
* PaymentIntents [Connect usage guide](/docs/payments/payment-intents/usage#connect).
* PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setApplicationFeeAmount(Long applicationFeeAmount) {
this.applicationFeeAmount = applicationFeeAmount;
Expand Down Expand Up @@ -447,7 +451,8 @@ public Builder putAllMetadata(Map<String, String> map) {

/**
* The Stripe account ID for which these funds are intended. For details, see the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setOnBehalfOf(String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
Expand Down Expand Up @@ -540,8 +545,8 @@ public Builder setStatementDescriptor(String statementDescriptor) {

/**
* The parameters used to automatically create a Transfer when the payment succeeds. For more
* information, see the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* information, see the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setTransferData(TransferData transferData) {
this.transferData = transferData;
Expand All @@ -550,7 +555,8 @@ public Builder setTransferData(TransferData transferData) {

/**
* A string that identifies the resulting payment as part of a group. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
public Builder setTransferGroup(String transferGroup) {
Expand Down
19 changes: 12 additions & 7 deletions src/main/java/com/stripe/param/PaymentIntentUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public class PaymentIntentUpdateParams extends ApiRequestParams {

/**
* The amount of the application fee (if any) for the resulting payment. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("application_fee_amount")
Expand Down Expand Up @@ -99,8 +100,9 @@ public class PaymentIntentUpdateParams extends ApiRequestParams {

/**
* A string that identifies the resulting payment as part of a group. `transfer_group` may only be
* provided if it has not been set. See the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for details.
* provided if it has not been set. See the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
@SerializedName("transfer_group")
String transferGroup;
Expand Down Expand Up @@ -206,7 +208,8 @@ public Builder setAmount(Long amount) {

/**
* The amount of the application fee (if any) for the resulting payment. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
public Builder setApplicationFeeAmount(EmptyParam applicationFeeAmount) {
Expand All @@ -216,7 +219,8 @@ public Builder setApplicationFeeAmount(EmptyParam applicationFeeAmount) {

/**
* The amount of the application fee (if any) for the resulting payment. See the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
public Builder setApplicationFeeAmount(Long applicationFeeAmount) {
Expand Down Expand Up @@ -404,8 +408,9 @@ public Builder setStatementDescriptor(String statementDescriptor) {

/**
* A string that identifies the resulting payment as part of a group. `transfer_group` may only
* be provided if it has not been set. See the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect) for details.
* be provided if it has not been set. See the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts) for
* details.
*/
public Builder setTransferGroup(String transferGroup) {
this.transferGroup = transferGroup;
Expand Down
23 changes: 12 additions & 11 deletions src/main/java/com/stripe/param/checkout/SessionCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,8 @@ public static class PaymentIntentData {
* The amount of the application fee (if any) that will be applied to the payment and
* transferred to the application owner's Stripe account. To use an application fee, the request
* must be made on behalf of another account, using the `Stripe-Account` header or an OAuth key.
* For more information, see the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* For more information, see the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("application_fee_amount")
Long applicationFeeAmount;
Expand Down Expand Up @@ -577,7 +577,8 @@ public static class PaymentIntentData {

/**
* The Stripe account ID for which these funds are intended. For details, see the PaymentIntents
* [Connect usage guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("on_behalf_of")
String onBehalfOf;
Expand All @@ -599,8 +600,8 @@ public static class PaymentIntentData {

/**
* The parameters used to automatically create a Transfer when the payment succeeds. For more
* information, see the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* information, see the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
@SerializedName("transfer_data")
TransferData transferData;
Expand Down Expand Up @@ -672,8 +673,8 @@ public PaymentIntentData build() {
* The amount of the application fee (if any) that will be applied to the payment and
* transferred to the application owner's Stripe account. To use an application fee, the
* request must be made on behalf of another account, using the `Stripe-Account` header or an
* OAuth key. For more information, see the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* OAuth key. For more information, see the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setApplicationFeeAmount(Long applicationFeeAmount) {
this.applicationFeeAmount = applicationFeeAmount;
Expand Down Expand Up @@ -746,8 +747,8 @@ public Builder putAllMetadata(Map<String, String> map) {

/**
* The Stripe account ID for which these funds are intended. For details, see the
* PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setOnBehalfOf(String onBehalfOf) {
this.onBehalfOf = onBehalfOf;
Expand Down Expand Up @@ -777,8 +778,8 @@ public Builder setStatementDescriptor(String statementDescriptor) {

/**
* The parameters used to automatically create a Transfer when the payment succeeds. For more
* information, see the PaymentIntents [Connect usage
* guide](https://stripe.com/docs/payments/payment-intents/usage#connect).
* information, see the PaymentIntents [use case for connected
* accounts](https://stripe.com/docs/payments/payment-intents/use-cases#connected-accounts).
*/
public Builder setTransferData(TransferData transferData) {
this.transferData = transferData;
Expand Down
10 changes: 2 additions & 8 deletions src/main/java/com/stripe/param/issuing/CardCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ public class CardCreateParams extends ApiRequestParams {
@SerializedName("replacement_reason")
ReplacementReason replacementReason;

/**
* The address where the card will be shipped. This will default to the cardholder's billing
* address for physical cards.
*/
/** The address where the card will be shipped. */
@SerializedName("shipping")
Shipping shipping;

Expand Down Expand Up @@ -256,10 +253,7 @@ public Builder setReplacementReason(ReplacementReason replacementReason) {
return this;
}

/**
* The address where the card will be shipped. This will default to the cardholder's billing
* address for physical cards.
*/
/** The address where the card will be shipped. */
public Builder setShipping(Shipping shipping) {
this.shipping = shipping;
return this;
Expand Down

0 comments on commit 9eaf316

Please sign in to comment.