Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Codegen for openapi v184
Browse files Browse the repository at this point in the history
dcr-stripe committed Aug 23, 2022
1 parent 0b76d06 commit 8d88e53
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v183
v184
4 changes: 2 additions & 2 deletions test/resources/generated_examples_test.spec.js
Original file line number Diff line number Diff line change
@@ -150,11 +150,11 @@ describe('Customer', function() {
});

it('fundCashBalance method', async function() {
const customerBalanceTransaction = await stripe.testHelpers.customers.fundCashBalance(
const customerCashBalanceTransaction = await stripe.testHelpers.customers.fundCashBalance(
'cus_123',
{amount: 30, currency: 'eur'}
);
expect(customerBalanceTransaction).not.to.be.null;
expect(customerCashBalanceTransaction).not.to.be.null;
});

it('list method', async function() {
5 changes: 4 additions & 1 deletion types/2022-08-01/Terminal/Readers.d.ts
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ declare module 'stripe' {
/**
* The most recent action performed by the reader.
*/
action?: Reader.Action | null;
action: Reader.Action | null;

deleted?: void;

@@ -133,6 +133,9 @@ declare module 'stripe' {
}

interface ProcessSetupIntent {
/**
* ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
*/
generated_card?: string;

/**
2 changes: 1 addition & 1 deletion types/2022-08-01/TestHelpers/Customers.d.ts
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ declare module 'stripe' {
id: string,
params: CustomerFundCashBalanceParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.CustomerBalanceTransaction>>;
): Promise<Stripe.Response<Stripe.CustomerCashBalanceTransaction>>;
}
}
}
12 changes: 6 additions & 6 deletions types/2022-08-01/Treasury/OutboundTransfers.d.ts
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ declare module 'stripe' {
/**
* The PaymentMethod used as the payment instrument for an OutboundTransfer.
*/
destination_payment_method: string;
destination_payment_method: string | null;

destination_payment_method_details: OutboundTransfer.DestinationPaymentMethodDetails;

@@ -239,11 +239,6 @@ declare module 'stripe' {
*/
currency: string;

/**
* The PaymentMethod to use as the payment instrument for the OutboundTransfer.
*/
destination_payment_method: string;

/**
* The FinancialAccount to pull funds from.
*/
@@ -254,6 +249,11 @@ declare module 'stripe' {
*/
description?: string;

/**
* The PaymentMethod to use as the payment instrument for the OutboundTransfer.
*/
destination_payment_method?: string;

/**
* Hash describing payment method configuration details.
*/

0 comments on commit 8d88e53

Please sign in to comment.