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.
Files changed (94) hide show
  1. package/dist/api/proxy/authProxy.d.ts +3 -3
  2. package/dist/api/proxy/programProxy.d.ts +1 -1
  3. package/dist/api/service/authService.d.ts +2 -2
  4. package/dist/api/service/programService.d.ts +2 -2
  5. package/dist/helper/geoHelper.js +4 -4
  6. package/dist/types/banking/account/accountdata.d.ts +1 -1
  7. package/dist/types/banking/account/info.d.ts +1 -0
  8. package/dist/types/banking/account/limits/deposit.d.ts +1 -0
  9. package/dist/types/banking/account/limits/depositpaymentgateway.d.ts +2 -2
  10. package/dist/types/banking/account/limits/transferreceiving.d.ts +1 -0
  11. package/dist/types/banking/account/limits/transfersending.d.ts +1 -0
  12. package/dist/types/banking/account/limits/withdraw.d.ts +1 -0
  13. package/dist/types/banking/account/options/courier.d.ts +3 -2
  14. package/dist/types/banking/blockchain/blockchainData.d.ts +2 -1
  15. package/dist/types/banking/blockchain/info.d.ts +1 -1
  16. package/dist/types/banking/common/bankextendeddata.d.ts +1 -0
  17. package/dist/types/banking/common/bankingcircledata.d.ts +1 -0
  18. package/dist/types/banking/common/classification.d.ts +6 -2
  19. package/dist/types/banking/common/geocoordinates.d.ts +2 -2
  20. package/dist/types/banking/common/picture.d.ts +1 -0
  21. package/dist/types/banking/common/security/simplifiedaccessrule.d.ts +2 -1
  22. package/dist/types/banking/entities/address.d.ts +0 -2
  23. package/dist/types/banking/entities/json/IdentificationExtraData.d.ts +2 -0
  24. package/dist/types/banking/entities/json/device/amazonsnsinfo.d.ts +7 -0
  25. package/dist/types/banking/entities/json/device/amazonsnsinfo.js +1 -0
  26. package/dist/types/banking/entities/json/device/deviceextendedinfo.d.ts +2 -1
  27. package/dist/types/banking/entities/json/device/index.d.ts +1 -0
  28. package/dist/types/banking/entities/relationship.d.ts +1 -0
  29. package/dist/types/banking/group/groupuser.d.ts +1 -1
  30. package/dist/types/banking/oauth/tokenData.d.ts +7 -8
  31. package/dist/types/banking/order/customForm/ggezGiftRewards.d.ts +1 -1
  32. package/dist/types/banking/order/info.d.ts +6 -6
  33. package/dist/types/banking/order/items/orderItem.d.ts +2 -2
  34. package/dist/types/banking/order/lotteryTicket.d.ts +2 -3
  35. package/dist/types/banking/order/variant.d.ts +10 -10
  36. package/dist/types/banking/organization/details.d.ts +2 -0
  37. package/dist/types/banking/program/bin/deposit.d.ts +1 -0
  38. package/dist/types/banking/program/bin/securityFeatures.d.ts +1 -0
  39. package/dist/types/banking/program/bin/supportedCountriesExtended.d.ts +9 -0
  40. package/dist/types/banking/program/bin/withdraw.d.ts +1 -0
  41. package/dist/types/banking/program/program/applicationOptions/POSApplication.d.ts +1 -1
  42. package/dist/types/banking/program/program/applicationOptions/customField.d.ts +0 -1
  43. package/dist/types/banking/program/program/applicationOptions/identification.d.ts +3 -0
  44. package/dist/types/banking/program/program/applicationOptions/identificationRequirements.d.ts +7 -0
  45. package/dist/types/banking/program/program/applicationOptions/identificationRequirements.js +1 -0
  46. package/dist/types/banking/program/program/applicationOptions/index.d.ts +1 -0
  47. package/dist/types/banking/program/program/applicationOptions/organizationInfo.d.ts +11 -4
  48. package/dist/types/banking/program/program/applicationOptions/userSignupForm.d.ts +2 -2
  49. package/dist/types/banking/program/program/index.d.ts +2 -0
  50. package/dist/types/banking/program/program/info.d.ts +2 -2
  51. package/dist/types/banking/program/program/programData.d.ts +1 -1
  52. package/dist/types/banking/program/program/securityUserAlert.d.ts +2 -0
  53. package/dist/types/banking/program/program/signupRequirements.d.ts +17 -0
  54. package/dist/types/banking/program/program/signupRequirements.js +1 -0
  55. package/dist/types/banking/program/program/validation/IDVerificationSetup.d.ts +14 -0
  56. package/dist/types/banking/program/program/validation/IDVerificationSetup.js +1 -0
  57. package/dist/types/banking/program/program/validation/advancedConfiguration.d.ts +5 -0
  58. package/dist/types/banking/program/program/validation/advancedConfiguration.js +1 -0
  59. package/dist/types/banking/program/program/validation/configuration.d.ts +7 -0
  60. package/dist/types/banking/program/program/validation/configuration.js +1 -0
  61. package/dist/types/banking/program/program/validation/customerRegistrationSetup.d.ts +5 -0
  62. package/dist/types/banking/program/program/validation/customerRegistrationSetup.js +1 -0
  63. package/dist/types/banking/program/program/validation/enabledServices.d.ts +6 -0
  64. package/dist/types/banking/program/program/validation/enabledServices.js +1 -0
  65. package/dist/types/banking/program/program/validation/index.d.ts +6 -0
  66. package/dist/types/banking/program/program/validation/index.js +1 -0
  67. package/dist/types/banking/program/program/validation/validationServicesSettings.d.ts +13 -0
  68. package/dist/types/banking/program/program/validation/validationServicesSettings.js +1 -0
  69. package/dist/types/banking/ticket/info.d.ts +1 -1
  70. package/dist/types/banking/ticket/ticketdata.d.ts +2 -2
  71. package/dist/types/banking/transaction/blockchain.d.ts +14 -5
  72. package/dist/types/banking/transaction/conversion.d.ts +9 -9
  73. package/dist/types/banking/transaction/exchange.d.ts +5 -5
  74. package/dist/types/banking/transaction/fee.d.ts +1 -1
  75. package/dist/types/banking/transaction/index.d.ts +1 -0
  76. package/dist/types/banking/transaction/info.d.ts +7 -7
  77. package/dist/types/banking/transaction/paymentGateway.d.ts +9 -0
  78. package/dist/types/banking/transaction/paymentGateway.js +1 -0
  79. package/dist/types/banking/transaction/tax.d.ts +2 -1
  80. package/dist/types/banking/transaction/transactionData.d.ts +5 -4
  81. package/dist/types/banking/transaction/transactionInquiry.d.ts +1 -0
  82. package/dist/types/banking/transaction/transactionResultInquiry.d.ts +2 -4
  83. package/dist/types/banking/user/confirmUserSecurityInfo.d.ts +1 -0
  84. package/dist/types/banking/user/index.d.ts +1 -0
  85. package/dist/types/banking/user/personalinfo.d.ts +1 -0
  86. package/dist/types/banking/user/securityalert.d.ts +12 -0
  87. package/dist/types/banking/user/securityalert.js +1 -0
  88. package/dist/types/banking/user/usercreditlimit.d.ts +1 -0
  89. package/dist/types/banking/user/userdata.d.ts +2 -1
  90. package/dist/types/banking/user/validateSecurityData.d.ts +1 -2
  91. package/dist/types/banking/user/validation/validationdata.d.ts +2 -2
  92. package/dist/types/banking/user/verifySecurityData.d.ts +1 -2
  93. package/dist/types/banking/user/verifyUserSecurityInfo.d.ts +1 -0
  94. 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("../..").TokenData>>;
9
- loginDeviceCredentials(data: ILoginDeviceCredentialsData): Promise<import("../..").ApiResponse<import("../..").TokenData>>;
10
- loginGoogleCredentials(data: ILoginGoogleCredentialsData): Promise<import("../..").ApiResponse<import("../..").TokenData>>;
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").ProgramData>>;
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 { TokenData, NodeTokenData } from "../../types/banking/oauth/tokenData";
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<TokenData>>;
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<ProgramData>>;
12
+ getSignUp(): Promise<import("../..").ApiResponse<SignupRequirements>>;
13
13
  getProgramSecurity(): Promise<import("../..").ApiResponse<ProgramData>>;
14
14
  }
15
15
  export { ProgramService };
@@ -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;
@@ -28,5 +28,6 @@ type AccountInfo = {
28
28
  source_time_zone: string;
29
29
  security: Security;
30
30
  is_multi_currency: boolean;
31
+ chain_address: string;
31
32
  };
32
33
  export type { AccountInfo };
@@ -9,6 +9,7 @@ type Deposit = {
9
9
  bank_transfer: DailyLimit;
10
10
  check: DailyLimit;
11
11
  payment_gateway: DailyLimit;
12
+ payment_gateway_crypto: DailyLimit;
12
13
  crypto: DailyLimit;
13
14
  };
14
15
  export type { Deposit };
@@ -1,7 +1,7 @@
1
- import { DepositMonthly, GlobalDailyLimit, YearlyLimit } from ".";
1
+ import { DepositMonthly, DepositYearly, GlobalDailyLimit } from ".";
2
2
  type DepositPaymentGateway = {
3
3
  monthly: DepositMonthly;
4
- yearly: YearlyLimit;
4
+ yearly: DepositYearly;
5
5
  daily: GlobalDailyLimit;
6
6
  };
7
7
  export type { DepositPaymentGateway };
@@ -5,5 +5,6 @@ type TransferReceiving = {
5
5
  daily: GlobalDailyLimit;
6
6
  generic_transfer_receive: DailyLimit;
7
7
  general_transfer_receive: DailyLimit;
8
+ blockchain_transfer_receive: DailyLimit;
8
9
  };
9
10
  export type { TransferReceiving };
@@ -5,5 +5,6 @@ type TransferSending = {
5
5
  daily: GlobalDailyLimit;
6
6
  generic_transfer_send: DailyLimit;
7
7
  general_transfer_send: DailyLimit;
8
+ blockchain_transfer_send: DailyLimit;
8
9
  };
9
10
  export type { TransferSending };
@@ -13,6 +13,7 @@ type Withdraw = {
13
13
  withdrawal: DailyLimit;
14
14
  limited_debit: DailyLimit;
15
15
  payment_gateway: DailyLimit;
16
+ payment_gateway_crypto: DailyLimit;
16
17
  crypto: DailyLimit;
17
18
  };
18
19
  export type { Withdraw };
@@ -1,6 +1,7 @@
1
- export interface Courier {
1
+ type Courier = {
2
2
  supplier: string;
3
3
  shipping_method: string;
4
4
  tracking_number: string;
5
5
  estimated_delivery: string;
6
- }
6
+ };
7
+ export type { Courier };
@@ -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 };
@@ -9,7 +9,7 @@ type BlockchainInfo = {
9
9
  memo: string;
10
10
  server_date: string;
11
11
  date_utc: string;
12
- client_date: Date;
12
+ client_date: string;
13
13
  source_time_zone: string;
14
14
  source_id: string;
15
15
  };
@@ -7,5 +7,6 @@ type BankExtendedData = {
7
7
  snb: SNBData;
8
8
  peoples: PeoplesData;
9
9
  banking_circle: BankingCircleData;
10
+ description: string;
10
11
  };
11
12
  export type { BankExtendedData };
@@ -1,4 +1,5 @@
1
1
  type BankingCircleData = {
2
2
  account_id: string;
3
+ auto_credit_settlement: boolean;
3
4
  };
4
5
  export type { BankingCircleData };
@@ -1,9 +1,13 @@
1
1
  type Classification = {
2
2
  mcc: string;
3
- sic: string;
4
- revenue_class: string;
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 };
@@ -1,6 +1,6 @@
1
1
  type GeoCoordinates = {
2
- latitude: number;
3
- longitude: number;
2
+ latitude: string;
3
+ longitude: string;
4
4
  position_description: string;
5
5
  };
6
6
  export type { GeoCoordinates };
@@ -6,6 +6,7 @@ type Picture = {
6
6
  sub_entity: number;
7
7
  sub_entity_id: number;
8
8
  size: number;
9
+ card_info_text_color: string;
9
10
  display_order?: number;
10
11
  mime_type: string;
11
12
  file_url: string;
@@ -1,5 +1,6 @@
1
1
  import { SimplifiedAccessRuleInfo } from ".";
2
- type SimplifiedAccessRule = {
2
+ import type { BaseResult } from "../baseresult";
3
+ type SimplifiedAccessRule = BaseResult & {
3
4
  info: SimplifiedAccessRuleInfo;
4
5
  };
5
6
  export type { SimplifiedAccessRule };
@@ -7,9 +7,7 @@ type Address = {
7
7
  address_line2: string;
8
8
  postal_zip_code: string;
9
9
  country_code: string;
10
- state_region_id: number;
11
10
  state_region: string;
12
- city_id: number;
13
11
  city_town: string;
14
12
  status: number;
15
13
  verification_status: number;
@@ -1,5 +1,7 @@
1
1
  type IdentificationExtraData = {
2
2
  affiliation: string;
3
3
  verification_url_status: number;
4
+ is_risk_recalculation_required: boolean;
5
+ risk_calculated_datetime_utc: string;
4
6
  };
5
7
  export type { IdentificationExtraData };
@@ -0,0 +1,7 @@
1
+ type AmazonSNSInfo = {
2
+ platform: string;
3
+ platform_application_arn: string;
4
+ endpoint_arn: string;
5
+ device_token: string;
6
+ };
7
+ export type { AmazonSNSInfo };
@@ -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 };
@@ -1,2 +1,3 @@
1
+ export type * from "./amazonsnsinfo";
1
2
  export type * from "./deviceextendedinfo";
2
3
  export type * from "./siminfo";
@@ -2,6 +2,7 @@ type Relationship = {
2
2
  id: number;
3
3
  entity: number;
4
4
  entity_id: number;
5
+ user_id: number;
5
6
  entity_name: string;
6
7
  entity_email: string;
7
8
  entity_phone: string;
@@ -11,6 +11,6 @@ type GroupUser = {
11
11
  server_date: string;
12
12
  date_utc: string;
13
13
  update_date_utc: string;
14
- custom_field: Record<string, unknown>;
14
+ custom_field: Record<string, any>;
15
15
  };
16
16
  export type { GroupUser };
@@ -21,23 +21,22 @@ type NodeTokenData = BaseResult & {
21
21
  success: boolean;
22
22
  error: string;
23
23
  };
24
- type TokenData = BaseResult & {
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
- device_id: string;
32
- role: string;
33
- role_type: string;
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
- export { TokenData, NodeTokenData };
41
+ type LoginTokenData = BaseResult & TokenData;
42
+ export { TokenData, NodeTokenData, LoginTokenData };
@@ -7,6 +7,6 @@ type GGEZGiftRewards = {
7
7
  promotion_code: string;
8
8
  claimed_prize_amount: number;
9
9
  claimed_prize_asset: string;
10
- claimed_date: string;
10
+ formatted_claimed_date: string;
11
11
  };
12
12
  export type { GGEZGiftRewards };
@@ -11,17 +11,17 @@ type OrderInfo = {
11
11
  encryption_type: number;
12
12
  status: number;
13
13
  total_amount: string;
14
- net_amount: number;
15
- tax_amount: number;
16
- retail_tax_amount: number;
17
- discount_amount: number;
18
- fee_amount: number;
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: 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, OrderFulfilment, Variant, Voucher } from "..";
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: OrderFulfilment;
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?: Date;
10
- expiry_date?: 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: number;
16
- tier_price: number;
17
- total_retail_price: number;
18
- total_amount: number;
19
- tax_percentage: number;
20
- retail_tax_amount: number;
21
- tax_amount: number;
22
- fee_amount: number;
23
- discount_amount: number;
24
- net_amount: number;
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 };
@@ -3,5 +3,7 @@ type OrganizationDetails = {
3
3
  size: number;
4
4
  registration_number: string;
5
5
  trade_license_number: string;
6
+ ownership_structure: number;
7
+ other_information: string;
6
8
  };
7
9
  export type { OrganizationDetails };
@@ -6,5 +6,6 @@ type Deposit = {
6
6
  bank_transfer: Others;
7
7
  check: Others;
8
8
  refund: Others;
9
+ payment_gateway: DepositGeneral;
9
10
  };
10
11
  export type { Deposit };
@@ -8,5 +8,6 @@ type SecurityFeatures = {
8
8
  service_code_value: string;
9
9
  return_account_pin_code_as_clear_text_on_web_service: boolean;
10
10
  return_card_information_as_image_on_web_service: boolean;
11
+ card_information_image_option: number;
11
12
  };
12
13
  export type { SecurityFeatures };
@@ -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;
@@ -10,5 +10,6 @@ type Withdraw = {
10
10
  cash: WithdrawGeneral;
11
11
  purchase: WithdrawGeneral;
12
12
  balance_inquiry: WithdrawGeneral;
13
+ payment_gateway_crypto_redemption: WithdrawGeneral;
13
14
  };
14
15
  export type { Withdraw };
@@ -5,6 +5,6 @@ type POSApplication = {
5
5
  security: POSMobileSecurity;
6
6
  default_configuration: POSDefaultConfiguration;
7
7
  content: MobileContent[];
8
- update_datetime_utc: string;
8
+ Update_DateTime_UTC: string;
9
9
  };
10
10
  export type { POSApplication };
@@ -4,6 +4,5 @@ type CustomField = {
4
4
  enable_privacy_disclosure: boolean;
5
5
  enable_employee_info: boolean;
6
6
  max_length_of_company_name: number;
7
- enable_customer_onboarding_data: boolean;
8
7
  };
9
8
  export type { CustomField };
@@ -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 };
@@ -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
- company_name: string;
4
- company_type: string;
5
- supported_company_type: number[];
6
- company_registration_number: string;
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, Identification, OrganizationInfo, PersonalInfo, Phone, UserSignupFormSecurity } from ".";
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: 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";
@@ -17,7 +17,7 @@ type Info = {
17
17
  phone_number: string;
18
18
  fax_number: string;
19
19
  masterKey: string;
20
- update_date: Date;
21
- server_date: Date;
20
+ update_date: string;
21
+ server_date: string;
22
22
  };
23
23
  export type { Info };
@@ -3,7 +3,7 @@ import { Content, MobileOptions, ProgramSecurity, SystemFeatures, Info, Ecommerc
3
3
  import { Bin } from "../bin";
4
4
  type ProgramData = BaseResult & {
5
5
  type: number;
6
- bin_id: number;
6
+ bin_id: string;
7
7
  bin_type: string;
8
8
  info: Info;
9
9
  bin: Bin[];
@@ -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,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,5 @@
1
+ type AdvancedConfiguration = {
2
+ is_service_enabled_on_REST_API: boolean;
3
+ action_on_REST_API: string;
4
+ };
5
+ export type { AdvancedConfiguration };
@@ -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,5 @@
1
+ type CustomerRegistrationSetup = {
2
+ is_credit_bureau_enabled: boolean;
3
+ is_address_verification_enabled: boolean;
4
+ };
5
+ export type { CustomerRegistrationSetup };
@@ -0,0 +1,6 @@
1
+ type EnabledServices = {
2
+ is_customer_registration_enabled: boolean;
3
+ is_id_verification_enabled: boolean;
4
+ is_perform_transaction_enabled: boolean;
5
+ };
6
+ export type { EnabledServices };
@@ -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,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 };
@@ -22,7 +22,7 @@ type TicketInfo = {
22
22
  service_method: number;
23
23
  verification_method: number;
24
24
  best_time: string;
25
- notes: string;
25
+ note: string;
26
26
  server_date: string;
27
27
  date_utc: string;
28
28
  client_date: string;
@@ -1,5 +1,5 @@
1
- import type { Content, TicketHistory, TicketInfo } from "..";
2
- type TicketData = {
1
+ import type { BaseResult, Content, TicketHistory, TicketInfo } from "..";
2
+ type TicketData = BaseResult & {
3
3
  info: TicketInfo;
4
4
  content: Content;
5
5
  history: TicketHistory[];
@@ -1,8 +1,17 @@
1
+ import { AccountInfo, Conversion, TransactionFee, Tax } from "..";
1
2
  type TransactionBlockchainData = {
2
- transaction_hash?: string;
3
- network_id?: number;
4
- account_info?: {
5
- id?: number;
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: number;
6
- first_converted_amount: number;
7
- first_converted_amount_without_margin: number;
8
- converted_amount: number;
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: number;
13
- base_rate: number;
14
- second_currency_rate: number;
12
+ currency_rate: string;
13
+ base_rate: string;
14
+ second_currency_rate: string;
15
15
  margin_percent: number;
16
- margin_amount: number;
16
+ margin_amount: string;
17
17
  second_margin_percent: number;
18
- second_margin_amount: number;
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: number;
5
- market_price: number;
6
- quantity: number;
7
- exchange_fee: number;
8
- network_fee: number;
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 };
@@ -1,7 +1,7 @@
1
1
  type TransactionFee = {
2
2
  id: number;
3
3
  fee_definition_id: number;
4
- amount: number;
4
+ amount: string;
5
5
  type: number;
6
6
  operation: string;
7
7
  notes: string;
@@ -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: number;
12
+ amount: string;
13
13
  currency: string;
14
- balance: number;
15
- available_balance: number;
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: Date;
23
- auth_client_date: Date;
24
- post_client_date: 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?: number;
32
+ request_id: number;
33
33
  };
34
34
  export type { TransactionInfo };
@@ -0,0 +1,9 @@
1
+ type PaymentGateway = {
2
+ id: number;
3
+ name: string;
4
+ type: number;
5
+ reference: string;
6
+ status: string;
7
+ url: string;
8
+ };
9
+ export type { PaymentGateway };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,10 @@
1
1
  type Tax = {
2
2
  id: number;
3
3
  tax_definition_id: number;
4
- amount: number;
4
+ amount: string;
5
5
  type: number;
6
6
  operation: string;
7
7
  notes: string;
8
+ balance: string;
8
9
  };
9
10
  export type { Tax };
@@ -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: null;
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, unknown>;
21
+ custom_field: Record<string, any>;
21
22
  geo_coordinates: GeoCoordinates;
22
23
  history: History[];
23
24
  };
@@ -22,5 +22,6 @@ type TransactionInquiry = {
22
22
  time_zone_name: string;
23
23
  time_zone: string;
24
24
  transaction_classification: number;
25
+ organization_id: number;
25
26
  };
26
27
  export type { TransactionInquiry };
@@ -1,9 +1,7 @@
1
- import { Archive, BaseResult, ResultSet, TransactionData, TransactionInquiry } from "..";
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 };
@@ -1,5 +1,6 @@
1
1
  type ConfirmUserSecurityInfo = {
2
2
  id: number;
3
+ alert_id: number;
3
4
  program_id: number;
4
5
  user_id: number;
5
6
  type: number;
@@ -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";
@@ -3,6 +3,7 @@ type PersonalInfo = {
3
3
  first_name: string;
4
4
  last_name: string;
5
5
  nick_name: string;
6
+ company_name: string;
6
7
  job_title: string;
7
8
  gender: string;
8
9
  date_of_birth: string;
@@ -0,0 +1,12 @@
1
+ type SecurityAlert = {
2
+ alert_id: number;
3
+ program_id: number;
4
+ user_id: number;
5
+ type: number;
6
+ status: number;
7
+ source_id: string;
8
+ server_date: string;
9
+ date_utc: string;
10
+ source_time_zone: string;
11
+ };
12
+ export type { SecurityAlert };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,6 @@
1
1
  type UserCreditLimit = {
2
2
  limit: number;
3
3
  currency: string;
4
+ limit_emergency: number;
4
5
  };
5
6
  export type { UserCreditLimit };
@@ -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 };
@@ -1,5 +1,4 @@
1
- import type { BaseResult } from "..";
2
- type ValidateSecurityData = BaseResult & {
1
+ type ValidateSecurityData = {
3
2
  password: string;
4
3
  security_code: string;
5
4
  email: string;
@@ -1,6 +1,6 @@
1
1
  import { ValidationInfo } from "..";
2
- import { GeoCoordinates } from "../..";
3
- type ValidationData = {
2
+ import { BaseResult, GeoCoordinates } from "../..";
3
+ type ValidationData = BaseResult & {
4
4
  info: ValidationInfo;
5
5
  geo_coordinates: GeoCoordinates;
6
6
  };
@@ -1,6 +1,5 @@
1
- import type { BaseResult } from "..";
2
1
  import type { Email, Phone, Device } from "../entities";
3
- type VerifySecurityData = BaseResult & {
2
+ type VerifySecurityData = {
4
3
  username: string;
5
4
  email: Email;
6
5
  phone: Phone;
@@ -1,5 +1,6 @@
1
1
  type VerifyUserSecurityInfo = {
2
2
  id: number;
3
+ alert_id: number;
3
4
  program_id: number;
4
5
  user_id: number;
5
6
  pos_id: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.5.14",
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",