@delopay/sdk 0.100.0 → 0.100.2

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/index.d.cts CHANGED
@@ -1965,7 +1965,7 @@ interface ApiKeyCreateResponse {
1965
1965
  /**
1966
1966
  * The shop (business profile) this key is pinned to, or `null`/absent for
1967
1967
  * merchant-wide keys. Only populated by backends with profile-scoped API
1968
- * key support (DeloPay-net/delopay-backend#344); absent on older backends.
1968
+ * key support; absent on older backends.
1969
1969
  */
1970
1970
  profile_id?: string | null;
1971
1971
  }
@@ -1981,7 +1981,7 @@ interface ApiKeyResponse {
1981
1981
  /**
1982
1982
  * The shop (business profile) this key is pinned to, or `null`/absent for
1983
1983
  * merchant-wide keys. Only populated by backends with profile-scoped API
1984
- * key support (DeloPay-net/delopay-backend#344); absent on older backends.
1984
+ * key support; absent on older backends.
1985
1985
  */
1986
1986
  profile_id?: string | null;
1987
1987
  }
@@ -2127,7 +2127,7 @@ interface ProfileDeniedConnectorsResponse {
2127
2127
  denied_connectors: string[];
2128
2128
  }
2129
2129
  /**
2130
- * A buyer-facing surcharge added to the checkout amount (issue #195).
2130
+ * A buyer-facing surcharge added to the checkout amount.
2131
2131
  *
2132
2132
  * Either a flat amount in minor units, or a percentage of the order amount.
2133
2133
  */
@@ -4731,7 +4731,7 @@ interface SettlementLineBase {
4731
4731
  }
4732
4732
  /**
4733
4733
  * A line whose processor cost is known — the rail reported it, or a
4734
- * configured schedule estimated it (be#843).
4734
+ * configured schedule estimated it.
4735
4735
  *
4736
4736
  * `processor_cost_amount` is minor units of `processor_cost_currency`, which
4737
4737
  * is the processor's **own** settlement currency and not necessarily the
@@ -4822,7 +4822,7 @@ type LimitedOperation = 'refund';
4822
4822
  type OperationLimitScope = 'merchant' | 'role' | 'user';
4823
4823
  /**
4824
4824
  * What happens when an operation would exceed its limit. v1 ships `block`
4825
- * only; `require_approval` (four-eyes) arrives with backend#342 phase 2.
4825
+ * only; `require_approval` (four-eyes) arrives in a later release.
4826
4826
  */
4827
4827
  type OperationLimitOnExceeded = 'block';
4828
4828
  /** How the usage window is anchored. Rolling is the default. */
@@ -8777,7 +8777,7 @@ declare class CheckoutSession {
8777
8777
  * own types and runtime gates — hence the loose return type.
8778
8778
  *
8779
8779
  * `theme` is the route's one declared query parameter (a named checkout
8780
- * variant, backend#793). `locale` travels as `Accept-Language` — the only
8780
+ * variant). `locale` travels as `Accept-Language` — the only
8781
8781
  * channel the backend's locale resolution reads; a `?locale=` query is
8782
8782
  * silently ignored by this route.
8783
8783
  *
@@ -8857,10 +8857,17 @@ declare class CheckoutSession {
8857
8857
  /**
8858
8858
  * A short-lived VGS Collect session for browser-side card capture.
8859
8859
  *
8860
- * A 404 or a 400 carrying the "shop has no vault" code means the shop
8861
- * has no vault configured; other errors must NOT be treated that way (a
8862
- * refused vault falling back to an unprotected card pane is exactly the
8863
- * bug this endpoint's error contract exists to prevent).
8860
+ * **Exactly one refusal means "this shop has no vault": a 400 carrying
8861
+ * `IR_19`.** Every other refusal means a vault exists and could not be used,
8862
+ * and answering it by falling back to the processor's own card pane sends an
8863
+ * unprotected card number to the very processor the shop pays to hide it
8864
+ * from — the bug this endpoint's error contract exists to prevent.
8865
+ *
8866
+ * A **404 is not benign.** The router answers it when the shop's vault
8867
+ * account cannot be found — the state a shop is left in when its vault
8868
+ * connector is deleted while the profile keeps naming the id: it still
8869
+ * reports the vault as enabled and still expects its cards cloaked. The same
8870
+ * status also covers a payment that does not exist.
8864
8871
  *
8865
8872
  * `GET /payment-link/{merchantId}/{paymentId}/vault/collect-session`
8866
8873
  */
package/dist/index.d.ts CHANGED
@@ -1965,7 +1965,7 @@ interface ApiKeyCreateResponse {
1965
1965
  /**
1966
1966
  * The shop (business profile) this key is pinned to, or `null`/absent for
1967
1967
  * merchant-wide keys. Only populated by backends with profile-scoped API
1968
- * key support (DeloPay-net/delopay-backend#344); absent on older backends.
1968
+ * key support; absent on older backends.
1969
1969
  */
1970
1970
  profile_id?: string | null;
1971
1971
  }
@@ -1981,7 +1981,7 @@ interface ApiKeyResponse {
1981
1981
  /**
1982
1982
  * The shop (business profile) this key is pinned to, or `null`/absent for
1983
1983
  * merchant-wide keys. Only populated by backends with profile-scoped API
1984
- * key support (DeloPay-net/delopay-backend#344); absent on older backends.
1984
+ * key support; absent on older backends.
1985
1985
  */
1986
1986
  profile_id?: string | null;
1987
1987
  }
@@ -2127,7 +2127,7 @@ interface ProfileDeniedConnectorsResponse {
2127
2127
  denied_connectors: string[];
2128
2128
  }
2129
2129
  /**
2130
- * A buyer-facing surcharge added to the checkout amount (issue #195).
2130
+ * A buyer-facing surcharge added to the checkout amount.
2131
2131
  *
2132
2132
  * Either a flat amount in minor units, or a percentage of the order amount.
2133
2133
  */
@@ -4731,7 +4731,7 @@ interface SettlementLineBase {
4731
4731
  }
4732
4732
  /**
4733
4733
  * A line whose processor cost is known — the rail reported it, or a
4734
- * configured schedule estimated it (be#843).
4734
+ * configured schedule estimated it.
4735
4735
  *
4736
4736
  * `processor_cost_amount` is minor units of `processor_cost_currency`, which
4737
4737
  * is the processor's **own** settlement currency and not necessarily the
@@ -4822,7 +4822,7 @@ type LimitedOperation = 'refund';
4822
4822
  type OperationLimitScope = 'merchant' | 'role' | 'user';
4823
4823
  /**
4824
4824
  * What happens when an operation would exceed its limit. v1 ships `block`
4825
- * only; `require_approval` (four-eyes) arrives with backend#342 phase 2.
4825
+ * only; `require_approval` (four-eyes) arrives in a later release.
4826
4826
  */
4827
4827
  type OperationLimitOnExceeded = 'block';
4828
4828
  /** How the usage window is anchored. Rolling is the default. */
@@ -8777,7 +8777,7 @@ declare class CheckoutSession {
8777
8777
  * own types and runtime gates — hence the loose return type.
8778
8778
  *
8779
8779
  * `theme` is the route's one declared query parameter (a named checkout
8780
- * variant, backend#793). `locale` travels as `Accept-Language` — the only
8780
+ * variant). `locale` travels as `Accept-Language` — the only
8781
8781
  * channel the backend's locale resolution reads; a `?locale=` query is
8782
8782
  * silently ignored by this route.
8783
8783
  *
@@ -8857,10 +8857,17 @@ declare class CheckoutSession {
8857
8857
  /**
8858
8858
  * A short-lived VGS Collect session for browser-side card capture.
8859
8859
  *
8860
- * A 404 or a 400 carrying the "shop has no vault" code means the shop
8861
- * has no vault configured; other errors must NOT be treated that way (a
8862
- * refused vault falling back to an unprotected card pane is exactly the
8863
- * bug this endpoint's error contract exists to prevent).
8860
+ * **Exactly one refusal means "this shop has no vault": a 400 carrying
8861
+ * `IR_19`.** Every other refusal means a vault exists and could not be used,
8862
+ * and answering it by falling back to the processor's own card pane sends an
8863
+ * unprotected card number to the very processor the shop pays to hide it
8864
+ * from — the bug this endpoint's error contract exists to prevent.
8865
+ *
8866
+ * A **404 is not benign.** The router answers it when the shop's vault
8867
+ * account cannot be found — the state a shop is left in when its vault
8868
+ * connector is deleted while the profile keeps naming the id: it still
8869
+ * reports the vault as enabled and still expects its cards cloaked. The same
8870
+ * status also covers a payment that does not exist.
8864
8871
  *
8865
8872
  * `GET /payment-link/{merchantId}/{paymentId}/vault/collect-session`
8866
8873
  */
package/dist/index.js CHANGED
@@ -88,7 +88,7 @@ import {
88
88
  surfacePadValue,
89
89
  verticalGapValue,
90
90
  visibleCustomFields
91
- } from "./chunk-HK4S2SQB.js";
91
+ } from "./chunk-6ULG3SLG.js";
92
92
  export {
93
93
  ALL_CUSTOM_FIELD_CONDITION_SOURCES,
94
94
  ALL_CUSTOM_FIELD_OPERATORS,
package/dist/internal.cjs CHANGED
@@ -231,8 +231,7 @@ var ApiKeys = class {
231
231
  // JWT-authenticated routes under `/account/{merchantId}/profile/api-keys`.
232
232
  // The caller's shop (business profile) comes from the JWT, never from the
233
233
  // request, so a shop-scoped user can only mint/list/manage keys pinned to
234
- // their own shop. Requires a backend with profile-scoped API key support
235
- // (DeloPay-net/delopay-backend#344).
234
+ // their own shop. Requires a backend with profile-scoped API key support.
236
235
  /**
237
236
  * Create a new API key pinned to the caller's shop (business profile).
238
237
  * `POST /account/{merchantId}/profile/api-keys`
@@ -5737,7 +5736,7 @@ var CheckoutSession = class {
5737
5736
  * own types and runtime gates — hence the loose return type.
5738
5737
  *
5739
5738
  * `theme` is the route's one declared query parameter (a named checkout
5740
- * variant, backend#793). `locale` travels as `Accept-Language` — the only
5739
+ * variant). `locale` travels as `Accept-Language` — the only
5741
5740
  * channel the backend's locale resolution reads; a `?locale=` query is
5742
5741
  * silently ignored by this route.
5743
5742
  *
@@ -5892,10 +5891,17 @@ var CheckoutSession = class {
5892
5891
  /**
5893
5892
  * A short-lived VGS Collect session for browser-side card capture.
5894
5893
  *
5895
- * A 404 or a 400 carrying the "shop has no vault" code means the shop
5896
- * has no vault configured; other errors must NOT be treated that way (a
5897
- * refused vault falling back to an unprotected card pane is exactly the
5898
- * bug this endpoint's error contract exists to prevent).
5894
+ * **Exactly one refusal means "this shop has no vault": a 400 carrying
5895
+ * `IR_19`.** Every other refusal means a vault exists and could not be used,
5896
+ * and answering it by falling back to the processor's own card pane sends an
5897
+ * unprotected card number to the very processor the shop pays to hide it
5898
+ * from — the bug this endpoint's error contract exists to prevent.
5899
+ *
5900
+ * A **404 is not benign.** The router answers it when the shop's vault
5901
+ * account cannot be found — the state a shop is left in when its vault
5902
+ * connector is deleted while the profile keeps naming the id: it still
5903
+ * reports the vault as enabled and still expects its cards cloaked. The same
5904
+ * status also covers a payment that does not exist.
5899
5905
  *
5900
5906
  * `GET /payment-link/{merchantId}/{paymentId}/vault/collect-session`
5901
5907
  */