@zinn-digital/sdk 0.1.1985 → 0.1.1986

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.
@@ -44555,7 +44555,7 @@ export interface paths {
44555
44555
  put?: never;
44556
44556
  /**
44557
44557
  * Pay a partner's domain order on our checkout. Unauthenticated.
44558
- * @description With an empty body or `{"rail": …}`: the chosen rail is opened. Card gives a card-setup `client_token` (`status: setup_required`, nothing charged); PayPal gives a `paypal_order_id` for the wallet overlay (`status: paypal_approval_required`, nothing charged); crypto gives a `redirect_url` to the vendor invoice. With `setup_intent_id`, after the card form is confirmed: the card is re-read from the gateway, refused unless it belongs to this order's organization, recorded, and charged. With `paypal_order_id`, after the buyer approved: PayPal is asked to capture — the browser is never believed. When the order is paid, `return_url` is the partner's URL to send the browser to. ⛔ Nothing here decides an order is paid — the capture and the gateway webhook do, as for every order. A refusal the payer can act on is a `409` carrying its sentence.
44558
+ * @description With an empty body or `{"rail": …}`: the chosen rail is opened. Card gives a card-setup `client_token` (`status: setup_required`, nothing charged); PayPal gives a `paypal_order_id` for the wallet overlay (`status: paypal_approval_required`, nothing charged); crypto gives a `redirect_url` to the vendor invoice. With `setup_intent_id`, after the card form is confirmed: the card is re-read from the gateway, refused unless it belongs to this order's organization, recorded, and charged. With `paypal_order_id`, after the buyer approved: PayPal is asked to capture — the browser is never believed. When the order is paid, `return_url` is the partner's URL to send the browser to. ⛔ Nothing here decides an order is paid — the capture and the gateway webhook do, as for every order. A refusal the payer can act on is a `409` carrying its sentence. A decline answers `200` with `status: payment_failed`, its `reason_code`, the `reason_message` for it in `locale`, and the other `methods` the order can be paid on.
44559
44559
  */
44560
44560
  post: operations["startPartnerPayment"];
44561
44561
  delete?: never;
@@ -100423,7 +100423,7 @@ export interface components {
100423
100423
  return_url: string;
100424
100424
  };
100425
100425
  PartnerEvent: {
100426
- /** @description For `order.*`: `order_id`, `human_ref`, `status`, `previous_status`, `currency`, `total_minor`, `reason` and `reason_code`. On `order.partially_fulfilled`, `reason` is a sentence safe to show the customer and `reason_code` its type (`delegation_unknown`, `registrant_local_presence`, `transfer_rejected`, `transfer_auth_code`, `transfer_pending`, or `delivery_failed`); both are "" when there is none. For `partner.domain_*` (`partner.domain_registered`, `partner.domain_registration_failed`, `partner.domain_transferred_in`, `partner.domain_transfer_failed`): also `external_id` and `order_id` — the id of the order YOU placed for that domain, or `null` when the domain has none (or it was not placed through your API). For `domain.*`: `domain_id`, `fqdn`, `status`, and where known `previous_status`, `expires_at`, `nameservers` — except `domain.registrant_email_flagged` and `domain.registrant_email_confirmed`, which carry `registrant_email`, `deadline_at`, `suspended`, `domain_count` and `domains` (see `reportPartnerRegistrantEmailReminder`). */
100426
+ /** @description For `order.*`: `order_id`, `human_ref`, `status`, `previous_status`, `currency`, `total_minor`, `reason`, `reason_code` and `reason_message`. On `order.partially_fulfilled`, `reason` is a sentence safe to show the customer and `reason_code` its type (`delegation_unknown`, `registrant_local_presence`, `transfer_rejected`, `transfer_auth_code`, `transfer_pending`, or `delivery_failed`); both are "" when there is none. On `order.payment_failed`, `reason` is the payment provider's own text (unchanged), `reason_code` the decline class (`bank_declined`, `insufficient_funds`, `limit`, `authentication`, `card_expired`, `card_unusable`, `card_details`, `processing`, `unknown`, …) and `reason_message` the sentence to show your customer for that class, in the order owner's language — it never blames the customer's bank for a refusal that was not the bank's. `reason_message` is "" on every other event. For `partner.domain_*` (`partner.domain_registered`, `partner.domain_registration_failed`, `partner.domain_transferred_in`, `partner.domain_transfer_failed`): also `external_id` and `order_id` — the id of the order YOU placed for that domain, or `null` when the domain has none (or it was not placed through your API). For `domain.*`: `domain_id`, `fqdn`, `status`, and where known `previous_status`, `expires_at`, `nameservers` — except `domain.registrant_email_flagged` and `domain.registrant_email_confirmed`, which carry `registrant_email`, `deadline_at`, `suspended`, `domain_count` and `domains` (see `reportPartnerRegistrantEmailReminder`). */
100427
100427
  data: {
100428
100428
  [key: string]: unknown;
100429
100429
  };
@@ -100818,10 +100818,16 @@ export interface components {
100818
100818
  action_kind: string;
100819
100819
  /** @description A card-form client secret for the browser SDK, when one is needed. */
100820
100820
  client_token: string;
100821
+ /** @description On `payment_failed`, the rails this order can still be paid on (the same list as `GET` → `rails`), so the payer can try another way; empty otherwise. */
100822
+ methods: string[];
100821
100823
  /** @description The PayPal order the browser's SDK attaches to, on the PayPal rail. Minted by us — an id a client invents is refused by the gateway, not honoured. */
100822
100824
  paypal_order_id: string;
100823
100825
  /** @description Which rail this step belongs to (`stripe`, `paypal`, `nowpayments`). */
100824
100826
  rail: string;
100827
+ /** @description On `payment_failed`, the decline class of the newest failed attempt (`bank_declined`, `insufficient_funds`, `limit`, `authentication`, `card_expired`, `card_unusable`, `card_details`, `processing`, `unknown`, …); "" otherwise. */
100828
+ reason_code: string;
100829
+ /** @description On `payment_failed`, the sentence to show the payer for `reason_code`, in the `locale` the request named. It names the bank's reason only when the bank gave one and never blames the bank for a refusal that was not the bank's; "" otherwise. */
100830
+ reason_message: string;
100825
100831
  /** @description Where to send the browser to approve the payment on a rail that finishes off-site — a crypto invoice today. Empty on the card and PayPal rails, both of which finish on this page. */
100826
100832
  redirect_url: string;
100827
100833
  /** @description The partner URL to send the browser to */
@@ -198717,7 +198723,10 @@ export interface operations {
198717
198723
  };
198718
198724
  startPartnerPayment: {
198719
198725
  parameters: {
198720
- query?: never;
198726
+ query?: {
198727
+ /** @description The language `reason_message` is written in (default `en`). */
198728
+ locale?: string;
198729
+ };
198721
198730
  header?: never;
198722
198731
  path: {
198723
198732
  token: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1985",
3
+ "version": "0.1.1986",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",