@isnap/sdk 1.3.0-next.150 → 1.3.0-next.156
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.
|
@@ -18,19 +18,23 @@ export declare class PreOrdersResource extends BaseResource {
|
|
|
18
18
|
* `400 android_rental_not_purchasable` — no Android product exists in the
|
|
19
19
|
* Stripe catalogue — and a BYOD / virtual-shared / pool tier is a
|
|
20
20
|
* `400 tier_not_pre_orderable` whose message names the endpoint that
|
|
21
|
-
* acquires it instead. Returns a `
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* `
|
|
25
|
-
*
|
|
21
|
+
* acquires it instead. Returns a `draft` pre-order and NOTHING else: no
|
|
22
|
+
* line, no fulfillment task, no ops notification, no Stripe charge, and
|
|
23
|
+
* `stripe_client_secret` is always `null`. A draft costs nothing to place
|
|
24
|
+
* and binds nobody — call `confirm()` to engage the month and start
|
|
25
|
+
* procurement.
|
|
26
26
|
*/
|
|
27
27
|
create(body: CreatePreOrderBody, opts?: RequestOptions): Promise<PreOrder>;
|
|
28
28
|
/**
|
|
29
29
|
* `POST /v1/pre-orders/{id}/confirm` — confirm a `draft` pre-order. The
|
|
30
30
|
* binding step: engages the one-month commitment (full month, no proration)
|
|
31
31
|
* and triggers procurement (mints the provisioning line + fulfillment task,
|
|
32
|
-
* notifies ops
|
|
33
|
-
*
|
|
32
|
+
* notifies ops). Returns the pre-order in `provisioning`; ops procures the
|
|
33
|
+
* hardware and the partner is notified via the `pre_order.fulfilled` webhook
|
|
34
|
+
* when a matching line is ready. Direct customers get a Stripe
|
|
35
|
+
* `stripe_client_secret` to confirm the first-month charge; wholesale
|
|
36
|
+
* partners are billed EOM (no per-line Stripe sub). Only a draft can be
|
|
37
|
+
* confirmed.
|
|
34
38
|
*/
|
|
35
39
|
confirm(id: string, opts?: RequestOptions): Promise<PreOrder>;
|
|
36
40
|
/**
|
|
@@ -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,MAAM,gBAAgB,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5E,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAC1C,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAC/C,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAChC,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA;AAEnG,qBAAa,iBAAkB,SAAQ,YAAY;IACjD;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAI1E
|
|
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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
|
11
11
|
* `400 android_rental_not_purchasable` — no Android product exists in the
|
|
12
12
|
* Stripe catalogue — and a BYOD / virtual-shared / pool tier is a
|
|
13
13
|
* `400 tier_not_pre_orderable` whose message names the endpoint that
|
|
14
|
-
* acquires it instead. Returns a `
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* `
|
|
18
|
-
*
|
|
14
|
+
* acquires it instead. Returns a `draft` pre-order and NOTHING else: no
|
|
15
|
+
* line, no fulfillment task, no ops notification, no Stripe charge, and
|
|
16
|
+
* `stripe_client_secret` is always `null`. A draft costs nothing to place
|
|
17
|
+
* and binds nobody — call `confirm()` to engage the month and start
|
|
18
|
+
* procurement.
|
|
19
19
|
*/
|
|
20
20
|
create(body, opts) {
|
|
21
21
|
return this.client.request('POST', '/v1/pre-orders', body, opts);
|
|
@@ -24,8 +24,12 @@ export class PreOrdersResource extends BaseResource {
|
|
|
24
24
|
* `POST /v1/pre-orders/{id}/confirm` — confirm a `draft` pre-order. The
|
|
25
25
|
* binding step: engages the one-month commitment (full month, no proration)
|
|
26
26
|
* and triggers procurement (mints the provisioning line + fulfillment task,
|
|
27
|
-
* notifies ops
|
|
28
|
-
*
|
|
27
|
+
* notifies ops). Returns the pre-order in `provisioning`; ops procures the
|
|
28
|
+
* hardware and the partner is notified via the `pre_order.fulfilled` webhook
|
|
29
|
+
* when a matching line is ready. Direct customers get a Stripe
|
|
30
|
+
* `stripe_client_secret` to confirm the first-month charge; wholesale
|
|
31
|
+
* partners are billed EOM (no per-line Stripe sub). Only a draft can be
|
|
32
|
+
* confirmed.
|
|
29
33
|
*/
|
|
30
34
|
confirm(id, opts) {
|
|
31
35
|
return this.client.request('POST', `/v1/pre-orders/${encodeURIComponent(id)}/confirm`, undefined, opts);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preorders.js","sourceRoot":"","sources":["../../src/resources/preorders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;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