@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
package/dist/index.cjs
CHANGED
|
@@ -133,10 +133,12 @@ __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,
|
|
139
140
|
PaypalDisputes: () => PaypalDisputes,
|
|
141
|
+
Persons: () => Persons,
|
|
140
142
|
PresentationCache: () => PresentationCache,
|
|
141
143
|
ProcessorCosts: () => ProcessorCosts,
|
|
142
144
|
ProcessorImports: () => ProcessorImports,
|
|
@@ -271,6 +273,7 @@ __export(index_exports, {
|
|
|
271
273
|
leaf: () => leaf,
|
|
272
274
|
logoDimensions: () => logoDimensions,
|
|
273
275
|
matchWhopLook: () => matchWhopLook,
|
|
276
|
+
metadataLeaf: () => metadataLeaf,
|
|
274
277
|
nativePaneMethodInfo: () => nativePaneMethodInfo,
|
|
275
278
|
nearestWhopAccent: () => nearestWhopAccent,
|
|
276
279
|
noticeText: () => noticeText,
|
|
@@ -692,6 +695,21 @@ var Authentication = class {
|
|
|
692
695
|
}
|
|
693
696
|
};
|
|
694
697
|
|
|
698
|
+
// src/listQuery.ts
|
|
699
|
+
function csvQuery(params, csvKeys) {
|
|
700
|
+
if (!params) return void 0;
|
|
701
|
+
const joined = csvKeys;
|
|
702
|
+
const query = {};
|
|
703
|
+
for (const [key, value] of Object.entries(params)) {
|
|
704
|
+
if (!joined.includes(key) || !Array.isArray(value)) {
|
|
705
|
+
query[key] = value;
|
|
706
|
+
} else if (value.length > 0) {
|
|
707
|
+
query[key] = value.join(",");
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
return query;
|
|
711
|
+
}
|
|
712
|
+
|
|
695
713
|
// src/resources/billing.ts
|
|
696
714
|
var BillingAllocations = class {
|
|
697
715
|
constructor(request) {
|
|
@@ -807,15 +825,17 @@ var Billing = class {
|
|
|
807
825
|
});
|
|
808
826
|
}
|
|
809
827
|
/**
|
|
810
|
-
* List the balance ledger (credits and debits) for a merchant
|
|
828
|
+
* List the balance ledger (credits and debits) for a merchant, the newest
|
|
829
|
+
* entry first unless `sort_by` says otherwise.
|
|
811
830
|
*
|
|
812
831
|
* @param merchantId - The merchant account ID.
|
|
813
|
-
* @param params - Optional pagination
|
|
832
|
+
* @param params - Optional pagination, filters (entry types, a creation
|
|
833
|
+
* window) and sort.
|
|
814
834
|
* @returns The ledger entries.
|
|
815
835
|
*/
|
|
816
836
|
async listLedger(merchantId, params) {
|
|
817
837
|
return this.request("GET", `/billing/${encodeURIComponent(merchantId)}/ledger`, {
|
|
818
|
-
query: params
|
|
838
|
+
query: csvQuery(params, ["entry_type"])
|
|
819
839
|
});
|
|
820
840
|
}
|
|
821
841
|
/**
|
|
@@ -4474,6 +4494,33 @@ var Routing = class {
|
|
|
4474
4494
|
{ body: params }
|
|
4475
4495
|
);
|
|
4476
4496
|
}
|
|
4497
|
+
/**
|
|
4498
|
+
* A shop's recurring time plan with its revision, the band active now, the
|
|
4499
|
+
* next change and each limit the plan releases in parts.
|
|
4500
|
+
*
|
|
4501
|
+
* `GET /routing/time-plans/{profileId}`
|
|
4502
|
+
*/
|
|
4503
|
+
async timePlan(profileId) {
|
|
4504
|
+
return this.request("GET", `/routing/time-plans/${encodeURIComponent(profileId)}`);
|
|
4505
|
+
}
|
|
4506
|
+
/**
|
|
4507
|
+
* Replace a shop's whole time plan using its last-read revision; `plan`
|
|
4508
|
+
* null removes it. Usage, reservations and dated limit entries are left as
|
|
4509
|
+
* they are. Overlapping bands, shares that do not total 100 and a stale
|
|
4510
|
+
* revision are refused by the server. Capability preflight refuses a
|
|
4511
|
+
* backend that would not apply the plan before anything is sent.
|
|
4512
|
+
*
|
|
4513
|
+
* `PUT /routing/time-plans/{profileId}`
|
|
4514
|
+
*/
|
|
4515
|
+
async setTimePlan(profileId, params) {
|
|
4516
|
+
const caps = await this.connectorCaps(profileId);
|
|
4517
|
+
if (!caps.features?.includes("time_plans")) {
|
|
4518
|
+
throw new Error("Time plans are unsupported by the serving backend");
|
|
4519
|
+
}
|
|
4520
|
+
return this.request("PUT", `/routing/time-plans/${encodeURIComponent(profileId)}`, {
|
|
4521
|
+
body: { revision: params.revision, plan: params.plan }
|
|
4522
|
+
});
|
|
4523
|
+
}
|
|
4477
4524
|
/**
|
|
4478
4525
|
* The live `routing_volume` counters behind a shop's active advanced
|
|
4479
4526
|
* program: one per distinct budget the program reads, each with the window
|
|
@@ -5254,13 +5301,16 @@ var Users = class {
|
|
|
5254
5301
|
*
|
|
5255
5302
|
* Returns an empty page when a Delopay admin is impersonating a merchant,
|
|
5256
5303
|
* so the admin's metadata is not exposed inside the merchant dashboard.
|
|
5304
|
+
*
|
|
5305
|
+
* Newest first unless `sort_by` says otherwise. Several `event_type` or
|
|
5306
|
+
* `auth_method` values match an event with any of them.
|
|
5257
5307
|
*/
|
|
5258
5308
|
async listLoginActivity(params) {
|
|
5259
5309
|
if (params === void 0) {
|
|
5260
5310
|
return this.request("GET", "/user/me/login-activity");
|
|
5261
5311
|
}
|
|
5262
5312
|
return this.request("GET", "/user/me/login-activity", {
|
|
5263
|
-
query: params
|
|
5313
|
+
query: csvQuery(params, ["event_type", "auth_method"])
|
|
5264
5314
|
});
|
|
5265
5315
|
}
|
|
5266
5316
|
/**
|
|
@@ -6124,14 +6174,16 @@ var IdentityVerifications = class {
|
|
|
6124
6174
|
return this.request("POST", "/identity-verifications", { body: params, ...options });
|
|
6125
6175
|
}
|
|
6126
6176
|
/**
|
|
6127
|
-
* The merchant's verifications, newest first
|
|
6128
|
-
* sees that shop's only.
|
|
6177
|
+
* The merchant's verifications, newest first unless `sort_by` says
|
|
6178
|
+
* otherwise. A caller limited to one shop sees that shop's only. Several
|
|
6179
|
+
* `outcome`, `kind` or `merchant_connector_id` values match a verification
|
|
6180
|
+
* with any of them.
|
|
6129
6181
|
*
|
|
6130
6182
|
* `GET /identity-verifications`
|
|
6131
6183
|
*/
|
|
6132
6184
|
async list(query, options) {
|
|
6133
6185
|
return this.request("GET", "/identity-verifications", {
|
|
6134
|
-
query,
|
|
6186
|
+
query: csvQuery(query, ["outcome", "kind", "merchant_connector_id"]),
|
|
6135
6187
|
...options
|
|
6136
6188
|
});
|
|
6137
6189
|
}
|
|
@@ -6915,7 +6967,13 @@ var Export = class {
|
|
|
6915
6967
|
);
|
|
6916
6968
|
}
|
|
6917
6969
|
async auditLog(params, options) {
|
|
6918
|
-
return runExport(
|
|
6970
|
+
return runExport(
|
|
6971
|
+
this.request,
|
|
6972
|
+
"GET",
|
|
6973
|
+
"/audit/export",
|
|
6974
|
+
{ query: csvQuery(params, ["profile_id", "action", "entity_type"]) },
|
|
6975
|
+
options
|
|
6976
|
+
);
|
|
6919
6977
|
}
|
|
6920
6978
|
};
|
|
6921
6979
|
function queried(params, headers) {
|
|
@@ -7212,14 +7270,15 @@ var BuyerBlocklist = class {
|
|
|
7212
7270
|
this.request = request;
|
|
7213
7271
|
}
|
|
7214
7272
|
/**
|
|
7215
|
-
* One page of blocked buyers, newest first
|
|
7216
|
-
* (the entries that include an identifier of
|
|
7217
|
-
*
|
|
7273
|
+
* One page of blocked buyers, newest first unless `sort_by` says otherwise,
|
|
7274
|
+
* filtered by scope, by `kind` (the entries that include an identifier of
|
|
7275
|
+
* that kind, or of any of several) and by a search over every identifier
|
|
7276
|
+
* and the note. Expired entries are not listed.
|
|
7218
7277
|
* `GET /buyer-blocklist`
|
|
7219
7278
|
*/
|
|
7220
7279
|
async list(params) {
|
|
7221
7280
|
return this.request("GET", "/buyer-blocklist", {
|
|
7222
|
-
query: params
|
|
7281
|
+
query: csvQuery(params, ["kind"])
|
|
7223
7282
|
});
|
|
7224
7283
|
}
|
|
7225
7284
|
/**
|
|
@@ -7345,6 +7404,56 @@ var BuyerBlocklist = class {
|
|
|
7345
7404
|
}
|
|
7346
7405
|
};
|
|
7347
7406
|
|
|
7407
|
+
// src/resources/persons.ts
|
|
7408
|
+
var Persons = class {
|
|
7409
|
+
constructor(request) {
|
|
7410
|
+
this.request = request;
|
|
7411
|
+
}
|
|
7412
|
+
/**
|
|
7413
|
+
* One page of persons, by default the most recent payment first, with the
|
|
7414
|
+
* number of persons the request matches.
|
|
7415
|
+
* `GET /persons`
|
|
7416
|
+
*/
|
|
7417
|
+
async list(params) {
|
|
7418
|
+
return this.request("GET", "/persons", { query: params });
|
|
7419
|
+
}
|
|
7420
|
+
/**
|
|
7421
|
+
* One person: its figures, the identifiers and IP addresses its payments
|
|
7422
|
+
* carry, and its payments by status, shop, payment method, risk band and
|
|
7423
|
+
* environment. The id of a person that was merged into another returns
|
|
7424
|
+
* that person, with `merged_from` naming the id asked for. A person with
|
|
7425
|
+
* no payment in the scope is not found (`404`).
|
|
7426
|
+
* `GET /persons/{person_id}`
|
|
7427
|
+
*/
|
|
7428
|
+
async retrieve(personId, params) {
|
|
7429
|
+
return this.request("GET", `/persons/${encodeURIComponent(personId)}`, {
|
|
7430
|
+
query: params
|
|
7431
|
+
});
|
|
7432
|
+
}
|
|
7433
|
+
/**
|
|
7434
|
+
* Other persons of the merchant that may be the same person, the likeliest
|
|
7435
|
+
* first, at most 20. An estimate from the devices the persons paid with;
|
|
7436
|
+
* related persons stay separate persons.
|
|
7437
|
+
* `GET /persons/{person_id}/related`
|
|
7438
|
+
*/
|
|
7439
|
+
async related(personId, params) {
|
|
7440
|
+
return this.request("GET", `/persons/${encodeURIComponent(personId)}/related`, {
|
|
7441
|
+
query: params
|
|
7442
|
+
});
|
|
7443
|
+
}
|
|
7444
|
+
/**
|
|
7445
|
+
* The person of one payment, with how many payments the person has and
|
|
7446
|
+
* which kinds of identifier tie this payment to the others. `404` while
|
|
7447
|
+
* the payment has no person yet.
|
|
7448
|
+
* `GET /persons/payment/{payment_id}`
|
|
7449
|
+
*/
|
|
7450
|
+
async ofPayment(paymentId, params) {
|
|
7451
|
+
return this.request("GET", `/persons/payment/${encodeURIComponent(paymentId)}`, {
|
|
7452
|
+
query: params
|
|
7453
|
+
});
|
|
7454
|
+
}
|
|
7455
|
+
};
|
|
7456
|
+
|
|
7348
7457
|
// src/resources/shopLabels.ts
|
|
7349
7458
|
var labelsPath = (merchantId) => `/account/${encodeURIComponent(merchantId)}/business-profile/labels`;
|
|
7350
7459
|
var ShopLabels = class {
|
|
@@ -7597,12 +7706,13 @@ var BuyerConversations = class {
|
|
|
7597
7706
|
this.request = request;
|
|
7598
7707
|
}
|
|
7599
7708
|
/**
|
|
7600
|
-
* One page of the inbox, the latest message first
|
|
7601
|
-
* status, assignee, mode or
|
|
7709
|
+
* One page of the inbox, the latest message first unless `sort_by` says
|
|
7710
|
+
* otherwise, filtered by shop, status (one or several), assignee, mode or
|
|
7711
|
+
* buyer. `GET /buyer-conversations`
|
|
7602
7712
|
*/
|
|
7603
7713
|
async list(params) {
|
|
7604
7714
|
return this.request("GET", "/buyer-conversations", {
|
|
7605
|
-
query: params
|
|
7715
|
+
query: csvQuery(params, ["status"])
|
|
7606
7716
|
});
|
|
7607
7717
|
}
|
|
7608
7718
|
/**
|
|
@@ -7713,12 +7823,14 @@ var BuyerEvidenceReviews = class {
|
|
|
7713
7823
|
this.request = request;
|
|
7714
7824
|
}
|
|
7715
7825
|
/**
|
|
7716
|
-
* The shop's cases with buyer evidence, the nearest target first
|
|
7717
|
-
* `
|
|
7826
|
+
* The shop's cases with buyer evidence, the nearest target first unless
|
|
7827
|
+
* `sort_by` says otherwise. Several `state` values match a case in any of
|
|
7828
|
+
* them. `merchant_id` and `reviewer` are ignored here, and so are the
|
|
7829
|
+
* `merchant` and `reviewer` sorts. `GET /buyer-evidence`
|
|
7718
7830
|
*/
|
|
7719
7831
|
async list(params) {
|
|
7720
7832
|
return this.request("GET", "/buyer-evidence", {
|
|
7721
|
-
query: params
|
|
7833
|
+
query: csvQuery(params, ["state"])
|
|
7722
7834
|
});
|
|
7723
7835
|
}
|
|
7724
7836
|
/** One case's evidence with its history and files. `GET /buyer-evidence/{id}` */
|
|
@@ -8490,10 +8602,14 @@ var Support = class {
|
|
|
8490
8602
|
async create(body) {
|
|
8491
8603
|
return this.request("POST", "/support/conversations", { body });
|
|
8492
8604
|
}
|
|
8493
|
-
/**
|
|
8605
|
+
/**
|
|
8606
|
+
* The conversations the caller may read, the latest message first unless
|
|
8607
|
+
* `sort_by` says otherwise. Several `kind`, `category` or `status` values
|
|
8608
|
+
* match a conversation with any of them. `GET /support/conversations`
|
|
8609
|
+
*/
|
|
8494
8610
|
async list(query) {
|
|
8495
8611
|
return this.request("GET", "/support/conversations", {
|
|
8496
|
-
query: query
|
|
8612
|
+
query: csvQuery(query, ["kind", "category", "status"])
|
|
8497
8613
|
});
|
|
8498
8614
|
}
|
|
8499
8615
|
/** One conversation. `GET /support/conversations/{id}` */
|
|
@@ -8544,6 +8660,7 @@ var Support = class {
|
|
|
8544
8660
|
};
|
|
8545
8661
|
|
|
8546
8662
|
// src/resources/invoices.ts
|
|
8663
|
+
var INVOICE_CSV_KEYS = ["status", "kind"];
|
|
8547
8664
|
var Invoices = class {
|
|
8548
8665
|
constructor(request) {
|
|
8549
8666
|
this.request = request;
|
|
@@ -8563,13 +8680,15 @@ var Invoices = class {
|
|
|
8563
8680
|
return this.request("POST", "/invoices", { body: params, ...options });
|
|
8564
8681
|
}
|
|
8565
8682
|
/**
|
|
8566
|
-
* One page of documents, newest first
|
|
8567
|
-
* `include_lines` is set, and never a `refund`
|
|
8683
|
+
* One page of documents, newest first unless `sort_by` says otherwise. List
|
|
8684
|
+
* rows carry no `lines` unless `include_lines` is set, and never a `refund`
|
|
8685
|
+
* summary. Several `status` or `kind` values match a document in any of
|
|
8686
|
+
* them.
|
|
8568
8687
|
* `GET /invoices`
|
|
8569
8688
|
*/
|
|
8570
8689
|
async list(params, options) {
|
|
8571
8690
|
return this.request("GET", "/invoices", {
|
|
8572
|
-
query: params
|
|
8691
|
+
query: csvQuery(params, INVOICE_CSV_KEYS),
|
|
8573
8692
|
...options
|
|
8574
8693
|
});
|
|
8575
8694
|
}
|
|
@@ -8594,7 +8713,7 @@ var Invoices = class {
|
|
|
8594
8713
|
*/
|
|
8595
8714
|
async listForProduct(productId, params, options) {
|
|
8596
8715
|
return this.request("GET", `/products/${encodeURIComponent(productId)}/invoices`, {
|
|
8597
|
-
query: params
|
|
8716
|
+
query: csvQuery(params, INVOICE_CSV_KEYS),
|
|
8598
8717
|
...options
|
|
8599
8718
|
});
|
|
8600
8719
|
}
|
|
@@ -8612,7 +8731,7 @@ var Invoices = class {
|
|
|
8612
8731
|
*/
|
|
8613
8732
|
async export(params, options) {
|
|
8614
8733
|
return this.request("GET", "/invoices/export", {
|
|
8615
|
-
query:
|
|
8734
|
+
query: csvQuery(params, INVOICE_CSV_KEYS),
|
|
8616
8735
|
responseType: "blob",
|
|
8617
8736
|
...options
|
|
8618
8737
|
});
|
|
@@ -9307,7 +9426,10 @@ var Subscriptions = class {
|
|
|
9307
9426
|
...options
|
|
9308
9427
|
});
|
|
9309
9428
|
}
|
|
9310
|
-
/**
|
|
9429
|
+
/**
|
|
9430
|
+
* List subscriptions for the profile, or one customer's with `customer_id`.
|
|
9431
|
+
* `GET /subscriptions/list`
|
|
9432
|
+
*/
|
|
9311
9433
|
async list(params, options) {
|
|
9312
9434
|
return this.request("GET", "/subscriptions/list", {
|
|
9313
9435
|
query: params,
|
|
@@ -10103,13 +10225,19 @@ var BuyerPortal = class {
|
|
|
10103
10225
|
};
|
|
10104
10226
|
|
|
10105
10227
|
// src/resources/audit.ts
|
|
10228
|
+
var MERCHANT_AUDIT_CSV_KEYS = ["profile_id", "action", "entity_type"];
|
|
10106
10229
|
var Audit = class {
|
|
10107
10230
|
constructor(request) {
|
|
10108
10231
|
this.request = request;
|
|
10109
10232
|
}
|
|
10233
|
+
/**
|
|
10234
|
+
* One page of the merchant's audit log, the newest entry first unless
|
|
10235
|
+
* `sort_by` says otherwise. Several `profile_id`, `action` or `entity_type`
|
|
10236
|
+
* values match an entry with any of them. `GET /audit`
|
|
10237
|
+
*/
|
|
10110
10238
|
async list(params) {
|
|
10111
10239
|
return this.request("GET", "/audit", {
|
|
10112
|
-
query: params
|
|
10240
|
+
query: csvQuery(params, MERCHANT_AUDIT_CSV_KEYS)
|
|
10113
10241
|
});
|
|
10114
10242
|
}
|
|
10115
10243
|
/**
|
|
@@ -10122,6 +10250,33 @@ var Audit = class {
|
|
|
10122
10250
|
};
|
|
10123
10251
|
|
|
10124
10252
|
// src/resources/settlement.ts
|
|
10253
|
+
function statementListQuery(params) {
|
|
10254
|
+
return csvQuery(
|
|
10255
|
+
{
|
|
10256
|
+
test_mode: params.test_mode,
|
|
10257
|
+
profile_id: params.profile_id,
|
|
10258
|
+
limit: params.limit,
|
|
10259
|
+
offset: params.offset,
|
|
10260
|
+
payout_status: params.payout_status,
|
|
10261
|
+
period_from: params.period_from,
|
|
10262
|
+
period_to: params.period_to,
|
|
10263
|
+
sort_by: params.sort_by,
|
|
10264
|
+
sort_order: params.sort_order
|
|
10265
|
+
},
|
|
10266
|
+
["payout_status"]
|
|
10267
|
+
);
|
|
10268
|
+
}
|
|
10269
|
+
function nativeListQuery(params) {
|
|
10270
|
+
return {
|
|
10271
|
+
profile_id: params.profile_id,
|
|
10272
|
+
currency: params.currency,
|
|
10273
|
+
test_mode: params.test_mode,
|
|
10274
|
+
limit: params.limit,
|
|
10275
|
+
offset: params.offset,
|
|
10276
|
+
sort_by: params.sort_by,
|
|
10277
|
+
sort_order: params.sort_order
|
|
10278
|
+
};
|
|
10279
|
+
}
|
|
10125
10280
|
function exportHeaders(options, accept) {
|
|
10126
10281
|
const headers = new Headers(options?.headers);
|
|
10127
10282
|
headers.set("Accept", accept);
|
|
@@ -10285,18 +10440,15 @@ var Settlement = class {
|
|
|
10285
10440
|
});
|
|
10286
10441
|
}
|
|
10287
10442
|
/**
|
|
10288
|
-
* List generated settlement statements, newest first
|
|
10443
|
+
* List generated settlement statements, the newest period first unless
|
|
10444
|
+
* `sort_by` says otherwise. Several `payout_status` values match a
|
|
10445
|
+
* statement in any of them.
|
|
10289
10446
|
*
|
|
10290
10447
|
* `GET /settlement/statements`
|
|
10291
10448
|
*/
|
|
10292
10449
|
async listStatements(params, options) {
|
|
10293
10450
|
return this.request("GET", "/settlement/statements", {
|
|
10294
|
-
query:
|
|
10295
|
-
test_mode: params.test_mode,
|
|
10296
|
-
profile_id: params.profile_id,
|
|
10297
|
-
limit: params.limit,
|
|
10298
|
-
offset: params.offset
|
|
10299
|
-
},
|
|
10451
|
+
query: statementListQuery(params),
|
|
10300
10452
|
...options
|
|
10301
10453
|
});
|
|
10302
10454
|
}
|
|
@@ -10553,16 +10705,14 @@ var Settlement = class {
|
|
|
10553
10705
|
options
|
|
10554
10706
|
);
|
|
10555
10707
|
}
|
|
10556
|
-
/**
|
|
10708
|
+
/**
|
|
10709
|
+
* List report summaries without fetching every source row in each saved
|
|
10710
|
+
* snapshot, the newest first. `sort_by` takes `period` here; another value
|
|
10711
|
+
* is refused.
|
|
10712
|
+
*/
|
|
10557
10713
|
async listNativeReports(params, options) {
|
|
10558
10714
|
return this.request("GET", "/settlement/native/reports", {
|
|
10559
|
-
query:
|
|
10560
|
-
profile_id: params.profile_id,
|
|
10561
|
-
currency: params.currency,
|
|
10562
|
-
test_mode: params.test_mode,
|
|
10563
|
-
limit: params.limit,
|
|
10564
|
-
offset: params.offset
|
|
10565
|
-
},
|
|
10715
|
+
query: nativeListQuery(params),
|
|
10566
10716
|
...options
|
|
10567
10717
|
});
|
|
10568
10718
|
}
|
|
@@ -10580,15 +10730,13 @@ var Settlement = class {
|
|
|
10580
10730
|
bodyIdempotencyKey: params.idempotency_key
|
|
10581
10731
|
});
|
|
10582
10732
|
}
|
|
10733
|
+
/**
|
|
10734
|
+
* List recorded payouts, the earliest value date first. `sort_by` takes
|
|
10735
|
+
* `value_date` or `amount` here; another value is refused.
|
|
10736
|
+
*/
|
|
10583
10737
|
async listNativePayouts(params, options) {
|
|
10584
10738
|
return this.request("GET", "/settlement/native/payouts", {
|
|
10585
|
-
query:
|
|
10586
|
-
profile_id: params.profile_id,
|
|
10587
|
-
currency: params.currency,
|
|
10588
|
-
test_mode: params.test_mode,
|
|
10589
|
-
limit: params.limit,
|
|
10590
|
-
offset: params.offset
|
|
10591
|
-
},
|
|
10739
|
+
query: nativeListQuery(params),
|
|
10592
10740
|
...options
|
|
10593
10741
|
});
|
|
10594
10742
|
}
|
|
@@ -11542,6 +11690,7 @@ var Delopay = class {
|
|
|
11542
11690
|
this.availabilityOverrides = new AvailabilityOverrides(request);
|
|
11543
11691
|
this.sellToRestrictions = new SellToRestrictions(request);
|
|
11544
11692
|
this.buyerBlocklist = new BuyerBlocklist(request);
|
|
11693
|
+
this.persons = new Persons(request);
|
|
11545
11694
|
this.shopLabels = new ShopLabels(request);
|
|
11546
11695
|
this.industries = new Industries(request);
|
|
11547
11696
|
this.checkoutTemplates = new CheckoutTemplates(request);
|
|
@@ -12064,6 +12213,14 @@ function leaf(lhs, comparison, value) {
|
|
|
12064
12213
|
const tagged = typeof value === "number" ? { type: "number", value } : { type: "enum_variant", value };
|
|
12065
12214
|
return { kind: "leaf", lhs, comparison, value: tagged };
|
|
12066
12215
|
}
|
|
12216
|
+
function metadataLeaf(key, comparison, value) {
|
|
12217
|
+
return {
|
|
12218
|
+
kind: "leaf",
|
|
12219
|
+
lhs: "metadata",
|
|
12220
|
+
comparison,
|
|
12221
|
+
value: { type: "metadata_variant", value: { key, value } }
|
|
12222
|
+
};
|
|
12223
|
+
}
|
|
12067
12224
|
function allOf(...children) {
|
|
12068
12225
|
return { kind: "all", children };
|
|
12069
12226
|
}
|
|
@@ -12175,7 +12332,8 @@ function programToTree(program) {
|
|
|
12175
12332
|
rules: program.rules.map((r) => ({
|
|
12176
12333
|
name: r.name,
|
|
12177
12334
|
match: ruleMatchToTree(r.statements),
|
|
12178
|
-
fee: r.connectorSelection.fee ?? null
|
|
12335
|
+
fee: r.connectorSelection.fee ?? null,
|
|
12336
|
+
schedule: r.connectorSelection.schedule ?? null
|
|
12179
12337
|
})),
|
|
12180
12338
|
otherwise: program.defaultSelection.fee ?? null
|
|
12181
12339
|
};
|
|
@@ -12189,11 +12347,11 @@ var FeeProgramBuilder = class {
|
|
|
12189
12347
|
rule(input) {
|
|
12190
12348
|
if (input.match) assertNoEmptyAnyOf(input.match);
|
|
12191
12349
|
const statements = input.match ? encodeStatements(input.match) : [{ condition: buildConditions(input.when, input.rawConditions) }];
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
});
|
|
12350
|
+
const connectorSelection = {
|
|
12351
|
+
fee: toFeeOutput(input.fee)
|
|
12352
|
+
};
|
|
12353
|
+
if (input.schedule !== void 0) connectorSelection.schedule = input.schedule;
|
|
12354
|
+
this.rules.push({ name: input.name, connectorSelection, statements });
|
|
12197
12355
|
return this;
|
|
12198
12356
|
}
|
|
12199
12357
|
/** Set the default selection (applied when no rule matches). */
|
|
@@ -12214,6 +12372,170 @@ function feeProgram() {
|
|
|
12214
12372
|
return new FeeProgramBuilder();
|
|
12215
12373
|
}
|
|
12216
12374
|
|
|
12375
|
+
// src/currencies.ts
|
|
12376
|
+
var PAYMENT_CURRENCIES = [
|
|
12377
|
+
"AED",
|
|
12378
|
+
"AFN",
|
|
12379
|
+
"ALL",
|
|
12380
|
+
"AMD",
|
|
12381
|
+
"ANG",
|
|
12382
|
+
"AOA",
|
|
12383
|
+
"ARS",
|
|
12384
|
+
"AUD",
|
|
12385
|
+
"AWG",
|
|
12386
|
+
"AZN",
|
|
12387
|
+
"BAM",
|
|
12388
|
+
"BBD",
|
|
12389
|
+
"BDT",
|
|
12390
|
+
"BGN",
|
|
12391
|
+
"BHD",
|
|
12392
|
+
"BIF",
|
|
12393
|
+
"BMD",
|
|
12394
|
+
"BND",
|
|
12395
|
+
"BOB",
|
|
12396
|
+
"BRL",
|
|
12397
|
+
"BSD",
|
|
12398
|
+
"BTN",
|
|
12399
|
+
"BWP",
|
|
12400
|
+
"BYN",
|
|
12401
|
+
"BZD",
|
|
12402
|
+
"CAD",
|
|
12403
|
+
"CDF",
|
|
12404
|
+
"CHF",
|
|
12405
|
+
"CLF",
|
|
12406
|
+
"CLP",
|
|
12407
|
+
"CNY",
|
|
12408
|
+
"COP",
|
|
12409
|
+
"CRC",
|
|
12410
|
+
"CUC",
|
|
12411
|
+
"CUP",
|
|
12412
|
+
"CVE",
|
|
12413
|
+
"CZK",
|
|
12414
|
+
"DJF",
|
|
12415
|
+
"DKK",
|
|
12416
|
+
"DOP",
|
|
12417
|
+
"DZD",
|
|
12418
|
+
"EGP",
|
|
12419
|
+
"ERN",
|
|
12420
|
+
"ETB",
|
|
12421
|
+
"EUR",
|
|
12422
|
+
"FJD",
|
|
12423
|
+
"FKP",
|
|
12424
|
+
"GBP",
|
|
12425
|
+
"GEL",
|
|
12426
|
+
"GHS",
|
|
12427
|
+
"GIP",
|
|
12428
|
+
"GMD",
|
|
12429
|
+
"GNF",
|
|
12430
|
+
"GTQ",
|
|
12431
|
+
"GYD",
|
|
12432
|
+
"HKD",
|
|
12433
|
+
"HNL",
|
|
12434
|
+
"HRK",
|
|
12435
|
+
"HTG",
|
|
12436
|
+
"HUF",
|
|
12437
|
+
"IDR",
|
|
12438
|
+
"ILS",
|
|
12439
|
+
"INR",
|
|
12440
|
+
"IQD",
|
|
12441
|
+
"IRR",
|
|
12442
|
+
"ISK",
|
|
12443
|
+
"JMD",
|
|
12444
|
+
"JOD",
|
|
12445
|
+
"JPY",
|
|
12446
|
+
"KES",
|
|
12447
|
+
"KGS",
|
|
12448
|
+
"KHR",
|
|
12449
|
+
"KMF",
|
|
12450
|
+
"KPW",
|
|
12451
|
+
"KRW",
|
|
12452
|
+
"KWD",
|
|
12453
|
+
"KYD",
|
|
12454
|
+
"KZT",
|
|
12455
|
+
"LAK",
|
|
12456
|
+
"LBP",
|
|
12457
|
+
"LKR",
|
|
12458
|
+
"LRD",
|
|
12459
|
+
"LSL",
|
|
12460
|
+
"LYD",
|
|
12461
|
+
"MAD",
|
|
12462
|
+
"MDL",
|
|
12463
|
+
"MGA",
|
|
12464
|
+
"MKD",
|
|
12465
|
+
"MMK",
|
|
12466
|
+
"MNT",
|
|
12467
|
+
"MOP",
|
|
12468
|
+
"MRU",
|
|
12469
|
+
"MUR",
|
|
12470
|
+
"MVR",
|
|
12471
|
+
"MWK",
|
|
12472
|
+
"MXN",
|
|
12473
|
+
"MYR",
|
|
12474
|
+
"MZN",
|
|
12475
|
+
"NAD",
|
|
12476
|
+
"NGN",
|
|
12477
|
+
"NIO",
|
|
12478
|
+
"NOK",
|
|
12479
|
+
"NPR",
|
|
12480
|
+
"NZD",
|
|
12481
|
+
"OMR",
|
|
12482
|
+
"PAB",
|
|
12483
|
+
"PEN",
|
|
12484
|
+
"PGK",
|
|
12485
|
+
"PHP",
|
|
12486
|
+
"PKR",
|
|
12487
|
+
"PLN",
|
|
12488
|
+
"PYG",
|
|
12489
|
+
"QAR",
|
|
12490
|
+
"RON",
|
|
12491
|
+
"RSD",
|
|
12492
|
+
"RUB",
|
|
12493
|
+
"RWF",
|
|
12494
|
+
"SAR",
|
|
12495
|
+
"SBD",
|
|
12496
|
+
"SCR",
|
|
12497
|
+
"SDG",
|
|
12498
|
+
"SEK",
|
|
12499
|
+
"SGD",
|
|
12500
|
+
"SHP",
|
|
12501
|
+
"SLE",
|
|
12502
|
+
"SLL",
|
|
12503
|
+
"SOS",
|
|
12504
|
+
"SRD",
|
|
12505
|
+
"SSP",
|
|
12506
|
+
"STD",
|
|
12507
|
+
"STN",
|
|
12508
|
+
"SVC",
|
|
12509
|
+
"SYP",
|
|
12510
|
+
"SZL",
|
|
12511
|
+
"THB",
|
|
12512
|
+
"TJS",
|
|
12513
|
+
"TMT",
|
|
12514
|
+
"TND",
|
|
12515
|
+
"TOP",
|
|
12516
|
+
"TRY",
|
|
12517
|
+
"TTD",
|
|
12518
|
+
"TWD",
|
|
12519
|
+
"TZS",
|
|
12520
|
+
"UAH",
|
|
12521
|
+
"UGX",
|
|
12522
|
+
"USD",
|
|
12523
|
+
"UYU",
|
|
12524
|
+
"UZS",
|
|
12525
|
+
"VES",
|
|
12526
|
+
"VND",
|
|
12527
|
+
"VUV",
|
|
12528
|
+
"WST",
|
|
12529
|
+
"XAF",
|
|
12530
|
+
"XCD",
|
|
12531
|
+
"XOF",
|
|
12532
|
+
"XPF",
|
|
12533
|
+
"YER",
|
|
12534
|
+
"ZAR",
|
|
12535
|
+
"ZMW",
|
|
12536
|
+
"ZWL"
|
|
12537
|
+
];
|
|
12538
|
+
|
|
12217
12539
|
// src/airwallexCard.ts
|
|
12218
12540
|
var AIRWALLEX_CARD_PRESETS = [
|
|
12219
12541
|
"single_row",
|
|
@@ -17470,10 +17792,12 @@ var encodeNativePanes = encodePanes;
|
|
|
17470
17792
|
PANES_MAX,
|
|
17471
17793
|
PANE_CATEGORY_KEYS,
|
|
17472
17794
|
PANE_ICON_KEYS,
|
|
17795
|
+
PAYMENT_CURRENCIES,
|
|
17473
17796
|
PAYPAL_CARD_LAYOUTS,
|
|
17474
17797
|
PAYPAL_LABEL_STYLES,
|
|
17475
17798
|
PRESENTATION_CONTRACT_VERSION,
|
|
17476
17799
|
PaypalDisputes,
|
|
17800
|
+
Persons,
|
|
17477
17801
|
PresentationCache,
|
|
17478
17802
|
ProcessorCosts,
|
|
17479
17803
|
ProcessorImports,
|
|
@@ -17608,6 +17932,7 @@ var encodeNativePanes = encodePanes;
|
|
|
17608
17932
|
leaf,
|
|
17609
17933
|
logoDimensions,
|
|
17610
17934
|
matchWhopLook,
|
|
17935
|
+
metadataLeaf,
|
|
17611
17936
|
nativePaneMethodInfo,
|
|
17612
17937
|
nearestWhopAccent,
|
|
17613
17938
|
noticeText,
|