namirasoft-payment 1.4.43 → 1.4.45

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.
@@ -14,7 +14,7 @@ const NamirasoftPaymentServerSubscriptionPaid_1 = require("./NamirasoftPaymentSe
14
14
  const NamirasoftPaymentServerValue_1 = require("./NamirasoftPaymentServerValue");
15
15
  class NamirasoftPaymentServer extends namirasoft_account_1.NSABaseServer {
16
16
  constructor(base_url, manager, onError) {
17
- super(base_url, `1.4.43`, manager, onError);
17
+ super(base_url, `1.4.45`, manager, onError);
18
18
  this.healthz = new NamirasoftPaymentServerHealthz_1.NamirasoftPaymentServerHealthz(this);
19
19
  this.value = new NamirasoftPaymentServerValue_1.NamirasoftPaymentServerValue(this);
20
20
  this.invoice = new NamirasoftPaymentServerInvoice_1.NamirasoftPaymentServerInvoice(this);
@@ -41,6 +41,14 @@ class Invoice_CreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
41
41
  args: ["transaction_id"],
42
42
  defaults: [""]
43
43
  },
44
+ {
45
+ name: "transaction_id_reversed",
46
+ short: "",
47
+ description: "Provides the value of 'transaction_id_reversed' in body",
48
+ optional: true,
49
+ args: ["transaction_id_reversed"],
50
+ defaults: [""]
51
+ },
44
52
  {
45
53
  name: "subscription_id",
46
54
  short: "",
@@ -113,6 +121,7 @@ class Invoice_CreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
113
121
  stripe_invoice_id: this.option_values.stripe_invoice_id,
114
122
  product_id: this.option_values.product_id,
115
123
  transaction_id: this.option_values.transaction_id,
124
+ transaction_id_reversed: this.option_values.transaction_id_reversed,
116
125
  subscription_id: this.option_values.subscription_id,
117
126
  title: this.option_values.title,
118
127
  refund: this.option_values.refund,
@@ -1 +1 @@
1
- {"version":3,"file":"Invoice_CreateCommand.js","sourceRoot":"","sources":["../../src/command/Invoice_CreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AAC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object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvoiceCostType = void 0;
4
4
  var InvoiceCostType;
5
5
  (function (InvoiceCostType) {
6
+ InvoiceCostType["Fee"] = "Fee";
6
7
  InvoiceCostType["Discount"] = "Discount";
7
8
  InvoiceCostType["Tax"] = "Tax";
8
9
  })(InvoiceCostType || (exports.InvoiceCostType = InvoiceCostType = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"InvoiceCostType.js","sourceRoot":"","sources":["../../src/enum/InvoiceCostType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,eAIX;AAJD,WAAY,eAAe;IAEvB,wCAAqB,CAAA;IACrB,8BAAW,CAAA;AACf,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
1
+ {"version":3,"file":"InvoiceCostType.js","sourceRoot":"","sources":["../../src/enum/InvoiceCostType.ts"],"names":[],"mappings":";;;AAoBA,IAAY,eAKX;AALD,WAAY,eAAe;IAEvB,8BAAW,CAAA;IACX,wCAAqB,CAAA;IACrB,8BAAW,CAAA;AACf,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
@@ -7,13 +7,16 @@ export declare class InvoiceMetaTable extends NSBaseMetaTable {
7
7
  user_id: BaseMetaColumn;
8
8
  product_id: BaseMetaColumn;
9
9
  transaction_id: BaseMetaColumn;
10
+ transaction_id_reversed: BaseMetaColumn;
10
11
  subscription_id: BaseMetaColumn;
11
12
  title: BaseMetaColumn;
12
13
  refund: BaseMetaColumn;
13
14
  canceled: BaseMetaColumn;
14
15
  currency: BaseMetaColumn;
15
16
  total: BaseMetaColumn;
16
- total_cost: BaseMetaColumn;
17
+ total_fee: BaseMetaColumn;
18
+ total_discount: BaseMetaColumn;
19
+ total_tax: BaseMetaColumn;
17
20
  total_payable: BaseMetaColumn;
18
21
  total_paid: BaseMetaColumn;
19
22
  total_refunded: BaseMetaColumn;
@@ -12,13 +12,16 @@ class InvoiceMetaTable extends namirasoft_site_1.NSBaseMetaTable {
12
12
  user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
13
13
  product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product Id", "String", false),
14
14
  transaction_id: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id", "Transaction Id", "String", false),
15
+ transaction_id_reversed: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id_reversed", "Transaction Id Reversed", "String", false),
15
16
  subscription_id: new namirasoft_core_1.BaseMetaColumn(this, "subscription_id", "Subscription Id", "String", false),
16
17
  title: new namirasoft_core_1.BaseMetaColumn(this, "title", "Title", "String", true),
17
18
  refund: new namirasoft_core_1.BaseMetaColumn(this, "refund", "Refund", "Boolean", true),
18
19
  canceled: new namirasoft_core_1.BaseMetaColumn(this, "canceled", "Canceled", "Boolean", true),
19
20
  currency: new namirasoft_core_1.BaseMetaColumn(this, "currency", "Currency", "String", true),
20
21
  total: new namirasoft_core_1.BaseMetaColumn(this, "total", "Total", "Integer", true),
21
- total_cost: new namirasoft_core_1.BaseMetaColumn(this, "total_cost", "Total Cost", "Integer", true),
22
+ total_fee: new namirasoft_core_1.BaseMetaColumn(this, "total_fee", "Total Fee", "Integer", true),
23
+ total_discount: new namirasoft_core_1.BaseMetaColumn(this, "total_discount", "Total Discount", "Integer", true),
24
+ total_tax: new namirasoft_core_1.BaseMetaColumn(this, "total_tax", "Total Tax", "Integer", true),
22
25
  total_payable: new namirasoft_core_1.BaseMetaColumn(this, "total_payable", "Total Payable", "Integer", true),
23
26
  total_paid: new namirasoft_core_1.BaseMetaColumn(this, "total_paid", "Total Paid", "Integer", true),
24
27
  total_refunded: new namirasoft_core_1.BaseMetaColumn(this, "total_refunded", "Total Refunded", "Integer", true),
@@ -1 +1 @@
1
- {"version":3,"file":"InvoiceMetaTable.js","sourceRoot":"","sources":["../../src/meta/InvoiceMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,gBAAiB,SAAQ,iCAAe;IAuBjD,YAA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S,EAAE,IAAI,CAAC;YAC9E,cAAc,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,CAAC;YAC7F,SAAS,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,IAAI,CAAC;YAC9E,aAAa,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,CAAC;YAC1F,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,CAAC;YACjF,cAAc,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,IAAI,CAAC;YAC7F,aAAa,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,IAAI,CAAC;YAC1F,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAtDD,4CAsDC;AAAA,CAAC"}
@@ -7,6 +7,7 @@ export declare class PaymentMetaTable extends NSBaseMetaTable {
7
7
  user_id: BaseMetaColumn;
8
8
  product_id: BaseMetaColumn;
9
9
  transaction_id: BaseMetaColumn;
10
+ transaction_id_reversed: BaseMetaColumn;
10
11
  invoice_id: BaseMetaColumn;
11
12
  subscription_id: BaseMetaColumn;
12
13
  gateway: BaseMetaColumn;
@@ -12,6 +12,7 @@ class PaymentMetaTable extends namirasoft_site_1.NSBaseMetaTable {
12
12
  user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
13
13
  product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product Id", "String", false),
14
14
  transaction_id: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id", "Transaction Id", "String", false),
15
+ transaction_id_reversed: new namirasoft_core_1.BaseMetaColumn(this, "transaction_id_reversed", "Transaction Id Reversed", "String", false),
15
16
  invoice_id: new namirasoft_core_1.BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", false),
16
17
  subscription_id: new namirasoft_core_1.BaseMetaColumn(this, "subscription_id", "Subscription Id", "String", false),
17
18
  gateway: new namirasoft_core_1.BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentMetaTable.js","sourceRoot":"","sources":["../../src/meta/PaymentMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,gBAAiB,SAAQ,iCAAe;IAmBjD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,0BAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;QAC3D,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,iBAAiB,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,QAAQ,EAAE,IAAI,CAAC;YACrG,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,CAAC;YACjF,cAAc,EAAE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E,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC;YAClE,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,CAAC;YACrE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,CAAC;YACpF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AA1CD,4CA0CC;AAAA,CAAC"}
@@ -6,6 +6,7 @@ export declare class SubscriptionMetaTable extends NSBaseMetaTable {
6
6
  stripe_subscription_id: BaseMetaColumn;
7
7
  user_id: BaseMetaColumn;
8
8
  product_id: BaseMetaColumn;
9
+ sales_item_id: BaseMetaColumn;
9
10
  offer_id: BaseMetaColumn;
10
11
  gateway: BaseMetaColumn;
11
12
  status: BaseMetaColumn;
@@ -11,6 +11,7 @@ class SubscriptionMetaTable extends namirasoft_site_1.NSBaseMetaTable {
11
11
  stripe_subscription_id: new namirasoft_core_1.BaseMetaColumn(this, "stripe_subscription_id", "Stripe Subscription Id", "String", true),
12
12
  user_id: new namirasoft_core_1.BaseMetaColumn(this, "user_id", "User Id", "String", true),
13
13
  product_id: new namirasoft_core_1.BaseMetaColumn(this, "product_id", "Product Id", "String", true),
14
+ sales_item_id: new namirasoft_core_1.BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
14
15
  offer_id: new namirasoft_core_1.BaseMetaColumn(this, "offer_id", "Offer Id", "String", true),
15
16
  gateway: new namirasoft_core_1.BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
16
17
  status: new namirasoft_core_1.BaseMetaColumn(this, "status", "Status", "Enum", true),
@@ -1 +1 @@
1
- {"version":3,"file":"SubscriptionMetaTable.js","sourceRoot":"","sources":["../../src/meta/SubscriptionMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAA2D;AAC3D,qDAAsE;AAEtE,MAAa,qBAAsB,SAAQ,iCAAe;IAetD,YAAY,QAA4B;QAEpC,KAAK,CAAC,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,0BAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;QACzE,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YACxD,sBAAsB,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,QAAQ,EAAE,IAAI,CAAC;YACpH,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACvE,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,CAAC;YAChF,QAAQ,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC;YACrE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC;YAClE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ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AAI,gCAAc,CAAC,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,CAAC;YAC1E,OAAO,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC;YACrE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC;YAClE,MAAM,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC;YACrE,WAAW,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC;YACnF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;YAClF,UAAU,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SACrF,CAAC;IACN,CAAC;CACJ;AAlCD,sDAkCC;AAAA,CAAC"}
@@ -6,13 +6,16 @@ export type InvoiceFullRow = {
6
6
  user_id: string;
7
7
  product_id: (string | null);
8
8
  transaction_id: (string | null);
9
+ transaction_id_reversed: (string | null);
9
10
  subscription_id: (string | null);
10
11
  title: string;
11
12
  refund: boolean;
12
13
  canceled: boolean;
13
14
  currency: string;
14
15
  total: number;
15
- total_cost: number;
16
+ total_fee: number;
17
+ total_discount: number;
18
+ total_tax: number;
16
19
  total_payable: number;
17
20
  total_paid: number;
18
21
  total_refunded: number;
@@ -22,6 +25,4 @@ export type InvoiceFullRow = {
22
25
  updated_at: Date;
23
26
  invoice_items: InvoiceItemInputRow[];
24
27
  invoice_costs: InvoiceCostInputRow[];
25
- total_tax: number;
26
- total_discount: number;
27
28
  };
@@ -4,6 +4,7 @@ export type InvoiceInputRow = {
4
4
  stripe_invoice_id: string;
5
5
  product_id: (string | null);
6
6
  transaction_id: (string | null);
7
+ transaction_id_reversed: (string | null);
7
8
  subscription_id: (string | null);
8
9
  title: string;
9
10
  refund: boolean;
@@ -4,13 +4,16 @@ export type InvoiceRow = {
4
4
  user_id: string;
5
5
  product_id: (string | null);
6
6
  transaction_id: (string | null);
7
+ transaction_id_reversed: (string | null);
7
8
  subscription_id: (string | null);
8
9
  title: string;
9
10
  refund: boolean;
10
11
  canceled: boolean;
11
12
  currency: string;
12
13
  total: number;
13
- total_cost: number;
14
+ total_fee: number;
15
+ total_discount: number;
16
+ total_tax: number;
14
17
  total_payable: number;
15
18
  total_paid: number;
16
19
  total_refunded: number;
@@ -6,6 +6,7 @@ export type PaymentRow = {
6
6
  user_id: string;
7
7
  product_id: (string | null);
8
8
  transaction_id: (string | null);
9
+ transaction_id_reversed: (string | null);
9
10
  invoice_id: (string | null);
10
11
  subscription_id: (string | null);
11
12
  gateway: PaymentGateway;
@@ -5,6 +5,7 @@ export type SubscriptionRow = {
5
5
  stripe_subscription_id: string;
6
6
  user_id: string;
7
7
  product_id: string;
8
+ sales_item_id: string;
8
9
  offer_id: string;
9
10
  gateway: SubscriptionGateway;
10
11
  status: SubscriptionStatus;
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.43",
11
+ "version": "1.4.45",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -45,7 +45,7 @@ export class NamirasoftPaymentServer extends NSABaseServer
45
45
  product: NamirasoftPaymentServerProduct;
46
46
  constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
47
47
  {
48
- super(base_url, `1.4.43`, manager, onError);
48
+ super(base_url, `1.4.45`, manager, onError);
49
49
  this.healthz = new NamirasoftPaymentServerHealthz(this);
50
50
  this.value = new NamirasoftPaymentServerValue(this);
51
51
  this.invoice = new NamirasoftPaymentServerInvoice(this);
@@ -52,6 +52,14 @@ export class Invoice_CreateCommand extends BaseFinalCommand
52
52
  args: ["transaction_id"],
53
53
  defaults: [""]
54
54
  },
55
+ {
56
+ name: "transaction_id_reversed",
57
+ short: "",
58
+ description: "Provides the value of 'transaction_id_reversed' in body",
59
+ optional: true,
60
+ args: ["transaction_id_reversed"],
61
+ defaults: [""]
62
+ },
55
63
  {
56
64
  name: "subscription_id",
57
65
  short: "",
@@ -124,6 +132,7 @@ export class Invoice_CreateCommand extends BaseFinalCommand
124
132
  stripe_invoice_id: this.option_values.stripe_invoice_id,
125
133
  product_id: this.option_values.product_id,
126
134
  transaction_id: this.option_values.transaction_id,
135
+ transaction_id_reversed: this.option_values.transaction_id_reversed,
127
136
  subscription_id: this.option_values.subscription_id,
128
137
  title: this.option_values.title,
129
138
  refund: this.option_values.refund,
@@ -20,6 +20,7 @@
20
20
 
21
21
  export enum InvoiceCostType
22
22
  {
23
+ Fee = "Fee",
23
24
  Discount = "Discount",
24
25
  Tax = "Tax",
25
26
  }
@@ -29,13 +29,16 @@ export class InvoiceMetaTable extends NSBaseMetaTable
29
29
  user_id: BaseMetaColumn;
30
30
  product_id: BaseMetaColumn;
31
31
  transaction_id: BaseMetaColumn;
32
+ transaction_id_reversed: BaseMetaColumn;
32
33
  subscription_id: BaseMetaColumn;
33
34
  title: BaseMetaColumn;
34
35
  refund: BaseMetaColumn;
35
36
  canceled: BaseMetaColumn;
36
37
  currency: BaseMetaColumn;
37
38
  total: BaseMetaColumn;
38
- total_cost: BaseMetaColumn;
39
+ total_fee: BaseMetaColumn;
40
+ total_discount: BaseMetaColumn;
41
+ total_tax: BaseMetaColumn;
39
42
  total_payable: BaseMetaColumn;
40
43
  total_paid: BaseMetaColumn;
41
44
  total_refunded: BaseMetaColumn;
@@ -53,13 +56,16 @@ export class InvoiceMetaTable extends NSBaseMetaTable
53
56
  user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
54
57
  product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", false),
55
58
  transaction_id: new BaseMetaColumn(this, "transaction_id", "Transaction Id", "String", false),
59
+ transaction_id_reversed: new BaseMetaColumn(this, "transaction_id_reversed", "Transaction Id Reversed", "String", false),
56
60
  subscription_id: new BaseMetaColumn(this, "subscription_id", "Subscription Id", "String", false),
57
61
  title: new BaseMetaColumn(this, "title", "Title", "String", true),
58
62
  refund: new BaseMetaColumn(this, "refund", "Refund", "Boolean", true),
59
63
  canceled: new BaseMetaColumn(this, "canceled", "Canceled", "Boolean", true),
60
64
  currency: new BaseMetaColumn(this, "currency", "Currency", "String", true),
61
65
  total: new BaseMetaColumn(this, "total", "Total", "Integer", true),
62
- total_cost: new BaseMetaColumn(this, "total_cost", "Total Cost", "Integer", true),
66
+ total_fee: new BaseMetaColumn(this, "total_fee", "Total Fee", "Integer", true),
67
+ total_discount: new BaseMetaColumn(this, "total_discount", "Total Discount", "Integer", true),
68
+ total_tax: new BaseMetaColumn(this, "total_tax", "Total Tax", "Integer", true),
63
69
  total_payable: new BaseMetaColumn(this, "total_payable", "Total Payable", "Integer", true),
64
70
  total_paid: new BaseMetaColumn(this, "total_paid", "Total Paid", "Integer", true),
65
71
  total_refunded: new BaseMetaColumn(this, "total_refunded", "Total Refunded", "Integer", true),
@@ -29,6 +29,7 @@ export class PaymentMetaTable extends NSBaseMetaTable
29
29
  user_id: BaseMetaColumn;
30
30
  product_id: BaseMetaColumn;
31
31
  transaction_id: BaseMetaColumn;
32
+ transaction_id_reversed: BaseMetaColumn;
32
33
  invoice_id: BaseMetaColumn;
33
34
  subscription_id: BaseMetaColumn;
34
35
  gateway: BaseMetaColumn;
@@ -49,6 +50,7 @@ export class PaymentMetaTable extends NSBaseMetaTable
49
50
  user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
50
51
  product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", false),
51
52
  transaction_id: new BaseMetaColumn(this, "transaction_id", "Transaction Id", "String", false),
53
+ transaction_id_reversed: new BaseMetaColumn(this, "transaction_id_reversed", "Transaction Id Reversed", "String", false),
52
54
  invoice_id: new BaseMetaColumn(this, "invoice_id", "Invoice Id", "String", false),
53
55
  subscription_id: new BaseMetaColumn(this, "subscription_id", "Subscription Id", "String", false),
54
56
  gateway: new BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
@@ -28,6 +28,7 @@ export class SubscriptionMetaTable extends NSBaseMetaTable
28
28
  stripe_subscription_id: BaseMetaColumn;
29
29
  user_id: BaseMetaColumn;
30
30
  product_id: BaseMetaColumn;
31
+ sales_item_id: BaseMetaColumn;
31
32
  offer_id: BaseMetaColumn;
32
33
  gateway: BaseMetaColumn;
33
34
  status: BaseMetaColumn;
@@ -44,6 +45,7 @@ export class SubscriptionMetaTable extends NSBaseMetaTable
44
45
  stripe_subscription_id: new BaseMetaColumn(this, "stripe_subscription_id", "Stripe Subscription Id", "String", true),
45
46
  user_id: new BaseMetaColumn(this, "user_id", "User Id", "String", true),
46
47
  product_id: new BaseMetaColumn(this, "product_id", "Product Id", "String", true),
48
+ sales_item_id: new BaseMetaColumn(this, "sales_item_id", "Sales Item Id", "String", true),
47
49
  offer_id: new BaseMetaColumn(this, "offer_id", "Offer Id", "String", true),
48
50
  gateway: new BaseMetaColumn(this, "gateway", "Gateway", "Enum", true),
49
51
  status: new BaseMetaColumn(this, "status", "Status", "Enum", true),
@@ -28,13 +28,16 @@ export type InvoiceFullRow =
28
28
  user_id: string;
29
29
  product_id: (string | null);
30
30
  transaction_id: (string | null);
31
+ transaction_id_reversed: (string | null);
31
32
  subscription_id: (string | null);
32
33
  title: string;
33
34
  refund: boolean;
34
35
  canceled: boolean;
35
36
  currency: string;
36
37
  total: number;
37
- total_cost: number;
38
+ total_fee: number;
39
+ total_discount: number;
40
+ total_tax: number;
38
41
  total_payable: number;
39
42
  total_paid: number;
40
43
  total_refunded: number;
@@ -44,6 +47,4 @@ export type InvoiceFullRow =
44
47
  updated_at: Date;
45
48
  invoice_items: InvoiceItemInputRow[];
46
49
  invoice_costs: InvoiceCostInputRow[];
47
- total_tax: number;
48
- total_discount: number;
49
50
  }
@@ -26,6 +26,7 @@ export type InvoiceInputRow =
26
26
  stripe_invoice_id: string;
27
27
  product_id: (string | null);
28
28
  transaction_id: (string | null);
29
+ transaction_id_reversed: (string | null);
29
30
  subscription_id: (string | null);
30
31
  title: string;
31
32
  refund: boolean;
@@ -25,13 +25,16 @@ export type InvoiceRow =
25
25
  user_id: string;
26
26
  product_id: (string | null);
27
27
  transaction_id: (string | null);
28
+ transaction_id_reversed: (string | null);
28
29
  subscription_id: (string | null);
29
30
  title: string;
30
31
  refund: boolean;
31
32
  canceled: boolean;
32
33
  currency: string;
33
34
  total: number;
34
- total_cost: number;
35
+ total_fee: number;
36
+ total_discount: number;
37
+ total_tax: number;
35
38
  total_payable: number;
36
39
  total_paid: number;
37
40
  total_refunded: number;
@@ -28,6 +28,7 @@ export type PaymentRow =
28
28
  user_id: string;
29
29
  product_id: (string | null);
30
30
  transaction_id: (string | null);
31
+ transaction_id_reversed: (string | null);
31
32
  invoice_id: (string | null);
32
33
  subscription_id: (string | null);
33
34
  gateway: PaymentGateway;
@@ -27,6 +27,7 @@ export type SubscriptionRow =
27
27
  stripe_subscription_id: string;
28
28
  user_id: string;
29
29
  product_id: string;
30
+ sales_item_id: string;
30
31
  offer_id: string;
31
32
  gateway: SubscriptionGateway;
32
33
  status: SubscriptionStatus;