namirasoft-payment 1.4.69 → 1.4.71

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.
Files changed (109) hide show
  1. package/dist/NamirasoftPaymentServer.js +1 -1
  2. package/dist/PaymentUUID.d.ts +25 -11
  3. package/dist/PaymentUUID.js +31 -17
  4. package/dist/PaymentUUID.js.map +1 -1
  5. package/package.json +27 -27
  6. package/src/NamirasoftPaymentServer.ts +65 -65
  7. package/src/NamirasoftPaymentServerBase.ts +29 -29
  8. package/src/NamirasoftPaymentServerHealthz.ts +35 -35
  9. package/src/NamirasoftPaymentServerInvoice.ts +69 -69
  10. package/src/NamirasoftPaymentServerOffer.ts +51 -51
  11. package/src/NamirasoftPaymentServerOneTime.ts +37 -37
  12. package/src/NamirasoftPaymentServerPayment.ts +48 -48
  13. package/src/NamirasoftPaymentServerProduct.ts +48 -48
  14. package/src/NamirasoftPaymentServerSalesItem.ts +48 -48
  15. package/src/NamirasoftPaymentServerSubscription.ts +77 -77
  16. package/src/NamirasoftPaymentServerSubscriptionCancellationReason.ts +48 -48
  17. package/src/NamirasoftPaymentServerSubscriptionItem.ts +41 -41
  18. package/src/NamirasoftPaymentServerSubscriptionPaid.ts +55 -55
  19. package/src/NamirasoftPaymentServerValue.ts +36 -36
  20. package/src/PaymentUUID.ts +70 -56
  21. package/src/command/HealthzCommand.ts +31 -31
  22. package/src/command/HealthzGetCommand.ts +44 -44
  23. package/src/command/InvoiceCancelCommand.ts +44 -44
  24. package/src/command/InvoiceCommand.ts +39 -39
  25. package/src/command/InvoiceGetCommand.ts +44 -44
  26. package/src/command/InvoiceListCommand.ts +44 -44
  27. package/src/command/Invoice_CreateForCommand.ts +109 -109
  28. package/src/command/Invoice_DeleteForCommand.ts +44 -44
  29. package/src/command/OfferCommand.ts +33 -33
  30. package/src/command/OfferGetCommand.ts +44 -44
  31. package/src/command/OfferListCommand.ts +44 -44
  32. package/src/command/OneTimeCheckoutCommand.ts +82 -82
  33. package/src/command/OneTimeCommand.ts +31 -31
  34. package/src/command/PaymentCommand.ts +33 -33
  35. package/src/command/PaymentGetCommand.ts +44 -44
  36. package/src/command/PaymentListCommand.ts +44 -44
  37. package/src/command/ProductCommand.ts +33 -33
  38. package/src/command/ProductGetCommand.ts +44 -44
  39. package/src/command/ProductListCommand.ts +44 -44
  40. package/src/command/SalesItemCommand.ts +33 -33
  41. package/src/command/SalesItemGetCommand.ts +44 -44
  42. package/src/command/SalesItemListCommand.ts +44 -44
  43. package/src/command/SubscriptionAcceptCancellationOfferCommand.ts +73 -73
  44. package/src/command/SubscriptionCancelCommand.ts +64 -64
  45. package/src/command/SubscriptionCancellationReasonCommand.ts +33 -33
  46. package/src/command/SubscriptionCancellationReasonGetCommand.ts +44 -44
  47. package/src/command/SubscriptionCancellationReasonListCommand.ts +44 -44
  48. package/src/command/SubscriptionCheckoutOfferCommand.ts +73 -73
  49. package/src/command/SubscriptionCommand.ts +41 -41
  50. package/src/command/SubscriptionGetCancellationOfferCommand.ts +44 -44
  51. package/src/command/SubscriptionGetCommand.ts +44 -44
  52. package/src/command/SubscriptionItemCommand.ts +31 -31
  53. package/src/command/SubscriptionItemListCommand.ts +44 -44
  54. package/src/command/SubscriptionListCommand.ts +44 -44
  55. package/src/command/SubscriptionPaidCommand.ts +35 -35
  56. package/src/command/SubscriptionPaidGetCommand.ts +44 -44
  57. package/src/command/SubscriptionPaidListCommand.ts +44 -44
  58. package/src/command/SubscriptionPaid_ListForCommand.ts +44 -44
  59. package/src/command/ValueCommand.ts +31 -31
  60. package/src/command/ValueListCommand.ts +44 -44
  61. package/src/command/cli.ts +54 -54
  62. package/src/enum/GatewayType.ts +23 -23
  63. package/src/enum/InvoiceCostType.ts +25 -25
  64. package/src/enum/OfferItemExpireUnit.ts +27 -27
  65. package/src/enum/OfferItemOneOffModel.ts +25 -25
  66. package/src/enum/OfferItemRecurringDurationUnit.ts +26 -26
  67. package/src/enum/OfferItemRecurringModel.ts +26 -26
  68. package/src/enum/OfferItemRecurringTieredType.ts +24 -24
  69. package/src/enum/OfferItemRecurringUsageTieredType.ts +24 -24
  70. package/src/enum/OfferItemRecurringUsageType.ts +25 -25
  71. package/src/enum/OfferItemType.ts +24 -24
  72. package/src/enum/OfferRecurringDurationUnit.ts +26 -26
  73. package/src/enum/PaymentGateway.ts +23 -23
  74. package/src/enum/PaymentStatus.ts +26 -26
  75. package/src/enum/SalesItemExpireUnit.ts +27 -27
  76. package/src/enum/SubscriptionGateway.ts +23 -23
  77. package/src/enum/SubscriptionStatus.ts +30 -30
  78. package/src/index.ts +121 -121
  79. package/src/meta/InvoiceCostMetaTable.ts +59 -59
  80. package/src/meta/InvoiceItemMetaTable.ts +75 -75
  81. package/src/meta/InvoiceMetaTable.ts +87 -87
  82. package/src/meta/NamirasoftPaymentMetaDatabase.ts +83 -83
  83. package/src/meta/OfferItemMetaTable.ts +135 -135
  84. package/src/meta/OfferMetaTable.ts +77 -77
  85. package/src/meta/PaymentMetaTable.ts +75 -75
  86. package/src/meta/ProductMetaTable.ts +59 -59
  87. package/src/meta/SalesItemMetaTable.ts +73 -73
  88. package/src/meta/SubscriptionCancellationReasonMetaTable.ts +67 -67
  89. package/src/meta/SubscriptionItemMetaTable.ts +61 -61
  90. package/src/meta/SubscriptionMetaTable.ts +65 -65
  91. package/src/meta/SubscriptionPaidMetaTable.ts +65 -65
  92. package/src/row/InvoiceCostInputRow.ts +27 -27
  93. package/src/row/InvoiceCostRow.ts +31 -31
  94. package/src/row/InvoiceFullRow.ts +48 -48
  95. package/src/row/InvoiceInputRow.ts +32 -32
  96. package/src/row/InvoiceItemInputRow.ts +29 -29
  97. package/src/row/InvoiceItemRow.ts +37 -37
  98. package/src/row/InvoiceRow.ts +43 -43
  99. package/src/row/OfferFullRow.ts +44 -44
  100. package/src/row/OfferItemRow.ts +76 -76
  101. package/src/row/OfferRow.ts +40 -40
  102. package/src/row/PaymentRow.ts +40 -40
  103. package/src/row/ProductRow.ts +29 -29
  104. package/src/row/SalesItemRow.ts +38 -38
  105. package/src/row/SubscriptionCancellationReasonRow.ts +33 -33
  106. package/src/row/SubscriptionFullRow.ts +37 -37
  107. package/src/row/SubscriptionItemRow.ts +30 -30
  108. package/src/row/SubscriptionPaidRow.ts +32 -32
  109. package/src/row/SubscriptionRow.ts +35 -35
@@ -16,7 +16,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
16
16
  const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
17
17
  class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
18
18
  constructor(base_url, manager, onError) {
19
- super(base_url, `1.4.68`, manager, onError);
19
+ super(base_url, `1.4.70`, manager, onError);
20
20
  this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
21
21
  this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
22
22
  this.invoice = new NamirasoftPaymentServerInvoice_1.NamirasoftPaymentServerInvoice(this);
@@ -26,26 +26,40 @@ export declare class PaymentUUID {
26
26
  };
27
27
  static NAMIRASOFT_BILL_WATCH: {
28
28
  sales_items: {
29
- BILL_WATCH_USAGE: {
29
+ BILL_WATCH_AWS: {
30
30
  id: string;
31
31
  offers: {
32
- TIME: {
32
+ TIME_USAGE: {
33
33
  id: string;
34
34
  items: {
35
- AWS: {
35
+ FIX_HOUR: {
36
36
  id: string;
37
- USAGE_NAME: string;
38
- USAGE_UNIT: string;
39
37
  };
40
- AZURE: {
38
+ };
39
+ };
40
+ };
41
+ };
42
+ BILL_WATCH_AZURE: {
43
+ id: string;
44
+ offers: {
45
+ TIME_USAGE: {
46
+ id: string;
47
+ items: {
48
+ FIX_HOUR: {
41
49
  id: string;
42
- USAGE_NAME: string;
43
- USAGE_UNIT: string;
44
50
  };
45
- GCP: {
51
+ };
52
+ };
53
+ };
54
+ };
55
+ BILL_WATCH_GCP: {
56
+ id: string;
57
+ offers: {
58
+ TIME_USAGE: {
59
+ id: string;
60
+ items: {
61
+ FIX_HOUR: {
46
62
  id: string;
47
- USAGE_NAME: string;
48
- USAGE_UNIT: string;
49
63
  };
50
64
  };
51
65
  };
@@ -31,26 +31,40 @@ PaymentUUID.NAMIRASOFT_JOB_ARRANGER = {
31
31
  };
32
32
  PaymentUUID.NAMIRASOFT_BILL_WATCH = {
33
33
  sales_items: {
34
- BILL_WATCH_USAGE: {
35
- id: "pym-sit-0@bw---watch",
34
+ BILL_WATCH_AWS: {
35
+ id: "pym-sit-0@bw-----aws",
36
36
  offers: {
37
- TIME: {
37
+ TIME_USAGE: {
38
38
  id: "pym-ofr-98d1fcc64ed2",
39
39
  items: {
40
- AWS: {
41
- id: "pym-ofr-itm-969c9ab5",
42
- USAGE_NAME: "Time",
43
- USAGE_UNIT: "Second"
44
- },
45
- AZURE: {
46
- id: "pym-ofr-itm-004dddfc",
47
- USAGE_NAME: "Time",
48
- USAGE_UNIT: "Second"
49
- },
50
- GCP: {
51
- id: "pym-ofr-itm-7ac93d85",
52
- USAGE_NAME: "Time",
53
- USAGE_UNIT: "Second"
40
+ FIX_HOUR: {
41
+ id: "pym-ofr-itm-969c9ab5"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ },
47
+ BILL_WATCH_AZURE: {
48
+ id: "pym-sit-0@bw---azure",
49
+ offers: {
50
+ TIME_USAGE: {
51
+ id: "pym-ofr-8e5183c3fa74",
52
+ items: {
53
+ FIX_HOUR: {
54
+ id: "pym-ofr-itm-004dddfc"
55
+ }
56
+ }
57
+ }
58
+ }
59
+ },
60
+ BILL_WATCH_GCP: {
61
+ id: "pym-sit-0@bw-----gcp",
62
+ offers: {
63
+ TIME_USAGE: {
64
+ id: "pym-ofr-3b1830f46f19",
65
+ items: {
66
+ FIX_HOUR: {
67
+ id: "pym-ofr-itm-7ac93d85"
54
68
  }
55
69
  }
56
70
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentUUID.js","sourceRoot":"","sources":["../src/PaymentUUID.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,kCAwDC;AAtDU,mCAAuB,GAAG;IAC7B,WAAW,EAAE;QACT,uBAAuB,EAAE;YACrB,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,kBAAkB,EAAE;oBAChB,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,OAAO,EAAE;4BACL,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;gBACD,iBAAiB,EAAE;oBACf,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACK,iCAAqB,GAAG;IAC3B,WAAW,EAAE;QACT,gBAAgB,EAAE;YACd,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,IAAI,EAAE;oBACF,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,GAAG,EAAE;4BACD,EAAE,EAAE,sBAAsB;4BAC1B,UAAU,EAAE,MAAM;4BAClB,UAAU,EAAE,QAAQ;yBACvB;wBACD,KAAK,EAAE;4BACH,EAAE,EAAE,sBAAsB;4BAC1B,UAAU,EAAE,MAAM;4BAClB,UAAU,EAAE,QAAQ;yBACvB;wBACD,GAAG,EAAE;4BACD,EAAE,EAAE,sBAAsB;4BAC1B,UAAU,EAAE,MAAM;4BAClB,UAAU,EAAE,QAAQ;yBACvB;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"PaymentUUID.js","sourceRoot":"","sources":["../src/PaymentUUID.ts"],"names":[],"mappings":";;;AAAA,MAAa,WAAW;;AAAxB,kCAsEC;AApEU,mCAAuB,GAAG;IAC7B,WAAW,EAAE;QACT,uBAAuB,EAAE;YACrB,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,kBAAkB,EAAE;oBAChB,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,OAAO,EAAE;4BACL,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;gBACD,iBAAiB,EAAE;oBACf,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACK,iCAAqB,GAAG;IAC3B,WAAW,EAAE;QACT,cAAc,EAAE;YACZ,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,gBAAgB,EAAE;YACd,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;QACD,cAAc,EAAE;YACZ,EAAE,EAAE,sBAAsB;YAC1B,MAAM,EAAE;gBACJ,UAAU,EAAE;oBACR,EAAE,EAAE,sBAAsB;oBAC1B,KAAK,EAAE;wBACH,QAAQ,EAAE;4BACN,EAAE,EAAE,sBAAsB;yBAC7B;qBACJ;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "namirasoft-payment",
3
- "title": "Namirasoft Payment NPM Package",
4
- "description": "Namira Software Corporation Payment NPM Package",
5
- "icon": "logo.png",
6
- "logo": "https://static.namirasoft.com/image/namirasoft/payment/logo/base.png",
7
- "language": "ts",
8
- "framework": "npm",
9
- "application": "package",
10
- "private": false,
11
- "version": "1.4.69",
12
- "author": "Amir Abolhasani",
13
- "license": "MIT",
14
- "main": "./dist/index.js",
15
- "types": "./dist/index.d.ts",
16
- "scripts": {
17
- "build": ""
18
- },
19
- "dependencies": {
20
- "namirasoft-core": "^1.4.71",
21
- "namirasoft-site": "^1.4.37",
22
- "namirasoft-node-cli": "^1.4.7",
23
- "namirasoft-account": "^1.4.72"
24
- },
25
- "bin": {
26
- "ns-payment": "./dist/command/cli.js"
27
- }
1
+ {
2
+ "name": "namirasoft-payment",
3
+ "title": "Namirasoft Payment NPM Package",
4
+ "description": "Namira Software Corporation Payment NPM Package",
5
+ "icon": "logo.png",
6
+ "logo": "https://static.namirasoft.com/image/namirasoft/payment/logo/base.png",
7
+ "language": "ts",
8
+ "framework": "npm",
9
+ "application": "package",
10
+ "private": false,
11
+ "version": "1.4.71",
12
+ "author": "Amir Abolhasani",
13
+ "license": "MIT",
14
+ "main": "./dist/index.js",
15
+ "types": "./dist/index.d.ts",
16
+ "scripts": {
17
+ "build": ""
18
+ },
19
+ "dependencies": {
20
+ "namirasoft-core": "^1.4.71",
21
+ "namirasoft-site": "^1.4.37",
22
+ "namirasoft-node-cli": "^1.4.7",
23
+ "namirasoft-account": "^1.4.72"
24
+ },
25
+ "bin": {
26
+ "ns-payment": "./dist/command/cli.js"
27
+ }
28
28
  }
@@ -1,66 +1,66 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any change is required, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { NSABaseServer } from "namirasoft-account";
22
- import { NamirasoftPaymentServerHealthz } from "./NamirasoftPaymentServerHealthz";
23
- import { NamirasoftPaymentServerInvoice } from "./NamirasoftPaymentServerInvoice";
24
- import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
25
- import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
26
- import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
27
- import { NamirasoftPaymentServerProduct } from "./NamirasoftPaymentServerProduct";
28
- import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
29
- import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
30
- import { NamirasoftPaymentServerSubscriptionCancellationReason } from "./NamirasoftPaymentServerSubscriptionCancellationReason";
31
- import { NamirasoftPaymentServerSubscriptionItem } from "./NamirasoftPaymentServerSubscriptionItem";
32
- import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
33
- import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
34
- import { TokenManager } from "namirasoft-account";
35
-
36
- export class NamirasoftPaymentServer extends NSABaseServer
37
- {
38
- healthz: NamirasoftPaymentServerHealthz;
39
- value: NamirasoftPaymentServerValue;
40
- invoice: NamirasoftPaymentServerInvoice;
41
- offer: NamirasoftPaymentServerOffer;
42
- one_time: NamirasoftPaymentServerOneTime;
43
- payment: NamirasoftPaymentServerPayment;
44
- sales_item: NamirasoftPaymentServerSalesItem;
45
- subscription_cancellation_reason: NamirasoftPaymentServerSubscriptionCancellationReason;
46
- subscription_item: NamirasoftPaymentServerSubscriptionItem;
47
- subscription_paid: NamirasoftPaymentServerSubscriptionPaid;
48
- subscription: NamirasoftPaymentServerSubscription;
49
- product: NamirasoftPaymentServerProduct;
50
- constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
51
- {
52
- super(base_url, `1.4.68`, manager, onError);
53
- this.healthz = new NamirasoftPaymentServerHealthz(this);
54
- this.value = new NamirasoftPaymentServerValue(this);
55
- this.invoice = new NamirasoftPaymentServerInvoice(this);
56
- this.offer = new NamirasoftPaymentServerOffer(this);
57
- this.one_time = new NamirasoftPaymentServerOneTime(this);
58
- this.payment = new NamirasoftPaymentServerPayment(this);
59
- this.sales_item = new NamirasoftPaymentServerSalesItem(this);
60
- this.subscription_cancellation_reason = new NamirasoftPaymentServerSubscriptionCancellationReason(this);
61
- this.subscription_item = new NamirasoftPaymentServerSubscriptionItem(this);
62
- this.subscription_paid = new NamirasoftPaymentServerSubscriptionPaid(this);
63
- this.subscription = new NamirasoftPaymentServerSubscription(this);
64
- this.product = new NamirasoftPaymentServerProduct(this);
65
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NSABaseServer } from "namirasoft-account";
22
+ import { NamirasoftPaymentServerHealthz } from "./NamirasoftPaymentServerHealthz";
23
+ import { NamirasoftPaymentServerInvoice } from "./NamirasoftPaymentServerInvoice";
24
+ import { NamirasoftPaymentServerOffer } from "./NamirasoftPaymentServerOffer";
25
+ import { NamirasoftPaymentServerOneTime } from "./NamirasoftPaymentServerOneTime";
26
+ import { NamirasoftPaymentServerPayment } from "./NamirasoftPaymentServerPayment";
27
+ import { NamirasoftPaymentServerProduct } from "./NamirasoftPaymentServerProduct";
28
+ import { NamirasoftPaymentServerSalesItem } from "./NamirasoftPaymentServerSalesItem";
29
+ import { NamirasoftPaymentServerSubscription } from "./NamirasoftPaymentServerSubscription";
30
+ import { NamirasoftPaymentServerSubscriptionCancellationReason } from "./NamirasoftPaymentServerSubscriptionCancellationReason";
31
+ import { NamirasoftPaymentServerSubscriptionItem } from "./NamirasoftPaymentServerSubscriptionItem";
32
+ import { NamirasoftPaymentServerSubscriptionPaid } from "./NamirasoftPaymentServerSubscriptionPaid";
33
+ import { NamirasoftPaymentServerValue } from "./NamirasoftPaymentServerValue";
34
+ import { TokenManager } from "namirasoft-account";
35
+
36
+ export class NamirasoftPaymentServer extends NSABaseServer
37
+ {
38
+ healthz: NamirasoftPaymentServerHealthz;
39
+ value: NamirasoftPaymentServerValue;
40
+ invoice: NamirasoftPaymentServerInvoice;
41
+ offer: NamirasoftPaymentServerOffer;
42
+ one_time: NamirasoftPaymentServerOneTime;
43
+ payment: NamirasoftPaymentServerPayment;
44
+ sales_item: NamirasoftPaymentServerSalesItem;
45
+ subscription_cancellation_reason: NamirasoftPaymentServerSubscriptionCancellationReason;
46
+ subscription_item: NamirasoftPaymentServerSubscriptionItem;
47
+ subscription_paid: NamirasoftPaymentServerSubscriptionPaid;
48
+ subscription: NamirasoftPaymentServerSubscription;
49
+ product: NamirasoftPaymentServerProduct;
50
+ constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
51
+ {
52
+ super(base_url, `1.4.70`, manager, onError);
53
+ this.healthz = new NamirasoftPaymentServerHealthz(this);
54
+ this.value = new NamirasoftPaymentServerValue(this);
55
+ this.invoice = new NamirasoftPaymentServerInvoice(this);
56
+ this.offer = new NamirasoftPaymentServerOffer(this);
57
+ this.one_time = new NamirasoftPaymentServerOneTime(this);
58
+ this.payment = new NamirasoftPaymentServerPayment(this);
59
+ this.sales_item = new NamirasoftPaymentServerSalesItem(this);
60
+ this.subscription_cancellation_reason = new NamirasoftPaymentServerSubscriptionCancellationReason(this);
61
+ this.subscription_item = new NamirasoftPaymentServerSubscriptionItem(this);
62
+ this.subscription_paid = new NamirasoftPaymentServerSubscriptionPaid(this);
63
+ this.subscription = new NamirasoftPaymentServerSubscription(this);
64
+ this.product = new NamirasoftPaymentServerProduct(this);
65
+ }
66
66
  };
@@ -1,30 +1,30 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any change is required, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
22
-
23
- export class NamirasoftPaymentServerBase
24
- {
25
- public server: NamirasoftPaymentServer;
26
- constructor(server: NamirasoftPaymentServer)
27
- {
28
- this.server = server;
29
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
22
+
23
+ export class NamirasoftPaymentServerBase
24
+ {
25
+ public server: NamirasoftPaymentServer;
26
+ constructor(server: NamirasoftPaymentServer)
27
+ {
28
+ this.server = server;
29
+ }
30
30
  };
@@ -1,36 +1,36 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any change is required, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
22
- import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
23
-
24
- export class NamirasoftPaymentServerHealthz extends NamirasoftPaymentServerBase
25
- {
26
- constructor(server: NamirasoftPaymentServer)
27
- {
28
- super(server);
29
- this.Get = this.Get.bind(this);
30
- }
31
- async Get(): Promise<void>
32
- {
33
- let path = `/healthz`;
34
- await this.server._get<void>(path, {});
35
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
22
+ import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
23
+
24
+ export class NamirasoftPaymentServerHealthz extends NamirasoftPaymentServerBase
25
+ {
26
+ constructor(server: NamirasoftPaymentServer)
27
+ {
28
+ super(server);
29
+ this.Get = this.Get.bind(this);
30
+ }
31
+ async Get(): Promise<void>
32
+ {
33
+ let path = `/healthz`;
34
+ await this.server._get<void>(path, {});
35
+ }
36
36
  };
@@ -1,70 +1,70 @@
1
- /****************************************************************/
2
- /* */
3
- /* This is an Auto-Generated File */
4
- /* Made By */
5
- /* Namirasoft SDK Generator NPM Package */
6
- /* */
7
- /****************************************************************/
8
- /****************************************************************/
9
- /* */
10
- /* Please do not make any change to this file */
11
- /* If any change is required, ns-sdkg command must be used */
12
- /* */
13
- /****************************************************************/
14
- /****************************************************************/
15
- /* */
16
- /* Namira Software Corporation */
17
- /* https://namirasoft.com */
18
- /* */
19
- /****************************************************************/
20
-
21
- import { FilterItem } from "namirasoft-core";
22
- import { InvoiceFullRow } from "./row/InvoiceFullRow";
23
- import { InvoiceInputRow } from "./row/InvoiceInputRow";
24
- import { InvoiceRow } from "./row/InvoiceRow";
25
- import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
26
- import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
27
- import { SortItem } from "namirasoft-core";
28
-
29
- export class NamirasoftPaymentServerInvoice extends NamirasoftPaymentServerBase
30
- {
31
- constructor(server: NamirasoftPaymentServer)
32
- {
33
- super(server);
34
- this.List = this.List.bind(this);
35
- this.Get = this.Get.bind(this);
36
- this._CreateFor = this._CreateFor.bind(this);
37
- this._DeleteFor = this._DeleteFor.bind(this);
38
- this.Cancel = this.Cancel.bind(this);
39
- }
40
- async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: InvoiceRow[], count: number }>
41
- {
42
- let filters_string_value: string = FilterItem.stringify(filters);
43
- let sorts_string_value: string = SortItem.stringify(sorts);
44
- let path = `/invoice/list`;
45
- let { data } = await this.server._get<{ rows: InvoiceRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
46
- return data;
47
- }
48
- async Get(id: string): Promise<InvoiceFullRow>
49
- {
50
- let path = `/invoice/${id}`;
51
- let { data } = await this.server._get<InvoiceFullRow>(path, {});
52
- return data;
53
- }
54
- async _CreateFor(user_id: string, body: InvoiceInputRow): Promise<InvoiceFullRow>
55
- {
56
- let path = `/application/user/${user_id}/invoice`;
57
- let { data } = await this.server._post<InvoiceFullRow>(path, {}, body);
58
- return data;
59
- }
60
- async _DeleteFor(user_id: string, id: string): Promise<void>
61
- {
62
- let path = `/application/user/${user_id}/invoice/${id}`;
63
- await this.server._delete<void>(path, {});
64
- }
65
- async Cancel(id: string): Promise<void>
66
- {
67
- let path = `/invoice/cancel/${id}`;
68
- await this.server._put<void>(path, {});
69
- }
1
+ /****************************************************************/
2
+ /* */
3
+ /* This is an Auto-Generated File */
4
+ /* Made By */
5
+ /* Namirasoft SDK Generator NPM Package */
6
+ /* */
7
+ /****************************************************************/
8
+ /****************************************************************/
9
+ /* */
10
+ /* Please do not make any change to this file */
11
+ /* If any change is required, ns-sdkg command must be used */
12
+ /* */
13
+ /****************************************************************/
14
+ /****************************************************************/
15
+ /* */
16
+ /* Namira Software Corporation */
17
+ /* https://namirasoft.com */
18
+ /* */
19
+ /****************************************************************/
20
+
21
+ import { FilterItem } from "namirasoft-core";
22
+ import { InvoiceFullRow } from "./row/InvoiceFullRow";
23
+ import { InvoiceInputRow } from "./row/InvoiceInputRow";
24
+ import { InvoiceRow } from "./row/InvoiceRow";
25
+ import { NamirasoftPaymentServer } from "./NamirasoftPaymentServer";
26
+ import { NamirasoftPaymentServerBase } from "./NamirasoftPaymentServerBase";
27
+ import { SortItem } from "namirasoft-core";
28
+
29
+ export class NamirasoftPaymentServerInvoice extends NamirasoftPaymentServerBase
30
+ {
31
+ constructor(server: NamirasoftPaymentServer)
32
+ {
33
+ super(server);
34
+ this.List = this.List.bind(this);
35
+ this.Get = this.Get.bind(this);
36
+ this._CreateFor = this._CreateFor.bind(this);
37
+ this._DeleteFor = this._DeleteFor.bind(this);
38
+ this.Cancel = this.Cancel.bind(this);
39
+ }
40
+ async List(filters: FilterItem[] | null, page: (number | null), size: (number | null), sorts: SortItem[]): Promise<{ rows: InvoiceRow[], count: number }>
41
+ {
42
+ let filters_string_value: string = FilterItem.stringify(filters);
43
+ let sorts_string_value: string = SortItem.stringify(sorts);
44
+ let path = `/invoice/list`;
45
+ let { data } = await this.server._get<{ rows: InvoiceRow[], count: number }>(path, { filters: filters_string_value, page, size, sorts: sorts_string_value });
46
+ return data;
47
+ }
48
+ async Get(id: string): Promise<InvoiceFullRow>
49
+ {
50
+ let path = `/invoice/${id}`;
51
+ let { data } = await this.server._get<InvoiceFullRow>(path, {});
52
+ return data;
53
+ }
54
+ async _CreateFor(user_id: string, body: InvoiceInputRow): Promise<InvoiceFullRow>
55
+ {
56
+ let path = `/application/user/${user_id}/invoice`;
57
+ let { data } = await this.server._post<InvoiceFullRow>(path, {}, body);
58
+ return data;
59
+ }
60
+ async _DeleteFor(user_id: string, id: string): Promise<void>
61
+ {
62
+ let path = `/application/user/${user_id}/invoice/${id}`;
63
+ await this.server._delete<void>(path, {});
64
+ }
65
+ async Cancel(id: string): Promise<void>
66
+ {
67
+ let path = `/invoice/cancel/${id}`;
68
+ await this.server._put<void>(path, {});
69
+ }
70
70
  };