@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.
@@ -393,41 +393,41 @@ var Api = /** @class */ (function (_super) {
393
393
  /**
394
394
  * No description
395
395
  *
396
- * @tags [Public] Tenant Charges
396
+ * @tags [Public] Charges
397
397
  * @name GetPublicChargeById
398
- * @request GET:/public/tenants/{tenantId}/charges/{document}/{chargeId}
398
+ * @request GET:/public/charges/{document}/{chargeId}
399
399
  * @secure
400
400
  * @response `200` `PublicFullChargeEntityDto`
401
401
  */
402
- getPublicChargeById: function (tenantId, document, chargeId, params) {
402
+ getPublicChargeById: function (document, chargeId, params) {
403
403
  if (params === void 0) { params = {}; }
404
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document, "/").concat(chargeId), method: "GET", secure: true, format: "json" }, params));
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] Tenant Charges
409
+ * @tags [Public] Charges
410
410
  * @name ListPublicChargesByDocument
411
- * @request GET:/public/tenants/{tenantId}/charges/{document}
411
+ * @request GET:/public/charges/{document}
412
412
  * @secure
413
413
  * @response `200` `PublicChargeEntityPaginatedDto`
414
414
  */
415
- listPublicChargesByDocument: function (tenantId, document, query, params) {
415
+ listPublicChargesByDocument: function (document, query, params) {
416
416
  if (params === void 0) { params = {}; }
417
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document), method: "GET", query: query, secure: true, format: "json" }, params));
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] Tenant Charges
422
+ * @tags [Public] Charges
423
423
  * @name PayCharge
424
- * @request POST:/public/tenants/{tenantId}/charges/{document}/{chargeId}/pay
424
+ * @request POST:/public/charges/{document}/{chargeId}/pay
425
425
  * @secure
426
426
  * @response `200` `PublicFullChargeEntityDto`
427
427
  */
428
- payCharge: function (tenantId, document, chargeId, data, params) {
428
+ payCharge: function (document, chargeId, data, params) {
429
429
  if (params === void 0) { params = {}; }
430
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document, "/").concat(chargeId, "/pay"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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 = {
@@ -387,41 +387,41 @@ var Api = /** @class */ (function (_super) {
387
387
  /**
388
388
  * No description
389
389
  *
390
- * @tags [Public] Tenant Charges
390
+ * @tags [Public] Charges
391
391
  * @name GetPublicChargeById
392
- * @request GET:/public/tenants/{tenantId}/charges/{document}/{chargeId}
392
+ * @request GET:/public/charges/{document}/{chargeId}
393
393
  * @secure
394
394
  * @response `200` `PublicFullChargeEntityDto`
395
395
  */
396
- getPublicChargeById: function (tenantId, document, chargeId, params) {
396
+ getPublicChargeById: function (document, chargeId, params) {
397
397
  if (params === void 0) { params = {}; }
398
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document, "/").concat(chargeId), method: "GET", secure: true, format: "json" }, params));
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] Tenant Charges
403
+ * @tags [Public] Charges
404
404
  * @name ListPublicChargesByDocument
405
- * @request GET:/public/tenants/{tenantId}/charges/{document}
405
+ * @request GET:/public/charges/{document}
406
406
  * @secure
407
407
  * @response `200` `PublicChargeEntityPaginatedDto`
408
408
  */
409
- listPublicChargesByDocument: function (tenantId, document, query, params) {
409
+ listPublicChargesByDocument: function (document, query, params) {
410
410
  if (params === void 0) { params = {}; }
411
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document), method: "GET", query: query, secure: true, format: "json" }, params));
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] Tenant Charges
416
+ * @tags [Public] Charges
417
417
  * @name PayCharge
418
- * @request POST:/public/tenants/{tenantId}/charges/{document}/{chargeId}/pay
418
+ * @request POST:/public/charges/{document}/{chargeId}/pay
419
419
  * @secure
420
420
  * @response `200` `PublicFullChargeEntityDto`
421
421
  */
422
- payCharge: function (tenantId, document, chargeId, data, params) {
422
+ payCharge: function (document, chargeId, data, params) {
423
423
  if (params === void 0) { params = {}; }
424
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document, "/").concat(chargeId, "/pay"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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 = {
@@ -489,9 +489,9 @@ export declare namespace Tenants {
489
489
  export declare namespace Public {
490
490
  /**
491
491
  * No description
492
- * @tags [Public] Tenant Charges
492
+ * @tags [Public] Charges
493
493
  * @name GetPublicChargeById
494
- * @request GET:/public/tenants/{tenantId}/charges/{document}/{chargeId}
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] Tenant Charges
510
+ * @tags [Public] Charges
512
511
  * @name ListPublicChargesByDocument
513
- * @request GET:/public/tenants/{tenantId}/charges/{document}
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] Tenant Charges
541
+ * @tags [Public] Charges
544
542
  * @name PayCharge
545
- * @request POST:/public/tenants/{tenantId}/charges/{document}/{chargeId}/pay
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] Tenant Charges
838
+ * @tags [Public] Charges
842
839
  * @name GetPublicChargeById
843
- * @request GET:/public/tenants/{tenantId}/charges/{document}/{chargeId}
840
+ * @request GET:/public/charges/{document}/{chargeId}
844
841
  * @secure
845
842
  * @response `200` `PublicFullChargeEntityDto`
846
843
  */
847
- getPublicChargeById: (tenantId: string, document: string, chargeId: string, params?: RequestParams) => Promise<PublicFullChargeEntityDto>;
844
+ getPublicChargeById: (document: string, chargeId: string, params?: RequestParams) => Promise<PublicFullChargeEntityDto>;
848
845
  /**
849
846
  * No description
850
847
  *
851
- * @tags [Public] Tenant Charges
848
+ * @tags [Public] Charges
852
849
  * @name ListPublicChargesByDocument
853
- * @request GET:/public/tenants/{tenantId}/charges/{document}
850
+ * @request GET:/public/charges/{document}
854
851
  * @secure
855
852
  * @response `200` `PublicChargeEntityPaginatedDto`
856
853
  */
857
- listPublicChargesByDocument: (tenantId: string, document: string, query?: {
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] Tenant Charges
872
+ * @tags [Public] Charges
876
873
  * @name PayCharge
877
- * @request POST:/public/tenants/{tenantId}/charges/{document}/{chargeId}/pay
874
+ * @request POST:/public/charges/{document}/{chargeId}/pay
878
875
  * @secure
879
876
  * @response `200` `PublicFullChargeEntityDto`
880
877
  */
881
- payCharge: (tenantId: string, document: string, chargeId: string, data: PayChargeDto, params?: RequestParams) => Promise<PublicFullChargeEntityDto>;
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] Tenant Charges
18721
+ * @tags [Public] Charges
18722
18722
  * @name GetPublicChargeById
18723
- * @request GET:/public/tenants/{tenantId}/charges/{document}/{chargeId}
18723
+ * @request GET:/public/charges/{document}/{chargeId}
18724
18724
  * @secure
18725
18725
  * @response `200` `PublicFullChargeEntityDto`
18726
18726
  */
18727
- getPublicChargeById: function (tenantId, document, chargeId, params) {
18727
+ getPublicChargeById: function (document, chargeId, params) {
18728
18728
  if (params === void 0) { params = {}; }
18729
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document, "/").concat(chargeId), method: "GET", secure: true, format: "json" }, params));
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] Tenant Charges
18734
+ * @tags [Public] Charges
18735
18735
  * @name ListPublicChargesByDocument
18736
- * @request GET:/public/tenants/{tenantId}/charges/{document}
18736
+ * @request GET:/public/charges/{document}
18737
18737
  * @secure
18738
18738
  * @response `200` `PublicChargeEntityPaginatedDto`
18739
18739
  */
18740
- listPublicChargesByDocument: function (tenantId, document, query, params) {
18740
+ listPublicChargesByDocument: function (document, query, params) {
18741
18741
  if (params === void 0) { params = {}; }
18742
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document), method: "GET", query: query, secure: true, format: "json" }, params));
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] Tenant Charges
18747
+ * @tags [Public] Charges
18748
18748
  * @name PayCharge
18749
- * @request POST:/public/tenants/{tenantId}/charges/{document}/{chargeId}/pay
18749
+ * @request POST:/public/charges/{document}/{chargeId}/pay
18750
18750
  * @secure
18751
18751
  * @response `200` `PublicFullChargeEntityDto`
18752
18752
  */
18753
- payCharge: function (tenantId, document, chargeId, data, params) {
18753
+ payCharge: function (document, chargeId, data, params) {
18754
18754
  if (params === void 0) { params = {}; }
18755
- return _this.request(__assign({ path: "/public/tenants/".concat(tenantId, "/charges/").concat(document, "/").concat(chargeId, "/pay"), method: "POST", body: data, secure: true, type: ContentType.Json, format: "json" }, params));
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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morabr/mora-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Mora SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",