Skip to content

Commit eb9a4d8

Browse files
Rough draft of using shared subresources
1 parent edb8415 commit eb9a4d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+10200
-212
lines changed

types/v2019-11-05/Accounts.d.ts

Lines changed: 1749 additions & 27 deletions
Large diffs are not rendered by default.

types/v2019-11-05/ApplePayDomains.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ declare namespace Stripe {
121121
list(
122122
params?: ApplePayDomainListParams,
123123
options?: HeaderOptions
124-
): Promise<ApplePayDomainList>;
124+
): Promise<ApiList<ApplePayDomain>>;
125125

126126
/**
127127
* Retrieve an apple pay domain.

types/v2019-11-05/ApplicationFees.d.ts

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ declare namespace Stripe {
7171
/**
7272
* A list of refunds that have been applied to the fee.
7373
*/
74-
refunds?: FeeRefundList;
74+
refunds?: ApiList<FeeRefund>;
7575
}
7676

7777
/**
@@ -130,7 +130,7 @@ declare namespace Stripe {
130130
*/
131131
charge?: string;
132132

133-
created?: range_query_specs | number;
133+
created?: number | ApplicationFeeListParams.Created;
134134

135135
/**
136136
* 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.
@@ -153,6 +153,30 @@ declare namespace Stripe {
153153
starting_after?: string;
154154
}
155155

156+
namespace ApplicationFeeListParams {
157+
interface Created {
158+
/**
159+
* Minimum value to filter by (exclusive)
160+
*/
161+
gt?: number;
162+
163+
/**
164+
* Minimum value to filter by (inclusive)
165+
*/
166+
gte?: number;
167+
168+
/**
169+
* Maximum value to filter by (exclusive)
170+
*/
171+
lt?: number;
172+
173+
/**
174+
* Maximum value to filter by (inclusive)
175+
*/
176+
lte?: number;
177+
}
178+
}
179+
156180
/**
157181
* Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
158182
*/
@@ -289,7 +313,7 @@ declare namespace Stripe {
289313
id: string,
290314
params?: ApplicationFeeListRefundsParams,
291315
options?: HeaderOptions
292-
): Promise<FeeRefundList>;
316+
): Promise<ApiList<FeeRefund>>;
293317

294318
/**
295319
* 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.

types/v2019-11-05/BalanceTransactions.d.ts

Lines changed: 49 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ declare namespace Stripe {
127127
* Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
128128
*/
129129
interface BalanceTransactionListParams {
130-
available_on?: range_query_specs | number;
130+
available_on?: number | BalanceTransactionListParams.AvailableOn;
131131

132-
created?: range_query_specs | number;
132+
created?: number | BalanceTransactionListParams.Created;
133133

134134
currency?: string;
135135

@@ -169,6 +169,52 @@ declare namespace Stripe {
169169
type?: string;
170170
}
171171

172+
namespace BalanceTransactionListParams {
173+
interface AvailableOn {
174+
/**
175+
* Minimum value to filter by (exclusive)
176+
*/
177+
gt?: number;
178+
179+
/**
180+
* Minimum value to filter by (inclusive)
181+
*/
182+
gte?: number;
183+
184+
/**
185+
* Maximum value to filter by (exclusive)
186+
*/
187+
lt?: number;
188+
189+
/**
190+
* Maximum value to filter by (inclusive)
191+
*/
192+
lte?: number;
193+
}
194+
195+
interface Created {
196+
/**
197+
* Minimum value to filter by (exclusive)
198+
*/
199+
gt?: number;
200+
201+
/**
202+
* Minimum value to filter by (inclusive)
203+
*/
204+
gte?: number;
205+
206+
/**
207+
* Maximum value to filter by (exclusive)
208+
*/
209+
lt?: number;
210+
211+
/**
212+
* Maximum value to filter by (inclusive)
213+
*/
214+
lte?: number;
215+
}
216+
}
217+
172218
/**
173219
* Retrieves the balance transaction with the given ID.
174220
*
@@ -190,7 +236,7 @@ declare namespace Stripe {
190236
list(
191237
params?: BalanceTransactionListParams,
192238
options?: HeaderOptions
193-
): Promise<BalanceTransactionsList>;
239+
): Promise<ApiList<BalanceTransaction>>;
194240

195241
/**
196242
* Retrieves the balance transaction with the given ID.

types/v2019-11-05/BitcoinReceivers.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ declare namespace Stripe {
9797
/**
9898
* A list with one entry for each time that the customer sent bitcoin to the receiver. Hidden when viewing the receiver with a publishable key.
9999
*/
100-
transactions: BitcoinTransactionList;
100+
transactions: ApiList<BitcoinTransaction>;
101101

102102
/**
103103
* This receiver contains uncaptured funds that can be used for a payment or refunded.
@@ -269,6 +269,6 @@ declare namespace Stripe {
269269
id: string,
270270
params?: BitcoinReceiverListTransactionsParams,
271271
options?: HeaderOptions
272-
): Promise<BitcoinTransactionList>;
272+
): Promise<ApiList<BitcoinTransaction>>;
273273
}
274274
}

0 commit comments

Comments
 (0)