namirasoft-payment 1.4.7 → 1.4.8
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/NamirasoftPaymentServerBase.js +1 -1
- package/dist/NamirasoftPaymentServerSubscription.d.ts +1 -1
- package/dist/meta/PaymentMetaTable.js +1 -1
- package/dist/meta/PaymentMetaTable.js.map +1 -1
- package/dist/row/PaymentRow.d.ts +1 -1
- package/package.json +1 -1
- package/src/NamirasoftPaymentServerBase.ts +1 -1
- package/src/NamirasoftPaymentServerSubscription.ts +1 -1
- package/src/meta/PaymentMetaTable.ts +1 -1
- package/src/row/PaymentRow.ts +1 -1
|
@@ -4,7 +4,7 @@ exports.NamirasoftPaymentServerBase = void 0;
|
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
5
|
class NamirasoftPaymentServerBase extends namirasoft_account_1.NamirasoftServerBase {
|
|
6
6
|
constructor(base_url, manager, onError) {
|
|
7
|
-
super(base_url, `1.4.
|
|
7
|
+
super(base_url, `1.4.8`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftPaymentServerBase = NamirasoftPaymentServerBase;
|
|
@@ -10,7 +10,7 @@ export declare class NamirasoftPaymentServerSubscription extends NamirasoftPayme
|
|
|
10
10
|
count: number;
|
|
11
11
|
}>;
|
|
12
12
|
Get(id: string): Promise<SubscriptionRow>;
|
|
13
|
-
Cancel(id:
|
|
13
|
+
Cancel(id: string): Promise<void>;
|
|
14
14
|
Checkout(body: {
|
|
15
15
|
gateway: GatewayType;
|
|
16
16
|
sales_item_id: (string | null);
|
|
@@ -10,7 +10,7 @@ class PaymentMetaTable extends namirasoft_core_1.BaseMetaTable {
|
|
|
10
10
|
user_id: new namirasoft_core_1.BaseMetaColumn("user_id", "User Id", "String", true),
|
|
11
11
|
product_id: new namirasoft_core_1.BaseMetaColumn("product_id", "Product Id", "String", false),
|
|
12
12
|
transaction_id: new namirasoft_core_1.BaseMetaColumn("transaction_id", "Transaction Id", "Integer", false),
|
|
13
|
-
invoice_id: new namirasoft_core_1.BaseMetaColumn("invoice_id", "Invoice Id", "
|
|
13
|
+
invoice_id: new namirasoft_core_1.BaseMetaColumn("invoice_id", "Invoice Id", "String", false),
|
|
14
14
|
subscription_id: new namirasoft_core_1.BaseMetaColumn("subscription_id", "Subscription Id", "Integer", false),
|
|
15
15
|
gateway: new namirasoft_core_1.BaseMetaColumn("gateway", "Gateway", "Enum", true),
|
|
16
16
|
refund: new namirasoft_core_1.BaseMetaColumn("refund", "Refund", "Boolean", true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMetaTable.js","sourceRoot":"","sources":["../../src/meta/PaymentMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,gBAAiB,SAAQ,+BAAa;IAkB/C;QAEI,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG;YACX,EAAE,EAAE,IAAI,gCAAc,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC;YAClD,OAAO,EAAE,IAAI,gCAAc,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC;YACjE,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,CAAC;YAC3E,cAAc,EAAE,IAAI,gCAAc,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,SAAS,EAAE,KAAK,CAAC;YACxF,UAAU,EAAE,IAAI,gCAAc,CAAC,YAAY,EAAE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"PaymentMetaTable.js","sourceRoot":"","sources":["../../src/meta/PaymentMetaTable.ts"],"names":[],"mappings":";;;AAoBA,qDAAgE;AAEhE,MAAa,gBAAiB,SAAQ,+BAAa;IAkB/C;QAEI,KAAK,CAAC,SAAS,EAAE,SAAS,C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AAE,YAAY,EAAE,UAAU,EAAE,IAAI,CAAC;SAC/E,CAAC;IACN,CAAC;CACJ;AAtCD,4CAsCC;AAAA,CAAC"}
|
package/dist/row/PaymentRow.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -25,6 +25,6 @@ export class NamirasoftPaymentServerBase extends NamirasoftServerBase
|
|
|
25
25
|
{
|
|
26
26
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(base_url, `1.4.
|
|
28
|
+
super(base_url, `1.4.8`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -47,7 +47,7 @@ export class NamirasoftPaymentServerSubscription extends NamirasoftPaymentServer
|
|
|
47
47
|
let { data } = await this._get<SubscriptionRow>(path, {});
|
|
48
48
|
return data;
|
|
49
49
|
}
|
|
50
|
-
async Cancel(id:
|
|
50
|
+
async Cancel(id: string): Promise<void>
|
|
51
51
|
{
|
|
52
52
|
let path = `/subscription/cancel/${id}`;
|
|
53
53
|
await this._delete<void>(path, {});
|
|
@@ -46,7 +46,7 @@ export class PaymentMetaTable extends BaseMetaTable
|
|
|
46
46
|
user_id: new BaseMetaColumn("user_id", "User Id", "String", true),
|
|
47
47
|
product_id: new BaseMetaColumn("product_id", "Product Id", "String", false),
|
|
48
48
|
transaction_id: new BaseMetaColumn("transaction_id", "Transaction Id", "Integer", false),
|
|
49
|
-
invoice_id: new BaseMetaColumn("invoice_id", "Invoice Id", "
|
|
49
|
+
invoice_id: new BaseMetaColumn("invoice_id", "Invoice Id", "String", false),
|
|
50
50
|
subscription_id: new BaseMetaColumn("subscription_id", "Subscription Id", "Integer", false),
|
|
51
51
|
gateway: new BaseMetaColumn("gateway", "Gateway", "Enum", true),
|
|
52
52
|
refund: new BaseMetaColumn("refund", "Refund", "Boolean", true),
|
package/src/row/PaymentRow.ts
CHANGED
|
@@ -27,7 +27,7 @@ export type PaymentRow =
|
|
|
27
27
|
user_id: string;
|
|
28
28
|
product_id: (string | null);
|
|
29
29
|
transaction_id: (number | null);
|
|
30
|
-
invoice_id: (
|
|
30
|
+
invoice_id: (string | null);
|
|
31
31
|
subscription_id: (number | null);
|
|
32
32
|
gateway: PaymentGateway;
|
|
33
33
|
refund: boolean;
|