@morabr/mora-sdk 1.0.0 → 1.0.1
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/cjs/api/api.js +12 -12
- package/dist/esm/api/api.js +12 -12
- package/dist/types/api/api.d.ts +15 -18
- package/dist/umd/index.ts +12 -12
- package/package.json +1 -1
package/dist/cjs/api/api.js
CHANGED
|
@@ -393,41 +393,41 @@ var Api = /** @class */ (function (_super) {
|
|
|
393
393
|
/**
|
|
394
394
|
* No description
|
|
395
395
|
*
|
|
396
|
-
* @tags [Public]
|
|
396
|
+
* @tags [Public] Charges
|
|
397
397
|
* @name GetPublicChargeById
|
|
398
|
-
* @request GET:/public/
|
|
398
|
+
* @request GET:/public/charges/{document}/{chargeId}
|
|
399
399
|
* @secure
|
|
400
400
|
* @response `200` `PublicFullChargeEntityDto`
|
|
401
401
|
*/
|
|
402
|
-
getPublicChargeById: function (
|
|
402
|
+
getPublicChargeById: function (document, chargeId, params) {
|
|
403
403
|
if (params === void 0) { params = {}; }
|
|
404
|
-
return _this.request(__assign({ path: "/public/
|
|
404
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document, "/").concat(chargeId), method: "GET", secure: true, format: "json" }, params));
|
|
405
405
|
},
|
|
406
406
|
/**
|
|
407
407
|
* No description
|
|
408
408
|
*
|
|
409
|
-
* @tags [Public]
|
|
409
|
+
* @tags [Public] Charges
|
|
410
410
|
* @name ListPublicChargesByDocument
|
|
411
|
-
* @request GET:/public/
|
|
411
|
+
* @request GET:/public/charges/{document}
|
|
412
412
|
* @secure
|
|
413
413
|
* @response `200` `PublicChargeEntityPaginatedDto`
|
|
414
414
|
*/
|
|
415
|
-
listPublicChargesByDocument: function (
|
|
415
|
+
listPublicChargesByDocument: function (document, query, params) {
|
|
416
416
|
if (params === void 0) { params = {}; }
|
|
417
|
-
return _this.request(__assign({ path: "/public/
|
|
417
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
418
418
|
},
|
|
419
419
|
/**
|
|
420
420
|
* No description
|
|
421
421
|
*
|
|
422
|
-
* @tags [Public]
|
|
422
|
+
* @tags [Public] Charges
|
|
423
423
|
* @name PayCharge
|
|
424
|
-
* @request POST:/public/
|
|
424
|
+
* @request POST:/public/charges/{document}/{chargeId}/pay
|
|
425
425
|
* @secure
|
|
426
426
|
* @response `200` `PublicFullChargeEntityDto`
|
|
427
427
|
*/
|
|
428
|
-
payCharge: function (
|
|
428
|
+
payCharge: function (document, chargeId, data, params) {
|
|
429
429
|
if (params === void 0) { params = {}; }
|
|
430
|
-
return _this.request(__assign({ path: "/public/
|
|
430
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document, "/").concat(chargeId, "/pay"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
431
431
|
},
|
|
432
432
|
};
|
|
433
433
|
_this.auth = {
|
package/dist/esm/api/api.js
CHANGED
|
@@ -387,41 +387,41 @@ var Api = /** @class */ (function (_super) {
|
|
|
387
387
|
/**
|
|
388
388
|
* No description
|
|
389
389
|
*
|
|
390
|
-
* @tags [Public]
|
|
390
|
+
* @tags [Public] Charges
|
|
391
391
|
* @name GetPublicChargeById
|
|
392
|
-
* @request GET:/public/
|
|
392
|
+
* @request GET:/public/charges/{document}/{chargeId}
|
|
393
393
|
* @secure
|
|
394
394
|
* @response `200` `PublicFullChargeEntityDto`
|
|
395
395
|
*/
|
|
396
|
-
getPublicChargeById: function (
|
|
396
|
+
getPublicChargeById: function (document, chargeId, params) {
|
|
397
397
|
if (params === void 0) { params = {}; }
|
|
398
|
-
return _this.request(__assign({ path: "/public/
|
|
398
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document, "/").concat(chargeId), method: "GET", secure: true, format: "json" }, params));
|
|
399
399
|
},
|
|
400
400
|
/**
|
|
401
401
|
* No description
|
|
402
402
|
*
|
|
403
|
-
* @tags [Public]
|
|
403
|
+
* @tags [Public] Charges
|
|
404
404
|
* @name ListPublicChargesByDocument
|
|
405
|
-
* @request GET:/public/
|
|
405
|
+
* @request GET:/public/charges/{document}
|
|
406
406
|
* @secure
|
|
407
407
|
* @response `200` `PublicChargeEntityPaginatedDto`
|
|
408
408
|
*/
|
|
409
|
-
listPublicChargesByDocument: function (
|
|
409
|
+
listPublicChargesByDocument: function (document, query, params) {
|
|
410
410
|
if (params === void 0) { params = {}; }
|
|
411
|
-
return _this.request(__assign({ path: "/public/
|
|
411
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
412
412
|
},
|
|
413
413
|
/**
|
|
414
414
|
* No description
|
|
415
415
|
*
|
|
416
|
-
* @tags [Public]
|
|
416
|
+
* @tags [Public] Charges
|
|
417
417
|
* @name PayCharge
|
|
418
|
-
* @request POST:/public/
|
|
418
|
+
* @request POST:/public/charges/{document}/{chargeId}/pay
|
|
419
419
|
* @secure
|
|
420
420
|
* @response `200` `PublicFullChargeEntityDto`
|
|
421
421
|
*/
|
|
422
|
-
payCharge: function (
|
|
422
|
+
payCharge: function (document, chargeId, data, params) {
|
|
423
423
|
if (params === void 0) { params = {}; }
|
|
424
|
-
return _this.request(__assign({ path: "/public/
|
|
424
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document, "/").concat(chargeId, "/pay"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
425
425
|
},
|
|
426
426
|
};
|
|
427
427
|
_this.auth = {
|
package/dist/types/api/api.d.ts
CHANGED
|
@@ -489,9 +489,9 @@ export declare namespace Tenants {
|
|
|
489
489
|
export declare namespace Public {
|
|
490
490
|
/**
|
|
491
491
|
* No description
|
|
492
|
-
* @tags [Public]
|
|
492
|
+
* @tags [Public] Charges
|
|
493
493
|
* @name GetPublicChargeById
|
|
494
|
-
* @request GET:/public/
|
|
494
|
+
* @request GET:/public/charges/{document}/{chargeId}
|
|
495
495
|
* @secure
|
|
496
496
|
* @response `200` `PublicFullChargeEntityDto`
|
|
497
497
|
*/
|
|
@@ -499,7 +499,6 @@ export declare namespace Public {
|
|
|
499
499
|
type RequestParams = {
|
|
500
500
|
chargeId: string;
|
|
501
501
|
document: string;
|
|
502
|
-
tenantId: string;
|
|
503
502
|
};
|
|
504
503
|
type RequestQuery = {};
|
|
505
504
|
type RequestBody = never;
|
|
@@ -508,16 +507,15 @@ export declare namespace Public {
|
|
|
508
507
|
}
|
|
509
508
|
/**
|
|
510
509
|
* No description
|
|
511
|
-
* @tags [Public]
|
|
510
|
+
* @tags [Public] Charges
|
|
512
511
|
* @name ListPublicChargesByDocument
|
|
513
|
-
* @request GET:/public/
|
|
512
|
+
* @request GET:/public/charges/{document}
|
|
514
513
|
* @secure
|
|
515
514
|
* @response `200` `PublicChargeEntityPaginatedDto`
|
|
516
515
|
*/
|
|
517
516
|
namespace ListPublicChargesByDocument {
|
|
518
517
|
type RequestParams = {
|
|
519
518
|
document: string;
|
|
520
|
-
tenantId: string;
|
|
521
519
|
};
|
|
522
520
|
type RequestQuery = {
|
|
523
521
|
createdAt?: string;
|
|
@@ -540,9 +538,9 @@ export declare namespace Public {
|
|
|
540
538
|
}
|
|
541
539
|
/**
|
|
542
540
|
* No description
|
|
543
|
-
* @tags [Public]
|
|
541
|
+
* @tags [Public] Charges
|
|
544
542
|
* @name PayCharge
|
|
545
|
-
* @request POST:/public/
|
|
543
|
+
* @request POST:/public/charges/{document}/{chargeId}/pay
|
|
546
544
|
* @secure
|
|
547
545
|
* @response `200` `PublicFullChargeEntityDto`
|
|
548
546
|
*/
|
|
@@ -550,7 +548,6 @@ export declare namespace Public {
|
|
|
550
548
|
type RequestParams = {
|
|
551
549
|
chargeId: string;
|
|
552
550
|
document: string;
|
|
553
|
-
tenantId: string;
|
|
554
551
|
};
|
|
555
552
|
type RequestQuery = {};
|
|
556
553
|
type RequestBody = PayChargeDto;
|
|
@@ -838,23 +835,23 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
838
835
|
/**
|
|
839
836
|
* No description
|
|
840
837
|
*
|
|
841
|
-
* @tags [Public]
|
|
838
|
+
* @tags [Public] Charges
|
|
842
839
|
* @name GetPublicChargeById
|
|
843
|
-
* @request GET:/public/
|
|
840
|
+
* @request GET:/public/charges/{document}/{chargeId}
|
|
844
841
|
* @secure
|
|
845
842
|
* @response `200` `PublicFullChargeEntityDto`
|
|
846
843
|
*/
|
|
847
|
-
getPublicChargeById: (
|
|
844
|
+
getPublicChargeById: (document: string, chargeId: string, params?: RequestParams) => Promise<PublicFullChargeEntityDto>;
|
|
848
845
|
/**
|
|
849
846
|
* No description
|
|
850
847
|
*
|
|
851
|
-
* @tags [Public]
|
|
848
|
+
* @tags [Public] Charges
|
|
852
849
|
* @name ListPublicChargesByDocument
|
|
853
|
-
* @request GET:/public/
|
|
850
|
+
* @request GET:/public/charges/{document}
|
|
854
851
|
* @secure
|
|
855
852
|
* @response `200` `PublicChargeEntityPaginatedDto`
|
|
856
853
|
*/
|
|
857
|
-
listPublicChargesByDocument: (
|
|
854
|
+
listPublicChargesByDocument: (document: string, query?: {
|
|
858
855
|
createdAt?: string;
|
|
859
856
|
/**
|
|
860
857
|
* @default 10
|
|
@@ -872,13 +869,13 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
872
869
|
/**
|
|
873
870
|
* No description
|
|
874
871
|
*
|
|
875
|
-
* @tags [Public]
|
|
872
|
+
* @tags [Public] Charges
|
|
876
873
|
* @name PayCharge
|
|
877
|
-
* @request POST:/public/
|
|
874
|
+
* @request POST:/public/charges/{document}/{chargeId}/pay
|
|
878
875
|
* @secure
|
|
879
876
|
* @response `200` `PublicFullChargeEntityDto`
|
|
880
877
|
*/
|
|
881
|
-
payCharge: (
|
|
878
|
+
payCharge: (document: string, chargeId: string, data: PayChargeDto, params?: RequestParams) => Promise<PublicFullChargeEntityDto>;
|
|
882
879
|
};
|
|
883
880
|
auth: {
|
|
884
881
|
/**
|
package/dist/umd/index.ts
CHANGED
|
@@ -18718,41 +18718,41 @@ var Api = /** @class */ (function (_super) {
|
|
|
18718
18718
|
/**
|
|
18719
18719
|
* No description
|
|
18720
18720
|
*
|
|
18721
|
-
* @tags [Public]
|
|
18721
|
+
* @tags [Public] Charges
|
|
18722
18722
|
* @name GetPublicChargeById
|
|
18723
|
-
* @request GET:/public/
|
|
18723
|
+
* @request GET:/public/charges/{document}/{chargeId}
|
|
18724
18724
|
* @secure
|
|
18725
18725
|
* @response `200` `PublicFullChargeEntityDto`
|
|
18726
18726
|
*/
|
|
18727
|
-
getPublicChargeById: function (
|
|
18727
|
+
getPublicChargeById: function (document, chargeId, params) {
|
|
18728
18728
|
if (params === void 0) { params = {}; }
|
|
18729
|
-
return _this.request(__assign({ path: "/public/
|
|
18729
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document, "/").concat(chargeId), method: "GET", secure: true, format: "json" }, params));
|
|
18730
18730
|
},
|
|
18731
18731
|
/**
|
|
18732
18732
|
* No description
|
|
18733
18733
|
*
|
|
18734
|
-
* @tags [Public]
|
|
18734
|
+
* @tags [Public] Charges
|
|
18735
18735
|
* @name ListPublicChargesByDocument
|
|
18736
|
-
* @request GET:/public/
|
|
18736
|
+
* @request GET:/public/charges/{document}
|
|
18737
18737
|
* @secure
|
|
18738
18738
|
* @response `200` `PublicChargeEntityPaginatedDto`
|
|
18739
18739
|
*/
|
|
18740
|
-
listPublicChargesByDocument: function (
|
|
18740
|
+
listPublicChargesByDocument: function (document, query, params) {
|
|
18741
18741
|
if (params === void 0) { params = {}; }
|
|
18742
|
-
return _this.request(__assign({ path: "/public/
|
|
18742
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document), method: "GET", query: query, secure: true, format: "json" }, params));
|
|
18743
18743
|
},
|
|
18744
18744
|
/**
|
|
18745
18745
|
* No description
|
|
18746
18746
|
*
|
|
18747
|
-
* @tags [Public]
|
|
18747
|
+
* @tags [Public] Charges
|
|
18748
18748
|
* @name PayCharge
|
|
18749
|
-
* @request POST:/public/
|
|
18749
|
+
* @request POST:/public/charges/{document}/{chargeId}/pay
|
|
18750
18750
|
* @secure
|
|
18751
18751
|
* @response `200` `PublicFullChargeEntityDto`
|
|
18752
18752
|
*/
|
|
18753
|
-
payCharge: function (
|
|
18753
|
+
payCharge: function (document, chargeId, data, params) {
|
|
18754
18754
|
if (params === void 0) { params = {}; }
|
|
18755
|
-
return _this.request(__assign({ path: "/public/
|
|
18755
|
+
return _this.request(__assign({ path: "/public/charges/".concat(document, "/").concat(chargeId, "/pay"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
|
|
18756
18756
|
},
|
|
18757
18757
|
};
|
|
18758
18758
|
_this.auth = {
|