ggez-banking-sdk 0.5.14 → 0.5.18
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/api/proxy/authProxy.d.ts +3 -3
- package/dist/api/proxy/programProxy.d.ts +1 -1
- package/dist/api/service/authService.d.ts +2 -2
- package/dist/api/service/programService.d.ts +2 -2
- package/dist/helper/geoHelper.js +4 -4
- package/dist/types/banking/account/accountdata.d.ts +1 -1
- package/dist/types/banking/account/info.d.ts +1 -0
- package/dist/types/banking/account/limits/deposit.d.ts +1 -0
- package/dist/types/banking/account/limits/depositpaymentgateway.d.ts +2 -2
- package/dist/types/banking/account/limits/transferreceiving.d.ts +1 -0
- package/dist/types/banking/account/limits/transfersending.d.ts +1 -0
- package/dist/types/banking/account/limits/withdraw.d.ts +1 -0
- package/dist/types/banking/account/options/courier.d.ts +3 -2
- package/dist/types/banking/blockchain/blockchainData.d.ts +2 -1
- package/dist/types/banking/blockchain/info.d.ts +1 -1
- package/dist/types/banking/common/bankextendeddata.d.ts +1 -0
- package/dist/types/banking/common/bankingcircledata.d.ts +1 -0
- package/dist/types/banking/common/classification.d.ts +6 -2
- package/dist/types/banking/common/geocoordinates.d.ts +2 -2
- package/dist/types/banking/common/picture.d.ts +1 -0
- package/dist/types/banking/common/security/simplifiedaccessrule.d.ts +2 -1
- package/dist/types/banking/entities/address.d.ts +0 -2
- package/dist/types/banking/entities/json/IdentificationExtraData.d.ts +2 -0
- package/dist/types/banking/entities/json/device/amazonsnsinfo.d.ts +7 -0
- package/dist/types/banking/entities/json/device/amazonsnsinfo.js +1 -0
- package/dist/types/banking/entities/json/device/deviceextendedinfo.d.ts +2 -1
- package/dist/types/banking/entities/json/device/index.d.ts +1 -0
- package/dist/types/banking/entities/relationship.d.ts +1 -0
- package/dist/types/banking/group/groupuser.d.ts +1 -1
- package/dist/types/banking/oauth/tokenData.d.ts +7 -8
- package/dist/types/banking/order/customForm/ggezGiftRewards.d.ts +1 -1
- package/dist/types/banking/order/info.d.ts +6 -6
- package/dist/types/banking/order/items/orderItem.d.ts +2 -2
- package/dist/types/banking/order/lotteryTicket.d.ts +2 -3
- package/dist/types/banking/order/variant.d.ts +10 -10
- package/dist/types/banking/organization/details.d.ts +2 -0
- package/dist/types/banking/program/bin/deposit.d.ts +1 -0
- package/dist/types/banking/program/bin/securityFeatures.d.ts +1 -0
- package/dist/types/banking/program/bin/supportedCountriesExtended.d.ts +9 -0
- package/dist/types/banking/program/bin/withdraw.d.ts +1 -0
- package/dist/types/banking/program/program/applicationOptions/POSApplication.d.ts +1 -1
- package/dist/types/banking/program/program/applicationOptions/customField.d.ts +0 -1
- package/dist/types/banking/program/program/applicationOptions/identification.d.ts +3 -0
- package/dist/types/banking/program/program/applicationOptions/identificationRequirements.d.ts +7 -0
- package/dist/types/banking/program/program/applicationOptions/identificationRequirements.js +1 -0
- package/dist/types/banking/program/program/applicationOptions/index.d.ts +1 -0
- package/dist/types/banking/program/program/applicationOptions/organizationInfo.d.ts +11 -4
- package/dist/types/banking/program/program/applicationOptions/userSignupForm.d.ts +2 -2
- package/dist/types/banking/program/program/index.d.ts +2 -0
- package/dist/types/banking/program/program/info.d.ts +2 -2
- package/dist/types/banking/program/program/programData.d.ts +1 -1
- package/dist/types/banking/program/program/securityUserAlert.d.ts +2 -0
- package/dist/types/banking/program/program/signupRequirements.d.ts +17 -0
- package/dist/types/banking/program/program/signupRequirements.js +1 -0
- package/dist/types/banking/program/program/validation/IDVerificationSetup.d.ts +14 -0
- package/dist/types/banking/program/program/validation/IDVerificationSetup.js +1 -0
- package/dist/types/banking/program/program/validation/advancedConfiguration.d.ts +5 -0
- package/dist/types/banking/program/program/validation/advancedConfiguration.js +1 -0
- package/dist/types/banking/program/program/validation/configuration.d.ts +7 -0
- package/dist/types/banking/program/program/validation/configuration.js +1 -0
- package/dist/types/banking/program/program/validation/customerRegistrationSetup.d.ts +5 -0
- package/dist/types/banking/program/program/validation/customerRegistrationSetup.js +1 -0
- package/dist/types/banking/program/program/validation/enabledServices.d.ts +6 -0
- package/dist/types/banking/program/program/validation/enabledServices.js +1 -0
- package/dist/types/banking/program/program/validation/index.d.ts +6 -0
- package/dist/types/banking/program/program/validation/index.js +1 -0
- package/dist/types/banking/program/program/validation/validationServicesSettings.d.ts +13 -0
- package/dist/types/banking/program/program/validation/validationServicesSettings.js +1 -0
- package/dist/types/banking/ticket/info.d.ts +1 -1
- package/dist/types/banking/ticket/ticketdata.d.ts +2 -2
- package/dist/types/banking/transaction/blockchain.d.ts +14 -5
- package/dist/types/banking/transaction/conversion.d.ts +9 -9
- package/dist/types/banking/transaction/exchange.d.ts +5 -5
- package/dist/types/banking/transaction/fee.d.ts +1 -1
- package/dist/types/banking/transaction/index.d.ts +1 -0
- package/dist/types/banking/transaction/info.d.ts +7 -7
- package/dist/types/banking/transaction/paymentGateway.d.ts +9 -0
- package/dist/types/banking/transaction/paymentGateway.js +1 -0
- package/dist/types/banking/transaction/tax.d.ts +2 -1
- package/dist/types/banking/transaction/transactionData.d.ts +5 -4
- package/dist/types/banking/transaction/transactionInquiry.d.ts +1 -0
- package/dist/types/banking/transaction/transactionResultInquiry.d.ts +2 -4
- package/dist/types/banking/user/confirmUserSecurityInfo.d.ts +1 -0
- package/dist/types/banking/user/index.d.ts +1 -0
- package/dist/types/banking/user/personalinfo.d.ts +1 -0
- package/dist/types/banking/user/securityalert.d.ts +12 -0
- package/dist/types/banking/user/securityalert.js +1 -0
- package/dist/types/banking/user/usercreditlimit.d.ts +1 -0
- package/dist/types/banking/user/userdata.d.ts +2 -1
- package/dist/types/banking/user/validateSecurityData.d.ts +1 -2
- package/dist/types/banking/user/validation/validationdata.d.ts +2 -2
- package/dist/types/banking/user/verifySecurityData.d.ts +1 -2
- package/dist/types/banking/user/verifyUserSecurityInfo.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,9 +5,9 @@ declare class AuthProxy extends BaseProxy {
|
|
|
5
5
|
private authService;
|
|
6
6
|
constructor(data: BaseProxyParameters);
|
|
7
7
|
private login;
|
|
8
|
-
loginUserCredentials(data: ILoginUserCredentialsData): Promise<import("../..").ApiResponse<import("../..").
|
|
9
|
-
loginDeviceCredentials(data: ILoginDeviceCredentialsData): Promise<import("../..").ApiResponse<import("../..").
|
|
10
|
-
loginGoogleCredentials(data: ILoginGoogleCredentialsData): Promise<import("../..").ApiResponse<import("../..").
|
|
8
|
+
loginUserCredentials(data: ILoginUserCredentialsData): Promise<import("../..").ApiResponse<import("../..").LoginTokenData>>;
|
|
9
|
+
loginDeviceCredentials(data: ILoginDeviceCredentialsData): Promise<import("../..").ApiResponse<import("../..").LoginTokenData>>;
|
|
10
|
+
loginGoogleCredentials(data: ILoginGoogleCredentialsData): Promise<import("../..").ApiResponse<import("../..").LoginTokenData>>;
|
|
11
11
|
generateLimitedToken(data: IGenerateLimitedTokenData): Promise<import("../..").ApiResponse<import("../..").NodeTokenData>>;
|
|
12
12
|
}
|
|
13
13
|
export { AuthProxy };
|
|
@@ -6,7 +6,7 @@ declare class ProgramProxy extends BaseProxy {
|
|
|
6
6
|
get: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
7
7
|
getSystemFeatures: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
8
8
|
getBin: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
9
|
-
getSignUp: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").
|
|
9
|
+
getSignUp: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").SignupRequirements>>;
|
|
10
10
|
getProgramSecurity: () => Promise<import("../..").ApiResponse<import("../../types/banking/program").ProgramData>>;
|
|
11
11
|
}
|
|
12
12
|
export { ProgramProxy };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BaseService } from "./baseService";
|
|
2
|
-
import type {
|
|
2
|
+
import type { LoginTokenData, NodeTokenData } from "../../types/banking/oauth/tokenData";
|
|
3
3
|
import type { IGenerateLimitedTokenData } from "../../types/api/data/auth";
|
|
4
4
|
import type { AuthServiceParameters } from "../../types/api/service/authService";
|
|
5
5
|
declare class AuthService extends BaseService {
|
|
6
6
|
protected endpoint: string;
|
|
7
7
|
constructor(data: AuthServiceParameters);
|
|
8
|
-
login(data: string): Promise<import("../..").ApiResponse<
|
|
8
|
+
login(data: string): Promise<import("../..").ApiResponse<LoginTokenData>>;
|
|
9
9
|
generateLimitedToken(data: IGenerateLimitedTokenData): Promise<import("../..").ApiResponse<NodeTokenData>>;
|
|
10
10
|
}
|
|
11
11
|
export { AuthService };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseService } from "./baseService";
|
|
2
2
|
import type { ProgramServiceParameter } from "../../types";
|
|
3
|
-
import type { ProgramData } from "../../types/banking/program";
|
|
3
|
+
import type { ProgramData, SignupRequirements } from "../../types/banking/program";
|
|
4
4
|
declare class ProgramService extends BaseService {
|
|
5
5
|
protected endpoint: string;
|
|
6
6
|
private authService;
|
|
@@ -9,7 +9,7 @@ declare class ProgramService extends BaseService {
|
|
|
9
9
|
get(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
10
10
|
getSystemFeatures(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
11
11
|
getBin(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
12
|
-
getSignUp(): Promise<import("../..").ApiResponse<
|
|
12
|
+
getSignUp(): Promise<import("../..").ApiResponse<SignupRequirements>>;
|
|
13
13
|
getProgramSecurity(): Promise<import("../..").ApiResponse<ProgramData>>;
|
|
14
14
|
}
|
|
15
15
|
export { ProgramService };
|
package/dist/helper/geoHelper.js
CHANGED
|
@@ -127,15 +127,15 @@ class GeoHelper {
|
|
|
127
127
|
static toGeoCoordinates(location) {
|
|
128
128
|
const { latitude, longitude, city, country } = location;
|
|
129
129
|
return {
|
|
130
|
-
latitude: latitude ?? 0,
|
|
131
|
-
longitude: longitude ?? 0,
|
|
130
|
+
latitude: (latitude ?? 0).toString(),
|
|
131
|
+
longitude: (longitude ?? 0).toString(),
|
|
132
132
|
position_description: `${city || "N/A"}, ${country || "N/A"}`,
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
static fallbackGeoCoordinates() {
|
|
136
136
|
return {
|
|
137
|
-
latitude: 0,
|
|
138
|
-
longitude: 0,
|
|
137
|
+
latitude: "0",
|
|
138
|
+
longitude: "0",
|
|
139
139
|
position_description: "N/A, N/A",
|
|
140
140
|
};
|
|
141
141
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AccountStatementData, BankAccount, ChainData, CreditLimit, AccountFulfilment, AccountInfo, Limits, Options, Provision, Tokenization, Archive, BaseResult, GeoCoordinates, SimplifiedAccessRule } from "..";
|
|
1
|
+
import { AccountStatementData, BankAccount, ChainData, CreditLimit, AccountFulfilment, AccountInfo, Limits, Options, Provision, Tokenization, Archive, BaseResult, GeoCoordinates, History, SimplifiedAccessRule } from "..";
|
|
2
2
|
type AccountData = BaseResult & {
|
|
3
3
|
info: AccountInfo;
|
|
4
4
|
limits: Limits;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DepositMonthly,
|
|
1
|
+
import { DepositMonthly, DepositYearly, GlobalDailyLimit } from ".";
|
|
2
2
|
type DepositPaymentGateway = {
|
|
3
3
|
monthly: DepositMonthly;
|
|
4
|
-
yearly:
|
|
4
|
+
yearly: DepositYearly;
|
|
5
5
|
daily: GlobalDailyLimit;
|
|
6
6
|
};
|
|
7
7
|
export type { DepositPaymentGateway };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { AccountData, ChainTransactionData, Coin, BlockchainInfo, BaseResult } from "..";
|
|
1
|
+
import { AccountData, ChainData, ChainTransactionData, Coin, BlockchainInfo, BaseResult } from "..";
|
|
2
2
|
type BlockchainData = BaseResult & {
|
|
3
3
|
info: BlockchainInfo;
|
|
4
4
|
account: AccountData;
|
|
5
5
|
fee: Coin;
|
|
6
6
|
transaction_data: ChainTransactionData;
|
|
7
|
+
chain_data: ChainData;
|
|
7
8
|
};
|
|
8
9
|
export type { BlockchainData };
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
type Classification = {
|
|
2
2
|
mcc: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
nature_of_business: number;
|
|
4
|
+
details: string;
|
|
5
5
|
emp_class: string;
|
|
6
6
|
channel_type: string;
|
|
7
7
|
custom: string;
|
|
8
|
+
purpose_of_account: number;
|
|
9
|
+
expected_monthly_spend: number;
|
|
10
|
+
expected_monthly_transaction_volume: number;
|
|
11
|
+
other_purpose_of_account: string;
|
|
8
12
|
};
|
|
9
13
|
export type { Classification };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DeviceCultureInfo, SIMInfo } from "../../..";
|
|
1
|
+
import { AmazonSNSInfo, DeviceCultureInfo, SIMInfo } from "../../..";
|
|
2
2
|
type DeviceExtendedInfo = {
|
|
3
3
|
sim_info: SIMInfo;
|
|
4
4
|
culture_info: DeviceCultureInfo;
|
|
@@ -6,5 +6,6 @@ type DeviceExtendedInfo = {
|
|
|
6
6
|
fingerprint: string;
|
|
7
7
|
cpu: string;
|
|
8
8
|
system_language: string;
|
|
9
|
+
amazon_sns_info: AmazonSNSInfo;
|
|
9
10
|
};
|
|
10
11
|
export type { DeviceExtendedInfo };
|
|
@@ -21,23 +21,22 @@ type NodeTokenData = BaseResult & {
|
|
|
21
21
|
success: boolean;
|
|
22
22
|
error: string;
|
|
23
23
|
};
|
|
24
|
-
type TokenData =
|
|
24
|
+
type TokenData = {
|
|
25
25
|
access_token: string;
|
|
26
26
|
token_type: string;
|
|
27
27
|
expires_in: number;
|
|
28
28
|
cluster_id: string;
|
|
29
29
|
program_id: string;
|
|
30
30
|
user_id: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
user_type: string;
|
|
35
|
-
ip_address: string;
|
|
31
|
+
pos_id: string;
|
|
32
|
+
pos_user_id: string;
|
|
33
|
+
role_id: string;
|
|
36
34
|
jwt_token: string;
|
|
37
35
|
installation_id: string;
|
|
36
|
+
device_id: string;
|
|
38
37
|
device_status: string;
|
|
39
38
|
device_verification_status: string;
|
|
40
39
|
device_encryption_key: string;
|
|
41
|
-
error: string;
|
|
42
40
|
};
|
|
43
|
-
|
|
41
|
+
type LoginTokenData = BaseResult & TokenData;
|
|
42
|
+
export { TokenData, NodeTokenData, LoginTokenData };
|
|
@@ -11,17 +11,17 @@ type OrderInfo = {
|
|
|
11
11
|
encryption_type: number;
|
|
12
12
|
status: number;
|
|
13
13
|
total_amount: string;
|
|
14
|
-
net_amount:
|
|
15
|
-
tax_amount:
|
|
16
|
-
retail_tax_amount:
|
|
17
|
-
discount_amount:
|
|
18
|
-
fee_amount:
|
|
14
|
+
net_amount: string;
|
|
15
|
+
tax_amount: string;
|
|
16
|
+
retail_tax_amount: string;
|
|
17
|
+
discount_amount: string;
|
|
18
|
+
fee_amount: string;
|
|
19
19
|
currency_code: string;
|
|
20
20
|
reserve_expiry_datetime_utc: string;
|
|
21
21
|
refund_expiry_datetime_utc: string;
|
|
22
22
|
server_date: string;
|
|
23
23
|
date_utc: string;
|
|
24
|
-
client_date:
|
|
24
|
+
client_date: string;
|
|
25
25
|
source_time_zone: string;
|
|
26
26
|
source_language: string;
|
|
27
27
|
original_source_id: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomFormData, ItemsInfo,
|
|
1
|
+
import { CustomFormData, ItemsInfo, OrderFulfilmentInfo, Variant, Voucher } from "..";
|
|
2
2
|
import { Result, Notes } from "../../common";
|
|
3
3
|
import { Conversion } from "../../transaction";
|
|
4
4
|
type OrderItem = {
|
|
@@ -8,7 +8,7 @@ type OrderItem = {
|
|
|
8
8
|
voucher: Voucher;
|
|
9
9
|
custom_form_data: CustomFormData;
|
|
10
10
|
conversion: Conversion;
|
|
11
|
-
fulfilment:
|
|
11
|
+
fulfilment: OrderFulfilmentInfo;
|
|
12
12
|
notes: Notes;
|
|
13
13
|
};
|
|
14
14
|
export type { OrderItem };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
type LotteryTicket = {
|
|
2
|
-
id: number;
|
|
3
2
|
order_id: number;
|
|
4
3
|
ticket_no: string;
|
|
5
4
|
pincode: string;
|
|
6
5
|
serial_number: string;
|
|
7
6
|
issue_no: string;
|
|
8
7
|
issue_name: string;
|
|
9
|
-
draw_date
|
|
10
|
-
expiry_date
|
|
8
|
+
draw_date: string;
|
|
9
|
+
expiry_date: string;
|
|
11
10
|
mobile: string;
|
|
12
11
|
email: string;
|
|
13
12
|
qr: string;
|
|
@@ -12,15 +12,15 @@ type Variant = {
|
|
|
12
12
|
quantity: number;
|
|
13
13
|
available_quantity: number;
|
|
14
14
|
picture: string[];
|
|
15
|
-
retail_price:
|
|
16
|
-
tier_price:
|
|
17
|
-
total_retail_price:
|
|
18
|
-
total_amount:
|
|
19
|
-
tax_percentage:
|
|
20
|
-
retail_tax_amount:
|
|
21
|
-
tax_amount:
|
|
22
|
-
fee_amount:
|
|
23
|
-
discount_amount:
|
|
24
|
-
net_amount:
|
|
15
|
+
retail_price: string;
|
|
16
|
+
tier_price: string;
|
|
17
|
+
total_retail_price: string;
|
|
18
|
+
total_amount: string;
|
|
19
|
+
tax_percentage: string;
|
|
20
|
+
retail_tax_amount: string;
|
|
21
|
+
tax_amount: string;
|
|
22
|
+
fee_amount: string;
|
|
23
|
+
discount_amount: string;
|
|
24
|
+
net_amount: string;
|
|
25
25
|
};
|
|
26
26
|
export type { Variant };
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
type SupportedCountriesExtended = {
|
|
2
|
+
Country_Code: number;
|
|
3
|
+
Currency_Code: string;
|
|
4
|
+
Currency_Name: string;
|
|
5
|
+
ISO_A2: string;
|
|
6
|
+
ISO_A3: string;
|
|
7
|
+
Country_Name: string;
|
|
8
|
+
Phone_Code: string;
|
|
9
|
+
Is_Preferred: boolean;
|
|
10
|
+
Supported_Currencies: string[];
|
|
2
11
|
country_code: number;
|
|
3
12
|
currency_code: string;
|
|
4
13
|
currency_name: string;
|
|
@@ -4,5 +4,8 @@ type Identification = {
|
|
|
4
4
|
attach_id: string;
|
|
5
5
|
attach_selfie: string;
|
|
6
6
|
supported_countries: string[];
|
|
7
|
+
show_type_on_signup_with_code_form: boolean;
|
|
8
|
+
show_attach_id_on_signup_with_code_form: boolean;
|
|
9
|
+
show_attach_selfie_on_signup_with_code_form: boolean;
|
|
7
10
|
};
|
|
8
11
|
export type { Identification };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Identification } from "./identification";
|
|
2
|
+
type IdentificationRequirements = {
|
|
3
|
+
identification_requirements_for_user_individual: Identification[];
|
|
4
|
+
identification_requirements_for_organization_individual_group: Identification[];
|
|
5
|
+
identification_requirements_for_organization_business: Identification[];
|
|
6
|
+
};
|
|
7
|
+
export type { IdentificationRequirements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,7 @@ export type * from "./customField";
|
|
|
4
4
|
export type * from "./email";
|
|
5
5
|
export type * from "./group";
|
|
6
6
|
export type * from "./identification";
|
|
7
|
+
export type * from "./identificationRequirements";
|
|
7
8
|
export type * from "./mobileContent";
|
|
8
9
|
export type * from "./mobileContentLocalization";
|
|
9
10
|
export type * from "./mobileLocalization";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
type OrganizationInfo = {
|
|
2
2
|
is_auto_generated_data: number;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
organization_name: string;
|
|
4
|
+
organization_type: string;
|
|
5
|
+
supported_business_type: number[];
|
|
6
|
+
organization_registration_number: string;
|
|
7
7
|
role: string;
|
|
8
8
|
supported_roles: number[];
|
|
9
9
|
address_line1: string;
|
|
@@ -12,5 +12,12 @@ type OrganizationInfo = {
|
|
|
12
12
|
city: string;
|
|
13
13
|
state: string;
|
|
14
14
|
postal_zip_code: string;
|
|
15
|
+
supported_organization_type: number[];
|
|
16
|
+
supported_individual_group_type: number[];
|
|
17
|
+
business_type: string;
|
|
18
|
+
company_name: string;
|
|
19
|
+
company_type: string;
|
|
20
|
+
supported_company_type: number[];
|
|
21
|
+
company_registration_number: string;
|
|
15
22
|
};
|
|
16
23
|
export type { OrganizationInfo };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, Address, CustomField, Email, Group,
|
|
1
|
+
import { Account, Address, CustomField, Email, Group, IdentificationRequirements, OrganizationInfo, PersonalInfo, Phone, UserSignupFormSecurity } from ".";
|
|
2
2
|
type UserSignupForm = {
|
|
3
3
|
user_type: number[];
|
|
4
4
|
organization_info: OrganizationInfo;
|
|
@@ -8,7 +8,7 @@ type UserSignupForm = {
|
|
|
8
8
|
address: Address;
|
|
9
9
|
security: UserSignupFormSecurity;
|
|
10
10
|
account: Account;
|
|
11
|
-
identification:
|
|
11
|
+
identification: IdentificationRequirements;
|
|
12
12
|
group: Group;
|
|
13
13
|
custom_field: CustomField;
|
|
14
14
|
};
|
|
@@ -24,6 +24,7 @@ export type * from "./programSecurity";
|
|
|
24
24
|
export type * from "./screeningOptions";
|
|
25
25
|
export type * from "./securityUserAlert";
|
|
26
26
|
export type * from "./securityUserAlertOptions";
|
|
27
|
+
export type * from "./signupRequirements";
|
|
27
28
|
export type * from "./setup";
|
|
28
29
|
export type * from "./socialMedia";
|
|
29
30
|
export type * from "./status";
|
|
@@ -37,5 +38,6 @@ export type * from "./userContentInformation";
|
|
|
37
38
|
export type * from "./userIdentificationSetup";
|
|
38
39
|
export type * from "./userSystemOptions";
|
|
39
40
|
export type * from "./userVerificationContent";
|
|
41
|
+
export type * from "./validation";
|
|
40
42
|
export type * from "./verificationRequirements";
|
|
41
43
|
export type * from "./webServiceSystemOptions";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { SecurityUserAlertOptions } from ".";
|
|
2
2
|
type SecurityUserAlert = {
|
|
3
3
|
enabled: boolean;
|
|
4
|
+
user_response_options: number[];
|
|
5
|
+
is_open_fraud_ticket_when_denied_by_user: boolean;
|
|
4
6
|
change_password_options: SecurityUserAlertOptions;
|
|
5
7
|
change_security_code_options: SecurityUserAlertOptions;
|
|
6
8
|
change_security_questions_options: SecurityUserAlertOptions;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseResult } from "../../common";
|
|
2
|
+
import { PasswordSettings, TermsConditions, VerificationRequirements, UserSystemOptions, EcommerceSettings } from ".";
|
|
3
|
+
import { Bin } from "../bin";
|
|
4
|
+
import { UserApplication } from "./applicationOptions";
|
|
5
|
+
import { ValidationServicesSettings } from "./validation";
|
|
6
|
+
type SignupRequirements = BaseResult & {
|
|
7
|
+
program_id: number;
|
|
8
|
+
password_settings: PasswordSettings;
|
|
9
|
+
terms_conditions: TermsConditions[];
|
|
10
|
+
bin: Bin[];
|
|
11
|
+
verification_requirements: VerificationRequirements;
|
|
12
|
+
user_system_options: UserSystemOptions;
|
|
13
|
+
ecommerce_settings: EcommerceSettings;
|
|
14
|
+
user_application: UserApplication;
|
|
15
|
+
validation_service_settings: ValidationServicesSettings[];
|
|
16
|
+
};
|
|
17
|
+
export type { SignupRequirements };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type IDVerificationSetup = {
|
|
2
|
+
is_selfie_method_enabled: boolean;
|
|
3
|
+
is_manual_method_enabled: boolean;
|
|
4
|
+
is_ocr_mrz_method_enabled: boolean;
|
|
5
|
+
number_of_mandatory: number;
|
|
6
|
+
max_trials_count_ocr: number;
|
|
7
|
+
max_trials_count_selfie: number;
|
|
8
|
+
max_trials_count_manual: number;
|
|
9
|
+
ocr_supported_countries: string;
|
|
10
|
+
selfie_supported_countries: string;
|
|
11
|
+
manual_supported_countries: string;
|
|
12
|
+
enable_auto_reject_document: boolean;
|
|
13
|
+
};
|
|
14
|
+
export type { IDVerificationSetup };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EnabledServices, CustomerRegistrationSetup, IDVerificationSetup } from ".";
|
|
2
|
+
type Configuration = {
|
|
3
|
+
enabled_services: EnabledServices;
|
|
4
|
+
customer_registration_setup: CustomerRegistrationSetup;
|
|
5
|
+
id_verification_setup: IDVerificationSetup;
|
|
6
|
+
};
|
|
7
|
+
export type { Configuration };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type * from "./advancedConfiguration";
|
|
2
|
+
export type * from "./configuration";
|
|
3
|
+
export type * from "./customerRegistrationSetup";
|
|
4
|
+
export type * from "./enabledServices";
|
|
5
|
+
export type * from "./IDVerificationSetup";
|
|
6
|
+
export type * from "./validationServicesSettings";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SecurityValidationType, ServiceProvider } from "../../../../../constant";
|
|
2
|
+
import { Configuration, AdvancedConfiguration } from ".";
|
|
3
|
+
type ValidationServicesSettings = {
|
|
4
|
+
id: number;
|
|
5
|
+
status: boolean;
|
|
6
|
+
bin_id: number;
|
|
7
|
+
service_provider: ServiceProvider;
|
|
8
|
+
validation_type: SecurityValidationType;
|
|
9
|
+
supported_countries: string;
|
|
10
|
+
configuration: Configuration;
|
|
11
|
+
advanced_configuration: AdvancedConfiguration;
|
|
12
|
+
};
|
|
13
|
+
export type { ValidationServicesSettings };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { AccountInfo, Conversion, TransactionFee, Tax } from "..";
|
|
1
2
|
type TransactionBlockchainData = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
account_info: AccountInfo;
|
|
4
|
+
fee: TransactionFee;
|
|
5
|
+
tax: Tax;
|
|
6
|
+
conversion: Conversion;
|
|
7
|
+
transaction_id: number;
|
|
8
|
+
network_id: number;
|
|
9
|
+
transaction_type: string;
|
|
10
|
+
transaction_hash: string;
|
|
11
|
+
chain_address: string;
|
|
12
|
+
block_number: number;
|
|
13
|
+
memo: string;
|
|
14
|
+
status: string;
|
|
15
|
+
blockchain_datetime_UTC: string;
|
|
7
16
|
};
|
|
8
17
|
export type { TransactionBlockchainData };
|
|
@@ -2,20 +2,20 @@ type Conversion = {
|
|
|
2
2
|
from_currency: string;
|
|
3
3
|
base_currency: string;
|
|
4
4
|
to_currency: string;
|
|
5
|
-
original_amount:
|
|
6
|
-
first_converted_amount:
|
|
7
|
-
first_converted_amount_without_margin:
|
|
8
|
-
converted_amount:
|
|
5
|
+
original_amount: string;
|
|
6
|
+
first_converted_amount: string;
|
|
7
|
+
first_converted_amount_without_margin: string;
|
|
8
|
+
converted_amount: string;
|
|
9
9
|
converted_amount_without_margin: string;
|
|
10
10
|
conversion_type: number;
|
|
11
11
|
ws_setup_id: number;
|
|
12
|
-
currency_rate:
|
|
13
|
-
base_rate:
|
|
14
|
-
second_currency_rate:
|
|
12
|
+
currency_rate: string;
|
|
13
|
+
base_rate: string;
|
|
14
|
+
second_currency_rate: string;
|
|
15
15
|
margin_percent: number;
|
|
16
|
-
margin_amount:
|
|
16
|
+
margin_amount: string;
|
|
17
17
|
second_margin_percent: number;
|
|
18
|
-
second_margin_amount:
|
|
18
|
+
second_margin_amount: string;
|
|
19
19
|
margin_percent_from_base: number;
|
|
20
20
|
};
|
|
21
21
|
export type { Conversion };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
type Exchange = {
|
|
2
2
|
symbol: string;
|
|
3
3
|
pair: string;
|
|
4
|
-
execution_price:
|
|
5
|
-
market_price:
|
|
6
|
-
quantity:
|
|
7
|
-
exchange_fee:
|
|
8
|
-
network_fee:
|
|
4
|
+
execution_price: string;
|
|
5
|
+
market_price: string;
|
|
6
|
+
quantity: string;
|
|
7
|
+
exchange_fee: string;
|
|
8
|
+
network_fee: string;
|
|
9
9
|
};
|
|
10
10
|
export type { Exchange };
|
|
@@ -4,6 +4,7 @@ export type * from "./conversion";
|
|
|
4
4
|
export type * from "./exchange";
|
|
5
5
|
export type * from "./fee";
|
|
6
6
|
export type * from "./info";
|
|
7
|
+
export type * from "./paymentGateway";
|
|
7
8
|
export type * from "./receiverInfo";
|
|
8
9
|
export type * from "./tax";
|
|
9
10
|
export type * from "./transactionData";
|
|
@@ -9,19 +9,19 @@ type TransactionInfo = {
|
|
|
9
9
|
type: number;
|
|
10
10
|
classification: string;
|
|
11
11
|
operation: string;
|
|
12
|
-
amount:
|
|
12
|
+
amount: string;
|
|
13
13
|
currency: string;
|
|
14
|
-
balance:
|
|
15
|
-
available_balance:
|
|
14
|
+
balance: string;
|
|
15
|
+
available_balance: string;
|
|
16
16
|
notes: string;
|
|
17
17
|
original_source_id: string;
|
|
18
18
|
server_date: string;
|
|
19
19
|
date_utc: string;
|
|
20
20
|
auth_date_utc: string;
|
|
21
21
|
post_date_utc: string;
|
|
22
|
-
client_date:
|
|
23
|
-
auth_client_date:
|
|
24
|
-
post_client_date:
|
|
22
|
+
client_date: string;
|
|
23
|
+
auth_client_date: string;
|
|
24
|
+
post_client_date: string;
|
|
25
25
|
source_time_zone: string;
|
|
26
26
|
service_provider: number;
|
|
27
27
|
wallet_identifier: string;
|
|
@@ -29,6 +29,6 @@ type TransactionInfo = {
|
|
|
29
29
|
is_hard_posted: number;
|
|
30
30
|
pos_terminal_entry_mode: string;
|
|
31
31
|
wire_transfer_type: WireTransferType;
|
|
32
|
-
request_id
|
|
32
|
+
request_id: number;
|
|
33
33
|
};
|
|
34
34
|
export type { TransactionInfo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { PaymentCryptoAddress, AccountData, BankAccount, CryptoAddress, CryptoWallet, PaymentInfo, Conversion, CreditCard, Exchange, TransactionFee, Tax, TransactionInfo, Transfer, OrderData, BaseResult, GeoCoordinates, History, TransactionBlockchainData } from "..";
|
|
1
|
+
import { PaymentCryptoAddress, AccountData, BankAccount, CryptoAddress, CryptoWallet, PaymentInfo, Conversion, CreditCard, Exchange, TransactionFee, Tax, TransactionInfo, Transfer, OrderData, BaseResult, GeoCoordinates, History, TransactionBlockchainData, PaymentGateway } from "..";
|
|
2
2
|
type TransactionData = BaseResult & {
|
|
3
3
|
info: TransactionInfo;
|
|
4
4
|
account: AccountData;
|
|
5
|
-
blockchain?: TransactionBlockchainData;
|
|
6
5
|
fee: TransactionFee;
|
|
6
|
+
program_fee: TransactionFee;
|
|
7
7
|
tax: Tax;
|
|
8
8
|
conversion: Conversion;
|
|
9
9
|
exchange: Exchange;
|
|
@@ -13,11 +13,12 @@ type TransactionData = BaseResult & {
|
|
|
13
13
|
bank_account: BankAccount;
|
|
14
14
|
crypto_wallet: CryptoWallet;
|
|
15
15
|
payment_info: PaymentInfo;
|
|
16
|
-
payment_gateway:
|
|
16
|
+
payment_gateway: PaymentGateway;
|
|
17
|
+
blockchain: TransactionBlockchainData;
|
|
17
18
|
crypto_address: CryptoAddress;
|
|
18
19
|
orderData: OrderData;
|
|
19
20
|
payment_crypto_address: PaymentCryptoAddress[];
|
|
20
|
-
custom_field: Record<string,
|
|
21
|
+
custom_field: Record<string, any>;
|
|
21
22
|
geo_coordinates: GeoCoordinates;
|
|
22
23
|
history: History[];
|
|
23
24
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { Archive, BaseResult, ResultSet, TransactionData
|
|
1
|
+
import { Archive, BaseResult, ResultSet, TransactionData } from "..";
|
|
2
2
|
type TransactionResultInquiry = BaseResult & {
|
|
3
3
|
result_set: ResultSet;
|
|
4
|
-
transaction_inquiry: TransactionInquiry;
|
|
5
|
-
end_point_url: string;
|
|
6
4
|
transactions: TransactionData[];
|
|
7
5
|
archive: Archive;
|
|
8
6
|
};
|
|
9
|
-
export { TransactionResultInquiry };
|
|
7
|
+
export type { TransactionResultInquiry };
|
|
@@ -22,6 +22,7 @@ export type * from "./resetSecurityQuestions";
|
|
|
22
22
|
export type * from "./resetUserSecurity";
|
|
23
23
|
export type * from "./resetUserSecurityInfo";
|
|
24
24
|
export type * from "./security";
|
|
25
|
+
export type * from "./securityalert";
|
|
25
26
|
export type * from "./userauthenticationdata";
|
|
26
27
|
export type * from "./usercreditlimit";
|
|
27
28
|
export type * from "./userdata";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccountData, Activity, Address, BankAccount, BaseResult, CreditCard, CryptoAddress, Currency, Device, DeviceHistory, DocumentData, Email, History, ExternalAuthentication, GeneralRequirements, GeoCoordinates, GroupData, Identification, OrganizationData, PersonalInfo, Phone, Preferences, Relationship, UserSecurity, SimplifiedAccessRule, TermsConditions, TicketData, UserAuthenticationData, UserCreditLimit, UserInfo, Commerce, ValidationData, CustomField } from "..";
|
|
1
|
+
import type { AccountData, Activity, Address, BankAccount, BaseResult, CreditCard, CryptoAddress, Currency, Device, DeviceHistory, DocumentData, Email, History, ExternalAuthentication, GeneralRequirements, GeoCoordinates, GroupData, Identification, OrganizationData, PersonalInfo, Phone, Preferences, Relationship, UserSecurity, SimplifiedAccessRule, TermsConditions, TicketData, UserAuthenticationData, UserCreditLimit, UserInfo, Commerce, ValidationData, CustomField, SecurityAlert } from "..";
|
|
2
2
|
type UserData = BaseResult & {
|
|
3
3
|
info: UserInfo;
|
|
4
4
|
personal_info: PersonalInfo;
|
|
@@ -35,5 +35,6 @@ type UserData = BaseResult & {
|
|
|
35
35
|
authentication_data: UserAuthenticationData[];
|
|
36
36
|
crypto_address: CryptoAddress[];
|
|
37
37
|
activity: Activity[];
|
|
38
|
+
security_alert: SecurityAlert[];
|
|
38
39
|
};
|
|
39
40
|
export type { UserData };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ggez-banking-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.18",
|
|
4
4
|
"description": "A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/index.js",
|