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

Move child resource method params next to method declarations #1626

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
739 changes: 739 additions & 0 deletions types/2022-11-15/AccountsResource.d.ts

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions types/2022-11-15/ApplicationFeesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,49 @@ declare module 'stripe' {
expand?: Array<string>;
}

interface FeeRefundCreateParams {
/**
* A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee.
*/
amount?: number;

/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: Stripe.MetadataParam;
}

interface FeeRefundRetrieveParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}

interface FeeRefundUpdateParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;

/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
}

interface FeeRefundListParams extends PaginationParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}

class ApplicationFeesResource {
/**
* Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
Expand Down
5 changes: 0 additions & 5 deletions types/2022-11-15/BankAccountsResource.d.ts

This file was deleted.

31 changes: 0 additions & 31 deletions types/2022-11-15/CapabilitiesResource.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions types/2022-11-15/CardsResource.d.ts

This file was deleted.

37 changes: 0 additions & 37 deletions types/2022-11-15/CashBalancesResource.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions types/2022-11-15/CreditNoteLineItemsResource.d.ts

This file was deleted.

7 changes: 7 additions & 0 deletions types/2022-11-15/CreditNotesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,13 @@ declare module 'stripe' {
expand?: Array<string>;
}

interface CreditNoteLineItemListParams extends PaginationParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}

class CreditNotesResource {
/**
* Issue a credit note to adjust the amount of a finalized invoice. For a status=open invoice, a credit note reduces
Expand Down
63 changes: 0 additions & 63 deletions types/2022-11-15/CustomerBalanceTransactionsResource.d.ts

This file was deleted.

20 changes: 0 additions & 20 deletions types/2022-11-15/CustomerCashBalanceTransactionsResource.d.ts

This file was deleted.

Loading