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

API Updates #1442

Merged
merged 2 commits into from
Jun 8, 2022
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v136
v152
26 changes: 26 additions & 0 deletions types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ declare module 'stripe' {
* Initiating payment method details for the object.
*/
initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;

/**
* Details about the network used for the ReceivedCredit.
*/
network_details?: ReceivedCreditCreateParams.NetworkDetails;
}

namespace ReceivedCreditCreateParams {
Expand Down Expand Up @@ -74,6 +79,27 @@ declare module 'stripe' {
}

type Network = 'ach' | 'us_domestic_wire';

interface NetworkDetails {
/**
* Optional fields for `ach`.
*/
ach?: NetworkDetails.Ach;

/**
* The type of flow that originated the ReceivedCredit.
*/
type: 'ach';
}

namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda?: string;
}
}
}
}

Expand Down
26 changes: 26 additions & 0 deletions types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ declare module 'stripe' {
* Initiating payment method details for the object.
*/
initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;

/**
* Details about the network used for the ReceivedDebit.
*/
network_details?: ReceivedDebitCreateParams.NetworkDetails;
}

namespace ReceivedDebitCreateParams {
Expand Down Expand Up @@ -72,6 +77,27 @@ declare module 'stripe' {
routing_number?: string;
}
}

interface NetworkDetails {
/**
* Optional fields for `ach`.
*/
ach?: NetworkDetails.Ach;

/**
* The type of flow that originated the ReceivedDebit.
*/
type: 'ach';
}

namespace NetworkDetails {
interface Ach {
/**
* Addenda record data associated with this ReceivedDebit.
*/
addenda?: string;
}
}
}
}

Expand Down
52 changes: 52 additions & 0 deletions types/2020-08-27/Treasury/OutboundTransfers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ declare module 'stripe' {
*/
metadata: Stripe.Metadata;

/**
* Details about the network used for the OutboundTransfer.
*/
network_details?: OutboundTransfer.NetworkDetails | null;

/**
* Details about a returned OutboundTransfer. Only set when the status is `returned`.
*/
Expand Down Expand Up @@ -170,6 +175,27 @@ declare module 'stripe' {
}
}

interface NetworkDetails {
/**
* Details about an ACH transaction.
*/
ach?: NetworkDetails.Ach | null;

/**
* The type of flow that originated the OutboundTransfer.
*/
type: 'ach';
}

namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda: string | null;
}
}

interface ReturnedDetails {
/**
* Reason for the return.
Expand Down Expand Up @@ -267,6 +293,11 @@ declare module 'stripe' {
*/
metadata?: Stripe.MetadataParam;

/**
* Details about the network used for the OutboundTransfer.
*/
network_details?: OutboundTransferCreateParams.NetworkDetails;

/**
* Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `wire` transfers. The default value is `transfer`.
*/
Expand Down Expand Up @@ -295,6 +326,27 @@ declare module 'stripe' {
type Network = 'ach' | 'us_domestic_wire';
}
}

interface NetworkDetails {
/**
* Optional fields for `ach`.
*/
ach?: NetworkDetails.Ach;

/**
* The type of flow that originated the OutboundTransfer.
*/
type: 'ach';
}

namespace NetworkDetails {
interface Ach {
/**
* Addenda record data associated with this OutboundTransfer.
*/
addenda?: string;
}
}
}

interface OutboundTransferRetrieveParams {
Expand Down
26 changes: 26 additions & 0 deletions types/2020-08-27/Treasury/ReceivedCredits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ declare module 'stripe' {
*/
network: ReceivedCredit.Network;

/**
* Details specific to the money movement rails.
*/
network_details?: ReceivedCredit.NetworkDetails | null;

/**
* Status of the ReceivedCredit. ReceivedCredits are created either `succeeded` (approved) or `failed` (declined). If a ReceivedCredit is declined, the failure reason can be found in the `failure_code` field.
*/
Expand Down Expand Up @@ -225,6 +230,27 @@ declare module 'stripe' {

type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire';

interface NetworkDetails {
/**
* Details about an ACH transaction.
*/
ach?: NetworkDetails.Ach | null;

/**
* The type of flow that originated the ReceivedCredit.
*/
type: 'ach';
}

namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda: string | null;
}
}

type Status = 'failed' | 'succeeded';
}

Expand Down
31 changes: 31 additions & 0 deletions types/2020-08-27/Treasury/ReceivedDebits.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ declare module 'stripe' {
*/
network: ReceivedDebit.Network;

/**
* Details specific to the money movement rails.
*/
network_details?: ReceivedDebit.NetworkDetails | null;

/**
* Status of the ReceivedDebit. ReceivedDebits are created with a status of either `succeeded` (approved) or `failed` (declined). The failure reason can be found under the `failure_code`.
*/
Expand Down Expand Up @@ -169,10 +174,36 @@ declare module 'stripe' {
* Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://stripe.com/docs/api#issuing_disputes) object.
*/
issuing_transaction: string | null;

/**
* The ReceivedCredit that Capital withheld from
*/
received_credit_capital_withholding?: string | null;
}

type Network = 'ach' | 'card' | 'stripe';

interface NetworkDetails {
/**
* Details about an ACH transaction.
*/
ach?: NetworkDetails.Ach | null;

/**
* The type of flow that originated the ReceivedDebit.
*/
type: 'ach';
}

namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda: string | null;
}
}

type Status = 'failed' | 'succeeded';
}

Expand Down