@delopay/sdk 0.398.0 → 0.400.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-BI74VQSZ.js → chunk-AZRXI3FB.js} +147 -1
- package/dist/chunk-AZRXI3FB.js.map +1 -0
- package/dist/{index-BH8F0vge.d.cts → index-SqGJT_8j.d.cts} +270 -2
- package/dist/{index-BH8F0vge.d.ts → index-SqGJT_8j.d.ts} +270 -2
- package/dist/index.cjs +147 -0
- 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 +3 -1
- package/dist/internal.cjs +243 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +241 -8
- package/dist/internal.d.ts +241 -8
- package/dist/internal.js +99 -2
- package/dist/internal.js.map +1 -1
- package/package.json +19 -17
- package/dist/chunk-BI74VQSZ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -137,6 +137,7 @@ __export(index_exports, {
|
|
|
137
137
|
PAYPAL_CARD_LAYOUTS: () => PAYPAL_CARD_LAYOUTS,
|
|
138
138
|
PAYPAL_LABEL_STYLES: () => PAYPAL_LABEL_STYLES,
|
|
139
139
|
PRESENTATION_CONTRACT_VERSION: () => PRESENTATION_CONTRACT_VERSION,
|
|
140
|
+
PayoutDestinations: () => PayoutDestinations,
|
|
140
141
|
PaypalDisputes: () => PaypalDisputes,
|
|
141
142
|
Persons: () => Persons,
|
|
142
143
|
PresentationCache: () => PresentationCache,
|
|
@@ -7745,6 +7746,150 @@ function shopPath(profileId) {
|
|
|
7745
7746
|
return `/industries/shops/${encodeURIComponent(profileId)}`;
|
|
7746
7747
|
}
|
|
7747
7748
|
|
|
7749
|
+
// src/resources/payoutDestinations.ts
|
|
7750
|
+
var PayoutDestinations = class {
|
|
7751
|
+
constructor(request) {
|
|
7752
|
+
this.request = request;
|
|
7753
|
+
}
|
|
7754
|
+
/**
|
|
7755
|
+
* The caller's own destinations, masked, and the methods offered to them.
|
|
7756
|
+
*
|
|
7757
|
+
* `GET /payout-destinations/me`
|
|
7758
|
+
*/
|
|
7759
|
+
async listMine() {
|
|
7760
|
+
return this.request("GET", "/payout-destinations/me");
|
|
7761
|
+
}
|
|
7762
|
+
/**
|
|
7763
|
+
* Save a destination. The method must be offered; at most 20 per member.
|
|
7764
|
+
*
|
|
7765
|
+
* `POST /payout-destinations/me`
|
|
7766
|
+
*/
|
|
7767
|
+
async createMine(params) {
|
|
7768
|
+
return this.request("POST", "/payout-destinations/me", { body: params });
|
|
7769
|
+
}
|
|
7770
|
+
/**
|
|
7771
|
+
* Replace a destination's details at the version read.
|
|
7772
|
+
*
|
|
7773
|
+
* `PUT /payout-destinations/me/{destinationId}`
|
|
7774
|
+
*/
|
|
7775
|
+
async updateMine(destinationId, params) {
|
|
7776
|
+
return this.request("PUT", `/payout-destinations/me/${encodeURIComponent(destinationId)}`, {
|
|
7777
|
+
body: params
|
|
7778
|
+
});
|
|
7779
|
+
}
|
|
7780
|
+
/**
|
|
7781
|
+
* Make a destination the preferred one; the others lose it.
|
|
7782
|
+
*
|
|
7783
|
+
* `POST /payout-destinations/me/{destinationId}/preferred`
|
|
7784
|
+
*/
|
|
7785
|
+
async preferMine(destinationId, version) {
|
|
7786
|
+
return this.request(
|
|
7787
|
+
"POST",
|
|
7788
|
+
`/payout-destinations/me/${encodeURIComponent(destinationId)}/preferred`,
|
|
7789
|
+
{ body: { version } }
|
|
7790
|
+
);
|
|
7791
|
+
}
|
|
7792
|
+
/**
|
|
7793
|
+
* Delete a destination. Final: the history keeps who, when and which
|
|
7794
|
+
* fields, never a value.
|
|
7795
|
+
*
|
|
7796
|
+
* `DELETE /payout-destinations/me/{destinationId}?version=`
|
|
7797
|
+
*/
|
|
7798
|
+
async deleteMine(destinationId, version) {
|
|
7799
|
+
await this.request("DELETE", `/payout-destinations/me/${encodeURIComponent(destinationId)}`, {
|
|
7800
|
+
query: { version }
|
|
7801
|
+
});
|
|
7802
|
+
}
|
|
7803
|
+
/**
|
|
7804
|
+
* One's own destination in plain text. Recorded in the history first.
|
|
7805
|
+
*
|
|
7806
|
+
* `POST /payout-destinations/me/{destinationId}/reveal`
|
|
7807
|
+
*/
|
|
7808
|
+
async revealMine(destinationId) {
|
|
7809
|
+
return this.request(
|
|
7810
|
+
"POST",
|
|
7811
|
+
`/payout-destinations/me/${encodeURIComponent(destinationId)}/reveal`
|
|
7812
|
+
);
|
|
7813
|
+
}
|
|
7814
|
+
/**
|
|
7815
|
+
* The methods offered to the caller.
|
|
7816
|
+
*
|
|
7817
|
+
* `GET /payout-destinations/methods`
|
|
7818
|
+
*/
|
|
7819
|
+
async offeredMethods() {
|
|
7820
|
+
return this.request("GET", "/payout-destinations/methods");
|
|
7821
|
+
}
|
|
7822
|
+
/**
|
|
7823
|
+
* The merchant's list and, with `shop_id`, one shop's. A shop role reads
|
|
7824
|
+
* its own shop only.
|
|
7825
|
+
*
|
|
7826
|
+
* `GET /payout-destinations/methods/settings`
|
|
7827
|
+
*/
|
|
7828
|
+
async retrieveMethodsSettings(params) {
|
|
7829
|
+
return this.request("GET", "/payout-destinations/methods/settings", {
|
|
7830
|
+
query: params
|
|
7831
|
+
});
|
|
7832
|
+
}
|
|
7833
|
+
/**
|
|
7834
|
+
* Set the methods offered at the merchant or at one shop.
|
|
7835
|
+
*
|
|
7836
|
+
* `PUT /payout-destinations/methods/settings`
|
|
7837
|
+
*/
|
|
7838
|
+
async updateMethodsSettings(params) {
|
|
7839
|
+
return this.request("PUT", "/payout-destinations/methods/settings", { body: params });
|
|
7840
|
+
}
|
|
7841
|
+
/**
|
|
7842
|
+
* The team's destinations the caller manages, masked: every member for a
|
|
7843
|
+
* merchant-level role, the members reaching the caller's shop for a shop
|
|
7844
|
+
* role.
|
|
7845
|
+
*
|
|
7846
|
+
* `GET /payout-destinations`
|
|
7847
|
+
*/
|
|
7848
|
+
async listTeam(params) {
|
|
7849
|
+
return this.request("GET", "/payout-destinations", { query: params });
|
|
7850
|
+
}
|
|
7851
|
+
/**
|
|
7852
|
+
* A managed member's destination in plain text. Recorded in the history
|
|
7853
|
+
* first.
|
|
7854
|
+
*
|
|
7855
|
+
* `POST /payout-destinations/{destinationId}/reveal`
|
|
7856
|
+
*/
|
|
7857
|
+
async revealTeam(destinationId) {
|
|
7858
|
+
return this.request("POST", `/payout-destinations/${encodeURIComponent(destinationId)}/reveal`);
|
|
7859
|
+
}
|
|
7860
|
+
/**
|
|
7861
|
+
* Confirm a changed destination was seen, at the version read.
|
|
7862
|
+
*
|
|
7863
|
+
* `POST /payout-destinations/{destinationId}/acknowledge`
|
|
7864
|
+
*/
|
|
7865
|
+
async acknowledgeTeam(destinationId, version) {
|
|
7866
|
+
return this.request(
|
|
7867
|
+
"POST",
|
|
7868
|
+
`/payout-destinations/${encodeURIComponent(destinationId)}/acknowledge`,
|
|
7869
|
+
{ body: { version } }
|
|
7870
|
+
);
|
|
7871
|
+
}
|
|
7872
|
+
/**
|
|
7873
|
+
* Link a revenue-share holder to a team member, or unlink it (`null`). The
|
|
7874
|
+
* member must be an active member of the merchant whose role reads Payouts.
|
|
7875
|
+
*
|
|
7876
|
+
* `PUT /revenue-shares/holders/{holderId}/member`
|
|
7877
|
+
*/
|
|
7878
|
+
async linkRevenueShareHolder(holderId, userId) {
|
|
7879
|
+
return this.request("PUT", `/revenue-shares/holders/${encodeURIComponent(holderId)}/member`, {
|
|
7880
|
+
body: { user_id: userId }
|
|
7881
|
+
});
|
|
7882
|
+
}
|
|
7883
|
+
/**
|
|
7884
|
+
* The share terms of the holders linked to the caller. Read-only.
|
|
7885
|
+
*
|
|
7886
|
+
* `GET /revenue-shares/mine`
|
|
7887
|
+
*/
|
|
7888
|
+
async listMyRevenueShares() {
|
|
7889
|
+
return this.request("GET", "/revenue-shares/mine");
|
|
7890
|
+
}
|
|
7891
|
+
};
|
|
7892
|
+
|
|
7748
7893
|
// src/resources/checkoutTemplates.ts
|
|
7749
7894
|
var CheckoutTemplates = class {
|
|
7750
7895
|
constructor(request) {
|
|
@@ -11842,6 +11987,7 @@ var Delopay = class {
|
|
|
11842
11987
|
this.persons = new Persons(request);
|
|
11843
11988
|
this.shopLabels = new ShopLabels(request);
|
|
11844
11989
|
this.industries = new Industries(request);
|
|
11990
|
+
this.payoutDestinations = new PayoutDestinations(request);
|
|
11845
11991
|
this.checkoutTemplates = new CheckoutTemplates(request);
|
|
11846
11992
|
this.buyerConversations = new BuyerConversations(request);
|
|
11847
11993
|
this.buyerEvidence = new BuyerEvidenceReviews(request);
|
|
@@ -17945,6 +18091,7 @@ var encodeNativePanes = encodePanes;
|
|
|
17945
18091
|
PAYPAL_CARD_LAYOUTS,
|
|
17946
18092
|
PAYPAL_LABEL_STYLES,
|
|
17947
18093
|
PRESENTATION_CONTRACT_VERSION,
|
|
18094
|
+
PayoutDestinations,
|
|
17948
18095
|
PaypalDisputes,
|
|
17949
18096
|
Persons,
|
|
17950
18097
|
PresentationCache,
|