Skip to content

Commit

Permalink
Move child resource method params next to method declarations (#1626)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Nov 23, 2022
1 parent 38fe896 commit 219796d
Show file tree
Hide file tree
Showing 25 changed files with 1,259 additions and 1,361 deletions.
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

0 comments on commit 219796d

Please sign in to comment.