@delopay/sdk 0.384.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-J75SXXXD.js → chunk-A6CXJOUK.js} +210 -7
- package/dist/chunk-A6CXJOUK.js.map +1 -0
- package/dist/{index-B3pOn9vI.d.cts → index-BSd4HpQq.d.cts} +281 -7
- package/dist/{index-B3pOn9vI.d.ts → index-BSd4HpQq.d.ts} +281 -7
- package/dist/index.cjs +211 -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 +225 -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-J75SXXXD.js.map +0 -1
|
@@ -4152,6 +4152,33 @@ var Routing = class {
|
|
|
4152
4152
|
{ body: params }
|
|
4153
4153
|
);
|
|
4154
4154
|
}
|
|
4155
|
+
/**
|
|
4156
|
+
* A shop's recurring time plan with its revision, the band active now, the
|
|
4157
|
+
* next change and each limit the plan releases in parts.
|
|
4158
|
+
*
|
|
4159
|
+
* `GET /routing/time-plans/{profileId}`
|
|
4160
|
+
*/
|
|
4161
|
+
async timePlan(profileId) {
|
|
4162
|
+
return this.request("GET", `/routing/time-plans/${encodeURIComponent(profileId)}`);
|
|
4163
|
+
}
|
|
4164
|
+
/**
|
|
4165
|
+
* Replace a shop's whole time plan using its last-read revision; `plan`
|
|
4166
|
+
* null removes it. Usage, reservations and dated limit entries are left as
|
|
4167
|
+
* they are. Overlapping bands, shares that do not total 100 and a stale
|
|
4168
|
+
* revision are refused by the server. Capability preflight refuses a
|
|
4169
|
+
* backend that would not apply the plan before anything is sent.
|
|
4170
|
+
*
|
|
4171
|
+
* `PUT /routing/time-plans/{profileId}`
|
|
4172
|
+
*/
|
|
4173
|
+
async setTimePlan(profileId, params) {
|
|
4174
|
+
const caps = await this.connectorCaps(profileId);
|
|
4175
|
+
if (!caps.features?.includes("time_plans")) {
|
|
4176
|
+
throw new Error("Time plans are unsupported by the serving backend");
|
|
4177
|
+
}
|
|
4178
|
+
return this.request("PUT", `/routing/time-plans/${encodeURIComponent(profileId)}`, {
|
|
4179
|
+
body: { revision: params.revision, plan: params.plan }
|
|
4180
|
+
});
|
|
4181
|
+
}
|
|
4155
4182
|
/**
|
|
4156
4183
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
4157
4184
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -10113,6 +10140,7 @@ var Settlement = class {
|
|
|
10113
10140
|
profile_id: params.profile_id,
|
|
10114
10141
|
year: params.year,
|
|
10115
10142
|
month: params.month,
|
|
10143
|
+
period_start: params.period_start,
|
|
10116
10144
|
test_mode: params.test_mode,
|
|
10117
10145
|
limit: params.limit,
|
|
10118
10146
|
offset: params.offset
|
|
@@ -11741,6 +11769,14 @@ function leaf(lhs, comparison, value) {
|
|
|
11741
11769
|
const tagged = typeof value === "number" ? { type: "number", value } : { type: "enum_variant", value };
|
|
11742
11770
|
return { kind: "leaf", lhs, comparison, value: tagged };
|
|
11743
11771
|
}
|
|
11772
|
+
function metadataLeaf(key, comparison, value) {
|
|
11773
|
+
return {
|
|
11774
|
+
kind: "leaf",
|
|
11775
|
+
lhs: "metadata",
|
|
11776
|
+
comparison,
|
|
11777
|
+
value: { type: "metadata_variant", value: { key, value } }
|
|
11778
|
+
};
|
|
11779
|
+
}
|
|
11744
11780
|
function allOf(...children) {
|
|
11745
11781
|
return { kind: "all", children };
|
|
11746
11782
|
}
|
|
@@ -11852,7 +11888,8 @@ function programToTree(program) {
|
|
|
11852
11888
|
rules: program.rules.map((r) => ({
|
|
11853
11889
|
name: r.name,
|
|
11854
11890
|
match: ruleMatchToTree(r.statements),
|
|
11855
|
-
fee: r.connectorSelection.fee ?? null
|
|
11891
|
+
fee: r.connectorSelection.fee ?? null,
|
|
11892
|
+
schedule: r.connectorSelection.schedule ?? null
|
|
11856
11893
|
})),
|
|
11857
11894
|
otherwise: program.defaultSelection.fee ?? null
|
|
11858
11895
|
};
|
|
@@ -11866,11 +11903,11 @@ var FeeProgramBuilder = class {
|
|
|
11866
11903
|
rule(input) {
|
|
11867
11904
|
if (input.match) assertNoEmptyAnyOf(input.match);
|
|
11868
11905
|
const statements = input.match ? encodeStatements(input.match) : [{ condition: buildConditions(input.when, input.rawConditions) }];
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
});
|
|
11906
|
+
const connectorSelection = {
|
|
11907
|
+
fee: toFeeOutput(input.fee)
|
|
11908
|
+
};
|
|
11909
|
+
if (input.schedule !== void 0) connectorSelection.schedule = input.schedule;
|
|
11910
|
+
this.rules.push({ name: input.name, connectorSelection, statements });
|
|
11874
11911
|
return this;
|
|
11875
11912
|
}
|
|
11876
11913
|
/** Set the default selection (applied when no rule matches). */
|
|
@@ -11891,6 +11928,170 @@ function feeProgram() {
|
|
|
11891
11928
|
return new FeeProgramBuilder();
|
|
11892
11929
|
}
|
|
11893
11930
|
|
|
11931
|
+
// src/currencies.ts
|
|
11932
|
+
var PAYMENT_CURRENCIES = [
|
|
11933
|
+
"AED",
|
|
11934
|
+
"AFN",
|
|
11935
|
+
"ALL",
|
|
11936
|
+
"AMD",
|
|
11937
|
+
"ANG",
|
|
11938
|
+
"AOA",
|
|
11939
|
+
"ARS",
|
|
11940
|
+
"AUD",
|
|
11941
|
+
"AWG",
|
|
11942
|
+
"AZN",
|
|
11943
|
+
"BAM",
|
|
11944
|
+
"BBD",
|
|
11945
|
+
"BDT",
|
|
11946
|
+
"BGN",
|
|
11947
|
+
"BHD",
|
|
11948
|
+
"BIF",
|
|
11949
|
+
"BMD",
|
|
11950
|
+
"BND",
|
|
11951
|
+
"BOB",
|
|
11952
|
+
"BRL",
|
|
11953
|
+
"BSD",
|
|
11954
|
+
"BTN",
|
|
11955
|
+
"BWP",
|
|
11956
|
+
"BYN",
|
|
11957
|
+
"BZD",
|
|
11958
|
+
"CAD",
|
|
11959
|
+
"CDF",
|
|
11960
|
+
"CHF",
|
|
11961
|
+
"CLF",
|
|
11962
|
+
"CLP",
|
|
11963
|
+
"CNY",
|
|
11964
|
+
"COP",
|
|
11965
|
+
"CRC",
|
|
11966
|
+
"CUC",
|
|
11967
|
+
"CUP",
|
|
11968
|
+
"CVE",
|
|
11969
|
+
"CZK",
|
|
11970
|
+
"DJF",
|
|
11971
|
+
"DKK",
|
|
11972
|
+
"DOP",
|
|
11973
|
+
"DZD",
|
|
11974
|
+
"EGP",
|
|
11975
|
+
"ERN",
|
|
11976
|
+
"ETB",
|
|
11977
|
+
"EUR",
|
|
11978
|
+
"FJD",
|
|
11979
|
+
"FKP",
|
|
11980
|
+
"GBP",
|
|
11981
|
+
"GEL",
|
|
11982
|
+
"GHS",
|
|
11983
|
+
"GIP",
|
|
11984
|
+
"GMD",
|
|
11985
|
+
"GNF",
|
|
11986
|
+
"GTQ",
|
|
11987
|
+
"GYD",
|
|
11988
|
+
"HKD",
|
|
11989
|
+
"HNL",
|
|
11990
|
+
"HRK",
|
|
11991
|
+
"HTG",
|
|
11992
|
+
"HUF",
|
|
11993
|
+
"IDR",
|
|
11994
|
+
"ILS",
|
|
11995
|
+
"INR",
|
|
11996
|
+
"IQD",
|
|
11997
|
+
"IRR",
|
|
11998
|
+
"ISK",
|
|
11999
|
+
"JMD",
|
|
12000
|
+
"JOD",
|
|
12001
|
+
"JPY",
|
|
12002
|
+
"KES",
|
|
12003
|
+
"KGS",
|
|
12004
|
+
"KHR",
|
|
12005
|
+
"KMF",
|
|
12006
|
+
"KPW",
|
|
12007
|
+
"KRW",
|
|
12008
|
+
"KWD",
|
|
12009
|
+
"KYD",
|
|
12010
|
+
"KZT",
|
|
12011
|
+
"LAK",
|
|
12012
|
+
"LBP",
|
|
12013
|
+
"LKR",
|
|
12014
|
+
"LRD",
|
|
12015
|
+
"LSL",
|
|
12016
|
+
"LYD",
|
|
12017
|
+
"MAD",
|
|
12018
|
+
"MDL",
|
|
12019
|
+
"MGA",
|
|
12020
|
+
"MKD",
|
|
12021
|
+
"MMK",
|
|
12022
|
+
"MNT",
|
|
12023
|
+
"MOP",
|
|
12024
|
+
"MRU",
|
|
12025
|
+
"MUR",
|
|
12026
|
+
"MVR",
|
|
12027
|
+
"MWK",
|
|
12028
|
+
"MXN",
|
|
12029
|
+
"MYR",
|
|
12030
|
+
"MZN",
|
|
12031
|
+
"NAD",
|
|
12032
|
+
"NGN",
|
|
12033
|
+
"NIO",
|
|
12034
|
+
"NOK",
|
|
12035
|
+
"NPR",
|
|
12036
|
+
"NZD",
|
|
12037
|
+
"OMR",
|
|
12038
|
+
"PAB",
|
|
12039
|
+
"PEN",
|
|
12040
|
+
"PGK",
|
|
12041
|
+
"PHP",
|
|
12042
|
+
"PKR",
|
|
12043
|
+
"PLN",
|
|
12044
|
+
"PYG",
|
|
12045
|
+
"QAR",
|
|
12046
|
+
"RON",
|
|
12047
|
+
"RSD",
|
|
12048
|
+
"RUB",
|
|
12049
|
+
"RWF",
|
|
12050
|
+
"SAR",
|
|
12051
|
+
"SBD",
|
|
12052
|
+
"SCR",
|
|
12053
|
+
"SDG",
|
|
12054
|
+
"SEK",
|
|
12055
|
+
"SGD",
|
|
12056
|
+
"SHP",
|
|
12057
|
+
"SLE",
|
|
12058
|
+
"SLL",
|
|
12059
|
+
"SOS",
|
|
12060
|
+
"SRD",
|
|
12061
|
+
"SSP",
|
|
12062
|
+
"STD",
|
|
12063
|
+
"STN",
|
|
12064
|
+
"SVC",
|
|
12065
|
+
"SYP",
|
|
12066
|
+
"SZL",
|
|
12067
|
+
"THB",
|
|
12068
|
+
"TJS",
|
|
12069
|
+
"TMT",
|
|
12070
|
+
"TND",
|
|
12071
|
+
"TOP",
|
|
12072
|
+
"TRY",
|
|
12073
|
+
"TTD",
|
|
12074
|
+
"TWD",
|
|
12075
|
+
"TZS",
|
|
12076
|
+
"UAH",
|
|
12077
|
+
"UGX",
|
|
12078
|
+
"USD",
|
|
12079
|
+
"UYU",
|
|
12080
|
+
"UZS",
|
|
12081
|
+
"VES",
|
|
12082
|
+
"VND",
|
|
12083
|
+
"VUV",
|
|
12084
|
+
"WST",
|
|
12085
|
+
"XAF",
|
|
12086
|
+
"XCD",
|
|
12087
|
+
"XOF",
|
|
12088
|
+
"XPF",
|
|
12089
|
+
"YER",
|
|
12090
|
+
"ZAR",
|
|
12091
|
+
"ZMW",
|
|
12092
|
+
"ZWL"
|
|
12093
|
+
];
|
|
12094
|
+
|
|
11894
12095
|
// src/airwallexCard.ts
|
|
11895
12096
|
var AIRWALLEX_CARD_PRESETS = [
|
|
11896
12097
|
"single_row",
|
|
@@ -17088,12 +17289,14 @@ export {
|
|
|
17088
17289
|
Branding,
|
|
17089
17290
|
Delopay,
|
|
17090
17291
|
leaf,
|
|
17292
|
+
metadataLeaf,
|
|
17091
17293
|
allOf,
|
|
17092
17294
|
anyOf,
|
|
17093
17295
|
ruleMatchToTree,
|
|
17094
17296
|
programToTree,
|
|
17095
17297
|
FeeProgramBuilder,
|
|
17096
17298
|
feeProgram,
|
|
17299
|
+
PAYMENT_CURRENCIES,
|
|
17097
17300
|
AIRWALLEX_CARD_PRESETS,
|
|
17098
17301
|
AIRWALLEX_CARD_LAYOUTS,
|
|
17099
17302
|
AIRWALLEX_CARD_PRESET_FALLBACK,
|
|
@@ -17336,4 +17539,4 @@ export {
|
|
|
17336
17539
|
decodeNativePanes,
|
|
17337
17540
|
encodeNativePanes
|
|
17338
17541
|
};
|
|
17339
|
-
//# sourceMappingURL=chunk-
|
|
17542
|
+
//# sourceMappingURL=chunk-A6CXJOUK.js.map
|