@isnap/sdk 1.3.0-next.119 → 1.3.0-next.121
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.
|
@@ -2148,7 +2148,7 @@ export interface paths {
|
|
|
2148
2148
|
put?: never;
|
|
2149
2149
|
/**
|
|
2150
2150
|
* Create a pre-order (draft)
|
|
2151
|
-
* @description Place a pre-order as a `draft` (WHA-1155). A draft has NO side effects — no provisioning line, no procurement, no Stripe charge — so the partner can hold intent / bill its own end-user first. Call `POST /v1/pre-orders/{id}/confirm` to engage the month and start procurement. A pre-order carries
|
|
2151
|
+
* @description Place a pre-order as a `draft` (WHA-1155). A draft has NO side effects — no provisioning line, no procurement, no Stripe charge — so the partner can hold intent / bill its own end-user first. Call `POST /v1/pre-orders/{id}/confirm` to engage the month and start procurement. A pre-order carries the area codes you would accept, in order of preference, the plan (`inbound_only`), which is remembered for confirm and read back on every response, and optionally the SKU (`billing_tier`). The tier and the plan are ORTHOGONAL — `rental_iphone` covers both the outbound and the inbound product, which is what `inbound_only` selects — so naming both is never a contradiction. `billing_tier` is optional because a pre-order that omits it is still `rental_iphone`, the only tier this flow mints; when named it is ANSWERED, never discarded: `rental_android` is `400 android_rental_not_purchasable` (no Android product exists in the Stripe catalogue, WHA-2474) and a tier no pre-order can procure — BYOD, virtual shared, pool — is `400 tier_not_pre_orderable`, naming the endpoint to call instead (WHA-2949). The body is otherwise STRICT (WHA-2644) — any other property is a `400`, including `quantity` and `metadata`, which earlier revisions of this contract documented and the server silently discarded.
|
|
2152
2152
|
*/
|
|
2153
2153
|
post: {
|
|
2154
2154
|
parameters: {
|
|
@@ -2164,6 +2164,8 @@ export interface paths {
|
|
|
2164
2164
|
preferred_area_codes?: string[];
|
|
2165
2165
|
/** @default false */
|
|
2166
2166
|
inbound_only?: boolean;
|
|
2167
|
+
/** @enum {string} */
|
|
2168
|
+
billing_tier?: "rental_iphone" | "rental_android" | "byod_imessage" | "byod_android" | "shared_pool" | "shared_imessage";
|
|
2167
2169
|
};
|
|
2168
2170
|
};
|
|
2169
2171
|
};
|
|
@@ -10,7 +10,15 @@ export declare class PreOrdersResource extends BaseResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* `POST /v1/pre-orders` — place a pre-order for a rental tier with no
|
|
12
12
|
* in-stock inventory. Set `inbound_only: true` to request the inbound-only
|
|
13
|
-
* rental variant.
|
|
13
|
+
* rental variant. `billing_tier` is optional and ORTHOGONAL to that plan —
|
|
14
|
+
* omitting it means `rental_iphone`, the only tier this flow mints, and
|
|
15
|
+
* `rental_iphone` covers BOTH rental products (`inbound_only` is what picks
|
|
16
|
+
* between them), so naming both is never a contradiction. When named it is
|
|
17
|
+
* answered rather than discarded (WHA-2949): `rental_android` is a
|
|
18
|
+
* `400 android_rental_not_purchasable` — no Android product exists in the
|
|
19
|
+
* Stripe catalogue — and a BYOD / virtual-shared / pool tier is a
|
|
20
|
+
* `400 tier_not_pre_orderable` whose message names the endpoint that
|
|
21
|
+
* acquires it instead. Returns a `provisioning` pre-order; ops procures the
|
|
14
22
|
* hardware and the partner is notified via the `pre_order.fulfilled` webhook
|
|
15
23
|
* when a matching line is ready. Direct customers get a Stripe
|
|
16
24
|
* `stripe_client_secret` to confirm the first-month charge; wholesale
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preorders.d.ts","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAA;AACxD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAA;AAIpE,MAAM,MA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AA;AAEnG,qBAAa,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI1E;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAS7D;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,KAAK,GAAE,kBAAuB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAOtF,kEAAkE;IAClE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IASzD;;;;OAIG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;CAQ7D"}
|
|
@@ -3,7 +3,15 @@ export class PreOrdersResource extends BaseResource {
|
|
|
3
3
|
/**
|
|
4
4
|
* `POST /v1/pre-orders` — place a pre-order for a rental tier with no
|
|
5
5
|
* in-stock inventory. Set `inbound_only: true` to request the inbound-only
|
|
6
|
-
* rental variant.
|
|
6
|
+
* rental variant. `billing_tier` is optional and ORTHOGONAL to that plan —
|
|
7
|
+
* omitting it means `rental_iphone`, the only tier this flow mints, and
|
|
8
|
+
* `rental_iphone` covers BOTH rental products (`inbound_only` is what picks
|
|
9
|
+
* between them), so naming both is never a contradiction. When named it is
|
|
10
|
+
* answered rather than discarded (WHA-2949): `rental_android` is a
|
|
11
|
+
* `400 android_rental_not_purchasable` — no Android product exists in the
|
|
12
|
+
* Stripe catalogue — and a BYOD / virtual-shared / pool tier is a
|
|
13
|
+
* `400 tier_not_pre_orderable` whose message names the endpoint that
|
|
14
|
+
* acquires it instead. Returns a `provisioning` pre-order; ops procures the
|
|
7
15
|
* hardware and the partner is notified via the `pre_order.fulfilled` webhook
|
|
8
16
|
* when a matching line is ready. Direct customers get a Stripe
|
|
9
17
|
* `stripe_client_secret` to confirm the first-month charge; wholesale
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAcxC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD
|
|
1
|
+
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAcxC,MAAM,OAAO,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAwB,EAAE,IAAqB;QACpD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAW,MAAM,EAAE,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC5E,CAAC;IAED;;;;;;OAMG;IACH,OAAO,CAAC,EAAU,EAAE,IAAqB;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CACxB,MAAM,EACN,kBAAkB,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAClD,SAAS,EACT,IAAI,CACL,CAAA;IACH,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,QAA4B,EAAE,EAAE,IAAqB;QACxD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAmB,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE;YAC/E,GAAG,IAAI;YACP,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE;SACpC,CAAC,CAAA;IACJ,CAAC;IAED,kEAAkE;IAClE,GAAG,CAAC,EAAU,EAAE,IAAqB;QACnC,OAAO,IAAI,CAAC,MAA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