@delopay/sdk 0.73.0 → 0.74.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.
@@ -3021,7 +3021,8 @@ var AvailabilityOverrides = class {
3021
3021
  /**
3022
3022
  * Preview the methods a customer in `country` would be shown for a shop —
3023
3023
  * the connector ceiling narrowed by the smart country defaults and the
3024
- * merchant overrides, without an active payment.
3024
+ * merchant overrides, without an active payment. Pass `amount` + `currency`
3025
+ * to also evaluate order-value rules.
3025
3026
  * `GET /availability-overrides/preview`
3026
3027
  */
3027
3028
  async preview(params) {
@@ -3029,7 +3030,10 @@ var AvailabilityOverrides = class {
3029
3030
  query: {
3030
3031
  merchant_id: params.merchant_id,
3031
3032
  profile_id: params.profile_id,
3032
- ...params.country ? { country: params.country } : {}
3033
+ ...params.country ? { country: params.country } : {},
3034
+ // `0` is a legitimate order value, so test for presence, not truthiness.
3035
+ ...params.amount !== void 0 ? { amount: params.amount } : {},
3036
+ ...params.currency ? { currency: params.currency } : {}
3033
3037
  }
3034
3038
  });
3035
3039
  }
@@ -4525,4 +4529,4 @@ export {
4525
4529
  applyBrandingVariables,
4526
4530
  shadowFor
4527
4531
  };
4528
- //# sourceMappingURL=chunk-RGA6KEKL.js.map
4532
+ //# sourceMappingURL=chunk-5FA2IFIU.js.map