@delopay/sdk 0.43.0 → 0.45.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-235UFV7Z.js → chunk-25GERHCM.js} +67 -20
- package/dist/chunk-25GERHCM.js.map +1 -0
- package/dist/index.cjs +67 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -15
- package/dist/index.d.ts +106 -15
- package/dist/index.js +3 -1
- package/dist/internal.cjs +67 -19
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-235UFV7Z.js.map +0 -1
|
@@ -1682,10 +1682,7 @@ var Routing = class {
|
|
|
1682
1682
|
* `GET /routing/connector-restrictions/{profileId}`
|
|
1683
1683
|
*/
|
|
1684
1684
|
async connectorRestrictions(profileId) {
|
|
1685
|
-
return this.request(
|
|
1686
|
-
"GET",
|
|
1687
|
-
`/routing/connector-restrictions/${encodeURIComponent(profileId)}`
|
|
1688
|
-
);
|
|
1685
|
+
return this.request("GET", `/routing/connector-restrictions/${encodeURIComponent(profileId)}`);
|
|
1689
1686
|
}
|
|
1690
1687
|
// --- Advanced operations (Task 3.4) ---
|
|
1691
1688
|
/** Get active routing config. `GET /routing/active` */
|
|
@@ -2594,25 +2591,73 @@ var Regions = class {
|
|
|
2594
2591
|
constructor(request) {
|
|
2595
2592
|
this.request = request;
|
|
2596
2593
|
}
|
|
2597
|
-
/** Create a region. `POST /regions
|
|
2598
|
-
async create(params) {
|
|
2599
|
-
return this.request("POST", "/regions", {
|
|
2594
|
+
/** Create a region. `POST /regions?profile_id=` */
|
|
2595
|
+
async create(profileId, params) {
|
|
2596
|
+
return this.request("POST", "/regions", {
|
|
2597
|
+
body: params,
|
|
2598
|
+
query: { profile_id: profileId }
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
/** List all regions for a profile. `GET /regions/list?profile_id=` */
|
|
2602
|
+
async list(profileId) {
|
|
2603
|
+
return this.request("GET", "/regions/list", { query: { profile_id: profileId } });
|
|
2604
|
+
}
|
|
2605
|
+
/** List the built-in (global) region groups (EU/EEA/SEPA/LATAM/APAC). `GET /regions/groups` */
|
|
2606
|
+
async groups() {
|
|
2607
|
+
return this.request("GET", "/regions/groups");
|
|
2600
2608
|
}
|
|
2601
|
-
/** Retrieve a region by
|
|
2602
|
-
async retrieve(regionId) {
|
|
2603
|
-
return this.request("GET", `/regions/${encodeURIComponent(regionId)}
|
|
2609
|
+
/** Retrieve a region by id. `GET /regions/{regionId}?profile_id=` */
|
|
2610
|
+
async retrieve(regionId, profileId) {
|
|
2611
|
+
return this.request("GET", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2612
|
+
query: { profile_id: profileId }
|
|
2613
|
+
});
|
|
2604
2614
|
}
|
|
2605
|
-
/** Update a region. `PUT /regions/{regionId}
|
|
2606
|
-
async update(regionId, params) {
|
|
2607
|
-
return this.request("PUT", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2615
|
+
/** Update a region. `PUT /regions/{regionId}?profile_id=` */
|
|
2616
|
+
async update(regionId, profileId, params) {
|
|
2617
|
+
return this.request("PUT", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2618
|
+
body: params,
|
|
2619
|
+
query: { profile_id: profileId }
|
|
2620
|
+
});
|
|
2608
2621
|
}
|
|
2609
|
-
/** Delete a region. `DELETE /regions/{regionId}
|
|
2610
|
-
async delete(regionId) {
|
|
2611
|
-
return this.request("DELETE", `/regions/${encodeURIComponent(regionId)}
|
|
2622
|
+
/** Delete a region. `DELETE /regions/{regionId}?profile_id=` */
|
|
2623
|
+
async delete(regionId, profileId) {
|
|
2624
|
+
return this.request("DELETE", `/regions/${encodeURIComponent(regionId)}`, {
|
|
2625
|
+
query: { profile_id: profileId }
|
|
2626
|
+
});
|
|
2612
2627
|
}
|
|
2613
|
-
/**
|
|
2614
|
-
async
|
|
2615
|
-
return this.request("GET",
|
|
2628
|
+
/** Get the countries that belong to a region. `GET /regions/{regionId}/countries?profile_id=` */
|
|
2629
|
+
async getCountries(regionId, profileId) {
|
|
2630
|
+
return this.request("GET", `/regions/${encodeURIComponent(regionId)}/countries`, {
|
|
2631
|
+
query: { profile_id: profileId }
|
|
2632
|
+
});
|
|
2633
|
+
}
|
|
2634
|
+
/** Replace the full country membership of a region. `PUT /regions/{regionId}/countries?profile_id=` */
|
|
2635
|
+
async setCountries(regionId, profileId, params) {
|
|
2636
|
+
return this.request("PUT", `/regions/${encodeURIComponent(regionId)}/countries`, {
|
|
2637
|
+
body: params,
|
|
2638
|
+
query: { profile_id: profileId }
|
|
2639
|
+
});
|
|
2640
|
+
}
|
|
2641
|
+
};
|
|
2642
|
+
|
|
2643
|
+
// src/resources/availabilityOverrides.ts
|
|
2644
|
+
var AvailabilityOverrides = class {
|
|
2645
|
+
constructor(request) {
|
|
2646
|
+
this.request = request;
|
|
2647
|
+
}
|
|
2648
|
+
/** Create an availability override. `POST /availability-overrides` */
|
|
2649
|
+
async create(params) {
|
|
2650
|
+
return this.request("POST", "/availability-overrides", { body: params });
|
|
2651
|
+
}
|
|
2652
|
+
/** List a merchant's availability overrides. `GET /availability-overrides` */
|
|
2653
|
+
async list(merchantId) {
|
|
2654
|
+
return this.request("GET", "/availability-overrides", {
|
|
2655
|
+
query: { merchant_id: merchantId }
|
|
2656
|
+
});
|
|
2657
|
+
}
|
|
2658
|
+
/** Delete an availability override by id. `DELETE /availability-overrides/{id}` */
|
|
2659
|
+
async delete(id) {
|
|
2660
|
+
return this.request("DELETE", `/availability-overrides/${encodeURIComponent(id)}`);
|
|
2616
2661
|
}
|
|
2617
2662
|
};
|
|
2618
2663
|
|
|
@@ -2841,6 +2886,7 @@ var Delopay = class {
|
|
|
2841
2886
|
this.export = new Export(request);
|
|
2842
2887
|
this.forex = new Forex(request);
|
|
2843
2888
|
this.regions = new Regions(request);
|
|
2889
|
+
this.availabilityOverrides = new AvailabilityOverrides(request);
|
|
2844
2890
|
this.analytics = new Analytics(request);
|
|
2845
2891
|
this.analyticsDashboard = new AnalyticsDashboard(request);
|
|
2846
2892
|
this.featureMatrix = new FeatureMatrix(request);
|
|
@@ -3823,6 +3869,7 @@ export {
|
|
|
3823
3869
|
Files,
|
|
3824
3870
|
Forex,
|
|
3825
3871
|
Regions,
|
|
3872
|
+
AvailabilityOverrides,
|
|
3826
3873
|
Subscriptions,
|
|
3827
3874
|
Delopay,
|
|
3828
3875
|
FeeProgramBuilder,
|
|
@@ -3856,4 +3903,4 @@ export {
|
|
|
3856
3903
|
applyBrandingVariables,
|
|
3857
3904
|
shadowFor
|
|
3858
3905
|
};
|
|
3859
|
-
//# sourceMappingURL=chunk-
|
|
3906
|
+
//# sourceMappingURL=chunk-25GERHCM.js.map
|