autumn-js 1.5.78 → 1.5.80
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/backend/adapters/express.js +38 -2
- package/dist/backend/adapters/express.mjs +4 -4
- package/dist/backend/adapters/fetch.js +38 -2
- package/dist/backend/adapters/fetch.mjs +4 -4
- package/dist/backend/adapters/hono.js +38 -2
- package/dist/backend/adapters/hono.mjs +4 -4
- package/dist/backend/adapters/index.js +38 -2
- package/dist/backend/adapters/index.mjs +7 -7
- package/dist/backend/adapters/next.js +38 -2
- package/dist/backend/adapters/next.mjs +4 -4
- package/dist/backend/{chunk-W6SCXAZO.mjs → chunk-4GADIYSN.mjs} +1 -1
- package/dist/backend/{chunk-YZ3DNHYS.mjs → chunk-4PQ7DAD6.mjs} +1 -1
- package/dist/backend/{chunk-OZRVVG2G.mjs → chunk-62IBLQFX.mjs} +1 -1
- package/dist/backend/{chunk-PNK2VRBE.mjs → chunk-AQQETLOO.mjs} +1 -1
- package/dist/backend/{chunk-O6HQFQF4.mjs → chunk-D5XQY6V4.mjs} +1 -1
- package/dist/backend/{chunk-BLV2SYP6.mjs → chunk-P3Y7E5HN.mjs} +38 -2
- package/dist/backend/{chunk-W4JBLNUW.mjs → chunk-UTOMXTVD.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +38 -2
- package/dist/backend/core/handlers/coreHandler.mjs +2 -2
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +38 -2
- package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +38 -2
- package/dist/backend/core/handlers/index.mjs +3 -3
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +38 -2
- package/dist/backend/core/index.mjs +3 -3
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +38 -2
- package/dist/backend/index.mjs +3 -3
- package/dist/backend/{routeTypes-CSjhFsCE.d.ts → routeTypes-BOqpeJ9o.d.ts} +63 -1
- package/dist/backend/{routeTypes-CLdikyjM.d.mts → routeTypes-DLGuH3Ql.d.mts} +63 -1
- package/dist/better-auth/{chunk-LBJJ4YWT.mjs → chunk-U2K6OIQ5.mjs} +38 -2
- package/dist/better-auth/index.js +38 -2
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +38 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +38 -2
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/hooks/index.mjs +5 -5
- package/dist/react/index.mjs +5 -5
- package/dist/sdk/index.d.mts +88 -2
- package/dist/sdk/index.d.ts +88 -2
- package/dist/sdk/index.js +54 -2
- package/dist/sdk/index.mjs +49 -3
- package/package.json +3 -2
|
@@ -45430,6 +45430,64 @@ declare const ColorRequest: {
|
|
|
45430
45430
|
* Colour the dashboard uses to label the sandbox. Defaults to `gray`.
|
|
45431
45431
|
*/
|
|
45432
45432
|
type ColorRequest = ClosedEnum<typeof ColorRequest>;
|
|
45433
|
+
/**
|
|
45434
|
+
* Head office address for the sandbox's Stripe account. Stripe needs one before it calculates tax, so pass it when your organization has automatic tax on.
|
|
45435
|
+
*/
|
|
45436
|
+
type SandboxHeadOffice = {
|
|
45437
|
+
/**
|
|
45438
|
+
* Street address.
|
|
45439
|
+
*/
|
|
45440
|
+
line1: string;
|
|
45441
|
+
/**
|
|
45442
|
+
* Apartment, suite or building.
|
|
45443
|
+
*/
|
|
45444
|
+
line2?: string | undefined;
|
|
45445
|
+
/**
|
|
45446
|
+
* City or town.
|
|
45447
|
+
*/
|
|
45448
|
+
city: string;
|
|
45449
|
+
/**
|
|
45450
|
+
* State, county, province or region.
|
|
45451
|
+
*/
|
|
45452
|
+
state?: string | undefined;
|
|
45453
|
+
/**
|
|
45454
|
+
* Postal or ZIP code.
|
|
45455
|
+
*/
|
|
45456
|
+
postalCode: string;
|
|
45457
|
+
/**
|
|
45458
|
+
* Two-letter ISO country code, like `US` or `NZ`.
|
|
45459
|
+
*/
|
|
45460
|
+
country: string;
|
|
45461
|
+
};
|
|
45462
|
+
/**
|
|
45463
|
+
* Whether Stripe adds tax on top of your prices (`exclusive`), treats it as already included (`inclusive`), or decides by currency (`inferred_by_currency`). Defaults to `exclusive`.
|
|
45464
|
+
*/
|
|
45465
|
+
declare const TaxBehavior: {
|
|
45466
|
+
readonly Exclusive: "exclusive";
|
|
45467
|
+
readonly Inclusive: "inclusive";
|
|
45468
|
+
readonly InferredByCurrency: "inferred_by_currency";
|
|
45469
|
+
};
|
|
45470
|
+
/**
|
|
45471
|
+
* Whether Stripe adds tax on top of your prices (`exclusive`), treats it as already included (`inclusive`), or decides by currency (`inferred_by_currency`). Defaults to `exclusive`.
|
|
45472
|
+
*/
|
|
45473
|
+
type TaxBehavior = ClosedEnum<typeof TaxBehavior>;
|
|
45474
|
+
/**
|
|
45475
|
+
* Tax settings for the Stripe test account Autumn creates for the sandbox. Omit to leave that account as Stripe creates it.
|
|
45476
|
+
*/
|
|
45477
|
+
type CreateSandboxStripe = {
|
|
45478
|
+
/**
|
|
45479
|
+
* Head office address for the sandbox's Stripe account. Stripe needs one before it calculates tax, so pass it when your organization has automatic tax on.
|
|
45480
|
+
*/
|
|
45481
|
+
headOffice: SandboxHeadOffice;
|
|
45482
|
+
/**
|
|
45483
|
+
* Whether Stripe adds tax on top of your prices (`exclusive`), treats it as already included (`inclusive`), or decides by currency (`inferred_by_currency`). Defaults to `exclusive`.
|
|
45484
|
+
*/
|
|
45485
|
+
taxBehavior?: TaxBehavior | undefined;
|
|
45486
|
+
/**
|
|
45487
|
+
* Default Stripe tax code for the sandbox's prices, like `txcd_10000000` (electronically supplied services). Defaults to `txcd_10000000`.
|
|
45488
|
+
*/
|
|
45489
|
+
taxCode?: string | undefined;
|
|
45490
|
+
};
|
|
45433
45491
|
type CreateSandboxParams = {
|
|
45434
45492
|
/**
|
|
45435
45493
|
* A name for the sandbox, unique within your organization. No spaces, and it can't be `live` or `sandbox`.
|
|
@@ -45443,6 +45501,10 @@ type CreateSandboxParams = {
|
|
|
45443
45501
|
* Icon the dashboard uses to label the sandbox. Defaults to `Flask`.
|
|
45444
45502
|
*/
|
|
45445
45503
|
icon?: string | undefined;
|
|
45504
|
+
/**
|
|
45505
|
+
* Tax settings for the Stripe test account Autumn creates for the sandbox. Omit to leave that account as Stripe creates it.
|
|
45506
|
+
*/
|
|
45507
|
+
stripe?: CreateSandboxStripe | undefined;
|
|
45446
45508
|
};
|
|
45447
45509
|
/**
|
|
45448
45510
|
* Colour the dashboard uses to label the sandbox.
|
|
@@ -94305,7 +94367,7 @@ declare class Rewards extends ClientSDK {
|
|
|
94305
94367
|
|
|
94306
94368
|
declare class Sandboxes extends ClientSDK {
|
|
94307
94369
|
/**
|
|
94308
|
-
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
|
|
94370
|
+
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
|
|
94309
94371
|
*/
|
|
94310
94372
|
create(request: CreateSandboxParams, options?: RequestOptions): Promise<CreateSandboxResponse>;
|
|
94311
94373
|
/**
|
|
@@ -90593,6 +90593,11 @@ var ColorRequest = {
|
|
|
90593
90593
|
Red: "red",
|
|
90594
90594
|
Pink: "pink"
|
|
90595
90595
|
};
|
|
90596
|
+
var TaxBehavior = {
|
|
90597
|
+
Exclusive: "exclusive",
|
|
90598
|
+
Inclusive: "inclusive",
|
|
90599
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90600
|
+
};
|
|
90596
90601
|
var CreateSandboxColorResponse = {
|
|
90597
90602
|
Gray: "gray",
|
|
90598
90603
|
Blue: "blue",
|
|
@@ -90602,10 +90607,41 @@ var CreateSandboxColorResponse = {
|
|
|
90602
90607
|
Pink: "pink"
|
|
90603
90608
|
};
|
|
90604
90609
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90610
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90611
|
+
z73.object({
|
|
90612
|
+
line1: z73.string(),
|
|
90613
|
+
line2: z73.optional(z73.string()),
|
|
90614
|
+
city: z73.string(),
|
|
90615
|
+
state: z73.optional(z73.string()),
|
|
90616
|
+
postalCode: z73.string(),
|
|
90617
|
+
country: z73.string()
|
|
90618
|
+
}),
|
|
90619
|
+
z73.transform((v) => {
|
|
90620
|
+
return remap(v, {
|
|
90621
|
+
postalCode: "postal_code"
|
|
90622
|
+
});
|
|
90623
|
+
})
|
|
90624
|
+
);
|
|
90625
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90626
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90627
|
+
z73.object({
|
|
90628
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90629
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90630
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90631
|
+
}),
|
|
90632
|
+
z73.transform((v) => {
|
|
90633
|
+
return remap(v, {
|
|
90634
|
+
headOffice: "head_office",
|
|
90635
|
+
taxBehavior: "tax_behavior",
|
|
90636
|
+
taxCode: "tax_code"
|
|
90637
|
+
});
|
|
90638
|
+
})
|
|
90639
|
+
);
|
|
90605
90640
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90606
90641
|
name: z73.string(),
|
|
90607
90642
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90608
|
-
icon: z73.optional(z73.string())
|
|
90643
|
+
icon: z73.optional(z73.string()),
|
|
90644
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90609
90645
|
});
|
|
90610
90646
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90611
90647
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138141,7 +138177,7 @@ async function $do101(client, _request, options) {
|
|
|
138141
138177
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138142
138178
|
var Sandboxes = class extends ClientSDK {
|
|
138143
138179
|
/**
|
|
138144
|
-
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
|
|
138180
|
+
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
|
|
138145
138181
|
*/
|
|
138146
138182
|
async create(request, options) {
|
|
138147
138183
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -100289,6 +100289,11 @@ var ColorRequest = {
|
|
|
100289
100289
|
Red: "red",
|
|
100290
100290
|
Pink: "pink"
|
|
100291
100291
|
};
|
|
100292
|
+
var TaxBehavior = {
|
|
100293
|
+
Exclusive: "exclusive",
|
|
100294
|
+
Inclusive: "inclusive",
|
|
100295
|
+
InferredByCurrency: "inferred_by_currency"
|
|
100296
|
+
};
|
|
100292
100297
|
var CreateSandboxColorResponse = {
|
|
100293
100298
|
Gray: "gray",
|
|
100294
100299
|
Blue: "blue",
|
|
@@ -100298,10 +100303,41 @@ var CreateSandboxColorResponse = {
|
|
|
100298
100303
|
Pink: "pink"
|
|
100299
100304
|
};
|
|
100300
100305
|
var ColorRequest$outboundSchema = z92.enum(ColorRequest);
|
|
100306
|
+
var SandboxHeadOffice$outboundSchema = z92.pipe(
|
|
100307
|
+
z92.object({
|
|
100308
|
+
line1: z92.string(),
|
|
100309
|
+
line2: z92.optional(z92.string()),
|
|
100310
|
+
city: z92.string(),
|
|
100311
|
+
state: z92.optional(z92.string()),
|
|
100312
|
+
postalCode: z92.string(),
|
|
100313
|
+
country: z92.string()
|
|
100314
|
+
}),
|
|
100315
|
+
z92.transform((v) => {
|
|
100316
|
+
return remap(v, {
|
|
100317
|
+
postalCode: "postal_code"
|
|
100318
|
+
});
|
|
100319
|
+
})
|
|
100320
|
+
);
|
|
100321
|
+
var TaxBehavior$outboundSchema = z92.enum(TaxBehavior);
|
|
100322
|
+
var CreateSandboxStripe$outboundSchema = z92.pipe(
|
|
100323
|
+
z92.object({
|
|
100324
|
+
headOffice: z92.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
100325
|
+
taxBehavior: z92._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
100326
|
+
taxCode: z92._default(z92.string(), "txcd_10000000")
|
|
100327
|
+
}),
|
|
100328
|
+
z92.transform((v) => {
|
|
100329
|
+
return remap(v, {
|
|
100330
|
+
headOffice: "head_office",
|
|
100331
|
+
taxBehavior: "tax_behavior",
|
|
100332
|
+
taxCode: "tax_code"
|
|
100333
|
+
});
|
|
100334
|
+
})
|
|
100335
|
+
);
|
|
100301
100336
|
var CreateSandboxParams$outboundSchema = z92.object({
|
|
100302
100337
|
name: z92.string(),
|
|
100303
100338
|
color: z92.optional(ColorRequest$outboundSchema),
|
|
100304
|
-
icon: z92.optional(z92.string())
|
|
100339
|
+
icon: z92.optional(z92.string()),
|
|
100340
|
+
stripe: z92.optional(z92.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
100305
100341
|
});
|
|
100306
100342
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
100307
100343
|
var CreateSandboxResponse$inboundSchema = z92.pipe(
|
|
@@ -147837,7 +147873,7 @@ async function $do101(client, _request, options) {
|
|
|
147837
147873
|
// ../sdk/src/sdk/sandboxes.ts
|
|
147838
147874
|
var Sandboxes = class extends ClientSDK {
|
|
147839
147875
|
/**
|
|
147840
|
-
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
|
|
147876
|
+
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
|
|
147841
147877
|
*/
|
|
147842
147878
|
async create(request, options) {
|
|
147843
147879
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -90612,6 +90612,11 @@ var ColorRequest = {
|
|
|
90612
90612
|
Red: "red",
|
|
90613
90613
|
Pink: "pink"
|
|
90614
90614
|
};
|
|
90615
|
+
var TaxBehavior = {
|
|
90616
|
+
Exclusive: "exclusive",
|
|
90617
|
+
Inclusive: "inclusive",
|
|
90618
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90619
|
+
};
|
|
90615
90620
|
var CreateSandboxColorResponse = {
|
|
90616
90621
|
Gray: "gray",
|
|
90617
90622
|
Blue: "blue",
|
|
@@ -90621,10 +90626,41 @@ var CreateSandboxColorResponse = {
|
|
|
90621
90626
|
Pink: "pink"
|
|
90622
90627
|
};
|
|
90623
90628
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90629
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90630
|
+
z73.object({
|
|
90631
|
+
line1: z73.string(),
|
|
90632
|
+
line2: z73.optional(z73.string()),
|
|
90633
|
+
city: z73.string(),
|
|
90634
|
+
state: z73.optional(z73.string()),
|
|
90635
|
+
postalCode: z73.string(),
|
|
90636
|
+
country: z73.string()
|
|
90637
|
+
}),
|
|
90638
|
+
z73.transform((v) => {
|
|
90639
|
+
return remap(v, {
|
|
90640
|
+
postalCode: "postal_code"
|
|
90641
|
+
});
|
|
90642
|
+
})
|
|
90643
|
+
);
|
|
90644
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90645
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90646
|
+
z73.object({
|
|
90647
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90648
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90649
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90650
|
+
}),
|
|
90651
|
+
z73.transform((v) => {
|
|
90652
|
+
return remap(v, {
|
|
90653
|
+
headOffice: "head_office",
|
|
90654
|
+
taxBehavior: "tax_behavior",
|
|
90655
|
+
taxCode: "tax_code"
|
|
90656
|
+
});
|
|
90657
|
+
})
|
|
90658
|
+
);
|
|
90624
90659
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90625
90660
|
name: z73.string(),
|
|
90626
90661
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90627
|
-
icon: z73.optional(z73.string())
|
|
90662
|
+
icon: z73.optional(z73.string()),
|
|
90663
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90628
90664
|
});
|
|
90629
90665
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90630
90666
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138160,7 +138196,7 @@ async function $do101(client, _request, options) {
|
|
|
138160
138196
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138161
138197
|
var Sandboxes = class extends ClientSDK {
|
|
138162
138198
|
/**
|
|
138163
|
-
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
|
|
138199
|
+
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
|
|
138164
138200
|
*/
|
|
138165
138201
|
async create(request, options) {
|
|
138166
138202
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -100293,6 +100293,11 @@ var ColorRequest = {
|
|
|
100293
100293
|
Red: "red",
|
|
100294
100294
|
Pink: "pink"
|
|
100295
100295
|
};
|
|
100296
|
+
var TaxBehavior = {
|
|
100297
|
+
Exclusive: "exclusive",
|
|
100298
|
+
Inclusive: "inclusive",
|
|
100299
|
+
InferredByCurrency: "inferred_by_currency"
|
|
100300
|
+
};
|
|
100296
100301
|
var CreateSandboxColorResponse = {
|
|
100297
100302
|
Gray: "gray",
|
|
100298
100303
|
Blue: "blue",
|
|
@@ -100302,10 +100307,41 @@ var CreateSandboxColorResponse = {
|
|
|
100302
100307
|
Pink: "pink"
|
|
100303
100308
|
};
|
|
100304
100309
|
var ColorRequest$outboundSchema = z92.enum(ColorRequest);
|
|
100310
|
+
var SandboxHeadOffice$outboundSchema = z92.pipe(
|
|
100311
|
+
z92.object({
|
|
100312
|
+
line1: z92.string(),
|
|
100313
|
+
line2: z92.optional(z92.string()),
|
|
100314
|
+
city: z92.string(),
|
|
100315
|
+
state: z92.optional(z92.string()),
|
|
100316
|
+
postalCode: z92.string(),
|
|
100317
|
+
country: z92.string()
|
|
100318
|
+
}),
|
|
100319
|
+
z92.transform((v) => {
|
|
100320
|
+
return remap(v, {
|
|
100321
|
+
postalCode: "postal_code"
|
|
100322
|
+
});
|
|
100323
|
+
})
|
|
100324
|
+
);
|
|
100325
|
+
var TaxBehavior$outboundSchema = z92.enum(TaxBehavior);
|
|
100326
|
+
var CreateSandboxStripe$outboundSchema = z92.pipe(
|
|
100327
|
+
z92.object({
|
|
100328
|
+
headOffice: z92.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
100329
|
+
taxBehavior: z92._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
100330
|
+
taxCode: z92._default(z92.string(), "txcd_10000000")
|
|
100331
|
+
}),
|
|
100332
|
+
z92.transform((v) => {
|
|
100333
|
+
return remap(v, {
|
|
100334
|
+
headOffice: "head_office",
|
|
100335
|
+
taxBehavior: "tax_behavior",
|
|
100336
|
+
taxCode: "tax_code"
|
|
100337
|
+
});
|
|
100338
|
+
})
|
|
100339
|
+
);
|
|
100305
100340
|
var CreateSandboxParams$outboundSchema = z92.object({
|
|
100306
100341
|
name: z92.string(),
|
|
100307
100342
|
color: z92.optional(ColorRequest$outboundSchema),
|
|
100308
|
-
icon: z92.optional(z92.string())
|
|
100343
|
+
icon: z92.optional(z92.string()),
|
|
100344
|
+
stripe: z92.optional(z92.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
100309
100345
|
});
|
|
100310
100346
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
100311
100347
|
var CreateSandboxResponse$inboundSchema = z92.pipe(
|
|
@@ -147841,7 +147877,7 @@ async function $do101(client, _request, options) {
|
|
|
147841
147877
|
// ../sdk/src/sdk/sandboxes.ts
|
|
147842
147878
|
var Sandboxes = class extends ClientSDK {
|
|
147843
147879
|
/**
|
|
147844
|
-
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes).
|
|
147880
|
+
* Creates a sandbox: an isolated copy of your organization with its own catalog, customers and secret key. Returns the sandbox's secret key once, in this response — store it, it cannot be read back. Authenticated with your organization's secret key (a sandbox's own key cannot create sandboxes). Autumn creates a new Stripe test account for each sandbox; if your organization has automatic tax on, pass `stripe.head_office` so Stripe can calculate tax there straight away.
|
|
147845
147881
|
*/
|
|
147846
147882
|
async create(request, options) {
|
|
147847
147883
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -6,6 +6,11 @@ import {
|
|
|
6
6
|
useCustomer
|
|
7
7
|
} from "../chunk-JV4GHJ4W.mjs";
|
|
8
8
|
import "../chunk-VKY4SZNZ.mjs";
|
|
9
|
+
import "../chunk-Q7HVHWDK.mjs";
|
|
10
|
+
import "../chunk-GSJF6P3Q.mjs";
|
|
11
|
+
import "../chunk-SEQHNPTF.mjs";
|
|
12
|
+
import "../chunk-4TON573W.mjs";
|
|
13
|
+
import "../chunk-NDHIXCZM.mjs";
|
|
9
14
|
import {
|
|
10
15
|
useEntity
|
|
11
16
|
} from "../chunk-7SRCZYRC.mjs";
|
|
@@ -18,11 +23,6 @@ import {
|
|
|
18
23
|
import {
|
|
19
24
|
useReferrals
|
|
20
25
|
} from "../chunk-QUGX6XRQ.mjs";
|
|
21
|
-
import "../chunk-Q7HVHWDK.mjs";
|
|
22
|
-
import "../chunk-GSJF6P3Q.mjs";
|
|
23
|
-
import "../chunk-SEQHNPTF.mjs";
|
|
24
|
-
import "../chunk-4TON573W.mjs";
|
|
25
|
-
import "../chunk-NDHIXCZM.mjs";
|
|
26
26
|
import "../chunk-KCOHZSS3.mjs";
|
|
27
27
|
import "../chunk-SOA7GEAN.mjs";
|
|
28
28
|
export {
|
package/dist/react/index.mjs
CHANGED
|
@@ -17,6 +17,11 @@ import {
|
|
|
17
17
|
useCustomer
|
|
18
18
|
} from "./chunk-JV4GHJ4W.mjs";
|
|
19
19
|
import "./chunk-VKY4SZNZ.mjs";
|
|
20
|
+
import "./chunk-Q7HVHWDK.mjs";
|
|
21
|
+
import "./chunk-GSJF6P3Q.mjs";
|
|
22
|
+
import "./chunk-SEQHNPTF.mjs";
|
|
23
|
+
import "./chunk-4TON573W.mjs";
|
|
24
|
+
import "./chunk-NDHIXCZM.mjs";
|
|
20
25
|
import {
|
|
21
26
|
useEntity
|
|
22
27
|
} from "./chunk-7SRCZYRC.mjs";
|
|
@@ -29,11 +34,6 @@ import {
|
|
|
29
34
|
import {
|
|
30
35
|
useReferrals
|
|
31
36
|
} from "./chunk-QUGX6XRQ.mjs";
|
|
32
|
-
import "./chunk-Q7HVHWDK.mjs";
|
|
33
|
-
import "./chunk-GSJF6P3Q.mjs";
|
|
34
|
-
import "./chunk-SEQHNPTF.mjs";
|
|
35
|
-
import "./chunk-4TON573W.mjs";
|
|
36
|
-
import "./chunk-NDHIXCZM.mjs";
|
|
37
37
|
import "./chunk-KCOHZSS3.mjs";
|
|
38
38
|
import {
|
|
39
39
|
useAutumnClient
|