@delopay/sdk 0.158.0 → 0.162.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-4YLUV3YJ.js → chunk-P2KP3WRS.js} +264 -11
- package/dist/chunk-P2KP3WRS.js.map +1 -0
- package/dist/index.cjs +265 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +835 -27
- package/dist/index.d.ts +835 -27
- package/dist/index.js +5 -1
- package/dist/internal.cjs +403 -10
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +143 -3
- package/dist/internal.d.ts +143 -3
- package/dist/internal.js +143 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-4YLUV3YJ.js.map +0 -1
package/dist/internal.js
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
Cards,
|
|
38
38
|
CheckoutMethods,
|
|
39
39
|
CheckoutSession,
|
|
40
|
+
CostRules,
|
|
40
41
|
DEFAULT_BADGES,
|
|
41
42
|
DEFAULT_BADGES_DARK,
|
|
42
43
|
DEFAULT_BRANDING,
|
|
@@ -68,6 +69,7 @@ import {
|
|
|
68
69
|
PAYPAL_CARD_LAYOUTS,
|
|
69
70
|
PAYPAL_LABEL_STYLES,
|
|
70
71
|
PaypalDisputes,
|
|
72
|
+
ProcessorCosts,
|
|
71
73
|
RTL_CHECKOUT_LOCALES,
|
|
72
74
|
Regions,
|
|
73
75
|
Risk,
|
|
@@ -193,7 +195,7 @@ import {
|
|
|
193
195
|
validatePanes,
|
|
194
196
|
verticalGapValue,
|
|
195
197
|
visibleCustomFields
|
|
196
|
-
} from "./chunk-
|
|
198
|
+
} from "./chunk-P2KP3WRS.js";
|
|
197
199
|
|
|
198
200
|
// src/internal/resources/admin.ts
|
|
199
201
|
var Admin = class {
|
|
@@ -531,6 +533,71 @@ var AdminPortal = class {
|
|
|
531
533
|
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/sell-to-restrictions`
|
|
532
534
|
);
|
|
533
535
|
}
|
|
536
|
+
/**
|
|
537
|
+
* The deployment's replay-masking rules: extra page elements the session
|
|
538
|
+
* recorder hides on top of the ones it always hides.
|
|
539
|
+
*
|
|
540
|
+
* `GET /admin-portal/replay-masking`
|
|
541
|
+
*/
|
|
542
|
+
async getReplayMasking() {
|
|
543
|
+
return this.request("GET", "/admin-portal/replay-masking");
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* Replace the deployment's replay-masking rules. Additive to the recorder's
|
|
547
|
+
* built-in floor: a rule can widen what a recording leaves out and can never
|
|
548
|
+
* reveal something the recorder hides unconditionally.
|
|
549
|
+
*
|
|
550
|
+
* `PUT /admin-portal/replay-masking`
|
|
551
|
+
*/
|
|
552
|
+
async updateReplayMasking(params) {
|
|
553
|
+
return this.request("PUT", "/admin-portal/replay-masking", { body: params });
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* One merchant's replay-masking rules.
|
|
557
|
+
*
|
|
558
|
+
* `GET /admin-portal/accounts/{merchantId}/replay-masking`
|
|
559
|
+
*/
|
|
560
|
+
async getMerchantReplayMasking(merchantId) {
|
|
561
|
+
return this.request(
|
|
562
|
+
"GET",
|
|
563
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`
|
|
564
|
+
);
|
|
565
|
+
}
|
|
566
|
+
/**
|
|
567
|
+
* Replace one merchant's replay-masking rules.
|
|
568
|
+
*
|
|
569
|
+
* `PUT /admin-portal/accounts/{merchantId}/replay-masking`
|
|
570
|
+
*/
|
|
571
|
+
async updateMerchantReplayMasking(merchantId, params) {
|
|
572
|
+
return this.request(
|
|
573
|
+
"PUT",
|
|
574
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/replay-masking`,
|
|
575
|
+
{ body: params }
|
|
576
|
+
);
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* One shop's replay-masking rules.
|
|
580
|
+
*
|
|
581
|
+
* `GET /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
|
|
582
|
+
*/
|
|
583
|
+
async getShopReplayMasking(merchantId, profileId) {
|
|
584
|
+
return this.request(
|
|
585
|
+
"GET",
|
|
586
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`
|
|
587
|
+
);
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* Replace one shop's replay-masking rules.
|
|
591
|
+
*
|
|
592
|
+
* `PUT /admin-portal/accounts/{merchantId}/business-profile/{profileId}/replay-masking`
|
|
593
|
+
*/
|
|
594
|
+
async updateShopReplayMasking(merchantId, profileId, params) {
|
|
595
|
+
return this.request(
|
|
596
|
+
"PUT",
|
|
597
|
+
`/admin-portal/accounts/${encodeURIComponent(merchantId)}/business-profile/${encodeURIComponent(profileId)}/replay-masking`,
|
|
598
|
+
{ body: params }
|
|
599
|
+
);
|
|
600
|
+
}
|
|
534
601
|
/**
|
|
535
602
|
* Soft-delete a transaction of ANY merchant. Only payments whose status
|
|
536
603
|
* is in the admin delete policy can be deleted; the action is audited.
|
|
@@ -594,6 +661,79 @@ var AdminPortal = class {
|
|
|
594
661
|
}
|
|
595
662
|
);
|
|
596
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* DeloPay's own processor cost schedules — our acquirer contract, which
|
|
666
|
+
* prices every merchant that has no schedule of its own, except an account
|
|
667
|
+
* a shop owner brought (that rate is in their contract, not ours, and lives
|
|
668
|
+
* on the merchant surface).
|
|
669
|
+
*
|
|
670
|
+
* Never returned on the merchant surface: these rates are DeloPay's cost
|
|
671
|
+
* base. The rows carry no merchant.
|
|
672
|
+
*
|
|
673
|
+
* `GET /admin-portal/processor-costs`
|
|
674
|
+
*/
|
|
675
|
+
async listProcessorCostSchedules() {
|
|
676
|
+
return this.request("GET", "/admin-portal/processor-costs");
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Record a DeloPay-wide cost schedule — what a rail charges DeloPay, for
|
|
680
|
+
* rails that report no fee on the payment itself. A cost derived from one
|
|
681
|
+
* of these is marked `estimated` on the settlement line, never `reported`.
|
|
682
|
+
*
|
|
683
|
+
* `POST /admin-portal/processor-costs`
|
|
684
|
+
*/
|
|
685
|
+
async createProcessorCostSchedule(params) {
|
|
686
|
+
return this.request("POST", "/admin-portal/processor-costs", { body: params });
|
|
687
|
+
}
|
|
688
|
+
/**
|
|
689
|
+
* Record several DeloPay-wide schedules at once, all or none — copy a price
|
|
690
|
+
* list across methods. 1 to 200 entries; an invalid entry is answered `422`
|
|
691
|
+
* naming its index and nothing is stored. The answer lists them in request
|
|
692
|
+
* order.
|
|
693
|
+
*
|
|
694
|
+
* `POST /admin-portal/processor-costs/bulk`
|
|
695
|
+
*/
|
|
696
|
+
async bulkCreateProcessorCostSchedules(params) {
|
|
697
|
+
return this.request("POST", "/admin-portal/processor-costs/bulk", { body: params });
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* Close a window, deactivate a DeloPay-wide schedule or annotate it. The
|
|
701
|
+
* rate itself is not editable: it priced transactions that already
|
|
702
|
+
* happened, and a new rate is a new row.
|
|
703
|
+
*
|
|
704
|
+
* `PUT /admin-portal/processor-costs/{scheduleId}`
|
|
705
|
+
*/
|
|
706
|
+
async updateProcessorCostSchedule(scheduleId, params) {
|
|
707
|
+
return this.request("PUT", `/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`, {
|
|
708
|
+
body: params
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Close a DeloPay-wide schedule at `effective_from` and open its successor
|
|
713
|
+
* with the same scope and the same end, in one step: no transaction is
|
|
714
|
+
* priced by both rates, and none falls between them. Answers the successor.
|
|
715
|
+
*
|
|
716
|
+
* `POST /admin-portal/processor-costs/{scheduleId}/replace`
|
|
717
|
+
*/
|
|
718
|
+
async replaceProcessorCostSchedule(scheduleId, params) {
|
|
719
|
+
return this.request(
|
|
720
|
+
"POST",
|
|
721
|
+
`/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}/replace`,
|
|
722
|
+
{ body: params }
|
|
723
|
+
);
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Delete a DeloPay-wide schedule. Restates nothing: every figure it derived
|
|
727
|
+
* is already stamped on the settlement lines it priced.
|
|
728
|
+
*
|
|
729
|
+
* `DELETE /admin-portal/processor-costs/{scheduleId}`
|
|
730
|
+
*/
|
|
731
|
+
async deleteProcessorCostSchedule(scheduleId) {
|
|
732
|
+
return this.request(
|
|
733
|
+
"DELETE",
|
|
734
|
+
`/admin-portal/processor-costs/${encodeURIComponent(scheduleId)}`
|
|
735
|
+
);
|
|
736
|
+
}
|
|
597
737
|
/** Get the connector health polling interval. `GET /admin-portal/connector-health-config` */
|
|
598
738
|
async getConnectorHealthConfig() {
|
|
599
739
|
return this.request("GET", "/admin-portal/connector-health-config");
|
|
@@ -1507,6 +1647,7 @@ export {
|
|
|
1507
1647
|
Configs,
|
|
1508
1648
|
ConnectorRestrictionRules,
|
|
1509
1649
|
ConnectorRestrictions,
|
|
1650
|
+
CostRules,
|
|
1510
1651
|
DEFAULT_BADGES,
|
|
1511
1652
|
DEFAULT_BADGES_DARK,
|
|
1512
1653
|
DEFAULT_BRANDING,
|
|
@@ -1543,6 +1684,7 @@ export {
|
|
|
1543
1684
|
PaypalDisputes,
|
|
1544
1685
|
PlatformBilling,
|
|
1545
1686
|
PlatformFees,
|
|
1687
|
+
ProcessorCosts,
|
|
1546
1688
|
RTL_CHECKOUT_LOCALES,
|
|
1547
1689
|
Regions,
|
|
1548
1690
|
Risk,
|