@juhuu/sdk-ts 1.2.97 → 1.2.99

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 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>>;
@@ -1786,6 +1787,7 @@ declare namespace JUHUU {
1786
1787
  amount?: number[];
1787
1788
  continue?: number;
1788
1789
  interval?: number;
1790
+ name?: LocaleString;
1789
1791
  duration?: number;
1790
1792
  autoRenewMode?: AutoRenewMode;
1791
1793
  roundToMidnight?: boolean;
@@ -2219,6 +2221,17 @@ declare namespace JUHUU {
2219
2221
  paymentMethod: PaymentMethod | null;
2220
2222
  payoutId: string | null;
2221
2223
  };
2224
+ namespace Create {
2225
+ type Params = {
2226
+ paymentId: string;
2227
+ amountToArriveAtUser: number;
2228
+ reason: JUHUU.PaymentRefund.Object["reason"];
2229
+ };
2230
+ type Options = JUHUU.RequestOptions;
2231
+ type Response = {
2232
+ payment: JUHUU.Payment.Object;
2233
+ };
2234
+ }
2222
2235
  namespace Retrieve {
2223
2236
  type Params = {
2224
2237
  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>>;
@@ -1786,6 +1787,7 @@ declare namespace JUHUU {
1786
1787
  amount?: number[];
1787
1788
  continue?: number;
1788
1789
  interval?: number;
1790
+ name?: LocaleString;
1789
1791
  duration?: number;
1790
1792
  autoRenewMode?: AutoRenewMode;
1791
1793
  roundToMidnight?: boolean;
@@ -2219,6 +2221,17 @@ declare namespace JUHUU {
2219
2221
  paymentMethod: PaymentMethod | null;
2220
2222
  payoutId: string | null;
2221
2223
  };
2224
+ namespace Create {
2225
+ type Params = {
2226
+ paymentId: string;
2227
+ amountToArriveAtUser: number;
2228
+ reason: JUHUU.PaymentRefund.Object["reason"];
2229
+ };
2230
+ type Options = JUHUU.RequestOptions;
2231
+ type Response = {
2232
+ payment: JUHUU.Payment.Object;
2233
+ };
2234
+ }
2222
2235
  namespace Retrieve {
2223
2236
  type Params = {
2224
2237
  paymentRefundId: string;
package/dist/index.js CHANGED
@@ -1392,6 +1392,7 @@ var TariffsService = class extends Service {
1392
1392
  continue: TariffUpdateParams.continue,
1393
1393
  interval: TariffUpdateParams.interval,
1394
1394
  duration: TariffUpdateParams.duration,
1395
+ name: TariffUpdateParams.name,
1395
1396
  autoRenewMode: TariffUpdateParams.autoRenewMode,
1396
1397
  roundToMidnight: TariffUpdateParams.roundToMidnight,
1397
1398
  autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
@@ -2433,6 +2434,21 @@ var PaymentRefundsService = class extends Service {
2433
2434
  constructor(config) {
2434
2435
  super(config);
2435
2436
  }
2437
+ async create(PaymentRefundCreateParams, PaymentRefundCreateOptions) {
2438
+ return await super.sendRequest(
2439
+ {
2440
+ method: "POST",
2441
+ url: "paymentRefunds",
2442
+ body: {
2443
+ paymentId: PaymentRefundCreateParams.paymentId,
2444
+ amountToArriveAtUser: PaymentRefundCreateParams.amountToArriveAtUser,
2445
+ reason: PaymentRefundCreateParams.reason
2446
+ },
2447
+ authenticationNotOptional: true
2448
+ },
2449
+ PaymentRefundCreateOptions
2450
+ );
2451
+ }
2436
2452
  async list(PaymentRefundListParams, PaymentRefundListOptions) {
2437
2453
  const queryArray = [];
2438
2454
  if (PaymentRefundListParams.userId !== void 0) {
package/dist/index.mjs CHANGED
@@ -1348,6 +1348,7 @@ var TariffsService = class extends Service {
1348
1348
  continue: TariffUpdateParams.continue,
1349
1349
  interval: TariffUpdateParams.interval,
1350
1350
  duration: TariffUpdateParams.duration,
1351
+ name: TariffUpdateParams.name,
1351
1352
  autoRenewMode: TariffUpdateParams.autoRenewMode,
1352
1353
  roundToMidnight: TariffUpdateParams.roundToMidnight,
1353
1354
  autoRenewManualEnabled: TariffUpdateParams.autoRenewManualEnabled,
@@ -2389,6 +2390,21 @@ var PaymentRefundsService = class extends Service {
2389
2390
  constructor(config) {
2390
2391
  super(config);
2391
2392
  }
2393
+ async create(PaymentRefundCreateParams, PaymentRefundCreateOptions) {
2394
+ return await super.sendRequest(
2395
+ {
2396
+ method: "POST",
2397
+ url: "paymentRefunds",
2398
+ body: {
2399
+ paymentId: PaymentRefundCreateParams.paymentId,
2400
+ amountToArriveAtUser: PaymentRefundCreateParams.amountToArriveAtUser,
2401
+ reason: PaymentRefundCreateParams.reason
2402
+ },
2403
+ authenticationNotOptional: true
2404
+ },
2405
+ PaymentRefundCreateOptions
2406
+ );
2407
+ }
2392
2408
  async list(PaymentRefundListParams, PaymentRefundListOptions) {
2393
2409
  const queryArray = [];
2394
2410
  if (PaymentRefundListParams.userId !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juhuu/sdk-ts",
3
- "version": "1.2.97",
3
+ "version": "1.2.99",
4
4
  "description": "Typescript wrapper for JUHUU services",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",