@delopay/sdk 0.72.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.
- package/dist/{chunk-RGA6KEKL.js → chunk-5FA2IFIU.js} +7 -3
- package/dist/chunk-5FA2IFIU.js.map +1 -0
- package/dist/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +38 -3
- package/dist/index.d.ts +38 -3
- package/dist/index.js +1 -1
- package/dist/internal.cjs +6 -2
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-RGA6KEKL.js.map +0 -1
|
@@ -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-
|
|
4532
|
+
//# sourceMappingURL=chunk-5FA2IFIU.js.map
|