@mitumba/sdk 5.31.0 → 5.32.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/index.d.mts +57 -3
- package/dist/index.d.ts +57 -3
- package/dist/index.js +22 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2460,9 +2460,11 @@ var StoresModule = class {
|
|
|
2460
2460
|
return this.client.delete(this.destinationPath(storeId, destinationId, "/default"), void 0, options);
|
|
2461
2461
|
}
|
|
2462
2462
|
/**
|
|
2463
|
-
* Owner: remove a destination, or cancel one still cooling off.
|
|
2463
|
+
* Owner: remove a destination, or cancel one still cooling off. The current default cannot be
|
|
2464
|
+
* removed: make another destination the default first, and remove this one once that applies.
|
|
2465
|
+
* Needs a recent second factor.
|
|
2464
2466
|
*
|
|
2465
|
-
* Errors: 403 store_forbidden, step_up_required; 404 not_found.
|
|
2467
|
+
* Errors: 403 store_forbidden, step_up_required; 404 not_found; 409 default_destination.
|
|
2466
2468
|
*/
|
|
2467
2469
|
async removePayoutDestination(storeId, destinationId, options) {
|
|
2468
2470
|
return this.client.delete(this.destinationPath(storeId, destinationId, ""), void 0, options);
|
|
@@ -2900,6 +2902,24 @@ var AdminModule = class {
|
|
|
2900
2902
|
async disbursePayout(payoutId, options) {
|
|
2901
2903
|
return this.client.post(`/admin/payouts/${payoutId}/disburse`, void 0, options);
|
|
2902
2904
|
}
|
|
2905
|
+
// ── Refunds ──
|
|
2906
|
+
/**
|
|
2907
|
+
* Refunds owed to buyers, newest first, 25 per page. `admin:read`.
|
|
2908
|
+
*
|
|
2909
|
+
* Errors: 400 invalid_input (unknown status).
|
|
2910
|
+
*/
|
|
2911
|
+
async listRefunds(params, options) {
|
|
2912
|
+
return this.client.get("/admin/refunds", params, options);
|
|
2913
|
+
}
|
|
2914
|
+
/**
|
|
2915
|
+
* Send a pending refund to the number that paid. `payouts:disburse` with a recent passkey.
|
|
2916
|
+
*
|
|
2917
|
+
* Errors: 403 forbidden; 404 refund_not_found; 409 refund_sandbox_payment, refund_number_unavailable;
|
|
2918
|
+
* 503 refund_disbursement_paused, refund_method_unsupported.
|
|
2919
|
+
*/
|
|
2920
|
+
async sendRefund(refundId, options) {
|
|
2921
|
+
return this.client.post(`/admin/refunds/${encodeURIComponent(refundId)}/send`, void 0, options);
|
|
2922
|
+
}
|
|
2903
2923
|
// ── Reports Moderation ──
|
|
2904
2924
|
async listReports(params, options) {
|
|
2905
2925
|
return this.client.get("/admin/reports", params, options);
|