@stripe/extensibility-dev-tools 0.23.7 → 0.24.3
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/dist/bin/build-custom-object-definitions.cjs +56 -21
- package/dist/bin/build-custom-object-definitions.js +56 -21
- package/dist/bin/create-upload-image.cjs +63 -25
- package/dist/bin/create-upload-image.js +63 -25
- package/dist/bin/dev-tools-rpc.cjs +8 -7
- package/dist/bin/dev-tools-rpc.js +8 -7
- package/dist/bin/gen-workspace.cjs +8 -7
- package/dist/bin/gen-workspace.js +8 -7
- package/dist/bin/template-info.cjs +8 -7
- package/dist/bin/template-info.js +8 -7
- package/dist/custom-objects/build-definitions.d.ts.map +1 -1
- package/dist/custom-objects/to-proto-json.d.ts +2 -1
- package/dist/custom-objects/to-proto-json.d.ts.map +1 -1
- package/dist/dependencies/index.d.ts +7 -7
- package/dist/index.cjs +8 -7
- package/dist/index.js +8 -7
- package/dist/manifest/manifest-v2.d.ts +8 -3
- package/dist/templates/diff-viewer/types.d.ts +2 -2
- package/dist/templates/extensions/base.d.ts +4 -2
- package/dist/templates/extensions/core.workflows.custom_action.d.ts.map +1 -1
- package/dist/templates/extensions/types.d.ts +9 -3
- package/dist/templates/file-writer.d.ts +2 -2
- package/dist/templates/index.cjs +8 -7
- package/dist/templates/index.js +8 -7
- package/dist/templates/root/index.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/workspace/index.cjs +8 -7
- package/dist/workspace/index.d.ts +34 -30
- package/dist/workspace/index.js +8 -7
- package/package.json +3 -3
- package/templates/extensions/billing.bill.discount_calculation/index.ts +1 -1
- package/templates/extensions/billing.customer_balance_application/index.ts +1 -1
- package/templates/extensions/billing.invoice_collection_setting/index.ts +1 -1
- package/templates/extensions/billing.prorations/index.ts +1 -1
- package/templates/extensions/billing.recurring_billing_item_handling/index.ts +1 -1
- package/templates/extensions/core.workflows.custom_action/index.ts +1 -1
- package/templates/extensions/extend.workflows.custom_action/index.ts +1 -1
- package/dist/api-surface.d.ts.map +0 -1
package/dist/workspace/index.cjs
CHANGED
|
@@ -1194,7 +1194,7 @@ describe('MyDiscountCalculation', () => {
|
|
|
1194
1194
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1195
1195
|
|
|
1196
1196
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1197
|
-
interface MyDiscountCalculationConfig
|
|
1197
|
+
interface MyDiscountCalculationConfig {}
|
|
1198
1198
|
|
|
1199
1199
|
export default class MyDiscountCalculation implements Billing.Bill
|
|
1200
1200
|
.DiscountCalculation<MyDiscountCalculationConfig> {
|
|
@@ -1236,7 +1236,7 @@ describe('MyBalanceApp', () => {
|
|
|
1236
1236
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1237
1237
|
|
|
1238
1238
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1239
|
-
interface MyBalanceAppConfig
|
|
1239
|
+
interface MyBalanceAppConfig {}
|
|
1240
1240
|
|
|
1241
1241
|
export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
|
|
1242
1242
|
computeAppliedCustomerBalance(
|
|
@@ -1277,7 +1277,7 @@ describe('MyInvoiceCollectionSetting', () => {
|
|
|
1277
1277
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1278
1278
|
|
|
1279
1279
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1280
|
-
interface MyInvoiceCollectionSettingConfig
|
|
1280
|
+
interface MyInvoiceCollectionSettingConfig {}
|
|
1281
1281
|
|
|
1282
1282
|
export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
|
|
1283
1283
|
collectionOverride(
|
|
@@ -1316,7 +1316,7 @@ describe('MyProrations', () => {
|
|
|
1316
1316
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1317
1317
|
|
|
1318
1318
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1319
|
-
interface MyProrationsConfig
|
|
1319
|
+
interface MyProrationsConfig {}
|
|
1320
1320
|
|
|
1321
1321
|
export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
|
|
1322
1322
|
prorateItems(
|
|
@@ -1357,7 +1357,7 @@ describe('MyRecurringBillingItemHandling', () => {
|
|
|
1357
1357
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1358
1358
|
|
|
1359
1359
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1360
|
-
interface MyRecurringBillingItemHandlingConfig
|
|
1360
|
+
interface MyRecurringBillingItemHandlingConfig {}
|
|
1361
1361
|
|
|
1362
1362
|
export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
|
|
1363
1363
|
beforeItemCreation(
|
|
@@ -1607,7 +1607,7 @@ describe('MyCustomAction', () => {
|
|
|
1607
1607
|
content: `import type { Core, Context } from '@stripe/extensibility-sdk';
|
|
1608
1608
|
|
|
1609
1609
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1610
|
-
interface MyCustomActionConfig
|
|
1610
|
+
interface MyCustomActionConfig {}
|
|
1611
1611
|
|
|
1612
1612
|
export default class MyCustomAction implements Core.Workflows
|
|
1613
1613
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -1670,7 +1670,7 @@ describe('MyCustomAction', () => {
|
|
|
1670
1670
|
content: `import type { Extend, Context } from '@stripe/extensibility-sdk';
|
|
1671
1671
|
|
|
1672
1672
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1673
|
-
interface MyCustomActionConfig
|
|
1673
|
+
interface MyCustomActionConfig {}
|
|
1674
1674
|
|
|
1675
1675
|
export default class MyCustomAction implements Extend.Workflows
|
|
1676
1676
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -2806,6 +2806,7 @@ function _createBaseOutput(params, context) {
|
|
|
2806
2806
|
// src/templates/extensions/core.workflows.custom_action.ts
|
|
2807
2807
|
var EXTENSION_INTERFACE_ID = "core.workflows.custom_action";
|
|
2808
2808
|
var customActionTemplate = {
|
|
2809
|
+
deprecated: true,
|
|
2809
2810
|
methods: {
|
|
2810
2811
|
execute: { implementation_types: ["script", "remote-function"] },
|
|
2811
2812
|
get_form_state: { implementation_types: ["script", "remote-function"] }
|
|
@@ -26,19 +26,19 @@ export interface _PackageMetadata {
|
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
28
28
|
export declare const _regenWorkspaceOptionsSchema: z.ZodObject<{
|
|
29
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
root: z.ZodOptional<z.ZodString>;
|
|
31
|
+
packageDir: z.ZodOptional<z.ZodString>;
|
|
32
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
workspaceName: z.ZodOptional<z.ZodString>;
|
|
34
|
+
skipDependencies: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
skipHooks: z.ZodOptional<z.ZodBoolean>;
|
|
29
36
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
30
38
|
implementationType: z.ZodOptional<z.ZodEnum<{
|
|
31
|
-
"remote-function": "remote-function";
|
|
32
39
|
script: "script";
|
|
40
|
+
"remote-function": "remote-function";
|
|
33
41
|
}>>;
|
|
34
|
-
name: z.ZodOptional<z.ZodString>;
|
|
35
|
-
packageDir: z.ZodOptional<z.ZodString>;
|
|
36
|
-
root: z.ZodOptional<z.ZodString>;
|
|
37
|
-
skipDependencies: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
-
skipHooks: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
-
templateId: z.ZodOptional<z.ZodString>;
|
|
40
|
-
workspaceId: z.ZodOptional<z.ZodString>;
|
|
41
|
-
workspaceName: z.ZodOptional<z.ZodString>;
|
|
42
42
|
}, z.core.$strip>;
|
|
43
43
|
/**
|
|
44
44
|
* Options for regenerating a workspace from templates.
|
|
@@ -62,28 +62,28 @@ export interface _WorkspaceGeneratedFile {
|
|
|
62
62
|
* @internal
|
|
63
63
|
*/
|
|
64
64
|
export type _WorkspaceDependency = {
|
|
65
|
-
|
|
65
|
+
type: 'npm';
|
|
66
66
|
name: string;
|
|
67
|
-
|
|
67
|
+
version: string;
|
|
68
68
|
} | {
|
|
69
|
-
name: string;
|
|
70
69
|
type: 'dev-npm';
|
|
70
|
+
name: string;
|
|
71
71
|
version: string;
|
|
72
72
|
} | {
|
|
73
|
+
type: 'stripe-cli-plugin';
|
|
73
74
|
name: string;
|
|
74
|
-
|
|
75
|
-
version: string;
|
|
75
|
+
minVersion?: string;
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
78
|
* A post-generation hook to run after files are written: either a pnpm script or a direct exec.
|
|
79
79
|
* @internal
|
|
80
80
|
*/
|
|
81
81
|
export type _WorkspacePostGenerationHook = {
|
|
82
|
+
script: string;
|
|
82
83
|
description?: string;
|
|
83
|
-
exec: string;
|
|
84
84
|
} | {
|
|
85
|
+
exec: string;
|
|
85
86
|
description?: string;
|
|
86
|
-
script: string;
|
|
87
87
|
};
|
|
88
88
|
/**
|
|
89
89
|
* Result returned by a workspace template generator.
|
|
@@ -94,8 +94,8 @@ export interface _WorkspaceGenerateResult {
|
|
|
94
94
|
files: _WorkspaceGeneratedFile[];
|
|
95
95
|
/** Dependencies to install after file generation. */
|
|
96
96
|
dependencies?: {
|
|
97
|
-
dev?: _WorkspaceDependency[];
|
|
98
97
|
runtime?: _WorkspaceDependency[];
|
|
98
|
+
dev?: _WorkspaceDependency[];
|
|
99
99
|
};
|
|
100
100
|
/** Hooks to run after dependencies are installed. */
|
|
101
101
|
postGenerationHooks?: _WorkspacePostGenerationHook[];
|
|
@@ -106,7 +106,7 @@ export interface _WorkspaceGenerateResult {
|
|
|
106
106
|
* Decision returned by an overwrite prompt callback when a file already exists.
|
|
107
107
|
* @internal
|
|
108
108
|
*/
|
|
109
|
-
export type _WorkspaceOverwriteDecision = '
|
|
109
|
+
export type _WorkspaceOverwriteDecision = 'overwrite' | 'skip' | 'overwrite-all' | 'abort';
|
|
110
110
|
/**
|
|
111
111
|
* Callback invoked when a file to be written already exists, prompting for an overwrite decision.
|
|
112
112
|
* @internal
|
|
@@ -116,7 +116,7 @@ export type _WorkspaceOverwritePromptCallback = (path: string, cwd: string, newC
|
|
|
116
116
|
* Controls how the file writer handles existing files.
|
|
117
117
|
* @internal
|
|
118
118
|
*/
|
|
119
|
-
export type _WorkspaceWriteMode =
|
|
119
|
+
export type _WorkspaceWriteMode = 'overwrite-all' | 'abort-if-existing' | 'if-missing' | _WorkspaceOverwritePromptCallback;
|
|
120
120
|
/**
|
|
121
121
|
* Options for writing workspace generated files to disk.
|
|
122
122
|
* @internal
|
|
@@ -155,7 +155,7 @@ export interface _WorkspacePendingChange {
|
|
|
155
155
|
/** The dependency this change applies to. */
|
|
156
156
|
dependency: _WorkspaceDependency;
|
|
157
157
|
/** The action that will be taken. */
|
|
158
|
-
action: 'add' | '
|
|
158
|
+
action: 'add' | 'update' | 'already-satisfied' | 'conflict';
|
|
159
159
|
}
|
|
160
160
|
/**
|
|
161
161
|
* Interface for managing workspace dependency installation.
|
|
@@ -164,8 +164,8 @@ export interface _WorkspacePendingChange {
|
|
|
164
164
|
export interface _WorkspaceDependencyManager {
|
|
165
165
|
/** Analyze and queue the given dependencies for installation. */
|
|
166
166
|
ensureDependencies(input: {
|
|
167
|
-
optional?: _WorkspaceDependency[];
|
|
168
167
|
required: _WorkspaceDependency[];
|
|
168
|
+
optional?: _WorkspaceDependency[];
|
|
169
169
|
}): Promise<_WorkspacePendingChange[]>;
|
|
170
170
|
/** Mark a conflicting dependency as resolved so it will be force-installed. */
|
|
171
171
|
resolveConflict(dep: _WorkspaceDependency): void;
|
|
@@ -189,8 +189,8 @@ export interface _WorkspaceExtensionConfig {
|
|
|
189
189
|
script_entry_point?: string;
|
|
190
190
|
/** Inline script definition. */
|
|
191
191
|
script?: {
|
|
192
|
-
content: string;
|
|
193
192
|
type: string;
|
|
193
|
+
content: string;
|
|
194
194
|
};
|
|
195
195
|
/** Required permissions for the extension. */
|
|
196
196
|
permissions: string[];
|
|
@@ -199,21 +199,21 @@ export interface _WorkspaceExtensionConfig {
|
|
|
199
199
|
/** Optional configuration schemas. */
|
|
200
200
|
configuration?: {
|
|
201
201
|
input_schema: {
|
|
202
|
-
content: string;
|
|
203
202
|
type: 'json_schema' | 'jsonforms';
|
|
203
|
+
content: string;
|
|
204
204
|
};
|
|
205
205
|
ui_schema: {
|
|
206
|
-
content: string;
|
|
207
206
|
type: 'json_schema' | 'jsonforms';
|
|
207
|
+
content: string;
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
210
|
/** Remote function endpoints. */
|
|
211
211
|
endpoints?: {
|
|
212
212
|
id: string;
|
|
213
|
+
type: 'remote_function' | 'custom_http';
|
|
213
214
|
live?: _EndpointDefinition;
|
|
214
215
|
managed_sandbox?: _EndpointDefinition;
|
|
215
216
|
test?: _EndpointDefinition;
|
|
216
|
-
type: 'custom_http' | 'remote_function';
|
|
217
217
|
}[];
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
@@ -227,13 +227,13 @@ export interface _WorkspaceManifest {
|
|
|
227
227
|
getExtensions(): readonly Readonly<_WorkspaceExtensionConfig>[];
|
|
228
228
|
/** Check whether a custom object entry is already registered in the manifest. */
|
|
229
229
|
hasCustomObject(entry: {
|
|
230
|
-
className: string;
|
|
231
230
|
filePath: string;
|
|
231
|
+
className: string;
|
|
232
232
|
}): boolean;
|
|
233
233
|
/** Add a custom object entry to the manifest; returns true if added, false if already present. */
|
|
234
234
|
addCustomObject(entry: {
|
|
235
|
-
className: string;
|
|
236
235
|
filePath: string;
|
|
236
|
+
className: string;
|
|
237
237
|
}): boolean;
|
|
238
238
|
/** Persist the manifest to disk. */
|
|
239
239
|
save(): Promise<void>;
|
|
@@ -260,13 +260,17 @@ export interface _WorkspaceServices {
|
|
|
260
260
|
writeFiles: (files: _WorkspaceGeneratedFile[], options?: _WorkspaceFileWriterOptions) => Promise<_WorkspaceFileWriteResult>;
|
|
261
261
|
/** Create a dependency manager scoped to the given working directory. */
|
|
262
262
|
createDepManager: (opts: {
|
|
263
|
-
context?: _CliContext;
|
|
264
263
|
cwd: string;
|
|
264
|
+
context?: _CliContext;
|
|
265
265
|
}) => _WorkspaceDependencyManager;
|
|
266
266
|
/** Generate custom object files (definition and test) from a name. */
|
|
267
|
-
generateCustomObject: (vars: {
|
|
267
|
+
generateCustomObject: (vars: {
|
|
268
|
+
name: string;
|
|
269
|
+
}) => Promise<_WorkspaceGenerateResult>;
|
|
268
270
|
/** Generate the custom-objects workspace scaffolding (package.json, tsconfig.json). */
|
|
269
|
-
generateCustomObjectsWorkspace: (vars: {
|
|
271
|
+
generateCustomObjectsWorkspace: (vars: {
|
|
272
|
+
packagesSubfolder?: string;
|
|
273
|
+
}) => Promise<_WorkspaceGenerateResult>;
|
|
270
274
|
/** Load the stripe-app.yaml manifest from the given path. */
|
|
271
275
|
loadManifest: (manifestPath: string) => Promise<_WorkspaceManifest>;
|
|
272
276
|
/** Run post-generation hooks in the given working directory. */
|
package/dist/workspace/index.js
CHANGED
|
@@ -1166,7 +1166,7 @@ describe('MyDiscountCalculation', () => {
|
|
|
1166
1166
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1167
1167
|
|
|
1168
1168
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1169
|
-
interface MyDiscountCalculationConfig
|
|
1169
|
+
interface MyDiscountCalculationConfig {}
|
|
1170
1170
|
|
|
1171
1171
|
export default class MyDiscountCalculation implements Billing.Bill
|
|
1172
1172
|
.DiscountCalculation<MyDiscountCalculationConfig> {
|
|
@@ -1208,7 +1208,7 @@ describe('MyBalanceApp', () => {
|
|
|
1208
1208
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1209
1209
|
|
|
1210
1210
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1211
|
-
interface MyBalanceAppConfig
|
|
1211
|
+
interface MyBalanceAppConfig {}
|
|
1212
1212
|
|
|
1213
1213
|
export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
|
|
1214
1214
|
computeAppliedCustomerBalance(
|
|
@@ -1249,7 +1249,7 @@ describe('MyInvoiceCollectionSetting', () => {
|
|
|
1249
1249
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1250
1250
|
|
|
1251
1251
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1252
|
-
interface MyInvoiceCollectionSettingConfig
|
|
1252
|
+
interface MyInvoiceCollectionSettingConfig {}
|
|
1253
1253
|
|
|
1254
1254
|
export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
|
|
1255
1255
|
collectionOverride(
|
|
@@ -1288,7 +1288,7 @@ describe('MyProrations', () => {
|
|
|
1288
1288
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1289
1289
|
|
|
1290
1290
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1291
|
-
interface MyProrationsConfig
|
|
1291
|
+
interface MyProrationsConfig {}
|
|
1292
1292
|
|
|
1293
1293
|
export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
|
|
1294
1294
|
prorateItems(
|
|
@@ -1329,7 +1329,7 @@ describe('MyRecurringBillingItemHandling', () => {
|
|
|
1329
1329
|
content: `import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
1330
1330
|
|
|
1331
1331
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1332
|
-
interface MyRecurringBillingItemHandlingConfig
|
|
1332
|
+
interface MyRecurringBillingItemHandlingConfig {}
|
|
1333
1333
|
|
|
1334
1334
|
export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
|
|
1335
1335
|
beforeItemCreation(
|
|
@@ -1579,7 +1579,7 @@ describe('MyCustomAction', () => {
|
|
|
1579
1579
|
content: `import type { Core, Context } from '@stripe/extensibility-sdk';
|
|
1580
1580
|
|
|
1581
1581
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1582
|
-
interface MyCustomActionConfig
|
|
1582
|
+
interface MyCustomActionConfig {}
|
|
1583
1583
|
|
|
1584
1584
|
export default class MyCustomAction implements Core.Workflows
|
|
1585
1585
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -1642,7 +1642,7 @@ describe('MyCustomAction', () => {
|
|
|
1642
1642
|
content: `import type { Extend, Context } from '@stripe/extensibility-sdk';
|
|
1643
1643
|
|
|
1644
1644
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
1645
|
-
interface MyCustomActionConfig
|
|
1645
|
+
interface MyCustomActionConfig {}
|
|
1646
1646
|
|
|
1647
1647
|
export default class MyCustomAction implements Extend.Workflows
|
|
1648
1648
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -2782,6 +2782,7 @@ function _createBaseOutput(params, context) {
|
|
|
2782
2782
|
// src/templates/extensions/core.workflows.custom_action.ts
|
|
2783
2783
|
var EXTENSION_INTERFACE_ID = "core.workflows.custom_action";
|
|
2784
2784
|
var customActionTemplate = {
|
|
2785
|
+
deprecated: true,
|
|
2785
2786
|
methods: {
|
|
2786
2787
|
execute: { implementation_types: ["script", "remote-function"] },
|
|
2787
2788
|
get_form_state: { implementation_types: ["script", "remote-function"] }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/extensibility-dev-tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"yaml": "^2.8.3",
|
|
73
73
|
"yargs": "^17.7.2",
|
|
74
74
|
"zod": "^4.3.6",
|
|
75
|
-
"@stripe/extensibility-custom-objects-tools": "0.41.
|
|
76
|
-
"@stripe/extensibility-tool-utils": "0.6.
|
|
75
|
+
"@stripe/extensibility-custom-objects-tools": "0.41.1",
|
|
76
|
+
"@stripe/extensibility-tool-utils": "0.6.8"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@protobuf-ts/protoc": "^2.8.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyDiscountCalculationConfig
|
|
4
|
+
interface MyDiscountCalculationConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyDiscountCalculation implements Billing.Bill
|
|
7
7
|
.DiscountCalculation<MyDiscountCalculationConfig> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyBalanceAppConfig
|
|
4
|
+
interface MyBalanceAppConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyBalanceApp implements Billing.CustomerBalanceApplication<MyBalanceAppConfig> {
|
|
7
7
|
computeAppliedCustomerBalance(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyInvoiceCollectionSettingConfig
|
|
4
|
+
interface MyInvoiceCollectionSettingConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyInvoiceCollectionSetting implements Billing.InvoiceCollectionSetting<MyInvoiceCollectionSettingConfig> {
|
|
7
7
|
collectionOverride(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyProrationsConfig
|
|
4
|
+
interface MyProrationsConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyProrations implements Billing.Prorations<MyProrationsConfig> {
|
|
7
7
|
prorateItems(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Billing, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyRecurringBillingItemHandlingConfig
|
|
4
|
+
interface MyRecurringBillingItemHandlingConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyRecurringBillingItemHandling implements Billing.RecurringBillingItemHandling<MyRecurringBillingItemHandlingConfig> {
|
|
7
7
|
beforeItemCreation(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Core, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyCustomActionConfig
|
|
4
|
+
interface MyCustomActionConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyCustomAction implements Core.Workflows
|
|
7
7
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Extend, Context } from '@stripe/extensibility-sdk';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
4
|
-
interface MyCustomActionConfig
|
|
4
|
+
interface MyCustomActionConfig {}
|
|
5
5
|
|
|
6
6
|
export default class MyCustomAction implements Extend.Workflows
|
|
7
7
|
.CustomAction<MyCustomActionConfig> {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-surface.d.ts","sourceRoot":"","sources":["../src/api-surface.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,YAAY,CAAC"}
|