@delopay/sdk 0.385.0 → 0.388.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-UGIHA7A6.js → chunk-A6CXJOUK.js} +209 -7
- package/dist/chunk-A6CXJOUK.js.map +1 -0
- package/dist/{index-CkiG9mc1.d.cts → index-BSd4HpQq.d.cts} +270 -3
- package/dist/{index-CkiG9mc1.d.ts → index-BSd4HpQq.d.ts} +270 -3
- package/dist/index.cjs +210 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/internal.cjs +224 -6
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +56 -3
- package/dist/internal.d.ts +56 -3
- package/dist/internal.js +19 -1
- package/dist/internal.js.map +1 -1
- package/package.json +17 -19
- package/dist/chunk-UGIHA7A6.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -133,6 +133,7 @@ __export(index_exports, {
|
|
|
133
133
|
PANES_MAX: () => PANES_MAX,
|
|
134
134
|
PANE_CATEGORY_KEYS: () => PANE_CATEGORY_KEYS,
|
|
135
135
|
PANE_ICON_KEYS: () => PANE_ICON_KEYS,
|
|
136
|
+
PAYMENT_CURRENCIES: () => PAYMENT_CURRENCIES,
|
|
136
137
|
PAYPAL_CARD_LAYOUTS: () => PAYPAL_CARD_LAYOUTS,
|
|
137
138
|
PAYPAL_LABEL_STYLES: () => PAYPAL_LABEL_STYLES,
|
|
138
139
|
PRESENTATION_CONTRACT_VERSION: () => PRESENTATION_CONTRACT_VERSION,
|
|
@@ -271,6 +272,7 @@ __export(index_exports, {
|
|
|
271
272
|
leaf: () => leaf,
|
|
272
273
|
logoDimensions: () => logoDimensions,
|
|
273
274
|
matchWhopLook: () => matchWhopLook,
|
|
275
|
+
metadataLeaf: () => metadataLeaf,
|
|
274
276
|
nativePaneMethodInfo: () => nativePaneMethodInfo,
|
|
275
277
|
nearestWhopAccent: () => nearestWhopAccent,
|
|
276
278
|
noticeText: () => noticeText,
|
|
@@ -4474,6 +4476,33 @@ var Routing = class {
|
|
|
4474
4476
|
{ body: params }
|
|
4475
4477
|
);
|
|
4476
4478
|
}
|
|
4479
|
+
/**
|
|
4480
|
+
* A shop's recurring time plan with its revision, the band active now, the
|
|
4481
|
+
* next change and each limit the plan releases in parts.
|
|
4482
|
+
*
|
|
4483
|
+
* `GET /routing/time-plans/{profileId}`
|
|
4484
|
+
*/
|
|
4485
|
+
async timePlan(profileId) {
|
|
4486
|
+
return this.request("GET", `/routing/time-plans/${encodeURIComponent(profileId)}`);
|
|
4487
|
+
}
|
|
4488
|
+
/**
|
|
4489
|
+
* Replace a shop's whole time plan using its last-read revision; `plan`
|
|
4490
|
+
* null removes it. Usage, reservations and dated limit entries are left as
|
|
4491
|
+
* they are. Overlapping bands, shares that do not total 100 and a stale
|
|
4492
|
+
* revision are refused by the server. Capability preflight refuses a
|
|
4493
|
+
* backend that would not apply the plan before anything is sent.
|
|
4494
|
+
*
|
|
4495
|
+
* `PUT /routing/time-plans/{profileId}`
|
|
4496
|
+
*/
|
|
4497
|
+
async setTimePlan(profileId, params) {
|
|
4498
|
+
const caps = await this.connectorCaps(profileId);
|
|
4499
|
+
if (!caps.features?.includes("time_plans")) {
|
|
4500
|
+
throw new Error("Time plans are unsupported by the serving backend");
|
|
4501
|
+
}
|
|
4502
|
+
return this.request("PUT", `/routing/time-plans/${encodeURIComponent(profileId)}`, {
|
|
4503
|
+
body: { revision: params.revision, plan: params.plan }
|
|
4504
|
+
});
|
|
4505
|
+
}
|
|
4477
4506
|
/**
|
|
4478
4507
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
4479
4508
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -12064,6 +12093,14 @@ function leaf(lhs, comparison, value) {
|
|
|
12064
12093
|
const tagged = typeof value === "number" ? { type: "number", value } : { type: "enum_variant", value };
|
|
12065
12094
|
return { kind: "leaf", lhs, comparison, value: tagged };
|
|
12066
12095
|
}
|
|
12096
|
+
function metadataLeaf(key, comparison, value) {
|
|
12097
|
+
return {
|
|
12098
|
+
kind: "leaf",
|
|
12099
|
+
lhs: "metadata",
|
|
12100
|
+
comparison,
|
|
12101
|
+
value: { type: "metadata_variant", value: { key, value } }
|
|
12102
|
+
};
|
|
12103
|
+
}
|
|
12067
12104
|
function allOf(...children) {
|
|
12068
12105
|
return { kind: "all", children };
|
|
12069
12106
|
}
|
|
@@ -12175,7 +12212,8 @@ function programToTree(program) {
|
|
|
12175
12212
|
rules: program.rules.map((r) => ({
|
|
12176
12213
|
name: r.name,
|
|
12177
12214
|
match: ruleMatchToTree(r.statements),
|
|
12178
|
-
fee: r.connectorSelection.fee ?? null
|
|
12215
|
+
fee: r.connectorSelection.fee ?? null,
|
|
12216
|
+
schedule: r.connectorSelection.schedule ?? null
|
|
12179
12217
|
})),
|
|
12180
12218
|
otherwise: program.defaultSelection.fee ?? null
|
|
12181
12219
|
};
|
|
@@ -12189,11 +12227,11 @@ var FeeProgramBuilder = class {
|
|
|
12189
12227
|
rule(input) {
|
|
12190
12228
|
if (input.match) assertNoEmptyAnyOf(input.match);
|
|
12191
12229
|
const statements = input.match ? encodeStatements(input.match) : [{ condition: buildConditions(input.when, input.rawConditions) }];
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
});
|
|
12230
|
+
const connectorSelection = {
|
|
12231
|
+
fee: toFeeOutput(input.fee)
|
|
12232
|
+
};
|
|
12233
|
+
if (input.schedule !== void 0) connectorSelection.schedule = input.schedule;
|
|
12234
|
+
this.rules.push({ name: input.name, connectorSelection, statements });
|
|
12197
12235
|
return this;
|
|
12198
12236
|
}
|
|
12199
12237
|
/** Set the default selection (applied when no rule matches). */
|
|
@@ -12214,6 +12252,170 @@ function feeProgram() {
|
|
|
12214
12252
|
return new FeeProgramBuilder();
|
|
12215
12253
|
}
|
|
12216
12254
|
|
|
12255
|
+
// src/currencies.ts
|
|
12256
|
+
var PAYMENT_CURRENCIES = [
|
|
12257
|
+
"AED",
|
|
12258
|
+
"AFN",
|
|
12259
|
+
"ALL",
|
|
12260
|
+
"AMD",
|
|
12261
|
+
"ANG",
|
|
12262
|
+
"AOA",
|
|
12263
|
+
"ARS",
|
|
12264
|
+
"AUD",
|
|
12265
|
+
"AWG",
|
|
12266
|
+
"AZN",
|
|
12267
|
+
"BAM",
|
|
12268
|
+
"BBD",
|
|
12269
|
+
"BDT",
|
|
12270
|
+
"BGN",
|
|
12271
|
+
"BHD",
|
|
12272
|
+
"BIF",
|
|
12273
|
+
"BMD",
|
|
12274
|
+
"BND",
|
|
12275
|
+
"BOB",
|
|
12276
|
+
"BRL",
|
|
12277
|
+
"BSD",
|
|
12278
|
+
"BTN",
|
|
12279
|
+
"BWP",
|
|
12280
|
+
"BYN",
|
|
12281
|
+
"BZD",
|
|
12282
|
+
"CAD",
|
|
12283
|
+
"CDF",
|
|
12284
|
+
"CHF",
|
|
12285
|
+
"CLF",
|
|
12286
|
+
"CLP",
|
|
12287
|
+
"CNY",
|
|
12288
|
+
"COP",
|
|
12289
|
+
"CRC",
|
|
12290
|
+
"CUC",
|
|
12291
|
+
"CUP",
|
|
12292
|
+
"CVE",
|
|
12293
|
+
"CZK",
|
|
12294
|
+
"DJF",
|
|
12295
|
+
"DKK",
|
|
12296
|
+
"DOP",
|
|
12297
|
+
"DZD",
|
|
12298
|
+
"EGP",
|
|
12299
|
+
"ERN",
|
|
12300
|
+
"ETB",
|
|
12301
|
+
"EUR",
|
|
12302
|
+
"FJD",
|
|
12303
|
+
"FKP",
|
|
12304
|
+
"GBP",
|
|
12305
|
+
"GEL",
|
|
12306
|
+
"GHS",
|
|
12307
|
+
"GIP",
|
|
12308
|
+
"GMD",
|
|
12309
|
+
"GNF",
|
|
12310
|
+
"GTQ",
|
|
12311
|
+
"GYD",
|
|
12312
|
+
"HKD",
|
|
12313
|
+
"HNL",
|
|
12314
|
+
"HRK",
|
|
12315
|
+
"HTG",
|
|
12316
|
+
"HUF",
|
|
12317
|
+
"IDR",
|
|
12318
|
+
"ILS",
|
|
12319
|
+
"INR",
|
|
12320
|
+
"IQD",
|
|
12321
|
+
"IRR",
|
|
12322
|
+
"ISK",
|
|
12323
|
+
"JMD",
|
|
12324
|
+
"JOD",
|
|
12325
|
+
"JPY",
|
|
12326
|
+
"KES",
|
|
12327
|
+
"KGS",
|
|
12328
|
+
"KHR",
|
|
12329
|
+
"KMF",
|
|
12330
|
+
"KPW",
|
|
12331
|
+
"KRW",
|
|
12332
|
+
"KWD",
|
|
12333
|
+
"KYD",
|
|
12334
|
+
"KZT",
|
|
12335
|
+
"LAK",
|
|
12336
|
+
"LBP",
|
|
12337
|
+
"LKR",
|
|
12338
|
+
"LRD",
|
|
12339
|
+
"LSL",
|
|
12340
|
+
"LYD",
|
|
12341
|
+
"MAD",
|
|
12342
|
+
"MDL",
|
|
12343
|
+
"MGA",
|
|
12344
|
+
"MKD",
|
|
12345
|
+
"MMK",
|
|
12346
|
+
"MNT",
|
|
12347
|
+
"MOP",
|
|
12348
|
+
"MRU",
|
|
12349
|
+
"MUR",
|
|
12350
|
+
"MVR",
|
|
12351
|
+
"MWK",
|
|
12352
|
+
"MXN",
|
|
12353
|
+
"MYR",
|
|
12354
|
+
"MZN",
|
|
12355
|
+
"NAD",
|
|
12356
|
+
"NGN",
|
|
12357
|
+
"NIO",
|
|
12358
|
+
"NOK",
|
|
12359
|
+
"NPR",
|
|
12360
|
+
"NZD",
|
|
12361
|
+
"OMR",
|
|
12362
|
+
"PAB",
|
|
12363
|
+
"PEN",
|
|
12364
|
+
"PGK",
|
|
12365
|
+
"PHP",
|
|
12366
|
+
"PKR",
|
|
12367
|
+
"PLN",
|
|
12368
|
+
"PYG",
|
|
12369
|
+
"QAR",
|
|
12370
|
+
"RON",
|
|
12371
|
+
"RSD",
|
|
12372
|
+
"RUB",
|
|
12373
|
+
"RWF",
|
|
12374
|
+
"SAR",
|
|
12375
|
+
"SBD",
|
|
12376
|
+
"SCR",
|
|
12377
|
+
"SDG",
|
|
12378
|
+
"SEK",
|
|
12379
|
+
"SGD",
|
|
12380
|
+
"SHP",
|
|
12381
|
+
"SLE",
|
|
12382
|
+
"SLL",
|
|
12383
|
+
"SOS",
|
|
12384
|
+
"SRD",
|
|
12385
|
+
"SSP",
|
|
12386
|
+
"STD",
|
|
12387
|
+
"STN",
|
|
12388
|
+
"SVC",
|
|
12389
|
+
"SYP",
|
|
12390
|
+
"SZL",
|
|
12391
|
+
"THB",
|
|
12392
|
+
"TJS",
|
|
12393
|
+
"TMT",
|
|
12394
|
+
"TND",
|
|
12395
|
+
"TOP",
|
|
12396
|
+
"TRY",
|
|
12397
|
+
"TTD",
|
|
12398
|
+
"TWD",
|
|
12399
|
+
"TZS",
|
|
12400
|
+
"UAH",
|
|
12401
|
+
"UGX",
|
|
12402
|
+
"USD",
|
|
12403
|
+
"UYU",
|
|
12404
|
+
"UZS",
|
|
12405
|
+
"VES",
|
|
12406
|
+
"VND",
|
|
12407
|
+
"VUV",
|
|
12408
|
+
"WST",
|
|
12409
|
+
"XAF",
|
|
12410
|
+
"XCD",
|
|
12411
|
+
"XOF",
|
|
12412
|
+
"XPF",
|
|
12413
|
+
"YER",
|
|
12414
|
+
"ZAR",
|
|
12415
|
+
"ZMW",
|
|
12416
|
+
"ZWL"
|
|
12417
|
+
];
|
|
12418
|
+
|
|
12217
12419
|
// src/airwallexCard.ts
|
|
12218
12420
|
var AIRWALLEX_CARD_PRESETS = [
|
|
12219
12421
|
"single_row",
|
|
@@ -17470,6 +17672,7 @@ var encodeNativePanes = encodePanes;
|
|
|
17470
17672
|
PANES_MAX,
|
|
17471
17673
|
PANE_CATEGORY_KEYS,
|
|
17472
17674
|
PANE_ICON_KEYS,
|
|
17675
|
+
PAYMENT_CURRENCIES,
|
|
17473
17676
|
PAYPAL_CARD_LAYOUTS,
|
|
17474
17677
|
PAYPAL_LABEL_STYLES,
|
|
17475
17678
|
PRESENTATION_CONTRACT_VERSION,
|
|
@@ -17608,6 +17811,7 @@ var encodeNativePanes = encodePanes;
|
|
|
17608
17811
|
leaf,
|
|
17609
17812
|
logoDimensions,
|
|
17610
17813
|
matchWhopLook,
|
|
17814
|
+
metadataLeaf,
|
|
17611
17815
|
nativePaneMethodInfo,
|
|
17612
17816
|
nearestWhopAccent,
|
|
17613
17817
|
noticeText,
|