stripe 14.20.0 → 14.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 14.21.0 - 2024-03-14
4
+ * [#2035](https://github.com/stripe/stripe-node/pull/2035) Update generated code
5
+ * Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
6
+ * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign`
7
+ * Add support for `list` and `retrieve` methods on resource `PhysicalBundle`
8
+ * Add support for `personalization_design` on `Issuing.CardCreateParams`, `Issuing.CardListParams`, `Issuing.CardUpdateParams`, and `Issuing.Card`
9
+ * Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)`
10
+ * Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
11
+
3
12
  ## 14.20.0 - 2024-03-07
4
13
  * [#2033](https://github.com/stripe/stripe-node/pull/2033) Update generated code
5
14
  * Add support for `documents` on `AccountSession.components` and `AccountSessionCreateParams.components`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 14.20.0
1
+ 14.21.0
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PersonalizationDesigns = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.PersonalizationDesigns = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v1/issuing/personalization_designs',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/issuing/personalization_designs/{personalization_design}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/issuing/personalization_designs/{personalization_design}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v1/issuing/personalization_designs',
23
+ methodType: 'list',
24
+ }),
25
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PhysicalBundles = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.PhysicalBundles = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/issuing/physical_bundles/{physical_bundle}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/issuing/physical_bundles',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.PersonalizationDesigns = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.PersonalizationDesigns = StripeResource_js_1.StripeResource.extend({
8
+ activate: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate',
11
+ }),
12
+ deactivate: stripeMethod({
13
+ method: 'POST',
14
+ fullPath: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate',
15
+ }),
16
+ reject: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject',
19
+ }),
20
+ });
package/cjs/resources.js CHANGED
@@ -28,6 +28,9 @@ const OutboundPayments_js_1 = require("./resources/TestHelpers/Treasury/Outbound
28
28
  const OutboundPayments_js_2 = require("./resources/Treasury/OutboundPayments.js");
29
29
  const OutboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/OutboundTransfers.js");
30
30
  const OutboundTransfers_js_2 = require("./resources/Treasury/OutboundTransfers.js");
31
+ const PersonalizationDesigns_js_1 = require("./resources/TestHelpers/Issuing/PersonalizationDesigns.js");
32
+ const PersonalizationDesigns_js_2 = require("./resources/Issuing/PersonalizationDesigns.js");
33
+ const PhysicalBundles_js_1 = require("./resources/Issuing/PhysicalBundles.js");
31
34
  const Products_js_1 = require("./resources/Climate/Products.js");
32
35
  const Readers_js_1 = require("./resources/TestHelpers/Terminal/Readers.js");
33
36
  const Readers_js_2 = require("./resources/Terminal/Readers.js");
@@ -187,6 +190,8 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
187
190
  Cardholders: Cardholders_js_1.Cardholders,
188
191
  Cards: Cards_js_2.Cards,
189
192
  Disputes: Disputes_js_1.Disputes,
193
+ PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
194
+ PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
190
195
  Tokens: Tokens_js_1.Tokens,
191
196
  Transactions: Transactions_js_3.Transactions,
192
197
  });
@@ -221,6 +226,7 @@ exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers
221
226
  Issuing: (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
222
227
  Authorizations: Authorizations_js_1.Authorizations,
223
228
  Cards: Cards_js_1.Cards,
229
+ PersonalizationDesigns: PersonalizationDesigns_js_1.PersonalizationDesigns,
224
230
  Transactions: Transactions_js_1.Transactions,
225
231
  }),
226
232
  Terminal: (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '14.20.0';
37
+ Stripe.PACKAGE_VERSION = '14.21.0';
38
38
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
39
39
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
40
40
  Stripe.resources = resources;
@@ -0,0 +1,22 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const PersonalizationDesigns = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v1/issuing/personalization_designs',
8
+ }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/issuing/personalization_designs/{personalization_design}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/issuing/personalization_designs/{personalization_design}',
16
+ }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v1/issuing/personalization_designs',
20
+ methodType: 'list',
21
+ }),
22
+ });
@@ -0,0 +1,14 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const PhysicalBundles = StripeResource.extend({
5
+ retrieve: stripeMethod({
6
+ method: 'GET',
7
+ fullPath: '/v1/issuing/physical_bundles/{physical_bundle}',
8
+ }),
9
+ list: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/issuing/physical_bundles',
12
+ methodType: 'list',
13
+ }),
14
+ });
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const PersonalizationDesigns = StripeResource.extend({
5
+ activate: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/activate',
8
+ }),
9
+ deactivate: stripeMethod({
10
+ method: 'POST',
11
+ fullPath: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/deactivate',
12
+ }),
13
+ reject: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/test_helpers/issuing/personalization_designs/{personalization_design}/reject',
16
+ }),
17
+ });
package/esm/resources.js CHANGED
@@ -24,6 +24,9 @@ import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resou
24
24
  import { OutboundPayments as TreasuryOutboundPayments } from './resources/Treasury/OutboundPayments.js';
25
25
  import { OutboundTransfers as TestHelpersTreasuryOutboundTransfers } from './resources/TestHelpers/Treasury/OutboundTransfers.js';
26
26
  import { OutboundTransfers as TreasuryOutboundTransfers } from './resources/Treasury/OutboundTransfers.js';
27
+ import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
28
+ import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
29
+ import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
27
30
  import { Products as ClimateProducts } from './resources/Climate/Products.js';
28
31
  import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
29
32
  import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
@@ -132,6 +135,8 @@ export const Issuing = resourceNamespace('issuing', {
132
135
  Cardholders: IssuingCardholders,
133
136
  Cards: IssuingCards,
134
137
  Disputes: IssuingDisputes,
138
+ PersonalizationDesigns: IssuingPersonalizationDesigns,
139
+ PhysicalBundles: IssuingPhysicalBundles,
135
140
  Tokens: IssuingTokens,
136
141
  Transactions: IssuingTransactions,
137
142
  });
@@ -166,6 +171,7 @@ export const TestHelpers = resourceNamespace('testHelpers', {
166
171
  Issuing: resourceNamespace('issuing', {
167
172
  Authorizations: TestHelpersIssuingAuthorizations,
168
173
  Cards: TestHelpersIssuingCards,
174
+ PersonalizationDesigns: TestHelpersIssuingPersonalizationDesigns,
169
175
  Transactions: TestHelpersIssuingTransactions,
170
176
  }),
171
177
  Terminal: resourceNamespace('terminal', {
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
31
31
  ];
32
32
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
33
33
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
34
- Stripe.PACKAGE_VERSION = '14.20.0';
34
+ Stripe.PACKAGE_VERSION = '14.21.0';
35
35
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
36
36
  Stripe.StripeResource = StripeResource;
37
37
  Stripe.resources = resources;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "14.20.0",
3
+ "version": "14.21.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -26,6 +26,9 @@ declare module 'stripe' {
26
26
  */
27
27
  account_onboarding?: Components.AccountOnboarding;
28
28
 
29
+ /**
30
+ * Configuration for the documents embedded component.
31
+ */
29
32
  documents?: Components.Documents;
30
33
 
31
34
  /**
@@ -84,6 +84,14 @@ declare module 'stripe' {
84
84
  */
85
85
  number?: string;
86
86
 
87
+ /**
88
+ * The personalization design object belonging to this card.
89
+ */
90
+ personalization_design?:
91
+ | string
92
+ | Stripe.Issuing.PersonalizationDesign
93
+ | null;
94
+
87
95
  /**
88
96
  * The latest card that replaces this card, if any.
89
97
  */
@@ -31,6 +31,11 @@ declare module 'stripe' {
31
31
  */
32
32
  metadata?: Stripe.MetadataParam;
33
33
 
34
+ /**
35
+ * The personalization design object belonging to this card.
36
+ */
37
+ personalization_design?: string;
38
+
34
39
  /**
35
40
  * The desired PIN for this card.
36
41
  */
@@ -1119,6 +1124,8 @@ declare module 'stripe' {
1119
1124
  */
1120
1125
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
1121
1126
 
1127
+ personalization_design?: string;
1128
+
1122
1129
  /**
1123
1130
  * The desired new PIN for this card.
1124
1131
  */
@@ -2116,6 +2123,8 @@ declare module 'stripe' {
2116
2123
  */
2117
2124
  last4?: string;
2118
2125
 
2126
+ personalization_design?: string;
2127
+
2119
2128
  /**
2120
2129
  * Only return cards that have the given status. One of `active`, `inactive`, or `canceled`.
2121
2130
  */
@@ -0,0 +1,142 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Issuing {
6
+ /**
7
+ * A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line.
8
+ */
9
+ interface PersonalizationDesign {
10
+ /**
11
+ * Unique identifier for the object.
12
+ */
13
+ id: string;
14
+
15
+ /**
16
+ * String representing the object's type. Objects of the same type share the same value.
17
+ */
18
+ object: 'issuing.personalization_design';
19
+
20
+ /**
21
+ * The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
22
+ */
23
+ card_logo: string | Stripe.File | null;
24
+
25
+ /**
26
+ * Hash containing carrier text, for use with physical bundles that support carrier text.
27
+ */
28
+ carrier_text: PersonalizationDesign.CarrierText | null;
29
+
30
+ /**
31
+ * Time at which the object was created. Measured in seconds since the Unix epoch.
32
+ */
33
+ created: number;
34
+
35
+ /**
36
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
37
+ */
38
+ livemode: boolean;
39
+
40
+ /**
41
+ * A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
42
+ */
43
+ lookup_key: string | null;
44
+
45
+ /**
46
+ * 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.
47
+ */
48
+ metadata: Stripe.Metadata;
49
+
50
+ /**
51
+ * Friendly display name.
52
+ */
53
+ name: string | null;
54
+
55
+ /**
56
+ * The physical bundle object belonging to this personalization design.
57
+ */
58
+ physical_bundle: string | Stripe.Issuing.PhysicalBundle;
59
+
60
+ preferences: PersonalizationDesign.Preferences;
61
+
62
+ rejection_reasons: PersonalizationDesign.RejectionReasons;
63
+
64
+ /**
65
+ * Whether this personalization design can be used to create cards.
66
+ */
67
+ status: PersonalizationDesign.Status;
68
+ }
69
+
70
+ namespace PersonalizationDesign {
71
+ interface CarrierText {
72
+ /**
73
+ * The footer body text of the carrier letter.
74
+ */
75
+ footer_body: string | null;
76
+
77
+ /**
78
+ * The footer title text of the carrier letter.
79
+ */
80
+ footer_title: string | null;
81
+
82
+ /**
83
+ * The header body text of the carrier letter.
84
+ */
85
+ header_body: string | null;
86
+
87
+ /**
88
+ * The header title text of the carrier letter.
89
+ */
90
+ header_title: string | null;
91
+ }
92
+
93
+ interface Preferences {
94
+ /**
95
+ * Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
96
+ */
97
+ is_default: boolean;
98
+
99
+ /**
100
+ * Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist.
101
+ */
102
+ is_platform_default: boolean | null;
103
+ }
104
+
105
+ interface RejectionReasons {
106
+ /**
107
+ * The reason(s) the card logo was rejected.
108
+ */
109
+ card_logo: Array<RejectionReasons.CardLogo> | null;
110
+
111
+ /**
112
+ * The reason(s) the carrier text was rejected.
113
+ */
114
+ carrier_text: Array<RejectionReasons.CarrierText> | null;
115
+ }
116
+
117
+ namespace RejectionReasons {
118
+ type CardLogo =
119
+ | 'geographic_location'
120
+ | 'inappropriate'
121
+ | 'network_name'
122
+ | 'non_binary_image'
123
+ | 'non_fiat_currency'
124
+ | 'other'
125
+ | 'other_entity'
126
+ | 'promotional_material';
127
+
128
+ type CarrierText =
129
+ | 'geographic_location'
130
+ | 'inappropriate'
131
+ | 'network_name'
132
+ | 'non_fiat_currency'
133
+ | 'other'
134
+ | 'other_entity'
135
+ | 'promotional_material';
136
+ }
137
+
138
+ type Status = 'active' | 'inactive' | 'rejected' | 'review';
139
+ }
140
+ }
141
+ }
142
+ }
@@ -0,0 +1,253 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Issuing {
6
+ interface PersonalizationDesignCreateParams {
7
+ /**
8
+ * The physical bundle object belonging to this personalization design.
9
+ */
10
+ physical_bundle: string;
11
+
12
+ /**
13
+ * The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
14
+ */
15
+ card_logo?: string;
16
+
17
+ /**
18
+ * Hash containing carrier text, for use with physical bundles that support carrier text.
19
+ */
20
+ carrier_text?: PersonalizationDesignCreateParams.CarrierText;
21
+
22
+ /**
23
+ * Specifies which fields in the response should be expanded.
24
+ */
25
+ expand?: Array<string>;
26
+
27
+ /**
28
+ * A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
29
+ */
30
+ lookup_key?: string;
31
+
32
+ /**
33
+ * 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`.
34
+ */
35
+ metadata?: Stripe.MetadataParam;
36
+
37
+ /**
38
+ * Friendly display name.
39
+ */
40
+ name?: string;
41
+
42
+ /**
43
+ * Information on whether this personalization design is used to create cards when one is not specified.
44
+ */
45
+ preferences?: PersonalizationDesignCreateParams.Preferences;
46
+
47
+ /**
48
+ * If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.
49
+ */
50
+ transfer_lookup_key?: boolean;
51
+ }
52
+
53
+ namespace PersonalizationDesignCreateParams {
54
+ interface CarrierText {
55
+ /**
56
+ * The footer body text of the carrier letter.
57
+ */
58
+ footer_body?: Stripe.Emptyable<string>;
59
+
60
+ /**
61
+ * The footer title text of the carrier letter.
62
+ */
63
+ footer_title?: Stripe.Emptyable<string>;
64
+
65
+ /**
66
+ * The header body text of the carrier letter.
67
+ */
68
+ header_body?: Stripe.Emptyable<string>;
69
+
70
+ /**
71
+ * The header title text of the carrier letter.
72
+ */
73
+ header_title?: Stripe.Emptyable<string>;
74
+ }
75
+
76
+ interface Preferences {
77
+ /**
78
+ * Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
79
+ */
80
+ is_default: boolean;
81
+ }
82
+ }
83
+
84
+ interface PersonalizationDesignRetrieveParams {
85
+ /**
86
+ * Specifies which fields in the response should be expanded.
87
+ */
88
+ expand?: Array<string>;
89
+ }
90
+
91
+ interface PersonalizationDesignUpdateParams {
92
+ /**
93
+ * The file for the card logo, for use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
94
+ */
95
+ card_logo?: Stripe.Emptyable<string>;
96
+
97
+ /**
98
+ * Hash containing carrier text, for use with physical bundles that support carrier text.
99
+ */
100
+ carrier_text?: Stripe.Emptyable<
101
+ PersonalizationDesignUpdateParams.CarrierText
102
+ >;
103
+
104
+ /**
105
+ * Specifies which fields in the response should be expanded.
106
+ */
107
+ expand?: Array<string>;
108
+
109
+ /**
110
+ * A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
111
+ */
112
+ lookup_key?: Stripe.Emptyable<string>;
113
+
114
+ /**
115
+ * 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`.
116
+ */
117
+ metadata?: Stripe.MetadataParam;
118
+
119
+ /**
120
+ * Friendly display name. Providing an empty string will set the field to null.
121
+ */
122
+ name?: Stripe.Emptyable<string>;
123
+
124
+ /**
125
+ * The physical bundle object belonging to this personalization design.
126
+ */
127
+ physical_bundle?: string;
128
+
129
+ /**
130
+ * Information on whether this personalization design is used to create cards when one is not specified.
131
+ */
132
+ preferences?: PersonalizationDesignUpdateParams.Preferences;
133
+
134
+ /**
135
+ * If set to true, will atomically remove the lookup key from the existing personalization design, and assign it to this personalization design.
136
+ */
137
+ transfer_lookup_key?: boolean;
138
+ }
139
+
140
+ namespace PersonalizationDesignUpdateParams {
141
+ interface CarrierText {
142
+ /**
143
+ * The footer body text of the carrier letter.
144
+ */
145
+ footer_body?: Stripe.Emptyable<string>;
146
+
147
+ /**
148
+ * The footer title text of the carrier letter.
149
+ */
150
+ footer_title?: Stripe.Emptyable<string>;
151
+
152
+ /**
153
+ * The header body text of the carrier letter.
154
+ */
155
+ header_body?: Stripe.Emptyable<string>;
156
+
157
+ /**
158
+ * The header title text of the carrier letter.
159
+ */
160
+ header_title?: Stripe.Emptyable<string>;
161
+ }
162
+
163
+ interface Preferences {
164
+ /**
165
+ * Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design.
166
+ */
167
+ is_default: boolean;
168
+ }
169
+ }
170
+
171
+ interface PersonalizationDesignListParams extends PaginationParams {
172
+ /**
173
+ * Specifies which fields in the response should be expanded.
174
+ */
175
+ expand?: Array<string>;
176
+
177
+ /**
178
+ * Only return personalization designs with the given lookup keys.
179
+ */
180
+ lookup_keys?: Array<string>;
181
+
182
+ /**
183
+ * Only return personalization designs with the given preferences.
184
+ */
185
+ preferences?: PersonalizationDesignListParams.Preferences;
186
+
187
+ /**
188
+ * Only return personalization designs with the given status.
189
+ */
190
+ status?: PersonalizationDesignListParams.Status;
191
+ }
192
+
193
+ namespace PersonalizationDesignListParams {
194
+ interface Preferences {
195
+ /**
196
+ * Only return the personalization design that's set as the default. A connected account uses the Connect platform's default design if no personalization design is set as the default.
197
+ */
198
+ is_default?: boolean;
199
+
200
+ /**
201
+ * Only return the personalization design that is set as the Connect platform's default. This parameter is only applicable to connected accounts.
202
+ */
203
+ is_platform_default?: boolean;
204
+ }
205
+
206
+ type Status = 'active' | 'inactive' | 'rejected' | 'review';
207
+ }
208
+
209
+ class PersonalizationDesignsResource {
210
+ /**
211
+ * Creates a personalization design object.
212
+ */
213
+ create(
214
+ params: PersonalizationDesignCreateParams,
215
+ options?: RequestOptions
216
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
217
+
218
+ /**
219
+ * Retrieves a personalization design object.
220
+ */
221
+ retrieve(
222
+ id: string,
223
+ params?: PersonalizationDesignRetrieveParams,
224
+ options?: RequestOptions
225
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
226
+ retrieve(
227
+ id: string,
228
+ options?: RequestOptions
229
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
230
+
231
+ /**
232
+ * Updates a card personalization object.
233
+ */
234
+ update(
235
+ id: string,
236
+ params?: PersonalizationDesignUpdateParams,
237
+ options?: RequestOptions
238
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
239
+
240
+ /**
241
+ * Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
242
+ */
243
+ list(
244
+ params?: PersonalizationDesignListParams,
245
+ options?: RequestOptions
246
+ ): ApiListPromise<Stripe.Issuing.PersonalizationDesign>;
247
+ list(
248
+ options?: RequestOptions
249
+ ): ApiListPromise<Stripe.Issuing.PersonalizationDesign>;
250
+ }
251
+ }
252
+ }
253
+ }
@@ -0,0 +1,75 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Issuing {
6
+ /**
7
+ * A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
8
+ */
9
+ interface PhysicalBundle {
10
+ /**
11
+ * Unique identifier for the object.
12
+ */
13
+ id: string;
14
+
15
+ /**
16
+ * String representing the object's type. Objects of the same type share the same value.
17
+ */
18
+ object: 'issuing.physical_bundle';
19
+
20
+ features?: PhysicalBundle.Features;
21
+
22
+ /**
23
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
24
+ */
25
+ livemode: boolean;
26
+
27
+ /**
28
+ * Friendly display name.
29
+ */
30
+ name: string;
31
+
32
+ /**
33
+ * Whether this physical bundle can be used to create cards.
34
+ */
35
+ status: PhysicalBundle.Status;
36
+
37
+ /**
38
+ * Whether this physical bundle is a standard Stripe offering or custom-made for you.
39
+ */
40
+ type: PhysicalBundle.Type;
41
+ }
42
+
43
+ namespace PhysicalBundle {
44
+ interface Features {
45
+ /**
46
+ * The policy for how to use card logo images in a card design with this physical bundle.
47
+ */
48
+ card_logo: Features.CardLogo;
49
+
50
+ /**
51
+ * The policy for how to use carrier letter text in a card design with this physical bundle.
52
+ */
53
+ carrier_text: Features.CarrierText;
54
+
55
+ /**
56
+ * The policy for how to use a second line on a card with this physical bundle.
57
+ */
58
+ second_line: Features.SecondLine;
59
+ }
60
+
61
+ namespace Features {
62
+ type CardLogo = 'optional' | 'required' | 'unsupported';
63
+
64
+ type CarrierText = 'optional' | 'required' | 'unsupported';
65
+
66
+ type SecondLine = 'optional' | 'required' | 'unsupported';
67
+ }
68
+
69
+ type Status = 'active' | 'inactive' | 'review';
70
+
71
+ type Type = 'custom' | 'standard';
72
+ }
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,63 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Issuing {
6
+ interface PhysicalBundleRetrieveParams {
7
+ /**
8
+ * Specifies which fields in the response should be expanded.
9
+ */
10
+ expand?: Array<string>;
11
+ }
12
+
13
+ interface PhysicalBundleListParams extends PaginationParams {
14
+ /**
15
+ * Specifies which fields in the response should be expanded.
16
+ */
17
+ expand?: Array<string>;
18
+
19
+ /**
20
+ * Only return physical bundles with the given status.
21
+ */
22
+ status?: PhysicalBundleListParams.Status;
23
+
24
+ /**
25
+ * Only return physical bundles with the given type.
26
+ */
27
+ type?: PhysicalBundleListParams.Type;
28
+ }
29
+
30
+ namespace PhysicalBundleListParams {
31
+ type Status = 'active' | 'inactive' | 'review';
32
+
33
+ type Type = 'custom' | 'standard';
34
+ }
35
+
36
+ class PhysicalBundlesResource {
37
+ /**
38
+ * Retrieves a physical bundle object.
39
+ */
40
+ retrieve(
41
+ id: string,
42
+ params?: PhysicalBundleRetrieveParams,
43
+ options?: RequestOptions
44
+ ): Promise<Stripe.Response<Stripe.Issuing.PhysicalBundle>>;
45
+ retrieve(
46
+ id: string,
47
+ options?: RequestOptions
48
+ ): Promise<Stripe.Response<Stripe.Issuing.PhysicalBundle>>;
49
+
50
+ /**
51
+ * Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
52
+ */
53
+ list(
54
+ params?: PhysicalBundleListParams,
55
+ options?: RequestOptions
56
+ ): ApiListPromise<Stripe.Issuing.PhysicalBundle>;
57
+ list(
58
+ options?: RequestOptions
59
+ ): ApiListPromise<Stripe.Issuing.PhysicalBundle>;
60
+ }
61
+ }
62
+ }
63
+ }
@@ -404,6 +404,11 @@ declare module 'stripe' {
404
404
  */
405
405
  konbini: PaymentMethodOptions.Konbini | null;
406
406
 
407
+ /**
408
+ * This sub-hash contains details about the SEPA Direct Debit payment method options to pass to invoices created by the subscription.
409
+ */
410
+ sepa_debit: PaymentMethodOptions.SepaDebit | null;
411
+
407
412
  /**
408
413
  * This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription.
409
414
  */
@@ -533,6 +538,8 @@ declare module 'stripe' {
533
538
 
534
539
  interface Konbini {}
535
540
 
541
+ interface SepaDebit {}
542
+
536
543
  interface UsBankAccount {
537
544
  financial_connections?: UsBankAccount.FinancialConnections;
538
545
 
@@ -16,7 +16,7 @@ declare module 'stripe' {
16
16
  /**
17
17
  * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
18
18
  */
19
- application_fee_percent?: number;
19
+ application_fee_percent?: Stripe.Emptyable<number>;
20
20
 
21
21
  /**
22
22
  * Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
@@ -497,6 +497,11 @@ declare module 'stripe' {
497
497
  */
498
498
  konbini?: Stripe.Emptyable<PaymentMethodOptions.Konbini>;
499
499
 
500
+ /**
501
+ * This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
502
+ */
503
+ sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;
504
+
500
505
  /**
501
506
  * This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
502
507
  */
@@ -636,6 +641,8 @@ declare module 'stripe' {
636
641
 
637
642
  interface Konbini {}
638
643
 
644
+ interface SepaDebit {}
645
+
639
646
  interface UsBankAccount {
640
647
  /**
641
648
  * Additional fields for Financial Connections Session creation
@@ -773,7 +780,7 @@ declare module 'stripe' {
773
780
  /**
774
781
  * A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
775
782
  */
776
- application_fee_percent?: number;
783
+ application_fee_percent?: Stripe.Emptyable<number>;
777
784
 
778
785
  /**
779
786
  * Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
@@ -1277,6 +1284,11 @@ declare module 'stripe' {
1277
1284
  */
1278
1285
  konbini?: Stripe.Emptyable<PaymentMethodOptions.Konbini>;
1279
1286
 
1287
+ /**
1288
+ * This sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
1289
+ */
1290
+ sepa_debit?: Stripe.Emptyable<PaymentMethodOptions.SepaDebit>;
1291
+
1280
1292
  /**
1281
1293
  * This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
1282
1294
  */
@@ -1416,6 +1428,8 @@ declare module 'stripe' {
1416
1428
 
1417
1429
  interface Konbini {}
1418
1430
 
1431
+ interface SepaDebit {}
1432
+
1419
1433
  interface UsBankAccount {
1420
1434
  /**
1421
1435
  * Additional fields for Financial Connections Session creation
@@ -0,0 +1,113 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace TestHelpers {
6
+ namespace Issuing {
7
+ interface PersonalizationDesignActivateParams {
8
+ /**
9
+ * Specifies which fields in the response should be expanded.
10
+ */
11
+ expand?: Array<string>;
12
+ }
13
+ }
14
+
15
+ namespace Issuing {
16
+ interface PersonalizationDesignDeactivateParams {
17
+ /**
18
+ * Specifies which fields in the response should be expanded.
19
+ */
20
+ expand?: Array<string>;
21
+ }
22
+ }
23
+
24
+ namespace Issuing {
25
+ interface PersonalizationDesignRejectParams {
26
+ /**
27
+ * The reason(s) the personalization design was rejected.
28
+ */
29
+ rejection_reasons: PersonalizationDesignRejectParams.RejectionReasons;
30
+
31
+ /**
32
+ * Specifies which fields in the response should be expanded.
33
+ */
34
+ expand?: Array<string>;
35
+ }
36
+
37
+ namespace PersonalizationDesignRejectParams {
38
+ interface RejectionReasons {
39
+ /**
40
+ * The reason(s) the card logo was rejected.
41
+ */
42
+ card_logo?: Array<RejectionReasons.CardLogo>;
43
+
44
+ /**
45
+ * The reason(s) the carrier text was rejected.
46
+ */
47
+ carrier_text?: Array<RejectionReasons.CarrierText>;
48
+ }
49
+
50
+ namespace RejectionReasons {
51
+ type CardLogo =
52
+ | 'geographic_location'
53
+ | 'inappropriate'
54
+ | 'network_name'
55
+ | 'non_binary_image'
56
+ | 'non_fiat_currency'
57
+ | 'other'
58
+ | 'other_entity'
59
+ | 'promotional_material';
60
+
61
+ type CarrierText =
62
+ | 'geographic_location'
63
+ | 'inappropriate'
64
+ | 'network_name'
65
+ | 'non_fiat_currency'
66
+ | 'other'
67
+ | 'other_entity'
68
+ | 'promotional_material';
69
+ }
70
+ }
71
+ }
72
+
73
+ namespace Issuing {
74
+ class PersonalizationDesignsResource {
75
+ /**
76
+ * Updates the status of the specified testmode personalization design object to active.
77
+ */
78
+ activate(
79
+ id: string,
80
+ params?: PersonalizationDesignActivateParams,
81
+ options?: RequestOptions
82
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
83
+ activate(
84
+ id: string,
85
+ options?: RequestOptions
86
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
87
+
88
+ /**
89
+ * Updates the status of the specified testmode personalization design object to inactive.
90
+ */
91
+ deactivate(
92
+ id: string,
93
+ params?: PersonalizationDesignDeactivateParams,
94
+ options?: RequestOptions
95
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
96
+ deactivate(
97
+ id: string,
98
+ options?: RequestOptions
99
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
100
+
101
+ /**
102
+ * Updates the status of the specified testmode personalization design object to rejected.
103
+ */
104
+ reject(
105
+ id: string,
106
+ params: PersonalizationDesignRejectParams,
107
+ options?: RequestOptions
108
+ ): Promise<Stripe.Response<Stripe.Issuing.PersonalizationDesign>>;
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
package/types/index.d.ts CHANGED
@@ -46,6 +46,8 @@
46
46
  ///<reference path='./Issuing/CardholdersResource.d.ts' />
47
47
  ///<reference path='./Issuing/CardsResource.d.ts' />
48
48
  ///<reference path='./Issuing/DisputesResource.d.ts' />
49
+ ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
50
+ ///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
49
51
  ///<reference path='./Issuing/TokensResource.d.ts' />
50
52
  ///<reference path='./Issuing/TransactionsResource.d.ts' />
51
53
  ///<reference path='./MandatesResource.d.ts' />
@@ -89,6 +91,7 @@
89
91
  ///<reference path='./TestHelpers/CustomersResource.d.ts' />
90
92
  ///<reference path='./TestHelpers/Issuing/AuthorizationsResource.d.ts' />
91
93
  ///<reference path='./TestHelpers/Issuing/CardsResource.d.ts' />
94
+ ///<reference path='./TestHelpers/Issuing/PersonalizationDesignsResource.d.ts' />
92
95
  ///<reference path='./TestHelpers/Issuing/TransactionsResource.d.ts' />
93
96
  ///<reference path='./TestHelpers/RefundsResource.d.ts' />
94
97
  ///<reference path='./TestHelpers/Terminal/ReadersResource.d.ts' />
@@ -167,6 +170,8 @@
167
170
  ///<reference path='./Issuing/Cardholders.d.ts' />
168
171
  ///<reference path='./Issuing/Cards.d.ts' />
169
172
  ///<reference path='./Issuing/Disputes.d.ts' />
173
+ ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
174
+ ///<reference path='./Issuing/PhysicalBundles.d.ts' />
170
175
  ///<reference path='./Issuing/Tokens.d.ts' />
171
176
  ///<reference path='./Issuing/Transactions.d.ts' />
172
177
  ///<reference path='./LineItems.d.ts' />
@@ -334,6 +339,8 @@ declare module 'stripe' {
334
339
  cards: Stripe.Issuing.CardsResource;
335
340
  cardholders: Stripe.Issuing.CardholdersResource;
336
341
  disputes: Stripe.Issuing.DisputesResource;
342
+ personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
343
+ physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
337
344
  tokens: Stripe.Issuing.TokensResource;
338
345
  transactions: Stripe.Issuing.TransactionsResource;
339
346
  };
@@ -368,6 +375,7 @@ declare module 'stripe' {
368
375
  issuing: {
369
376
  authorizations: Stripe.TestHelpers.Issuing.AuthorizationsResource;
370
377
  cards: Stripe.TestHelpers.Issuing.CardsResource;
378
+ personalizationDesigns: Stripe.TestHelpers.Issuing.PersonalizationDesignsResource;
371
379
  transactions: Stripe.TestHelpers.Issuing.TransactionsResource;
372
380
  };
373
381
  terminal: {