@delopay/sdk 0.261.0 → 0.263.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.
@@ -6848,6 +6848,31 @@ var CheckoutMethods = class {
6848
6848
  body
6849
6849
  });
6850
6850
  }
6851
+ /**
6852
+ * What DeloPay confirms beneath each item the shop can place: the card
6853
+ * networks the card form's accounts accept, and the methods or coins a
6854
+ * provider's page offers, per account, with source and freshness. A
6855
+ * provider that answers only per order reports `context_required` until
6856
+ * `currency` and `amount` are given. A layout item's `children` narrows
6857
+ * these lists and never adds to them.
6858
+ * `GET /checkout-methods/{profile_id}/children` (`/test/children` for Test)
6859
+ */
6860
+ async children(merchantId, profileId, params = {}) {
6861
+ const { environment, ...order } = params;
6862
+ const query = { merchant_id: merchantId, ...order };
6863
+ if (environment === "test") {
6864
+ return this.request(
6865
+ "GET",
6866
+ `/checkout-methods/${encodeURIComponent(profileId)}/test/children`,
6867
+ {
6868
+ query
6869
+ }
6870
+ );
6871
+ }
6872
+ return this.request("GET", `/checkout-methods/${encodeURIComponent(profileId)}/children`, {
6873
+ query
6874
+ });
6875
+ }
6851
6876
  /**
6852
6877
  * Delete the stored layout; the shop is back on the derived one.
6853
6878
  * `DELETE /checkout-methods/{profile_id}`
@@ -12791,6 +12816,9 @@ function presentationIconSrc(entry, color) {
12791
12816
  if (entry.fallback_icon) return builtinPaymentIconDataUri(entry.fallback_icon, color);
12792
12817
  return null;
12793
12818
  }
12819
+ function isConfirmedChild(child) {
12820
+ return child.source !== "merchant";
12821
+ }
12794
12822
  function isSupportedPresentation(response) {
12795
12823
  return response.contract_version === PRESENTATION_CONTRACT_VERSION;
12796
12824
  }
@@ -13517,6 +13545,7 @@ export {
13517
13545
  builtinPaymentIconDataUri,
13518
13546
  presentationIconDataUri,
13519
13547
  presentationIconSrc,
13548
+ isConfirmedChild,
13520
13549
  isSupportedPresentation,
13521
13550
  presentationTiers,
13522
13551
  selectableEntries,
@@ -13550,4 +13579,4 @@ export {
13550
13579
  decodeNativePanes,
13551
13580
  encodeNativePanes
13552
13581
  };
13553
- //# sourceMappingURL=chunk-BPDN5AIB.js.map
13582
+ //# sourceMappingURL=chunk-YZCDGNZL.js.map