autumn-js 1.5.78 → 1.5.79
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 +2 -2
|
@@ -90611,6 +90611,11 @@ var ColorRequest = {
|
|
|
90611
90611
|
Red: "red",
|
|
90612
90612
|
Pink: "pink"
|
|
90613
90613
|
};
|
|
90614
|
+
var TaxBehavior = {
|
|
90615
|
+
Exclusive: "exclusive",
|
|
90616
|
+
Inclusive: "inclusive",
|
|
90617
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90618
|
+
};
|
|
90614
90619
|
var CreateSandboxColorResponse = {
|
|
90615
90620
|
Gray: "gray",
|
|
90616
90621
|
Blue: "blue",
|
|
@@ -90620,10 +90625,41 @@ var CreateSandboxColorResponse = {
|
|
|
90620
90625
|
Pink: "pink"
|
|
90621
90626
|
};
|
|
90622
90627
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90628
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90629
|
+
z73.object({
|
|
90630
|
+
line1: z73.string(),
|
|
90631
|
+
line2: z73.optional(z73.string()),
|
|
90632
|
+
city: z73.string(),
|
|
90633
|
+
state: z73.optional(z73.string()),
|
|
90634
|
+
postalCode: z73.string(),
|
|
90635
|
+
country: z73.string()
|
|
90636
|
+
}),
|
|
90637
|
+
z73.transform((v) => {
|
|
90638
|
+
return remap(v, {
|
|
90639
|
+
postalCode: "postal_code"
|
|
90640
|
+
});
|
|
90641
|
+
})
|
|
90642
|
+
);
|
|
90643
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90644
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90645
|
+
z73.object({
|
|
90646
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90647
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90648
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90649
|
+
}),
|
|
90650
|
+
z73.transform((v) => {
|
|
90651
|
+
return remap(v, {
|
|
90652
|
+
headOffice: "head_office",
|
|
90653
|
+
taxBehavior: "tax_behavior",
|
|
90654
|
+
taxCode: "tax_code"
|
|
90655
|
+
});
|
|
90656
|
+
})
|
|
90657
|
+
);
|
|
90623
90658
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90624
90659
|
name: z73.string(),
|
|
90625
90660
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90626
|
-
icon: z73.optional(z73.string())
|
|
90661
|
+
icon: z73.optional(z73.string()),
|
|
90662
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90627
90663
|
});
|
|
90628
90664
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90629
90665
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138159,7 +138195,7 @@ async function $do101(client, _request, options) {
|
|
|
138159
138195
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138160
138196
|
var Sandboxes = class extends ClientSDK {
|
|
138161
138197
|
/**
|
|
138162
|
-
* 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).
|
|
138198
|
+
* 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.
|
|
138163
138199
|
*/
|
|
138164
138200
|
async create(request, options) {
|
|
138165
138201
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4GADIYSN.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UTOMXTVD.mjs";
|
|
7
|
+
import "../chunk-D5XQY6V4.mjs";
|
|
8
|
+
import "../chunk-P3Y7E5HN.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -90611,6 +90611,11 @@ var ColorRequest = {
|
|
|
90611
90611
|
Red: "red",
|
|
90612
90612
|
Pink: "pink"
|
|
90613
90613
|
};
|
|
90614
|
+
var TaxBehavior = {
|
|
90615
|
+
Exclusive: "exclusive",
|
|
90616
|
+
Inclusive: "inclusive",
|
|
90617
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90618
|
+
};
|
|
90614
90619
|
var CreateSandboxColorResponse = {
|
|
90615
90620
|
Gray: "gray",
|
|
90616
90621
|
Blue: "blue",
|
|
@@ -90620,10 +90625,41 @@ var CreateSandboxColorResponse = {
|
|
|
90620
90625
|
Pink: "pink"
|
|
90621
90626
|
};
|
|
90622
90627
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90628
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90629
|
+
z73.object({
|
|
90630
|
+
line1: z73.string(),
|
|
90631
|
+
line2: z73.optional(z73.string()),
|
|
90632
|
+
city: z73.string(),
|
|
90633
|
+
state: z73.optional(z73.string()),
|
|
90634
|
+
postalCode: z73.string(),
|
|
90635
|
+
country: z73.string()
|
|
90636
|
+
}),
|
|
90637
|
+
z73.transform((v) => {
|
|
90638
|
+
return remap(v, {
|
|
90639
|
+
postalCode: "postal_code"
|
|
90640
|
+
});
|
|
90641
|
+
})
|
|
90642
|
+
);
|
|
90643
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90644
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90645
|
+
z73.object({
|
|
90646
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90647
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90648
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90649
|
+
}),
|
|
90650
|
+
z73.transform((v) => {
|
|
90651
|
+
return remap(v, {
|
|
90652
|
+
headOffice: "head_office",
|
|
90653
|
+
taxBehavior: "tax_behavior",
|
|
90654
|
+
taxCode: "tax_code"
|
|
90655
|
+
});
|
|
90656
|
+
})
|
|
90657
|
+
);
|
|
90623
90658
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90624
90659
|
name: z73.string(),
|
|
90625
90660
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90626
|
-
icon: z73.optional(z73.string())
|
|
90661
|
+
icon: z73.optional(z73.string()),
|
|
90662
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90627
90663
|
});
|
|
90628
90664
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90629
90665
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138159,7 +138195,7 @@ async function $do101(client, _request, options) {
|
|
|
138159
138195
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138160
138196
|
var Sandboxes = class extends ClientSDK {
|
|
138161
138197
|
/**
|
|
138162
|
-
* 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).
|
|
138198
|
+
* 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.
|
|
138163
138199
|
*/
|
|
138164
138200
|
async create(request, options) {
|
|
138165
138201
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4PQ7DAD6.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UTOMXTVD.mjs";
|
|
7
|
+
import "../chunk-D5XQY6V4.mjs";
|
|
8
|
+
import "../chunk-P3Y7E5HN.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -90611,6 +90611,11 @@ var ColorRequest = {
|
|
|
90611
90611
|
Red: "red",
|
|
90612
90612
|
Pink: "pink"
|
|
90613
90613
|
};
|
|
90614
|
+
var TaxBehavior = {
|
|
90615
|
+
Exclusive: "exclusive",
|
|
90616
|
+
Inclusive: "inclusive",
|
|
90617
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90618
|
+
};
|
|
90614
90619
|
var CreateSandboxColorResponse = {
|
|
90615
90620
|
Gray: "gray",
|
|
90616
90621
|
Blue: "blue",
|
|
@@ -90620,10 +90625,41 @@ var CreateSandboxColorResponse = {
|
|
|
90620
90625
|
Pink: "pink"
|
|
90621
90626
|
};
|
|
90622
90627
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90628
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90629
|
+
z73.object({
|
|
90630
|
+
line1: z73.string(),
|
|
90631
|
+
line2: z73.optional(z73.string()),
|
|
90632
|
+
city: z73.string(),
|
|
90633
|
+
state: z73.optional(z73.string()),
|
|
90634
|
+
postalCode: z73.string(),
|
|
90635
|
+
country: z73.string()
|
|
90636
|
+
}),
|
|
90637
|
+
z73.transform((v) => {
|
|
90638
|
+
return remap(v, {
|
|
90639
|
+
postalCode: "postal_code"
|
|
90640
|
+
});
|
|
90641
|
+
})
|
|
90642
|
+
);
|
|
90643
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90644
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90645
|
+
z73.object({
|
|
90646
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90647
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90648
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90649
|
+
}),
|
|
90650
|
+
z73.transform((v) => {
|
|
90651
|
+
return remap(v, {
|
|
90652
|
+
headOffice: "head_office",
|
|
90653
|
+
taxBehavior: "tax_behavior",
|
|
90654
|
+
taxCode: "tax_code"
|
|
90655
|
+
});
|
|
90656
|
+
})
|
|
90657
|
+
);
|
|
90623
90658
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90624
90659
|
name: z73.string(),
|
|
90625
90660
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90626
|
-
icon: z73.optional(z73.string())
|
|
90661
|
+
icon: z73.optional(z73.string()),
|
|
90662
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90627
90663
|
});
|
|
90628
90664
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90629
90665
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138159,7 +138195,7 @@ async function $do101(client, _request, options) {
|
|
|
138159
138195
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138160
138196
|
var Sandboxes = class extends ClientSDK {
|
|
138161
138197
|
/**
|
|
138162
|
-
* 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).
|
|
138198
|
+
* 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.
|
|
138163
138199
|
*/
|
|
138164
138200
|
async create(request, options) {
|
|
138165
138201
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-62IBLQFX.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UTOMXTVD.mjs";
|
|
7
|
+
import "../chunk-D5XQY6V4.mjs";
|
|
8
|
+
import "../chunk-P3Y7E5HN.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -90614,6 +90614,11 @@ var ColorRequest = {
|
|
|
90614
90614
|
Red: "red",
|
|
90615
90615
|
Pink: "pink"
|
|
90616
90616
|
};
|
|
90617
|
+
var TaxBehavior = {
|
|
90618
|
+
Exclusive: "exclusive",
|
|
90619
|
+
Inclusive: "inclusive",
|
|
90620
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90621
|
+
};
|
|
90617
90622
|
var CreateSandboxColorResponse = {
|
|
90618
90623
|
Gray: "gray",
|
|
90619
90624
|
Blue: "blue",
|
|
@@ -90623,10 +90628,41 @@ var CreateSandboxColorResponse = {
|
|
|
90623
90628
|
Pink: "pink"
|
|
90624
90629
|
};
|
|
90625
90630
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90631
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90632
|
+
z73.object({
|
|
90633
|
+
line1: z73.string(),
|
|
90634
|
+
line2: z73.optional(z73.string()),
|
|
90635
|
+
city: z73.string(),
|
|
90636
|
+
state: z73.optional(z73.string()),
|
|
90637
|
+
postalCode: z73.string(),
|
|
90638
|
+
country: z73.string()
|
|
90639
|
+
}),
|
|
90640
|
+
z73.transform((v) => {
|
|
90641
|
+
return remap(v, {
|
|
90642
|
+
postalCode: "postal_code"
|
|
90643
|
+
});
|
|
90644
|
+
})
|
|
90645
|
+
);
|
|
90646
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90647
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90648
|
+
z73.object({
|
|
90649
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90650
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90651
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90652
|
+
}),
|
|
90653
|
+
z73.transform((v) => {
|
|
90654
|
+
return remap(v, {
|
|
90655
|
+
headOffice: "head_office",
|
|
90656
|
+
taxBehavior: "tax_behavior",
|
|
90657
|
+
taxCode: "tax_code"
|
|
90658
|
+
});
|
|
90659
|
+
})
|
|
90660
|
+
);
|
|
90626
90661
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90627
90662
|
name: z73.string(),
|
|
90628
90663
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90629
|
-
icon: z73.optional(z73.string())
|
|
90664
|
+
icon: z73.optional(z73.string()),
|
|
90665
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90630
90666
|
});
|
|
90631
90667
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90632
90668
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138162,7 +138198,7 @@ async function $do101(client, _request, options) {
|
|
|
138162
138198
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138163
138199
|
var Sandboxes = class extends ClientSDK {
|
|
138164
138200
|
/**
|
|
138165
|
-
* 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).
|
|
138201
|
+
* 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.
|
|
138166
138202
|
*/
|
|
138167
138203
|
async create(request, options) {
|
|
138168
138204
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4GADIYSN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-4PQ7DAD6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-62IBLQFX.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-AQQETLOO.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-UTOMXTVD.mjs";
|
|
16
|
+
import "../chunk-D5XQY6V4.mjs";
|
|
17
|
+
import "../chunk-P3Y7E5HN.mjs";
|
|
18
18
|
import "../chunk-MOHYGUMA.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -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(
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-AQQETLOO.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-UTOMXTVD.mjs";
|
|
7
|
+
import "../chunk-D5XQY6V4.mjs";
|
|
8
|
+
import "../chunk-P3Y7E5HN.mjs";
|
|
9
9
|
import "../chunk-MOHYGUMA.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -90528,6 +90528,11 @@ var ColorRequest = {
|
|
|
90528
90528
|
Red: "red",
|
|
90529
90529
|
Pink: "pink"
|
|
90530
90530
|
};
|
|
90531
|
+
var TaxBehavior = {
|
|
90532
|
+
Exclusive: "exclusive",
|
|
90533
|
+
Inclusive: "inclusive",
|
|
90534
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90535
|
+
};
|
|
90531
90536
|
var CreateSandboxColorResponse = {
|
|
90532
90537
|
Gray: "gray",
|
|
90533
90538
|
Blue: "blue",
|
|
@@ -90537,10 +90542,41 @@ var CreateSandboxColorResponse = {
|
|
|
90537
90542
|
Pink: "pink"
|
|
90538
90543
|
};
|
|
90539
90544
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90545
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90546
|
+
z73.object({
|
|
90547
|
+
line1: z73.string(),
|
|
90548
|
+
line2: z73.optional(z73.string()),
|
|
90549
|
+
city: z73.string(),
|
|
90550
|
+
state: z73.optional(z73.string()),
|
|
90551
|
+
postalCode: z73.string(),
|
|
90552
|
+
country: z73.string()
|
|
90553
|
+
}),
|
|
90554
|
+
z73.transform((v) => {
|
|
90555
|
+
return remap(v, {
|
|
90556
|
+
postalCode: "postal_code"
|
|
90557
|
+
});
|
|
90558
|
+
})
|
|
90559
|
+
);
|
|
90560
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90561
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90562
|
+
z73.object({
|
|
90563
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90564
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90565
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90566
|
+
}),
|
|
90567
|
+
z73.transform((v) => {
|
|
90568
|
+
return remap(v, {
|
|
90569
|
+
headOffice: "head_office",
|
|
90570
|
+
taxBehavior: "tax_behavior",
|
|
90571
|
+
taxCode: "tax_code"
|
|
90572
|
+
});
|
|
90573
|
+
})
|
|
90574
|
+
);
|
|
90540
90575
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90541
90576
|
name: z73.string(),
|
|
90542
90577
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90543
|
-
icon: z73.optional(z73.string())
|
|
90578
|
+
icon: z73.optional(z73.string()),
|
|
90579
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90544
90580
|
});
|
|
90545
90581
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90546
90582
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138104,7 +138140,7 @@ async function $do101(client, _request, options) {
|
|
|
138104
138140
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138105
138141
|
var Sandboxes = class extends ClientSDK {
|
|
138106
138142
|
/**
|
|
138107
|
-
* 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).
|
|
138143
|
+
* 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.
|
|
138108
138144
|
*/
|
|
138109
138145
|
async create(request, options) {
|
|
138110
138146
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-gdVF6IHz.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-DLGuH3Ql.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
6
6
|
import '../types/responseTypes.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
2
|
import '../../authTypes-gdVF6IHz.js';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-BOqpeJ9o.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|
|
@@ -90611,6 +90611,11 @@ var ColorRequest = {
|
|
|
90611
90611
|
Red: "red",
|
|
90612
90612
|
Pink: "pink"
|
|
90613
90613
|
};
|
|
90614
|
+
var TaxBehavior = {
|
|
90615
|
+
Exclusive: "exclusive",
|
|
90616
|
+
Inclusive: "inclusive",
|
|
90617
|
+
InferredByCurrency: "inferred_by_currency"
|
|
90618
|
+
};
|
|
90614
90619
|
var CreateSandboxColorResponse = {
|
|
90615
90620
|
Gray: "gray",
|
|
90616
90621
|
Blue: "blue",
|
|
@@ -90620,10 +90625,41 @@ var CreateSandboxColorResponse = {
|
|
|
90620
90625
|
Pink: "pink"
|
|
90621
90626
|
};
|
|
90622
90627
|
var ColorRequest$outboundSchema = z73.enum(ColorRequest);
|
|
90628
|
+
var SandboxHeadOffice$outboundSchema = z73.pipe(
|
|
90629
|
+
z73.object({
|
|
90630
|
+
line1: z73.string(),
|
|
90631
|
+
line2: z73.optional(z73.string()),
|
|
90632
|
+
city: z73.string(),
|
|
90633
|
+
state: z73.optional(z73.string()),
|
|
90634
|
+
postalCode: z73.string(),
|
|
90635
|
+
country: z73.string()
|
|
90636
|
+
}),
|
|
90637
|
+
z73.transform((v) => {
|
|
90638
|
+
return remap(v, {
|
|
90639
|
+
postalCode: "postal_code"
|
|
90640
|
+
});
|
|
90641
|
+
})
|
|
90642
|
+
);
|
|
90643
|
+
var TaxBehavior$outboundSchema = z73.enum(TaxBehavior);
|
|
90644
|
+
var CreateSandboxStripe$outboundSchema = z73.pipe(
|
|
90645
|
+
z73.object({
|
|
90646
|
+
headOffice: z73.lazy(() => SandboxHeadOffice$outboundSchema),
|
|
90647
|
+
taxBehavior: z73._default(TaxBehavior$outboundSchema, "exclusive"),
|
|
90648
|
+
taxCode: z73._default(z73.string(), "txcd_10000000")
|
|
90649
|
+
}),
|
|
90650
|
+
z73.transform((v) => {
|
|
90651
|
+
return remap(v, {
|
|
90652
|
+
headOffice: "head_office",
|
|
90653
|
+
taxBehavior: "tax_behavior",
|
|
90654
|
+
taxCode: "tax_code"
|
|
90655
|
+
});
|
|
90656
|
+
})
|
|
90657
|
+
);
|
|
90623
90658
|
var CreateSandboxParams$outboundSchema = z73.object({
|
|
90624
90659
|
name: z73.string(),
|
|
90625
90660
|
color: z73.optional(ColorRequest$outboundSchema),
|
|
90626
|
-
icon: z73.optional(z73.string())
|
|
90661
|
+
icon: z73.optional(z73.string()),
|
|
90662
|
+
stripe: z73.optional(z73.lazy(() => CreateSandboxStripe$outboundSchema))
|
|
90627
90663
|
});
|
|
90628
90664
|
var CreateSandboxColorResponse$inboundSchema = inboundSchema(CreateSandboxColorResponse);
|
|
90629
90665
|
var CreateSandboxResponse$inboundSchema = z73.pipe(
|
|
@@ -138159,7 +138195,7 @@ async function $do101(client, _request, options) {
|
|
|
138159
138195
|
// ../sdk/src/sdk/sandboxes.ts
|
|
138160
138196
|
var Sandboxes = class extends ClientSDK {
|
|
138161
138197
|
/**
|
|
138162
|
-
* 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).
|
|
138198
|
+
* 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.
|
|
138163
138199
|
*/
|
|
138164
138200
|
async create(request, options) {
|
|
138165
138201
|
return unwrapAsync(sandboxesCreate(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-D5XQY6V4.mjs";
|
|
4
|
+
import "../../chunk-P3Y7E5HN.mjs";
|
|
5
5
|
import "../../chunk-MOHYGUMA.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-DLGuH3Ql.mjs';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-gdVF6IHz.mjs';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-
|
|
1
|
+
import { A as Autumn, R as RouteDefinition } from '../../routeTypes-BOqpeJ9o.js';
|
|
2
2
|
import { A as AuthResult } from '../../authTypes-gdVF6IHz.js';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|