Skip to content

Commit

Permalink
Update generated code (#1676)
Browse files Browse the repository at this point in the history
Update generated code for v387

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Jun 15, 2023
1 parent c0a0404 commit e0e8b9f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v384
v387
4 changes: 2 additions & 2 deletions billingportal_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type BillingPortalSessionParams struct {
FlowData *BillingPortalSessionFlowDataParams `form:"flow_data"`
// The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer's `preferred_locales` or browser's locale is used.
Locale *string `form:"locale"`
// The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/charges-transfers#on-behalf-of). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
// The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#on-behalf-of). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
OnBehalfOf *string `form:"on_behalf_of"`
// The default URL to redirect customers to when they click on the portal's link to return to your website.
ReturnURL *string `form:"return_url"`
Expand Down Expand Up @@ -225,7 +225,7 @@ type BillingPortalSession struct {
Locale string `json:"locale"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/charges-transfers#on-behalf-of). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
// The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#on-behalf-of). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
OnBehalfOf string `json:"on_behalf_of"`
// The URL to redirect customers to when they click on the portal's link to return to your website.
ReturnURL string `json:"return_url"`
Expand Down
10 changes: 5 additions & 5 deletions charge.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ type ChargeParams struct {
// A set of key-value pairs you can attach to a charge giving information about its riskiness. If you believe a charge is fraudulent, include a `user_report` key with a value of `fraudulent`. If you believe a charge is safe, include a `user_report` key with a value of `safe`. Stripe will use the information you send to improve our fraud detection algorithms.
FraudDetails *ChargeFraudDetailsParams `form:"fraud_details"`
Level3 *ChargeLevel3Params `form:"level3"`
// The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/charges-transfers#on-behalf-of).
// The Stripe account ID for which these funds are intended. Automatically set if you use the `destination` parameter. For details, see [Creating Separate Charges and Transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#on-behalf-of).
OnBehalfOf *string `form:"on_behalf_of"`
// Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
RadarOptions *ChargeRadarOptionsParams `form:"radar_options"`
Expand All @@ -340,7 +340,7 @@ type ChargeParams struct {
StatementDescriptorSuffix *string `form:"statement_descriptor_suffix"`
// An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
TransferData *ChargeTransferDataParams `form:"transfer_data"`
// A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-options) for details.
// A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
TransferGroup *string `form:"transfer_group"`
}

Expand Down Expand Up @@ -386,7 +386,7 @@ type ChargeCaptureParams struct {
StatementDescriptorSuffix *string `form:"statement_descriptor_suffix"`
// An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
TransferData *ChargeCaptureTransferDataParams `form:"transfer_data"`
// A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-options) for details.
// A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
TransferGroup *string `form:"transfer_group"`
}
type ChargeBillingDetails struct {
Expand Down Expand Up @@ -1137,7 +1137,7 @@ type Charge struct {
Metadata map[string]string `json:"metadata"`
// String representing the object's type. Objects of the same type share the same value.
Object string `json:"object"`
// The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers) for details.
// The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
OnBehalfOf *Account `json:"on_behalf_of"`
// Details about whether the payment was accepted, and why. See [understanding declines](https://stripe.com/docs/declines) for details.
Outcome *ChargeOutcome `json:"outcome"`
Expand Down Expand Up @@ -1179,7 +1179,7 @@ type Charge struct {
Transfer *Transfer `json:"transfer"`
// An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
TransferData *ChargeTransferData `json:"transfer_data"`
// A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-options) for details.
// A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
TransferGroup string `json:"transfer_group"`
}

Expand Down
10 changes: 5 additions & 5 deletions transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ type TransferParams struct {
Currency *string `form:"currency"`
// An arbitrary string attached to the object. Often useful for displaying to users.
Description *string `form:"description"`
// The ID of a connected Stripe account. [See the Connect documentation](https://stripe.com/docs/connect/charges-transfers) for details.
// The ID of a connected Stripe account. [See the Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers) for details.
Destination *string `form:"destination"`
// You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-availability) for details.
// You can use this parameter to transfer funds from a charge before they are added to your available balance. A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. [See the Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-availability) for details.
SourceTransaction *string `form:"source_transaction"`
// The source balance to use for this transfer. One of `bank_account`, `card`, or `fpx`. For most users, this will default to `card`.
SourceType *string `form:"source_type"`
// A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-options) for details.
// A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
TransferGroup *string `form:"transfer_group"`
}

Expand All @@ -57,7 +57,7 @@ type TransferListParams struct {
// information, read about the
// [transfer/payout split](https://stripe.com/docs/transfer-payout-split).
//
// Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/charges-transfers)
// Related guide: [Creating separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers)
type Transfer struct {
APIResource
// Amount in %s to be transferred.
Expand Down Expand Up @@ -92,7 +92,7 @@ type Transfer struct {
SourceTransaction *Charge `json:"source_transaction"`
// The source balance this transfer came from. One of `card`, `fpx`, or `bank_account`.
SourceType TransferSourceType `json:"source_type"`
// A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/charges-transfers#transfer-options) for details.
// A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details.
TransferGroup string `json:"transfer_group"`
}

Expand Down
4 changes: 2 additions & 2 deletions transferreversal.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ type TransferReversalListParams struct {
// Reversing a transfer that was made for a [destination
// charge](https://stripe.com/docs/connect/destination-charges) is allowed only up to the amount of
// the charge. It is possible to reverse a
// [transfer_group](https://stripe.com/docs/connect/charges-transfers#transfer-options)
// [transfer_group](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options)
// transfer only if the destination account has enough balance to cover the
// reversal.
//
// Related guide: [Reversing transfers](https://stripe.com/docs/connect/charges-transfers#reversing-transfers)
// Related guide: [Reversing transfers](https://stripe.com/docs/connect/separate-charges-and-transfers#reversing-transfers)
type TransferReversal struct {
APIResource
// Amount, in %s.
Expand Down

0 comments on commit e0e8b9f

Please sign in to comment.