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 #1910

Merged
merged 24 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0e2c569
Update generated code (#1907)
stripe-openapi[bot] Sep 21, 2023
6096014
Bump version to 13.7.0
anniel-stripe Sep 21, 2023
b38814e
Merge upstream and update generated code for v545
stripe-openapi[bot] Sep 22, 2023
775837a
Update generated code for v546
stripe-openapi[bot] Sep 22, 2023
7f1b616
Update generated code for v548
stripe-openapi[bot] Sep 22, 2023
7c6a708
Update generated code for v549
stripe-openapi[bot] Sep 22, 2023
886d0f1
Update generated code for v550
stripe-openapi[bot] Sep 22, 2023
3bc98e3
Update generated code for v550
stripe-openapi[bot] Sep 22, 2023
f15285b
Update generated code for v551
stripe-openapi[bot] Sep 25, 2023
79c7b3e
Update generated code for v552
stripe-openapi[bot] Sep 25, 2023
7015642
Update generated code for v553
stripe-openapi[bot] Sep 25, 2023
6e288aa
Update generated code for v554
stripe-openapi[bot] Sep 25, 2023
39490d7
Update generated code for v555
stripe-openapi[bot] Sep 26, 2023
ab620df
Update generated code for v556
stripe-openapi[bot] Sep 26, 2023
86bfffe
Update generated code for v557
stripe-openapi[bot] Sep 27, 2023
2c8a1d1
Update generated code for v559
stripe-openapi[bot] Sep 27, 2023
e3f6dd5
Update generated code for v560
stripe-openapi[bot] Sep 27, 2023
f62cc01
Update generated code for v561
stripe-openapi[bot] Sep 27, 2023
bddb54f
Update generated code for v563
stripe-openapi[bot] Sep 27, 2023
d1c2fa9
Update generated code for v565
stripe-openapi[bot] Sep 28, 2023
1d76dc9
Update generated code for v566
stripe-openapi[bot] Sep 28, 2023
c13ef38
Update generated code (#1911)
stripe-openapi[bot] Sep 28, 2023
465c7f3
Bump version to 13.8.0
richardm-stripe Sep 28, 2023
8f76f6c
Merge upstream and update generated code for v569
stripe-openapi[bot] Sep 28, 2023
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 13.8.0 - 2023-09-28
* [#1911](https://github.com/stripe/stripe-node/pull/1911) Update generated code
* Add support for `rendering` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice`
* Change `PaymentMethod.us_bank_account.financial_connections_account` and `PaymentMethod.us_bank_account.status_details` to be required

## 13.8.0-beta.1 - 2023-09-21
* [#1906](https://github.com/stripe/stripe-node/pull/1906) Update generated code for beta
* Remove support for `customer` on `ConfirmationToken`
Expand All @@ -9,6 +14,10 @@
* Change type of `Issuing.CardDesignUpdateParams.carrier_text` from `carrier_text_param` to `emptyStringable(carrier_text_param)`
* Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams`

## 13.7.0 - 2023-09-21
* [#1907](https://github.com/stripe/stripe-node/pull/1907) Update generated code
* Add support for `terms_of_service_acceptance` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text`

## 13.7.0-beta.1 - 2023-09-14
* [#1900](https://github.com/stripe/stripe-node/pull/1900) Update generated code for beta
* Add support for new resource `ConfirmationToken`
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v545
v569
12 changes: 6 additions & 6 deletions src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import {Accounts as FinancialConnectionsAccounts} from './resources/FinancialCon
import {Authorizations as TestHelpersIssuingAuthorizations} from './resources/TestHelpers/Issuing/Authorizations.js';
import {Authorizations as IssuingAuthorizations} from './resources/Issuing/Authorizations.js';
import {Calculations as TaxCalculations} from './resources/Tax/Calculations.js';
import {CardBundles as IssuingCardBundles} from './resources/Issuing/CardBundles.js';
import {CardDesigns as TestHelpersIssuingCardDesigns} from './resources/TestHelpers/Issuing/CardDesigns.js';
import {CardDesigns as IssuingCardDesigns} from './resources/Issuing/CardDesigns.js';
import {Cardholders as IssuingCardholders} from './resources/Issuing/Cardholders.js';
import {Cards as TestHelpersIssuingCards} from './resources/TestHelpers/Issuing/Cards.js';
import {Cards as GiftCardsCards} from './resources/GiftCards/Cards.js';
Expand All @@ -32,6 +29,9 @@ import {OutboundPayments as TestHelpersTreasuryOutboundPayments} from './resourc
import {OutboundPayments as TreasuryOutboundPayments} from './resources/Treasury/OutboundPayments.js';
import {OutboundTransfers as TestHelpersTreasuryOutboundTransfers} from './resources/TestHelpers/Treasury/OutboundTransfers.js';
import {OutboundTransfers as TreasuryOutboundTransfers} from './resources/Treasury/OutboundTransfers.js';
import {PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns} from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
import {PersonalizationDesigns as IssuingPersonalizationDesigns} from './resources/Issuing/PersonalizationDesigns.js';
import {PhysicalBundles as IssuingPhysicalBundles} from './resources/Issuing/PhysicalBundles.js';
import {Readers as TestHelpersTerminalReaders} from './resources/TestHelpers/Terminal/Readers.js';
import {Readers as TerminalReaders} from './resources/Terminal/Readers.js';
import {ReceivedCredits as TestHelpersTreasuryReceivedCredits} from './resources/TestHelpers/Treasury/ReceivedCredits.js';
Expand Down Expand Up @@ -141,11 +141,11 @@ export const Identity = resourceNamespace('identity', {
});
export const Issuing = resourceNamespace('issuing', {
Authorizations: IssuingAuthorizations,
CardBundles: IssuingCardBundles,
CardDesigns: IssuingCardDesigns,
Cardholders: IssuingCardholders,
Cards: IssuingCards,
Disputes: IssuingDisputes,
PersonalizationDesigns: IssuingPersonalizationDesigns,
PhysicalBundles: IssuingPhysicalBundles,
Transactions: IssuingTransactions,
});
export const Radar = resourceNamespace('radar', {
Expand Down Expand Up @@ -179,8 +179,8 @@ export const TestHelpers = resourceNamespace('testHelpers', {
TestClocks: TestHelpersTestClocks,
Issuing: resourceNamespace('issuing', {
Authorizations: TestHelpersIssuingAuthorizations,
CardDesigns: TestHelpersIssuingCardDesigns,
Cards: TestHelpersIssuingCards,
PersonalizationDesigns: TestHelpersIssuingPersonalizationDesigns,
Transactions: TestHelpersIssuingTransactions,
}),
Terminal: resourceNamespace('terminal', {
Expand Down
20 changes: 0 additions & 20 deletions src/resources/Issuing/CardDesigns.ts

This file was deleted.

23 changes: 23 additions & 0 deletions src/resources/Issuing/PersonalizationDesigns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const PersonalizationDesigns = StripeResource.extend({
create: stripeMethod({
method: 'POST',
fullPath: '/v1/issuing/personalization_designs',
}),
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/personalization_designs/{personalization_design}',
}),
update: stripeMethod({
method: 'POST',
fullPath: '/v1/issuing/personalization_designs/{personalization_design}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/personalization_designs',
methodType: 'list',
}),
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

import {StripeResource} from '../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const CardBundles = StripeResource.extend({
export const PhysicalBundles = StripeResource.extend({
retrieve: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/card_bundles/{card_bundle}',
fullPath: '/v1/issuing/physical_bundles/{physical_bundle}',
}),
list: stripeMethod({
method: 'GET',
fullPath: '/v1/issuing/card_bundles',
fullPath: '/v1/issuing/physical_bundles',
methodType: 'list',
}),
});
21 changes: 0 additions & 21 deletions src/resources/TestHelpers/Issuing/CardDesigns.ts

This file was deleted.

21 changes: 21 additions & 0 deletions src/resources/TestHelpers/Issuing/PersonalizationDesigns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// File generated from our OpenAPI spec

import {StripeResource} from '../../../StripeResource.js';
const stripeMethod = StripeResource.method;
export const PersonalizationDesigns = StripeResource.extend({
activate: stripeMethod({
method: 'POST',
fullPath:
'/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate',
}),
deactivate: stripeMethod({
method: 'POST',
fullPath:
'/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate',
}),
reject: stripeMethod({
method: 'POST',
fullPath:
'/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject',
}),
});
5 changes: 5 additions & 0 deletions test/resources/generated_examples_test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2952,6 +2952,11 @@ describe('Subscriptions', function() {
});
expect(subscriptions).not.to.be.null;
});

it('deleteDiscount method', async function() {
const deleted = await stripe.subscriptions.deleteDiscount('sub_xyz');
expect(deleted).not.to.be.null;
});
});

describe('TaxCodes', function() {
Expand Down
6 changes: 5 additions & 1 deletion types/AccountLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ declare module 'stripe' {
namespace AccountLinkCreateParams {
type Collect = 'currently_due' | 'eventually_due';

type Type = 'account_onboarding' | 'account_update';
type Type =
| 'account_onboarding'
| 'account_update'
| 'capital_financing_offer'
| 'capital_financing_reporting';
}

class AccountLinksResource {
Expand Down
48 changes: 48 additions & 0 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,68 @@ declare module 'stripe' {
* Whether the embedded component is enabled.
*/
enabled: boolean;

features?: PaymentDetails.Features;
}

namespace PaymentDetails {
interface Features {
/**
* Whether to allow capturing and cancelling payment intents. This is `true` by default.
*/
capture_payments: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
*/
dispute_management: boolean;

/**
* Whether to allow sending refunds. This is `true` by default.
*/
refund_management: boolean;
}
}

interface Payments {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features?: Payments.Features;
}

namespace Payments {
interface Features {
/**
* Whether to allow capturing and cancelling payment intents. This is `true` by default.
*/
capture_payments: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
*/
dispute_management: boolean;

/**
* Whether to allow sending refunds. This is `true` by default.
*/
refund_management: boolean;
}
}

interface Payouts {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

features?: Payouts.Features;
}

namespace Payouts {
interface Features {}
}
}
}
Expand Down
66 changes: 66 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,27 +48,93 @@ declare module 'stripe' {
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: AccountOnboarding.Features;
}

namespace AccountOnboarding {
interface Features {}
}

interface PaymentDetails {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: PaymentDetails.Features;
}

namespace PaymentDetails {
interface Features {
/**
* Whether to allow capturing and cancelling payment intents. This is `true` by default.
*/
capture_payments?: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
*/
dispute_management?: boolean;

/**
* Whether to allow sending refunds. This is `true` by default.
*/
refund_management?: boolean;
}
}

interface Payments {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: Payments.Features;
}

namespace Payments {
interface Features {
/**
* Whether to allow capturing and cancelling payment intents. This is `true` by default.
*/
capture_payments?: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
*/
dispute_management?: boolean;

/**
* Whether to allow sending refunds. This is `true` by default.
*/
refund_management?: boolean;
}
}

interface Payouts {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: Payouts.Features;
}

namespace Payouts {
interface Features {}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/BillingPortal/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ declare module 'stripe' {
id: string | null;

/**
* The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
* The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products).
*/
price: string | null;

Expand Down
4 changes: 2 additions & 2 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ declare module 'stripe' {
/**
* The ID of the Financial Connections Account used to create the payment method.
*/
financial_connections_account?: string | null;
financial_connections_account: string | null;

/**
* Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
Expand All @@ -1067,7 +1067,7 @@ declare module 'stripe' {
/**
* Contains information about the future reusability of this PaymentMethod.
*/
status_details?: UsBankAccount.StatusDetails | null;
status_details: UsBankAccount.StatusDetails | null;
}

namespace UsBankAccount {
Expand Down
Loading
Loading