@juhuu/sdk-ts 1.2.96 → 1.2.98
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 +13 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +15 -0
- package/dist/index.mjs +15 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -821,6 +821,7 @@ declare class TapkeyService extends Service {
|
|
821
821
|
|
822
822
|
declare class PaymentRefundsService extends Service {
|
823
823
|
constructor(config: JUHUU.SetupConfig);
|
824
|
+
create(PaymentRefundCreateParams: JUHUU.PaymentRefund.Create.Params, PaymentRefundCreateOptions?: JUHUU.PaymentRefund.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.Create.Response>>;
|
824
825
|
list(PaymentRefundListParams: JUHUU.PaymentRefund.List.Params, PaymentRefundListOptions?: JUHUU.PaymentRefund.List.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.List.Response>>;
|
825
826
|
retrieve(PaymentRefundRetrieveParams: JUHUU.PaymentRefund.Retrieve.Params, PaymentRefundRetrieveOptions?: JUHUU.PaymentRefund.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.Retrieve.Response>>;
|
826
827
|
retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
|
@@ -2104,6 +2105,7 @@ declare namespace JUHUU {
|
|
2104
2105
|
amountFinal: number | null;
|
2105
2106
|
amountCaptured: number;
|
2106
2107
|
amountToPayout: number | null;
|
2108
|
+
amountRefunded: number;
|
2107
2109
|
createdAt: Date;
|
2108
2110
|
billingAddress: DeepNullable<Address>;
|
2109
2111
|
invoicePdfId: string | null;
|
@@ -2218,6 +2220,17 @@ declare namespace JUHUU {
|
|
2218
2220
|
paymentMethod: PaymentMethod | null;
|
2219
2221
|
payoutId: string | null;
|
2220
2222
|
};
|
2223
|
+
namespace Create {
|
2224
|
+
type Params = {
|
2225
|
+
paymentId: string;
|
2226
|
+
amountToArriveAtUser: number;
|
2227
|
+
reason: JUHUU.PaymentRefund.Object["reason"];
|
2228
|
+
};
|
2229
|
+
type Options = JUHUU.RequestOptions;
|
2230
|
+
type Response = {
|
2231
|
+
paymentRefund: JUHUU.PaymentRefund.Object;
|
2232
|
+
};
|
2233
|
+
}
|
2221
2234
|
namespace Retrieve {
|
2222
2235
|
type Params = {
|
2223
2236
|
paymentRefundId: string;
|
package/dist/index.d.ts
CHANGED
@@ -821,6 +821,7 @@ declare class TapkeyService extends Service {
|
|
821
821
|
|
822
822
|
declare class PaymentRefundsService extends Service {
|
823
823
|
constructor(config: JUHUU.SetupConfig);
|
824
|
+
create(PaymentRefundCreateParams: JUHUU.PaymentRefund.Create.Params, PaymentRefundCreateOptions?: JUHUU.PaymentRefund.Create.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.Create.Response>>;
|
824
825
|
list(PaymentRefundListParams: JUHUU.PaymentRefund.List.Params, PaymentRefundListOptions?: JUHUU.PaymentRefund.List.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.List.Response>>;
|
825
826
|
retrieve(PaymentRefundRetrieveParams: JUHUU.PaymentRefund.Retrieve.Params, PaymentRefundRetrieveOptions?: JUHUU.PaymentRefund.Retrieve.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.Retrieve.Response>>;
|
826
827
|
retrieveInvoiceUrl(PaymentRefundRetrieveInvoiceUrlParams: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Params, PaymentRefundRetrieveInvoiceUrlOptions?: JUHUU.PaymentRefund.RetrieveInvoiceUrl.Options): Promise<JUHUU.HttpResponse<JUHUU.PaymentRefund.RetrieveInvoiceUrl.Response>>;
|
@@ -2104,6 +2105,7 @@ declare namespace JUHUU {
|
|
2104
2105
|
amountFinal: number | null;
|
2105
2106
|
amountCaptured: number;
|
2106
2107
|
amountToPayout: number | null;
|
2108
|
+
amountRefunded: number;
|
2107
2109
|
createdAt: Date;
|
2108
2110
|
billingAddress: DeepNullable<Address>;
|
2109
2111
|
invoicePdfId: string | null;
|
@@ -2218,6 +2220,17 @@ declare namespace JUHUU {
|
|
2218
2220
|
paymentMethod: PaymentMethod | null;
|
2219
2221
|
payoutId: string | null;
|
2220
2222
|
};
|
2223
|
+
namespace Create {
|
2224
|
+
type Params = {
|
2225
|
+
paymentId: string;
|
2226
|
+
amountToArriveAtUser: number;
|
2227
|
+
reason: JUHUU.PaymentRefund.Object["reason"];
|
2228
|
+
};
|
2229
|
+
type Options = JUHUU.RequestOptions;
|
2230
|
+
type Response = {
|
2231
|
+
paymentRefund: JUHUU.PaymentRefund.Object;
|
2232
|
+
};
|
2233
|
+
}
|
2221
2234
|
namespace Retrieve {
|
2222
2235
|
type Params = {
|
2223
2236
|
paymentRefundId: string;
|
package/dist/index.js
CHANGED
@@ -2433,6 +2433,21 @@ var PaymentRefundsService = class extends Service {
|
|
2433
2433
|
constructor(config) {
|
2434
2434
|
super(config);
|
2435
2435
|
}
|
2436
|
+
async create(PaymentRefundCreateParams, PaymentRefundCreateOptions) {
|
2437
|
+
return await super.sendRequest(
|
2438
|
+
{
|
2439
|
+
method: "POST",
|
2440
|
+
url: "paymentRefunds",
|
2441
|
+
body: {
|
2442
|
+
paymentId: PaymentRefundCreateParams.paymentId,
|
2443
|
+
amountToArriveAtUser: PaymentRefundCreateParams.amountToArriveAtUser,
|
2444
|
+
reason: PaymentRefundCreateParams.reason
|
2445
|
+
},
|
2446
|
+
authenticationNotOptional: true
|
2447
|
+
},
|
2448
|
+
PaymentRefundCreateOptions
|
2449
|
+
);
|
2450
|
+
}
|
2436
2451
|
async list(PaymentRefundListParams, PaymentRefundListOptions) {
|
2437
2452
|
const queryArray = [];
|
2438
2453
|
if (PaymentRefundListParams.userId !== void 0) {
|
package/dist/index.mjs
CHANGED
@@ -2389,6 +2389,21 @@ var PaymentRefundsService = class extends Service {
|
|
2389
2389
|
constructor(config) {
|
2390
2390
|
super(config);
|
2391
2391
|
}
|
2392
|
+
async create(PaymentRefundCreateParams, PaymentRefundCreateOptions) {
|
2393
|
+
return await super.sendRequest(
|
2394
|
+
{
|
2395
|
+
method: "POST",
|
2396
|
+
url: "paymentRefunds",
|
2397
|
+
body: {
|
2398
|
+
paymentId: PaymentRefundCreateParams.paymentId,
|
2399
|
+
amountToArriveAtUser: PaymentRefundCreateParams.amountToArriveAtUser,
|
2400
|
+
reason: PaymentRefundCreateParams.reason
|
2401
|
+
},
|
2402
|
+
authenticationNotOptional: true
|
2403
|
+
},
|
2404
|
+
PaymentRefundCreateOptions
|
2405
|
+
);
|
2406
|
+
}
|
2392
2407
|
async list(PaymentRefundListParams, PaymentRefundListOptions) {
|
2393
2408
|
const queryArray = [];
|
2394
2409
|
if (PaymentRefundListParams.userId !== void 0) {
|