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

Update generated code for beta #2023

Merged
merged 19 commits into from
Feb 22, 2024
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
59 changes: 58 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,62 @@
# Changelog

## 14.18.0 - 2024-02-22
* [#2022](https://github.com/stripe/stripe-node/pull/2022) Update generated code
* Add support for `client_reference_id` on `Identity.VerificationReportListParams`, `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession`
* Remove support for value `include_and_require` from enum `InvoiceCreateParams.pending_invoice_items_behavior`
* Remove support for value `service_tax` from enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
* Add support for `created` on `Treasury.OutboundPaymentListParams`
* [#2025](https://github.com/stripe/stripe-node/pull/2025) Standardize parameter interface names
- `CapabilityListParams` renamed to `AccountListCapabilitiesParams`
- `CapabilityRetrieveParams` renamed to `AccountRetrieveCapabilityParams`
- `CapabilityUpdateParams` renamed to `AccountUpdateCapabilityParams`
- `CashBalanceRetrieveParams` renamed to `CustomerRetrieveCashBalanceParams`
- `CashBalanceUpdateParams` renamed to `CustomerUpdateCashBalanceParams`
- `CreditNoteLineItemListParams` renamed to `CreditNoteListLineItemsParams`
- `CustomerBalanceTransactionCreateParams` renamed to `CustomerCreateBalanceTransactionParams`
- `CustomerBalanceTransactionListParams` renamed to `CustomerListBalanceTransactionsParams`
- `CustomerBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveBalanceTransactionParams`
- `CustomerBalanceTransactionUpdateParams` renamed to `CustomerUpdateBalanceTransactionParams`
- `CustomerCashBalanceTransactionListParams` renamed to `CustomerListCashBalanceTransactionsParams`
- `CustomerCashBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveCashBalanceTransactionParams`
- `CustomerSourceCreateParams` renamed to `CustomerCreateSourceParams`
- `CustomerSourceDeleteParams` renamed to `CustomerDeleteSourceParams`
- `CustomerSourceListParams` renamed to `CustomerListSourcesParams`
- `CustomerSourceRetrieveParams` renamed to `CustomerRetrieveSourceParams`
- `CustomerSourceUpdateParams` renamed to `CustomerUpdateSourceParams`
- `CustomerSourceVerifyParams` renamed to `CustomerVerifySourceParams`
- `ExternalAccountCreateParams` renamed to `AccountCreateExternalAccountParams`
- `ExternalAccountDeleteParams` renamed to `AccountDeleteExternalAccountParams`
- `ExternalAccountListParams` renamed to `AccountListExternalAccountsParams`
- `ExternalAccountRetrieveParams` renamed to `AccountRetrieveExternalAccountParams`
- `ExternalAccountUpdateParams` renamed to `AccountUpdateExternalAccountParams`
- `FeeRefundCreateParams` renamed to `ApplicationFeeCreateRefundParams`
- `FeeRefundListParams` renamed to `ApplicationFeeListRefundsParams`
- `FeeRefundRetrieveParams` renamed to `ApplicationFeeRetrieveRefundParams`
- `FeeRefundUpdateParams` renamed to `ApplicationFeeUpdateRefundParams`
- `InvoiceLineItemListParams` renamed to `InvoiceListLineItemsParams`
- `InvoiceLineItemUpdateParams` renamed to `InvoiceUpdateLineItemParams`
- `LoginLinkCreateParams` renamed to `AccountCreateLoginLinkParams`
- `PersonCreateParams` renamed to `AccountCreatePersonParams`
- `PersonDeleteParams` renamed to `AccountDeletePersonParams`
- `PersonListParams` renamed to `AccountListPersonsParams`
- `PersonRetrieveParams` renamed to `AccountRetrievePersonParams`
- `PersonUpdateParams` renamed to `AccountUpdatePersonParams`
- `TaxIdCreateParams` renamed to `CustomerCreateTaxIdParams`
- `TaxIdDeleteParams` renamed to `CustomerDeleteTaxIdParams`
- `TaxIdListParams` renamed to `CustomerListTaxIdsParams`
- `TaxIdRetrieveParams` renamed to `CustomerRetrieveTaxIdParams`
- `TransferReversalCreateParams` renamed to `TransferCreateReversalParams`
- `TransferReversalListParams` renamed to `TransferListReversalsParams`
- `TransferReversalRetrieveParams` renamed to `TransferRetrieveReversalParams`
- `TransferReversalUpdateParams` renamed to `TransferUpdateReversalParams`
- `UsageRecordCreateParams` renamed to `SubscriptionItemCreateUsageRecordParams`
- `UsageRecordSummaryListParams` renamed to `SubscriptionItemListUsageRecordSummariesParams`

Old names will still work but are deprecated and will be removed in future versions.
* [#2021](https://github.com/stripe/stripe-node/pull/2021) Add TaxIds API
* Add support for `create`, `del`, `list`, and `retrieve` methods on resource `TaxId`

## 14.18.0-beta.1 - 2024-02-16
* [#2017](https://github.com/stripe/stripe-node/pull/2017) Update generated code for beta
* Add support for `payto` and `twint` payment method throughout the API
Expand All @@ -8,7 +65,7 @@
* Add support for `display_brand` on `ConfirmationToken.payment_method_preview.card`
* Add support for new value `no_voec` on enums `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, and `OrderUpdateParams.tax_details.tax_ids[].type`
* Add support for new value `no_voec` on enum `Order.tax_details.tax_ids[].type`
* Add support for `request_decremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card`
* Add support for `request_decremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card`

## 14.17.0 - 2024-02-15
* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v831
v840
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2023-10-16';
export const PreviewVersion = '2023-12-11.preview-v2';
export const PreviewVersion = '2024-02-15.preview-v2';
1 change: 1 addition & 0 deletions src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export {SubscriptionItems} from './resources/SubscriptionItems.js';
export {SubscriptionSchedules} from './resources/SubscriptionSchedules.js';
export {Subscriptions} from './resources/Subscriptions.js';
export {TaxCodes} from './resources/TaxCodes.js';
export {TaxIds} from './resources/TaxIds.js';
export {TaxRates} from './resources/TaxRates.js';
export {Tokens} from './resources/Tokens.js';
export {Topups} from './resources/Topups.js';
Expand Down
1 change: 1 addition & 0 deletions src/resources/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const Accounts = StripeResource.extend({
method: 'POST',
fullPath: '/v1/accounts/{account}/reject',
}),
retrieveCurrent: stripeMethod({method: 'GET', fullPath: '/v1/account'}),
retrieveCapability: stripeMethod({
method: 'GET',
fullPath: '/v1/accounts/{account}/capabilities/{capability}',
Expand Down
26 changes: 13 additions & 13 deletions src/resources/Customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export const Customers = StripeResource.extend({
methodType: 'list',
}),
del: stripeMethod({method: 'DELETE', fullPath: '/v1/customers/{customer}'}),
createFundingInstructions: stripeMethod({
method: 'POST',
fullPath: '/v1/customers/{customer}/funding_instructions',
}),
createBalanceTransaction: stripeMethod({
method: 'POST',
fullPath: '/v1/customers/{customer}/balance_transactions',
}),
createFundingInstructions: stripeMethod({
method: 'POST',
fullPath: '/v1/customers/{customer}/funding_instructions',
}),
createSource: stripeMethod({
method: 'POST',
fullPath: '/v1/customers/{customer}/sources',
Expand All @@ -40,11 +40,6 @@ export const Customers = StripeResource.extend({
method: 'DELETE',
fullPath: '/v1/customers/{customer}/tax_ids/{id}',
}),
listPaymentMethods: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/payment_methods',
methodType: 'list',
}),
listBalanceTransactions: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/balance_transactions',
Expand All @@ -60,6 +55,11 @@ export const Customers = StripeResource.extend({
fullPath: '/v1/customers/{customer}/entitlements',
methodType: 'list',
}),
listPaymentMethods: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/payment_methods',
methodType: 'list',
}),
listSources: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/sources',
Expand All @@ -70,10 +70,6 @@ export const Customers = StripeResource.extend({
fullPath: '/v1/customers/{customer}/tax_ids',
methodType: 'list',
}),
retrievePaymentMethod: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/payment_methods/{payment_method}',
}),
retrieveBalanceTransaction: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/balance_transactions/{transaction}',
Expand All @@ -91,6 +87,10 @@ export const Customers = StripeResource.extend({
method: 'GET',
fullPath: '/v1/customers/{customer}/entitlement_summary',
}),
retrievePaymentMethod: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/payment_methods/{payment_method}',
}),
retrieveSource: stripeMethod({
method: 'GET',
fullPath: '/v1/customers/{customer}/sources/{id}',
Expand Down
8 changes: 4 additions & 4 deletions src/resources/FinancialConnections/Accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ export const Accounts = StripeResource.extend({
method: 'POST',
fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
}),
listOwners: stripeMethod({
listInferredBalances: stripeMethod({
method: 'GET',
fullPath: '/v1/financial_connections/accounts/{account}/owners',
fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
methodType: 'list',
}),
listInferredBalances: stripeMethod({
listOwners: stripeMethod({
method: 'GET',
fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
fullPath: '/v1/financial_connections/accounts/{account}/owners',
methodType: 'list',
}),
refresh: stripeMethod({
Expand Down
4 changes: 4 additions & 0 deletions src/resources/Invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ export const Invoices = StripeResource.extend({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/send',
}),
updateLineItem: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/lines/{line_item_id}',
}),
voidInvoice: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/void',
Expand Down
10 changes: 5 additions & 5 deletions src/resources/Quotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ export const Quotes = StripeResource.extend({
method: 'POST',
fullPath: '/v1/quotes/{quote}/finalize',
}),
listPreviewInvoiceLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
methodType: 'list',
}),
listComputedUpfrontLineItems: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
Expand All @@ -32,11 +37,6 @@ export const Quotes = StripeResource.extend({
fullPath: '/v1/quotes/{quote}/lines',
methodType: 'list',
}),
listPreviewInvoiceLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
methodType: 'list',
}),
listPreviewInvoices: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices',
Expand Down
14 changes: 14 additions & 0 deletions src/resources/TaxIds.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../StripeResource.js';
const stripeMethod = StripeResource.method;
export const TaxIds = StripeResource.extend({
create: stripeMethod({method: 'POST', fullPath: '/v1/tax_ids'}),
retrieve: stripeMethod({method: 'GET', fullPath: '/v1/tax_ids/{id}'}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/tax_ids',
methodType: 'list',
}),
del: stripeMethod({method: 'DELETE', fullPath: '/v1/tax_ids/{id}'}),
});
Loading
Loading