Skip to content

Commit

Permalink
Rough draft of using shared subresources
Browse files Browse the repository at this point in the history
  • Loading branch information
rattrayalex-stripe committed Nov 27, 2019
1 parent edb8415 commit eb9a4d8
Show file tree
Hide file tree
Showing 48 changed files with 10,200 additions and 212 deletions.
1,776 changes: 1,749 additions & 27 deletions types/v2019-11-05/Accounts.d.ts

Large diffs are not rendered by default.

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<ApplePayDomainList>;
): Promise<ApiList<ApplePayDomain>>;

/**
* Retrieve an apple pay domain.
Expand Down
30 changes: 27 additions & 3 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?: FeeRefundList;
refunds?: ApiList<FeeRefund>;
}

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

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

/**
* 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,6 +153,30 @@ 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 @@ -289,7 +313,7 @@ declare namespace Stripe {
id: string,
params?: ApplicationFeeListRefundsParams,
options?: HeaderOptions
): Promise<FeeRefundList>;
): Promise<ApiList<FeeRefund>>;

/**
* 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
52 changes: 49 additions & 3 deletions types/v2019-11-05/BalanceTransactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ declare namespace Stripe {
* Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history.
*/
interface BalanceTransactionListParams {
available_on?: range_query_specs | number;
available_on?: number | BalanceTransactionListParams.AvailableOn;

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

currency?: string;

Expand Down Expand Up @@ -169,6 +169,52 @@ declare namespace Stripe {
type?: string;
}

namespace BalanceTransactionListParams {
interface AvailableOn {
/**
* 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;
}

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 balance transaction with the given ID.
*
Expand All @@ -190,7 +236,7 @@ declare namespace Stripe {
list(
params?: BalanceTransactionListParams,
options?: HeaderOptions
): Promise<BalanceTransactionsList>;
): Promise<ApiList<BalanceTransaction>>;

/**
* Retrieves the balance transaction with the given ID.
Expand Down
4 changes: 2 additions & 2 deletions types/v2019-11-05/BitcoinReceivers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ declare namespace Stripe {
/**
* 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.
*/
transactions: BitcoinTransactionList;
transactions: ApiList<BitcoinTransaction>;

/**
* This receiver contains uncaptured funds that can be used for a payment or refunded.
Expand Down Expand Up @@ -269,6 +269,6 @@ declare namespace Stripe {
id: string,
params?: BitcoinReceiverListTransactionsParams,
options?: HeaderOptions
): Promise<BitcoinTransactionList>;
): Promise<ApiList<BitcoinTransaction>>;
}
}
Loading

0 comments on commit eb9a4d8

Please sign in to comment.