@delopay/sdk 0.385.0 → 0.390.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-PE7G347M.js} +380 -56
- package/dist/chunk-PE7G347M.js.map +1 -0
- package/dist/{index-CkiG9mc1.d.cts → index-CIObKeC7.d.cts} +887 -37
- package/dist/{index-CkiG9mc1.d.ts → index-CIObKeC7.d.ts} +887 -37
- package/dist/index.cjs +380 -55
- 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 +7 -1
- package/dist/internal.cjs +485 -78
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +269 -19
- package/dist/internal.d.ts +269 -19
- package/dist/internal.js +114 -24
- package/dist/internal.js.map +1 -1
- package/package.json +17 -19
- package/dist/chunk-UGIHA7A6.js.map +0 -1
|
@@ -370,6 +370,21 @@ var Authentication = class {
|
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
+
// src/listQuery.ts
|
|
374
|
+
function csvQuery(params, csvKeys) {
|
|
375
|
+
if (!params) return void 0;
|
|
376
|
+
const joined = csvKeys;
|
|
377
|
+
const query = {};
|
|
378
|
+
for (const [key, value] of Object.entries(params)) {
|
|
379
|
+
if (!joined.includes(key) || !Array.isArray(value)) {
|
|
380
|
+
query[key] = value;
|
|
381
|
+
} else if (value.length > 0) {
|
|
382
|
+
query[key] = value.join(",");
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
return query;
|
|
386
|
+
}
|
|
387
|
+
|
|
373
388
|
// src/resources/billing.ts
|
|
374
389
|
var BillingAllocations = class {
|
|
375
390
|
constructor(request) {
|
|
@@ -485,15 +500,17 @@ var Billing = class {
|
|
|
485
500
|
});
|
|
486
501
|
}
|
|
487
502
|
/**
|
|
488
|
-
* List the balance ledger (credits and debits) for a merchant
|
|
503
|
+
* List the balance ledger (credits and debits) for a merchant, the newest
|
|
504
|
+
* entry first unless `sort_by` says otherwise.
|
|
489
505
|
*
|
|
490
506
|
* @param merchantId - The merchant account ID.
|
|
491
|
-
* @param params - Optional pagination
|
|
507
|
+
* @param params - Optional pagination, filters (entry types, a creation
|
|
508
|
+
* window) and sort.
|
|
492
509
|
* @returns The ledger entries.
|
|
493
510
|
*/
|
|
494
511
|
async listLedger(merchantId, params) {
|
|
495
512
|
return this.request("GET", `/billing/${encodeURIComponent(merchantId)}/ledger`, {
|
|
496
|
-
query: params
|
|
513
|
+
query: csvQuery(params, ["entry_type"])
|
|
497
514
|
});
|
|
498
515
|
}
|
|
499
516
|
/**
|
|
@@ -4152,6 +4169,33 @@ var Routing = class {
|
|
|
4152
4169
|
{ body: params }
|
|
4153
4170
|
);
|
|
4154
4171
|
}
|
|
4172
|
+
/**
|
|
4173
|
+
* A shop's recurring time plan with its revision, the band active now, the
|
|
4174
|
+
* next change and each limit the plan releases in parts.
|
|
4175
|
+
*
|
|
4176
|
+
* `GET /routing/time-plans/{profileId}`
|
|
4177
|
+
*/
|
|
4178
|
+
async timePlan(profileId) {
|
|
4179
|
+
return this.request("GET", `/routing/time-plans/${encodeURIComponent(profileId)}`);
|
|
4180
|
+
}
|
|
4181
|
+
/**
|
|
4182
|
+
* Replace a shop's whole time plan using its last-read revision; `plan`
|
|
4183
|
+
* null removes it. Usage, reservations and dated limit entries are left as
|
|
4184
|
+
* they are. Overlapping bands, shares that do not total 100 and a stale
|
|
4185
|
+
* revision are refused by the server. Capability preflight refuses a
|
|
4186
|
+
* backend that would not apply the plan before anything is sent.
|
|
4187
|
+
*
|
|
4188
|
+
* `PUT /routing/time-plans/{profileId}`
|
|
4189
|
+
*/
|
|
4190
|
+
async setTimePlan(profileId, params) {
|
|
4191
|
+
const caps = await this.connectorCaps(profileId);
|
|
4192
|
+
if (!caps.features?.includes("time_plans")) {
|
|
4193
|
+
throw new Error("Time plans are unsupported by the serving backend");
|
|
4194
|
+
}
|
|
4195
|
+
return this.request("PUT", `/routing/time-plans/${encodeURIComponent(profileId)}`, {
|
|
4196
|
+
body: { revision: params.revision, plan: params.plan }
|
|
4197
|
+
});
|
|
4198
|
+
}
|
|
4155
4199
|
/**
|
|
4156
4200
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
4157
4201
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -4932,13 +4976,16 @@ var Users = class {
|
|
|
4932
4976
|
*
|
|
4933
4977
|
* Returns an empty page when a Delopay admin is impersonating a merchant,
|
|
4934
4978
|
* so the admin's metadata is not exposed inside the merchant dashboard.
|
|
4979
|
+
*
|
|
4980
|
+
* Newest first unless `sort_by` says otherwise. Several `event_type` or
|
|
4981
|
+
* `auth_method` values match an event with any of them.
|
|
4935
4982
|
*/
|
|
4936
4983
|
async listLoginActivity(params) {
|
|
4937
4984
|
if (params === void 0) {
|
|
4938
4985
|
return this.request("GET", "/user/me/login-activity");
|
|
4939
4986
|
}
|
|
4940
4987
|
return this.request("GET", "/user/me/login-activity", {
|
|
4941
|
-
query: params
|
|
4988
|
+
query: csvQuery(params, ["event_type", "auth_method"])
|
|
4942
4989
|
});
|
|
4943
4990
|
}
|
|
4944
4991
|
/**
|
|
@@ -5802,14 +5849,16 @@ var IdentityVerifications = class {
|
|
|
5802
5849
|
return this.request("POST", "/identity-verifications", { body: params, ...options });
|
|
5803
5850
|
}
|
|
5804
5851
|
/**
|
|
5805
|
-
* The merchant's verifications, newest first
|
|
5806
|
-
* sees that shop's only.
|
|
5852
|
+
* The merchant's verifications, newest first unless `sort_by` says
|
|
5853
|
+
* otherwise. A caller limited to one shop sees that shop's only. Several
|
|
5854
|
+
* `outcome`, `kind` or `merchant_connector_id` values match a verification
|
|
5855
|
+
* with any of them.
|
|
5807
5856
|
*
|
|
5808
5857
|
* `GET /identity-verifications`
|
|
5809
5858
|
*/
|
|
5810
5859
|
async list(query, options) {
|
|
5811
5860
|
return this.request("GET", "/identity-verifications", {
|
|
5812
|
-
query,
|
|
5861
|
+
query: csvQuery(query, ["outcome", "kind", "merchant_connector_id"]),
|
|
5813
5862
|
...options
|
|
5814
5863
|
});
|
|
5815
5864
|
}
|
|
@@ -6593,7 +6642,13 @@ var Export = class {
|
|
|
6593
6642
|
);
|
|
6594
6643
|
}
|
|
6595
6644
|
async auditLog(params, options) {
|
|
6596
|
-
return runExport(
|
|
6645
|
+
return runExport(
|
|
6646
|
+
this.request,
|
|
6647
|
+
"GET",
|
|
6648
|
+
"/audit/export",
|
|
6649
|
+
{ query: csvQuery(params, ["profile_id", "action", "entity_type"]) },
|
|
6650
|
+
options
|
|
6651
|
+
);
|
|
6597
6652
|
}
|
|
6598
6653
|
};
|
|
6599
6654
|
function queried(params, headers) {
|
|
@@ -6890,14 +6945,15 @@ var BuyerBlocklist = class {
|
|
|
6890
6945
|
this.request = request;
|
|
6891
6946
|
}
|
|
6892
6947
|
/**
|
|
6893
|
-
* One page of blocked buyers, newest first
|
|
6894
|
-
* (the entries that include an identifier of
|
|
6895
|
-
*
|
|
6948
|
+
* One page of blocked buyers, newest first unless `sort_by` says otherwise,
|
|
6949
|
+
* filtered by scope, by `kind` (the entries that include an identifier of
|
|
6950
|
+
* that kind, or of any of several) and by a search over every identifier
|
|
6951
|
+
* and the note. Expired entries are not listed.
|
|
6896
6952
|
* `GET /buyer-blocklist`
|
|
6897
6953
|
*/
|
|
6898
6954
|
async list(params) {
|
|
6899
6955
|
return this.request("GET", "/buyer-blocklist", {
|
|
6900
|
-
query: params
|
|
6956
|
+
query: csvQuery(params, ["kind"])
|
|
6901
6957
|
});
|
|
6902
6958
|
}
|
|
6903
6959
|
/**
|
|
@@ -7023,6 +7079,56 @@ var BuyerBlocklist = class {
|
|
|
7023
7079
|
}
|
|
7024
7080
|
};
|
|
7025
7081
|
|
|
7082
|
+
// src/resources/persons.ts
|
|
7083
|
+
var Persons = class {
|
|
7084
|
+
constructor(request) {
|
|
7085
|
+
this.request = request;
|
|
7086
|
+
}
|
|
7087
|
+
/**
|
|
7088
|
+
* One page of persons, by default the most recent payment first, with the
|
|
7089
|
+
* number of persons the request matches.
|
|
7090
|
+
* `GET /persons`
|
|
7091
|
+
*/
|
|
7092
|
+
async list(params) {
|
|
7093
|
+
return this.request("GET", "/persons", { query: params });
|
|
7094
|
+
}
|
|
7095
|
+
/**
|
|
7096
|
+
* One person: its figures, the identifiers and IP addresses its payments
|
|
7097
|
+
* carry, and its payments by status, shop, payment method, risk band and
|
|
7098
|
+
* environment. The id of a person that was merged into another returns
|
|
7099
|
+
* that person, with `merged_from` naming the id asked for. A person with
|
|
7100
|
+
* no payment in the scope is not found (`404`).
|
|
7101
|
+
* `GET /persons/{person_id}`
|
|
7102
|
+
*/
|
|
7103
|
+
async retrieve(personId, params) {
|
|
7104
|
+
return this.request("GET", `/persons/${encodeURIComponent(personId)}`, {
|
|
7105
|
+
query: params
|
|
7106
|
+
});
|
|
7107
|
+
}
|
|
7108
|
+
/**
|
|
7109
|
+
* Other persons of the merchant that may be the same person, the likeliest
|
|
7110
|
+
* first, at most 20. An estimate from the devices the persons paid with;
|
|
7111
|
+
* related persons stay separate persons.
|
|
7112
|
+
* `GET /persons/{person_id}/related`
|
|
7113
|
+
*/
|
|
7114
|
+
async related(personId, params) {
|
|
7115
|
+
return this.request("GET", `/persons/${encodeURIComponent(personId)}/related`, {
|
|
7116
|
+
query: params
|
|
7117
|
+
});
|
|
7118
|
+
}
|
|
7119
|
+
/**
|
|
7120
|
+
* The person of one payment, with how many payments the person has and
|
|
7121
|
+
* which kinds of identifier tie this payment to the others. `404` while
|
|
7122
|
+
* the payment has no person yet.
|
|
7123
|
+
* `GET /persons/payment/{payment_id}`
|
|
7124
|
+
*/
|
|
7125
|
+
async ofPayment(paymentId, params) {
|
|
7126
|
+
return this.request("GET", `/persons/payment/${encodeURIComponent(paymentId)}`, {
|
|
7127
|
+
query: params
|
|
7128
|
+
});
|
|
7129
|
+
}
|
|
7130
|
+
};
|
|
7131
|
+
|
|
7026
7132
|
// src/resources/shopLabels.ts
|
|
7027
7133
|
var labelsPath = (merchantId) => `/account/${encodeURIComponent(merchantId)}/business-profile/labels`;
|
|
7028
7134
|
var ShopLabels = class {
|
|
@@ -7275,12 +7381,13 @@ var BuyerConversations = class {
|
|
|
7275
7381
|
this.request = request;
|
|
7276
7382
|
}
|
|
7277
7383
|
/**
|
|
7278
|
-
* One page of the inbox, the latest message first
|
|
7279
|
-
* status, assignee, mode or
|
|
7384
|
+
* One page of the inbox, the latest message first unless `sort_by` says
|
|
7385
|
+
* otherwise, filtered by shop, status (one or several), assignee, mode or
|
|
7386
|
+
* buyer. `GET /buyer-conversations`
|
|
7280
7387
|
*/
|
|
7281
7388
|
async list(params) {
|
|
7282
7389
|
return this.request("GET", "/buyer-conversations", {
|
|
7283
|
-
query: params
|
|
7390
|
+
query: csvQuery(params, ["status"])
|
|
7284
7391
|
});
|
|
7285
7392
|
}
|
|
7286
7393
|
/**
|
|
@@ -7391,12 +7498,14 @@ var BuyerEvidenceReviews = class {
|
|
|
7391
7498
|
this.request = request;
|
|
7392
7499
|
}
|
|
7393
7500
|
/**
|
|
7394
|
-
* The shop's cases with buyer evidence, the nearest target first
|
|
7395
|
-
* `
|
|
7501
|
+
* The shop's cases with buyer evidence, the nearest target first unless
|
|
7502
|
+
* `sort_by` says otherwise. Several `state` values match a case in any of
|
|
7503
|
+
* them. `merchant_id` and `reviewer` are ignored here, and so are the
|
|
7504
|
+
* `merchant` and `reviewer` sorts. `GET /buyer-evidence`
|
|
7396
7505
|
*/
|
|
7397
7506
|
async list(params) {
|
|
7398
7507
|
return this.request("GET", "/buyer-evidence", {
|
|
7399
|
-
query: params
|
|
7508
|
+
query: csvQuery(params, ["state"])
|
|
7400
7509
|
});
|
|
7401
7510
|
}
|
|
7402
7511
|
/** One case's evidence with its history and files. `GET /buyer-evidence/{id}` */
|
|
@@ -8168,10 +8277,14 @@ var Support = class {
|
|
|
8168
8277
|
async create(body) {
|
|
8169
8278
|
return this.request("POST", "/support/conversations", { body });
|
|
8170
8279
|
}
|
|
8171
|
-
/**
|
|
8280
|
+
/**
|
|
8281
|
+
* The conversations the caller may read, the latest message first unless
|
|
8282
|
+
* `sort_by` says otherwise. Several `kind`, `category` or `status` values
|
|
8283
|
+
* match a conversation with any of them. `GET /support/conversations`
|
|
8284
|
+
*/
|
|
8172
8285
|
async list(query) {
|
|
8173
8286
|
return this.request("GET", "/support/conversations", {
|
|
8174
|
-
query: query
|
|
8287
|
+
query: csvQuery(query, ["kind", "category", "status"])
|
|
8175
8288
|
});
|
|
8176
8289
|
}
|
|
8177
8290
|
/** One conversation. `GET /support/conversations/{id}` */
|
|
@@ -8222,6 +8335,7 @@ var Support = class {
|
|
|
8222
8335
|
};
|
|
8223
8336
|
|
|
8224
8337
|
// src/resources/invoices.ts
|
|
8338
|
+
var INVOICE_CSV_KEYS = ["status", "kind"];
|
|
8225
8339
|
var Invoices = class {
|
|
8226
8340
|
constructor(request) {
|
|
8227
8341
|
this.request = request;
|
|
@@ -8241,13 +8355,15 @@ var Invoices = class {
|
|
|
8241
8355
|
return this.request("POST", "/invoices", { body: params, ...options });
|
|
8242
8356
|
}
|
|
8243
8357
|
/**
|
|
8244
|
-
* One page of documents, newest first
|
|
8245
|
-
* `include_lines` is set, and never a `refund`
|
|
8358
|
+
* One page of documents, newest first unless `sort_by` says otherwise. List
|
|
8359
|
+
* rows carry no `lines` unless `include_lines` is set, and never a `refund`
|
|
8360
|
+
* summary. Several `status` or `kind` values match a document in any of
|
|
8361
|
+
* them.
|
|
8246
8362
|
* `GET /invoices`
|
|
8247
8363
|
*/
|
|
8248
8364
|
async list(params, options) {
|
|
8249
8365
|
return this.request("GET", "/invoices", {
|
|
8250
|
-
query: params
|
|
8366
|
+
query: csvQuery(params, INVOICE_CSV_KEYS),
|
|
8251
8367
|
...options
|
|
8252
8368
|
});
|
|
8253
8369
|
}
|
|
@@ -8272,7 +8388,7 @@ var Invoices = class {
|
|
|
8272
8388
|
*/
|
|
8273
8389
|
async listForProduct(productId, params, options) {
|
|
8274
8390
|
return this.request("GET", `/products/${encodeURIComponent(productId)}/invoices`, {
|
|
8275
|
-
query: params
|
|
8391
|
+
query: csvQuery(params, INVOICE_CSV_KEYS),
|
|
8276
8392
|
...options
|
|
8277
8393
|
});
|
|
8278
8394
|
}
|
|
@@ -8290,7 +8406,7 @@ var Invoices = class {
|
|
|
8290
8406
|
*/
|
|
8291
8407
|
async export(params, options) {
|
|
8292
8408
|
return this.request("GET", "/invoices/export", {
|
|
8293
|
-
query:
|
|
8409
|
+
query: csvQuery(params, INVOICE_CSV_KEYS),
|
|
8294
8410
|
responseType: "blob",
|
|
8295
8411
|
...options
|
|
8296
8412
|
});
|
|
@@ -8985,7 +9101,10 @@ var Subscriptions = class {
|
|
|
8985
9101
|
...options
|
|
8986
9102
|
});
|
|
8987
9103
|
}
|
|
8988
|
-
/**
|
|
9104
|
+
/**
|
|
9105
|
+
* List subscriptions for the profile, or one customer's with `customer_id`.
|
|
9106
|
+
* `GET /subscriptions/list`
|
|
9107
|
+
*/
|
|
8989
9108
|
async list(params, options) {
|
|
8990
9109
|
return this.request("GET", "/subscriptions/list", {
|
|
8991
9110
|
query: params,
|
|
@@ -9781,13 +9900,19 @@ var BuyerPortal = class {
|
|
|
9781
9900
|
};
|
|
9782
9901
|
|
|
9783
9902
|
// src/resources/audit.ts
|
|
9903
|
+
var MERCHANT_AUDIT_CSV_KEYS = ["profile_id", "action", "entity_type"];
|
|
9784
9904
|
var Audit = class {
|
|
9785
9905
|
constructor(request) {
|
|
9786
9906
|
this.request = request;
|
|
9787
9907
|
}
|
|
9908
|
+
/**
|
|
9909
|
+
* One page of the merchant's audit log, the newest entry first unless
|
|
9910
|
+
* `sort_by` says otherwise. Several `profile_id`, `action` or `entity_type`
|
|
9911
|
+
* values match an entry with any of them. `GET /audit`
|
|
9912
|
+
*/
|
|
9788
9913
|
async list(params) {
|
|
9789
9914
|
return this.request("GET", "/audit", {
|
|
9790
|
-
query: params
|
|
9915
|
+
query: csvQuery(params, MERCHANT_AUDIT_CSV_KEYS)
|
|
9791
9916
|
});
|
|
9792
9917
|
}
|
|
9793
9918
|
/**
|
|
@@ -9800,6 +9925,33 @@ var Audit = class {
|
|
|
9800
9925
|
};
|
|
9801
9926
|
|
|
9802
9927
|
// src/resources/settlement.ts
|
|
9928
|
+
function statementListQuery(params) {
|
|
9929
|
+
return csvQuery(
|
|
9930
|
+
{
|
|
9931
|
+
test_mode: params.test_mode,
|
|
9932
|
+
profile_id: params.profile_id,
|
|
9933
|
+
limit: params.limit,
|
|
9934
|
+
offset: params.offset,
|
|
9935
|
+
payout_status: params.payout_status,
|
|
9936
|
+
period_from: params.period_from,
|
|
9937
|
+
period_to: params.period_to,
|
|
9938
|
+
sort_by: params.sort_by,
|
|
9939
|
+
sort_order: params.sort_order
|
|
9940
|
+
},
|
|
9941
|
+
["payout_status"]
|
|
9942
|
+
);
|
|
9943
|
+
}
|
|
9944
|
+
function nativeListQuery(params) {
|
|
9945
|
+
return {
|
|
9946
|
+
profile_id: params.profile_id,
|
|
9947
|
+
currency: params.currency,
|
|
9948
|
+
test_mode: params.test_mode,
|
|
9949
|
+
limit: params.limit,
|
|
9950
|
+
offset: params.offset,
|
|
9951
|
+
sort_by: params.sort_by,
|
|
9952
|
+
sort_order: params.sort_order
|
|
9953
|
+
};
|
|
9954
|
+
}
|
|
9803
9955
|
function exportHeaders(options, accept) {
|
|
9804
9956
|
const headers = new Headers(options?.headers);
|
|
9805
9957
|
headers.set("Accept", accept);
|
|
@@ -9963,18 +10115,15 @@ var Settlement = class {
|
|
|
9963
10115
|
});
|
|
9964
10116
|
}
|
|
9965
10117
|
/**
|
|
9966
|
-
* List generated settlement statements, newest first
|
|
10118
|
+
* List generated settlement statements, the newest period first unless
|
|
10119
|
+
* `sort_by` says otherwise. Several `payout_status` values match a
|
|
10120
|
+
* statement in any of them.
|
|
9967
10121
|
*
|
|
9968
10122
|
* `GET /settlement/statements`
|
|
9969
10123
|
*/
|
|
9970
10124
|
async listStatements(params, options) {
|
|
9971
10125
|
return this.request("GET", "/settlement/statements", {
|
|
9972
|
-
query:
|
|
9973
|
-
test_mode: params.test_mode,
|
|
9974
|
-
profile_id: params.profile_id,
|
|
9975
|
-
limit: params.limit,
|
|
9976
|
-
offset: params.offset
|
|
9977
|
-
},
|
|
10126
|
+
query: statementListQuery(params),
|
|
9978
10127
|
...options
|
|
9979
10128
|
});
|
|
9980
10129
|
}
|
|
@@ -10231,16 +10380,14 @@ var Settlement = class {
|
|
|
10231
10380
|
options
|
|
10232
10381
|
);
|
|
10233
10382
|
}
|
|
10234
|
-
/**
|
|
10383
|
+
/**
|
|
10384
|
+
* List report summaries without fetching every source row in each saved
|
|
10385
|
+
* snapshot, the newest first. `sort_by` takes `period` here; another value
|
|
10386
|
+
* is refused.
|
|
10387
|
+
*/
|
|
10235
10388
|
async listNativeReports(params, options) {
|
|
10236
10389
|
return this.request("GET", "/settlement/native/reports", {
|
|
10237
|
-
query:
|
|
10238
|
-
profile_id: params.profile_id,
|
|
10239
|
-
currency: params.currency,
|
|
10240
|
-
test_mode: params.test_mode,
|
|
10241
|
-
limit: params.limit,
|
|
10242
|
-
offset: params.offset
|
|
10243
|
-
},
|
|
10390
|
+
query: nativeListQuery(params),
|
|
10244
10391
|
...options
|
|
10245
10392
|
});
|
|
10246
10393
|
}
|
|
@@ -10258,15 +10405,13 @@ var Settlement = class {
|
|
|
10258
10405
|
bodyIdempotencyKey: params.idempotency_key
|
|
10259
10406
|
});
|
|
10260
10407
|
}
|
|
10408
|
+
/**
|
|
10409
|
+
* List recorded payouts, the earliest value date first. `sort_by` takes
|
|
10410
|
+
* `value_date` or `amount` here; another value is refused.
|
|
10411
|
+
*/
|
|
10261
10412
|
async listNativePayouts(params, options) {
|
|
10262
10413
|
return this.request("GET", "/settlement/native/payouts", {
|
|
10263
|
-
query:
|
|
10264
|
-
profile_id: params.profile_id,
|
|
10265
|
-
currency: params.currency,
|
|
10266
|
-
test_mode: params.test_mode,
|
|
10267
|
-
limit: params.limit,
|
|
10268
|
-
offset: params.offset
|
|
10269
|
-
},
|
|
10414
|
+
query: nativeListQuery(params),
|
|
10270
10415
|
...options
|
|
10271
10416
|
});
|
|
10272
10417
|
}
|
|
@@ -11220,6 +11365,7 @@ var Delopay = class {
|
|
|
11220
11365
|
this.availabilityOverrides = new AvailabilityOverrides(request);
|
|
11221
11366
|
this.sellToRestrictions = new SellToRestrictions(request);
|
|
11222
11367
|
this.buyerBlocklist = new BuyerBlocklist(request);
|
|
11368
|
+
this.persons = new Persons(request);
|
|
11223
11369
|
this.shopLabels = new ShopLabels(request);
|
|
11224
11370
|
this.industries = new Industries(request);
|
|
11225
11371
|
this.checkoutTemplates = new CheckoutTemplates(request);
|
|
@@ -11742,6 +11888,14 @@ function leaf(lhs, comparison, value) {
|
|
|
11742
11888
|
const tagged = typeof value === "number" ? { type: "number", value } : { type: "enum_variant", value };
|
|
11743
11889
|
return { kind: "leaf", lhs, comparison, value: tagged };
|
|
11744
11890
|
}
|
|
11891
|
+
function metadataLeaf(key, comparison, value) {
|
|
11892
|
+
return {
|
|
11893
|
+
kind: "leaf",
|
|
11894
|
+
lhs: "metadata",
|
|
11895
|
+
comparison,
|
|
11896
|
+
value: { type: "metadata_variant", value: { key, value } }
|
|
11897
|
+
};
|
|
11898
|
+
}
|
|
11745
11899
|
function allOf(...children) {
|
|
11746
11900
|
return { kind: "all", children };
|
|
11747
11901
|
}
|
|
@@ -11853,7 +12007,8 @@ function programToTree(program) {
|
|
|
11853
12007
|
rules: program.rules.map((r) => ({
|
|
11854
12008
|
name: r.name,
|
|
11855
12009
|
match: ruleMatchToTree(r.statements),
|
|
11856
|
-
fee: r.connectorSelection.fee ?? null
|
|
12010
|
+
fee: r.connectorSelection.fee ?? null,
|
|
12011
|
+
schedule: r.connectorSelection.schedule ?? null
|
|
11857
12012
|
})),
|
|
11858
12013
|
otherwise: program.defaultSelection.fee ?? null
|
|
11859
12014
|
};
|
|
@@ -11867,11 +12022,11 @@ var FeeProgramBuilder = class {
|
|
|
11867
12022
|
rule(input) {
|
|
11868
12023
|
if (input.match) assertNoEmptyAnyOf(input.match);
|
|
11869
12024
|
const statements = input.match ? encodeStatements(input.match) : [{ condition: buildConditions(input.when, input.rawConditions) }];
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
});
|
|
12025
|
+
const connectorSelection = {
|
|
12026
|
+
fee: toFeeOutput(input.fee)
|
|
12027
|
+
};
|
|
12028
|
+
if (input.schedule !== void 0) connectorSelection.schedule = input.schedule;
|
|
12029
|
+
this.rules.push({ name: input.name, connectorSelection, statements });
|
|
11875
12030
|
return this;
|
|
11876
12031
|
}
|
|
11877
12032
|
/** Set the default selection (applied when no rule matches). */
|
|
@@ -11892,6 +12047,170 @@ function feeProgram() {
|
|
|
11892
12047
|
return new FeeProgramBuilder();
|
|
11893
12048
|
}
|
|
11894
12049
|
|
|
12050
|
+
// src/currencies.ts
|
|
12051
|
+
var PAYMENT_CURRENCIES = [
|
|
12052
|
+
"AED",
|
|
12053
|
+
"AFN",
|
|
12054
|
+
"ALL",
|
|
12055
|
+
"AMD",
|
|
12056
|
+
"ANG",
|
|
12057
|
+
"AOA",
|
|
12058
|
+
"ARS",
|
|
12059
|
+
"AUD",
|
|
12060
|
+
"AWG",
|
|
12061
|
+
"AZN",
|
|
12062
|
+
"BAM",
|
|
12063
|
+
"BBD",
|
|
12064
|
+
"BDT",
|
|
12065
|
+
"BGN",
|
|
12066
|
+
"BHD",
|
|
12067
|
+
"BIF",
|
|
12068
|
+
"BMD",
|
|
12069
|
+
"BND",
|
|
12070
|
+
"BOB",
|
|
12071
|
+
"BRL",
|
|
12072
|
+
"BSD",
|
|
12073
|
+
"BTN",
|
|
12074
|
+
"BWP",
|
|
12075
|
+
"BYN",
|
|
12076
|
+
"BZD",
|
|
12077
|
+
"CAD",
|
|
12078
|
+
"CDF",
|
|
12079
|
+
"CHF",
|
|
12080
|
+
"CLF",
|
|
12081
|
+
"CLP",
|
|
12082
|
+
"CNY",
|
|
12083
|
+
"COP",
|
|
12084
|
+
"CRC",
|
|
12085
|
+
"CUC",
|
|
12086
|
+
"CUP",
|
|
12087
|
+
"CVE",
|
|
12088
|
+
"CZK",
|
|
12089
|
+
"DJF",
|
|
12090
|
+
"DKK",
|
|
12091
|
+
"DOP",
|
|
12092
|
+
"DZD",
|
|
12093
|
+
"EGP",
|
|
12094
|
+
"ERN",
|
|
12095
|
+
"ETB",
|
|
12096
|
+
"EUR",
|
|
12097
|
+
"FJD",
|
|
12098
|
+
"FKP",
|
|
12099
|
+
"GBP",
|
|
12100
|
+
"GEL",
|
|
12101
|
+
"GHS",
|
|
12102
|
+
"GIP",
|
|
12103
|
+
"GMD",
|
|
12104
|
+
"GNF",
|
|
12105
|
+
"GTQ",
|
|
12106
|
+
"GYD",
|
|
12107
|
+
"HKD",
|
|
12108
|
+
"HNL",
|
|
12109
|
+
"HRK",
|
|
12110
|
+
"HTG",
|
|
12111
|
+
"HUF",
|
|
12112
|
+
"IDR",
|
|
12113
|
+
"ILS",
|
|
12114
|
+
"INR",
|
|
12115
|
+
"IQD",
|
|
12116
|
+
"IRR",
|
|
12117
|
+
"ISK",
|
|
12118
|
+
"JMD",
|
|
12119
|
+
"JOD",
|
|
12120
|
+
"JPY",
|
|
12121
|
+
"KES",
|
|
12122
|
+
"KGS",
|
|
12123
|
+
"KHR",
|
|
12124
|
+
"KMF",
|
|
12125
|
+
"KPW",
|
|
12126
|
+
"KRW",
|
|
12127
|
+
"KWD",
|
|
12128
|
+
"KYD",
|
|
12129
|
+
"KZT",
|
|
12130
|
+
"LAK",
|
|
12131
|
+
"LBP",
|
|
12132
|
+
"LKR",
|
|
12133
|
+
"LRD",
|
|
12134
|
+
"LSL",
|
|
12135
|
+
"LYD",
|
|
12136
|
+
"MAD",
|
|
12137
|
+
"MDL",
|
|
12138
|
+
"MGA",
|
|
12139
|
+
"MKD",
|
|
12140
|
+
"MMK",
|
|
12141
|
+
"MNT",
|
|
12142
|
+
"MOP",
|
|
12143
|
+
"MRU",
|
|
12144
|
+
"MUR",
|
|
12145
|
+
"MVR",
|
|
12146
|
+
"MWK",
|
|
12147
|
+
"MXN",
|
|
12148
|
+
"MYR",
|
|
12149
|
+
"MZN",
|
|
12150
|
+
"NAD",
|
|
12151
|
+
"NGN",
|
|
12152
|
+
"NIO",
|
|
12153
|
+
"NOK",
|
|
12154
|
+
"NPR",
|
|
12155
|
+
"NZD",
|
|
12156
|
+
"OMR",
|
|
12157
|
+
"PAB",
|
|
12158
|
+
"PEN",
|
|
12159
|
+
"PGK",
|
|
12160
|
+
"PHP",
|
|
12161
|
+
"PKR",
|
|
12162
|
+
"PLN",
|
|
12163
|
+
"PYG",
|
|
12164
|
+
"QAR",
|
|
12165
|
+
"RON",
|
|
12166
|
+
"RSD",
|
|
12167
|
+
"RUB",
|
|
12168
|
+
"RWF",
|
|
12169
|
+
"SAR",
|
|
12170
|
+
"SBD",
|
|
12171
|
+
"SCR",
|
|
12172
|
+
"SDG",
|
|
12173
|
+
"SEK",
|
|
12174
|
+
"SGD",
|
|
12175
|
+
"SHP",
|
|
12176
|
+
"SLE",
|
|
12177
|
+
"SLL",
|
|
12178
|
+
"SOS",
|
|
12179
|
+
"SRD",
|
|
12180
|
+
"SSP",
|
|
12181
|
+
"STD",
|
|
12182
|
+
"STN",
|
|
12183
|
+
"SVC",
|
|
12184
|
+
"SYP",
|
|
12185
|
+
"SZL",
|
|
12186
|
+
"THB",
|
|
12187
|
+
"TJS",
|
|
12188
|
+
"TMT",
|
|
12189
|
+
"TND",
|
|
12190
|
+
"TOP",
|
|
12191
|
+
"TRY",
|
|
12192
|
+
"TTD",
|
|
12193
|
+
"TWD",
|
|
12194
|
+
"TZS",
|
|
12195
|
+
"UAH",
|
|
12196
|
+
"UGX",
|
|
12197
|
+
"USD",
|
|
12198
|
+
"UYU",
|
|
12199
|
+
"UZS",
|
|
12200
|
+
"VES",
|
|
12201
|
+
"VND",
|
|
12202
|
+
"VUV",
|
|
12203
|
+
"WST",
|
|
12204
|
+
"XAF",
|
|
12205
|
+
"XCD",
|
|
12206
|
+
"XOF",
|
|
12207
|
+
"XPF",
|
|
12208
|
+
"YER",
|
|
12209
|
+
"ZAR",
|
|
12210
|
+
"ZMW",
|
|
12211
|
+
"ZWL"
|
|
12212
|
+
];
|
|
12213
|
+
|
|
11895
12214
|
// src/airwallexCard.ts
|
|
11896
12215
|
var AIRWALLEX_CARD_PRESETS = [
|
|
11897
12216
|
"single_row",
|
|
@@ -17037,6 +17356,7 @@ var encodeNativePanes = encodePanes;
|
|
|
17037
17356
|
export {
|
|
17038
17357
|
DelopayError,
|
|
17039
17358
|
DelopayAuthenticationError,
|
|
17359
|
+
csvQuery,
|
|
17040
17360
|
runExport,
|
|
17041
17361
|
preventionCaseQuery,
|
|
17042
17362
|
ChargebackPrevention,
|
|
@@ -17058,6 +17378,7 @@ export {
|
|
|
17058
17378
|
AvailabilityOverrides,
|
|
17059
17379
|
SellToRestrictions,
|
|
17060
17380
|
BuyerBlocklist,
|
|
17381
|
+
Persons,
|
|
17061
17382
|
ShopLabels,
|
|
17062
17383
|
Industries,
|
|
17063
17384
|
CheckoutTemplates,
|
|
@@ -17074,6 +17395,7 @@ export {
|
|
|
17074
17395
|
CheckoutMethods,
|
|
17075
17396
|
Subscriptions,
|
|
17076
17397
|
Audit,
|
|
17398
|
+
statementListQuery,
|
|
17077
17399
|
Settlement,
|
|
17078
17400
|
OperationLimits,
|
|
17079
17401
|
Settings,
|
|
@@ -17089,12 +17411,14 @@ export {
|
|
|
17089
17411
|
Branding,
|
|
17090
17412
|
Delopay,
|
|
17091
17413
|
leaf,
|
|
17414
|
+
metadataLeaf,
|
|
17092
17415
|
allOf,
|
|
17093
17416
|
anyOf,
|
|
17094
17417
|
ruleMatchToTree,
|
|
17095
17418
|
programToTree,
|
|
17096
17419
|
FeeProgramBuilder,
|
|
17097
17420
|
feeProgram,
|
|
17421
|
+
PAYMENT_CURRENCIES,
|
|
17098
17422
|
AIRWALLEX_CARD_PRESETS,
|
|
17099
17423
|
AIRWALLEX_CARD_LAYOUTS,
|
|
17100
17424
|
AIRWALLEX_CARD_PRESET_FALLBACK,
|
|
@@ -17337,4 +17661,4 @@ export {
|
|
|
17337
17661
|
decodeNativePanes,
|
|
17338
17662
|
encodeNativePanes
|
|
17339
17663
|
};
|
|
17340
|
-
//# sourceMappingURL=chunk-
|
|
17664
|
+
//# sourceMappingURL=chunk-PE7G347M.js.map
|