univapay-node 4.0.35 → 4.0.36
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/resources/CheckoutInfo.d.ts +6 -2
- package/dist/cjs/resources/CheckoutInfo.js.map +1 -1
- package/dist/cjs/resources/ECForms.d.ts +1 -1
- package/dist/cjs/resources/LinksProducts.d.ts +1 -0
- package/dist/cjs/resources/LinksProducts.js.map +1 -1
- package/dist/cjs/resources/Subscriptions.d.ts +2 -2
- package/dist/cjs/resources/index.d.ts +1 -0
- package/dist/cjs/resources/index.js +1 -0
- package/dist/cjs/resources/index.js.map +1 -1
- package/dist/esm/resources/CheckoutInfo.d.ts +6 -2
- package/dist/esm/resources/CheckoutInfo.js.map +1 -1
- package/dist/esm/resources/ECForms.d.ts +1 -1
- package/dist/esm/resources/LinksProducts.d.ts +1 -0
- package/dist/esm/resources/LinksProducts.js.map +1 -1
- package/dist/esm/resources/Subscriptions.d.ts +2 -2
- package/dist/esm/resources/index.d.ts +1 -0
- package/dist/esm/resources/index.js +1 -0
- package/dist/esm/resources/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { BankTransferConfiguration, CardConfigurationItem, ConvenienceConfigurat
|
|
|
6
6
|
import { BankTransferBrand, CardBrand, OnlineBrand, ProcessingMode } from "./common/enums.js";
|
|
7
7
|
import { AmountWithCurrency } from "./common/types.js";
|
|
8
8
|
import { Resource } from "./Resource.js";
|
|
9
|
-
import { OnlineCallMethod, OSType, PaymentType, RecurringTokenPrivilege } from "./TransactionTokens.js";
|
|
9
|
+
import { ConvenienceStore, OnlineCallMethod, OSType, PaymentType, RecurringTokenPrivilege } from "./TransactionTokens.js";
|
|
10
10
|
export interface CheckoutInfoParams {
|
|
11
11
|
origin?: string;
|
|
12
12
|
}
|
|
@@ -20,7 +20,7 @@ export interface CheckoutColors {
|
|
|
20
20
|
baseText: string;
|
|
21
21
|
}
|
|
22
22
|
export interface SupportedBrand {
|
|
23
|
-
brand: CardBrand |
|
|
23
|
+
brand: OnlineBrand | PaymentType | CardBrand | ConvenienceStore | BankTransferBrand | "paidy";
|
|
24
24
|
supportAuthCapture: boolean;
|
|
25
25
|
requiresFullName: boolean;
|
|
26
26
|
supportDynamicDescriptor: boolean;
|
|
@@ -28,6 +28,10 @@ export interface SupportedBrand {
|
|
|
28
28
|
countriesAllowed?: string[] | null;
|
|
29
29
|
supportedCurrencies: string[];
|
|
30
30
|
paymentType: PaymentType;
|
|
31
|
+
/**
|
|
32
|
+
* WeChat brand only
|
|
33
|
+
*/
|
|
34
|
+
appId?: string;
|
|
31
35
|
/**
|
|
32
36
|
* @deprecated
|
|
33
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutInfo.js","sourceRoot":"","sources":["../../../src/resources/CheckoutInfo.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kDAAqE;AAYrE,+CAAuD;
|
|
1
|
+
{"version":3,"file":"CheckoutInfo.js","sourceRoot":"","sources":["../../../src/resources/CheckoutInfo.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kDAAqE;AAYrE,+CAAuD;AA0HvD,MAAa,YAAa,SAAQ,sBAAQ;IAEtC,GAAG,CAAC,IAAmC,EAAE,IAAiB;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAC5E,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC;IAGD,OAAO,CACH,KAAkB,EAClB,IAAyC,EACzC,IAAiB;QAEjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,uBAAU,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;QACrG,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;CACJ;AAhBD,oCAgBC"}
|
|
@@ -89,7 +89,7 @@ export type ECFormItem<Metadata = BaseMetadata> = {
|
|
|
89
89
|
buyerDateOfBirth: string | null;
|
|
90
90
|
descriptor: string | null;
|
|
91
91
|
ignoreDescriptorOnError: boolean | null;
|
|
92
|
-
metadata
|
|
92
|
+
metadata?: Metadata | null;
|
|
93
93
|
customFieldsTitles?: Partial<Record<Languages, string>> | null;
|
|
94
94
|
orderSummaryTitles?: Partial<Record<Languages, string>> | null;
|
|
95
95
|
customFields?: Partial<Record<Languages, ECFormCustomField[]>> | null;
|
|
@@ -24,6 +24,7 @@ export type LinkProductListItem = {
|
|
|
24
24
|
subscriptionStartDayOfMonth?: number;
|
|
25
25
|
subscriptionStartInMonths?: number;
|
|
26
26
|
subscriptionStartIn?: string;
|
|
27
|
+
subscriptionStartOn?: string;
|
|
27
28
|
/**
|
|
28
29
|
* ISO 8601 period. e.g P1M, P23D. Can not be used with the `period` parameter
|
|
29
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinksProducts.js","sourceRoot":"","sources":["../../../src/resources/LinksProducts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,uDAAoE;
|
|
1
|
+
{"version":3,"file":"LinksProducts.js","sourceRoot":"","sources":["../../../src/resources/LinksProducts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAGH,uDAAoE;AAgDpE,MAAa,aAAc,SAAQ,8BAAY;IAI3C,IAAI,CAAC,MAAc,EAAE,IAAuC,EAAE,IAAiB;QAC3E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,CAAC;;AAPL,sCAQC;AAPU,uBAAS,GAAG,kCAAkC,CAAC"}
|
|
@@ -235,9 +235,9 @@ export declare class Subscriptions extends CRUDResource {
|
|
|
235
235
|
private _list;
|
|
236
236
|
list(data?: SendData<SubscriptionsListParams>, auth?: AuthParams, storeId?: string): Promise<ResponseSubscriptions>;
|
|
237
237
|
private _suspend?;
|
|
238
|
-
suspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<
|
|
238
|
+
suspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
239
239
|
private _unsuspend?;
|
|
240
|
-
unsuspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<
|
|
240
|
+
unsuspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
241
241
|
create(data: SubscriptionCreateParams, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
242
242
|
private _get;
|
|
243
243
|
get(storeId: string, id: string, data?: SendData<PollData>, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
@@ -17,6 +17,7 @@ export * from "./ECInfo.js";
|
|
|
17
17
|
export * from "./Emails.js";
|
|
18
18
|
export * from "./ExchangeRates.js";
|
|
19
19
|
export * from "./Ledgers.js";
|
|
20
|
+
export * from "./LinksProducts.js";
|
|
20
21
|
export * from "./Merchants.js";
|
|
21
22
|
export * from "./Platforms.js";
|
|
22
23
|
export * from "./Products.js";
|
|
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./ECInfo.js"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./Emails.js"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./ExchangeRates.js"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./Ledgers.js"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./LinksProducts.js"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./Merchants.js"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./Platforms.js"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./Products.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C;AAC1C,kEAAwC;AACxC,4DAAkC;AAClC,+DAAqC;AACrC,uEAA6C;AAC7C,4DAAkC;AAElC,4DAAkC;AAClC,uDAA6B;AAC7B,wDAA8B;AAC9B,uDAA6B;AAC7B,4DAAkC;AAClC,2DAAiC;AACjC,4DAAkC;AAClC,2DAAiC;AACjC,uDAA6B;AAC7B,sDAA4B;AAC5B,sDAA4B;AAC5B,6DAAmC;AACnC,uDAA6B;AAC7B,yDAA+B;AAC/B,yDAA+B;AAC/B,wDAA8B;AAC9B,sDAA4B;AAC5B,uDAA6B;AAC7B,wDAA8B;AAC9B,sDAA4B;AAC5B,6DAAmC;AACnC,mEAAyC;AACzC,iEAAuC;AACvC,yDAA+B;AAC/B,4DAAkC;AAClC,wDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C;AAC1C,kEAAwC;AACxC,4DAAkC;AAClC,+DAAqC;AACrC,uEAA6C;AAC7C,4DAAkC;AAElC,4DAAkC;AAClC,uDAA6B;AAC7B,wDAA8B;AAC9B,uDAA6B;AAC7B,4DAAkC;AAClC,2DAAiC;AACjC,4DAAkC;AAClC,2DAAiC;AACjC,uDAA6B;AAC7B,sDAA4B;AAC5B,sDAA4B;AAC5B,6DAAmC;AACnC,uDAA6B;AAC7B,6DAAmC;AACnC,yDAA+B;AAC/B,yDAA+B;AAC/B,wDAA8B;AAC9B,sDAA4B;AAC5B,uDAA6B;AAC7B,wDAA8B;AAC9B,sDAA4B;AAC5B,6DAAmC;AACnC,mEAAyC;AACzC,iEAAuC;AACvC,yDAA+B;AAC/B,4DAAkC;AAClC,wDAA8B"}
|
|
@@ -6,7 +6,7 @@ import { BankTransferConfiguration, CardConfigurationItem, ConvenienceConfigurat
|
|
|
6
6
|
import { BankTransferBrand, CardBrand, OnlineBrand, ProcessingMode } from "./common/enums.js";
|
|
7
7
|
import { AmountWithCurrency } from "./common/types.js";
|
|
8
8
|
import { Resource } from "./Resource.js";
|
|
9
|
-
import { OnlineCallMethod, OSType, PaymentType, RecurringTokenPrivilege } from "./TransactionTokens.js";
|
|
9
|
+
import { ConvenienceStore, OnlineCallMethod, OSType, PaymentType, RecurringTokenPrivilege } from "./TransactionTokens.js";
|
|
10
10
|
export interface CheckoutInfoParams {
|
|
11
11
|
origin?: string;
|
|
12
12
|
}
|
|
@@ -20,7 +20,7 @@ export interface CheckoutColors {
|
|
|
20
20
|
baseText: string;
|
|
21
21
|
}
|
|
22
22
|
export interface SupportedBrand {
|
|
23
|
-
brand: CardBrand |
|
|
23
|
+
brand: OnlineBrand | PaymentType | CardBrand | ConvenienceStore | BankTransferBrand | "paidy";
|
|
24
24
|
supportAuthCapture: boolean;
|
|
25
25
|
requiresFullName: boolean;
|
|
26
26
|
supportDynamicDescriptor: boolean;
|
|
@@ -28,6 +28,10 @@ export interface SupportedBrand {
|
|
|
28
28
|
countriesAllowed?: string[] | null;
|
|
29
29
|
supportedCurrencies: string[];
|
|
30
30
|
paymentType: PaymentType;
|
|
31
|
+
/**
|
|
32
|
+
* WeChat brand only
|
|
33
|
+
*/
|
|
34
|
+
appId?: string;
|
|
31
35
|
/**
|
|
32
36
|
* @deprecated
|
|
33
37
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckoutInfo.js","sourceRoot":"","sources":["../../../src/resources/CheckoutInfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAc,UAAU,EAAY,MAAM,mBAAmB,CAAC;AAYrE,OAAO,EAAgB,QAAQ,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"CheckoutInfo.js","sourceRoot":"","sources":["../../../src/resources/CheckoutInfo.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAc,UAAU,EAAY,MAAM,mBAAmB,CAAC;AAYrE,OAAO,EAAgB,QAAQ,EAAE,MAAM,eAAe,CAAC;AA0HvD,MAAM,OAAO,YAAa,SAAQ,QAAQ;IAEtC,GAAG,CAAC,IAAmC,EAAE,IAAiB;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;QAC5E,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjC,CAAC;IAGD,OAAO,CACH,KAAkB,EAClB,IAAyC,EACzC,IAAiB;QAEjB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;QACrG,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;CACJ"}
|
|
@@ -89,7 +89,7 @@ export type ECFormItem<Metadata = BaseMetadata> = {
|
|
|
89
89
|
buyerDateOfBirth: string | null;
|
|
90
90
|
descriptor: string | null;
|
|
91
91
|
ignoreDescriptorOnError: boolean | null;
|
|
92
|
-
metadata
|
|
92
|
+
metadata?: Metadata | null;
|
|
93
93
|
customFieldsTitles?: Partial<Record<Languages, string>> | null;
|
|
94
94
|
orderSummaryTitles?: Partial<Record<Languages, string>> | null;
|
|
95
95
|
customFields?: Partial<Record<Languages, ECFormCustomField[]>> | null;
|
|
@@ -24,6 +24,7 @@ export type LinkProductListItem = {
|
|
|
24
24
|
subscriptionStartDayOfMonth?: number;
|
|
25
25
|
subscriptionStartInMonths?: number;
|
|
26
26
|
subscriptionStartIn?: string;
|
|
27
|
+
subscriptionStartOn?: string;
|
|
27
28
|
/**
|
|
28
29
|
* ISO 8601 period. e.g P1M, P23D. Can not be used with the `period` parameter
|
|
29
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinksProducts.js","sourceRoot":"","sources":["../../../src/resources/LinksProducts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAqB,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"LinksProducts.js","sourceRoot":"","sources":["../../../src/resources/LinksProducts.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAqB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAgDpE,MAAM,OAAO,aAAc,SAAQ,YAAY;IAI3C,IAAI,CAAC,MAAc,EAAE,IAAuC,EAAE,IAAiB;QAC3E,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC9C,CAAC;;AANM,uBAAS,GAAG,kCAAkC,CAAC"}
|
|
@@ -235,9 +235,9 @@ export declare class Subscriptions extends CRUDResource {
|
|
|
235
235
|
private _list;
|
|
236
236
|
list(data?: SendData<SubscriptionsListParams>, auth?: AuthParams, storeId?: string): Promise<ResponseSubscriptions>;
|
|
237
237
|
private _suspend?;
|
|
238
|
-
suspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<
|
|
238
|
+
suspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
239
239
|
private _unsuspend?;
|
|
240
|
-
unsuspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<
|
|
240
|
+
unsuspend(storeId: string, id: string, data?: SendData<void>, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
241
241
|
create(data: SubscriptionCreateParams, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
242
242
|
private _get;
|
|
243
243
|
get(storeId: string, id: string, data?: SendData<PollData>, auth?: AuthParams): Promise<ResponseSubscription>;
|
|
@@ -17,6 +17,7 @@ export * from "./ECInfo.js";
|
|
|
17
17
|
export * from "./Emails.js";
|
|
18
18
|
export * from "./ExchangeRates.js";
|
|
19
19
|
export * from "./Ledgers.js";
|
|
20
|
+
export * from "./LinksProducts.js";
|
|
20
21
|
export * from "./Merchants.js";
|
|
21
22
|
export * from "./Platforms.js";
|
|
22
23
|
export * from "./Products.js";
|
|
@@ -17,6 +17,7 @@ export * from "./ECInfo.js";
|
|
|
17
17
|
export * from "./Emails.js";
|
|
18
18
|
export * from "./ExchangeRates.js";
|
|
19
19
|
export * from "./Ledgers.js";
|
|
20
|
+
export * from "./LinksProducts.js";
|
|
20
21
|
export * from "./Merchants.js";
|
|
21
22
|
export * from "./Platforms.js";
|
|
22
23
|
export * from "./Products.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAElC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAElC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC"}
|