@peable.to/sdk 0.2.5-oxy-one.0 → 0.2.6-oxy-one.0

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.
@@ -16,6 +16,9 @@ class BillingResource {
16
16
  idempotencyKey: options.idempotencyKey,
17
17
  });
18
18
  }
19
+ /** Pass the complete signed taxQuote to opt into fiscal checkout. Peable validates
20
+ * its pinned authority and retains immutable evidence before creating a session.
21
+ * Existing callers without a quote remain on their explicitly enabled legacy path. */
19
22
  createCheckoutSession(params, options) {
20
23
  return this.client.request('POST', '/v1/billing/checkout_sessions', {
21
24
  body: params,
@@ -13,6 +13,9 @@ export class BillingResource {
13
13
  idempotencyKey: options.idempotencyKey,
14
14
  });
15
15
  }
16
+ /** Pass the complete signed taxQuote to opt into fiscal checkout. Peable validates
17
+ * its pinned authority and retains immutable evidence before creating a session.
18
+ * Existing callers without a quote remain on their explicitly enabled legacy path. */
16
19
  createCheckoutSession(params, options) {
17
20
  return this.client.request('POST', '/v1/billing/checkout_sessions', {
18
21
  body: params,
@@ -10,6 +10,9 @@ export declare class BillingResource {
10
10
  private readonly taxQuoteAuthorityKeys?;
11
11
  constructor(client: RestClient, invoiceAuthorityKeys?: Readonly<Record<string, string>> | undefined, taxQuoteAuthorityKeys?: Readonly<Record<string, string>> | undefined);
12
12
  ensureCustomer(params: EnsureBillingCustomerParams, options: BillingRequestOptions): Promise<BillingCustomer>;
13
+ /** Pass the complete signed taxQuote to opt into fiscal checkout. Peable validates
14
+ * its pinned authority and retains immutable evidence before creating a session.
15
+ * Existing callers without a quote remain on their explicitly enabled legacy path. */
13
16
  createCheckoutSession(params: CreateBillingCheckoutParams, options: BillingRequestOptions): Promise<BillingCheckoutSession>;
14
17
  createPortalSession(params: CreateBillingPortalParams, options: BillingRequestOptions): Promise<BillingHostedSession>;
15
18
  retrieveCheckout(ref: string): Promise<BillingCheckoutObservation>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peable.to/sdk",
3
- "version": "0.2.5-oxy-one.0",
3
+ "version": "0.2.6-oxy-one.0",
4
4
  "description": "Peable SDK — a Stripe-ergonomics TypeScript client over the Peable Gateway REST + realtime contract. Server entry (`@peable.to/sdk`) mints Oxy service tokens from an ApplicationCredential and exposes paymentIntents/paymentLinks/checkout.sessions/webhooks; browser entry (`@peable.to/sdk/checkout`) is the anonymous payer-side client core.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -72,7 +72,7 @@
72
72
  "prepublishOnly": "bun run clean && bun run build"
73
73
  },
74
74
  "dependencies": {
75
- "@peable.to/shared-types": "0.3.2-oxy-one.0",
75
+ "@peable.to/shared-types": "0.3.3-oxy-one.0",
76
76
  "qrcode-generator": "^2.0.4",
77
77
  "socket.io-client": "^4.8.3"
78
78
  },