Skip to content

Commit

Permalink
Use all named subresources from openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrayalex-stripe committed Nov 27, 2019
1 parent 1c3ad27 commit edb8415
Show file tree
Hide file tree
Showing 193 changed files with 4,522 additions and 17,569 deletions.
2,463 changes: 40 additions & 2,423 deletions types/v2019-11-05/Accounts.d.ts

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions types/v2019-11-05/AchCreditTransferData.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
declare namespace Stripe {
/**
* The AchCreditTransferData object.
*/
interface AchCreditTransferData {
/**
* Customer data associated with the transfer.
*/
customer_data?: string;

/**
* Bank account fingerprint associated with the transfer.
*/
fingerprint?: string;

/**
* Last 4 digits of the account number associated with the transfer.
*/
last4?: string;

/**
* Routing number associated with the transfer.
*/
routing_number?: string;
}
}
22 changes: 22 additions & 0 deletions types/v2019-11-05/AchCreditTransfers.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
declare namespace Stripe {
/**
* The AchCreditTransfer object.
*/
interface AchCreditTransfer {
account_number?: string | null;

bank_name?: string | null;

fingerprint?: string | null;

refund_account_holder_name?: string | null;

refund_account_holder_type?: string | null;

refund_routing_number?: string | null;

routing_number?: string | null;

swift_code?: string | null;
}
}
18 changes: 18 additions & 0 deletions types/v2019-11-05/AchDebits.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare namespace Stripe {
/**
* The AchDebit object.
*/
interface AchDebit {
bank_name?: string | null;

country?: string | null;

fingerprint?: string | null;

last4?: string | null;

routing_number?: string | null;

type?: string | null;
}
}
26 changes: 26 additions & 0 deletions types/v2019-11-05/AcssDebits.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
declare namespace Stripe {
/**
* The AcssDebit object.
*/
interface AcssDebit {
bank_address_city?: string | null;

bank_address_line_1?: string | null;

bank_address_line_2?: string | null;

bank_address_postal_code?: string | null;

bank_name?: string | null;

category?: string | null;

country?: string | null;

fingerprint?: string | null;

last4?: string | null;

routing_number?: string | null;
}
}
12 changes: 12 additions & 0 deletions types/v2019-11-05/Alipays.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare namespace Stripe {
/**
* The Alipay object.
*/
interface Alipay {
data_string?: string | null;

native_url?: string | null;

statement_descriptor?: string | null;
}
}
16 changes: 16 additions & 0 deletions types/v2019-11-05/AlternateStatementDescriptors.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare namespace Stripe {
/**
* The AlternateStatementDescriptors object.
*/
interface AlternateStatementDescriptors {
/**
* The Kana variation of the descriptor.
*/
kana?: string;

/**
* The Kanji variation of the descriptor.
*/
kanji?: string;
}
}
6 changes: 6 additions & 0 deletions types/v2019-11-05/AmexExpressCheckouts.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare namespace Stripe {
/**
* The AmexExpressCheckout object.
*/
interface AmexExpressCheckout {}
}
2 changes: 1 addition & 1 deletion types/v2019-11-05/ApplePayDomains.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ declare namespace Stripe {
list(
params?: ApplePayDomainListParams,
options?: HeaderOptions
): Promise<ApiList<ApplePayDomain>>;
): Promise<ApplePayDomainList>;

/**
* Retrieve an apple pay domain.
Expand Down
6 changes: 6 additions & 0 deletions types/v2019-11-05/ApplePays.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare namespace Stripe {
/**
* The ApplePay object.
*/
interface ApplePay {}
}
30 changes: 3 additions & 27 deletions types/v2019-11-05/ApplicationFees.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ declare namespace Stripe {
/**
* A list of refunds that have been applied to the fee.
*/
refunds?: ApiList<FeeRefund>;
refunds?: FeeRefundList;
}

/**
Expand Down Expand Up @@ -130,7 +130,7 @@ declare namespace Stripe {
*/
charge?: string;

created?: number | ApplicationFeeListParams.Created;
created?: range_query_specs | number;

/**
* A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
Expand All @@ -153,30 +153,6 @@ declare namespace Stripe {
starting_after?: string;
}

namespace ApplicationFeeListParams {
interface Created {
/**
* Minimum value to filter by (exclusive)
*/
gt?: number;

/**
* Minimum value to filter by (inclusive)
*/
gte?: number;

/**
* Maximum value to filter by (exclusive)
*/
lt?: number;

/**
* Maximum value to filter by (inclusive)
*/
lte?: number;
}
}

/**
* Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
*/
Expand Down Expand Up @@ -313,7 +289,7 @@ declare namespace Stripe {
id: string,
params?: ApplicationFeeListRefundsParams,
options?: HeaderOptions
): Promise<ApiList<FeeRefund>>;
): Promise<FeeRefundList>;

/**
* By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.
Expand Down
12 changes: 12 additions & 0 deletions types/v2019-11-05/AuBecsDebits.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
declare namespace Stripe {
/**
* The AuBecsDebit object.
*/
interface AuBecsDebit {
bsb_number?: string | null;

fingerprint?: string | null;

last4?: string | null;
}
}
Loading

0 comments on commit edb8415

Please sign in to comment.