ggez-banking-sdk 0.1.106 → 0.1.108

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 (91) hide show
  1. package/dist/api/clients/account.d.ts +8 -8
  2. package/dist/api/clients/account.js +26 -19
  3. package/dist/api/clients/auth.d.ts +22 -17
  4. package/dist/api/clients/auth.js +57 -42
  5. package/dist/api/clients/blockchain.d.ts +16 -16
  6. package/dist/api/clients/blockchain.js +52 -42
  7. package/dist/api/clients/ipAddressAndLocation.js +15 -13
  8. package/dist/api/clients/limited.d.ts +42 -32
  9. package/dist/api/clients/limited.js +100 -82
  10. package/dist/api/clients/order.d.ts +4 -4
  11. package/dist/api/clients/order.js +16 -12
  12. package/dist/api/clients/organization.d.ts +23 -18
  13. package/dist/api/clients/organization.js +57 -45
  14. package/dist/api/clients/promotion.d.ts +28 -13
  15. package/dist/api/clients/promotion.js +32 -30
  16. package/dist/api/clients/transaction.d.ts +9 -9
  17. package/dist/api/clients/transaction.js +30 -24
  18. package/dist/api/clients/user.d.ts +382 -301
  19. package/dist/api/clients/user.js +886 -735
  20. package/dist/api/data/account.d.ts +3 -0
  21. package/dist/api/data/account.js +8 -0
  22. package/dist/api/data/blockchain.d.ts +2 -1
  23. package/dist/api/data/blockchain.js +11 -1
  24. package/dist/api/data/index.d.ts +2 -0
  25. package/dist/api/data/index.js +2 -0
  26. package/dist/api/data/order.d.ts +2 -1
  27. package/dist/api/data/order.js +15 -1
  28. package/dist/api/data/organization.d.ts +2 -1
  29. package/dist/api/data/organization.js +26 -1
  30. package/dist/api/data/result.d.ts +9 -0
  31. package/dist/api/data/result.js +48 -0
  32. package/dist/api/data/transaction.d.ts +4 -2
  33. package/dist/api/data/transaction.js +24 -1
  34. package/dist/api/data/user/confirmUserSecurity.d.ts +3 -0
  35. package/dist/api/data/user/confirmUserSecurity.js +12 -0
  36. package/dist/api/data/user/document.d.ts +2 -1
  37. package/dist/api/data/user/document.js +8 -1
  38. package/dist/api/data/user/forgetSecurityData.d.ts +3 -0
  39. package/dist/api/data/user/forgetSecurityData.js +10 -0
  40. package/dist/api/data/user/index.d.ts +8 -8
  41. package/dist/api/data/user/index.js +8 -161
  42. package/dist/api/data/user/user.d.ts +6 -0
  43. package/dist/api/data/user/user.js +159 -0
  44. package/dist/api/data/user/validateLimitedSecurity.d.ts +3 -0
  45. package/dist/api/data/user/validateLimitedSecurity.js +10 -0
  46. package/dist/api/data/user/validateSecurityData.d.ts +3 -0
  47. package/dist/api/data/user/validateSecurityData.js +11 -0
  48. package/dist/api/data/user/verifyUserSecurity.d.ts +3 -0
  49. package/dist/api/data/user/verifyUserSecurity.js +11 -0
  50. package/dist/api/services/account.js +1 -1
  51. package/dist/api/services/auth.js +4 -5
  52. package/dist/api/services/base.d.ts +1 -1
  53. package/dist/api/services/base.js +1 -0
  54. package/dist/api/services/blockchain.js +5 -9
  55. package/dist/api/services/ipAddressAndLocation.js +10 -10
  56. package/dist/api/services/limited.js +2 -1
  57. package/dist/api/services/order.js +2 -3
  58. package/dist/api/services/organization.d.ts +2 -2
  59. package/dist/api/services/organization.js +7 -10
  60. package/dist/api/services/promotion.js +1 -1
  61. package/dist/api/services/transaction.d.ts +2 -2
  62. package/dist/api/services/transaction.js +3 -5
  63. package/dist/api/services/user.js +65 -127
  64. package/dist/constants/structure.d.ts +1 -0
  65. package/dist/constants/structure.js +1 -0
  66. package/dist/helper/api/axiosHelper.js +71 -71
  67. package/dist/helper/api/responseHelper.d.ts +12 -11
  68. package/dist/helper/api/responseHelper.js +24 -25
  69. package/dist/helper/cipherHelper.js +95 -97
  70. package/dist/helper/clientHelper.js +1 -0
  71. package/dist/helper/cookiesHelper.d.ts +5 -0
  72. package/dist/helper/cookiesHelper.js +169 -126
  73. package/dist/helper/deviceHelper.js +31 -31
  74. package/dist/helper/userHelper.d.ts +12 -2
  75. package/dist/helper/userHelper.js +69 -2
  76. package/dist/index.d.ts +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/tsconfig.tsbuildinfo +1 -1
  79. package/dist/types/banking/common/ResultSet.d.ts +10 -0
  80. package/dist/types/banking/common/ResultSet.js +1 -0
  81. package/dist/types/banking/common/index.d.ts +1 -0
  82. package/dist/types/banking/entities/address.d.ts +1 -0
  83. package/dist/types/banking/oauth/tokenData.d.ts +3 -1
  84. package/dist/types/banking/transaction/index.d.ts +1 -0
  85. package/dist/types/banking/transaction/transactionResultInquiry.d.ts +9 -0
  86. package/dist/types/banking/transaction/transactionResultInquiry.js +1 -0
  87. package/dist/types/helper/index.d.ts +4 -3
  88. package/dist/types/helper/index.js +1 -3
  89. package/dist/types/helper/userHelper.d.ts +17 -0
  90. package/dist/types/helper/userHelper.js +2 -0
  91. package/package.json +2 -2
@@ -0,0 +1,159 @@
1
+ import { DeviceType, EntityStatus, EntityVerificationStatus, Gender, PhoneNumberTypes, SecurityAuthenticationTypes, SecurityLoginType, Titles, } from "../../../constants";
2
+ import { ClientHelper, DateTimeHelper } from "../../../helper";
3
+ export { FillUserData, FillCreateUserData, FillCreateUserWithGoogleData };
4
+ const FillUserData = (key, value) => {
5
+ const userData = {
6
+ result: null,
7
+ info: null,
8
+ personal_info: null,
9
+ address: null,
10
+ addresses: [],
11
+ email: [],
12
+ phone: [],
13
+ security: null,
14
+ preferences: null,
15
+ identification: [],
16
+ bank_account: [],
17
+ credit_card: null,
18
+ notification: null,
19
+ documents: [],
20
+ currency: [],
21
+ credit_limit: null,
22
+ account: [],
23
+ group: null,
24
+ terms_conditions: null,
25
+ device_info: null,
26
+ device: [],
27
+ device_history: [],
28
+ commerce: null,
29
+ external_auth: null,
30
+ validation_data: null,
31
+ relationship: null,
32
+ custom_field: null,
33
+ history: null,
34
+ access_rule: null,
35
+ ticket: null,
36
+ general_requirements: null,
37
+ organization: [],
38
+ authentication_data: [],
39
+ crypto_address: null,
40
+ activity: null,
41
+ notes: null,
42
+ last_activity: null,
43
+ authentication: null,
44
+ validate: null,
45
+ function_code: null,
46
+ response_time: null,
47
+ geo_coordinates: null,
48
+ time_zone: null,
49
+ time_zone_name: null,
50
+ };
51
+ userData[key] = value;
52
+ return userData;
53
+ };
54
+ const FillCreateUserData = (data) => {
55
+ const clientHelper = new ClientHelper();
56
+ const userData = {
57
+ info: {
58
+ type: data.userType,
59
+ },
60
+ personal_info: {
61
+ title: data.gender == Gender.Male ? Titles.Mr : Titles.Miss,
62
+ first_name: data.firstName,
63
+ last_name: data.lastName,
64
+ date_of_birth: data.dateOfBirth,
65
+ gender: data.gender,
66
+ verification_status: EntityVerificationStatus.Verified,
67
+ },
68
+ address: {
69
+ country_code: data.country,
70
+ state_region: data.state,
71
+ verification_status: EntityVerificationStatus.Not_Verified,
72
+ },
73
+ email: [
74
+ {
75
+ id: 0,
76
+ address: data.email,
77
+ is_primary: 1,
78
+ verification_status: EntityVerificationStatus.Verified,
79
+ },
80
+ ],
81
+ phone: [
82
+ {
83
+ id: 0,
84
+ type: PhoneNumberTypes.Mobile,
85
+ country_code: data.mobileNumberCountry,
86
+ number: data.mobileNumber,
87
+ is_primary: 1,
88
+ verification_status: data.isMobileConfirmed
89
+ ? EntityVerificationStatus.Verified
90
+ : EntityVerificationStatus.Not_Verified,
91
+ },
92
+ ],
93
+ authentication: [
94
+ {
95
+ type: SecurityAuthenticationTypes.Email_Code,
96
+ code: data.emailAuthenticationCode,
97
+ },
98
+ data.isMobileConfirmed &&
99
+ !!data.mobileAuthenticationCode && {
100
+ type: SecurityAuthenticationTypes.SMS_Code,
101
+ code: data.mobileAuthenticationCode,
102
+ },
103
+ ],
104
+ security: {
105
+ password: data.password,
106
+ security_code: data.securityCode,
107
+ },
108
+ preferences: {
109
+ preferred_language_code: data.preferredLanguageCode,
110
+ enable_promotion_notification: "1",
111
+ enable_email_notification: "1",
112
+ enable_sms_notification: "1",
113
+ enable_push_notification: "1",
114
+ enable_device_authentication: "1",
115
+ time_zone: DateTimeHelper.GetClientTimeZone(),
116
+ },
117
+ currency: [
118
+ {
119
+ id: 0,
120
+ code: data.currency,
121
+ is_primary: 0,
122
+ },
123
+ ],
124
+ terms_conditions: {
125
+ id: 0,
126
+ acceptance: "1",
127
+ },
128
+ device: [
129
+ {
130
+ type: DeviceType.Browser,
131
+ brand: `${clientHelper.getBrowser()}-${clientHelper.getBrowserVersion()}`,
132
+ os: clientHelper.getOS(),
133
+ status: EntityStatus.Active,
134
+ verification_status: data.deviceVerificationStatus,
135
+ installation_id: data.installationID,
136
+ extended_info: {
137
+ cpu: clientHelper.getCPU(),
138
+ system_language: clientHelper.getSystemLanguage(),
139
+ user_agent: clientHelper.getUserAgent(),
140
+ },
141
+ },
142
+ ],
143
+ custom_field: data.customField,
144
+ };
145
+ return userData;
146
+ };
147
+ const FillCreateUserWithGoogleData = (data) => {
148
+ const userData = FillCreateUserData(data);
149
+ const externalAuth = {
150
+ id: 0,
151
+ login_id: data.loginId,
152
+ token: data.token,
153
+ status: EntityStatus.Active,
154
+ type: SecurityLoginType.Google,
155
+ verification_status: EntityVerificationStatus.Verified,
156
+ };
157
+ userData.external_auth = [externalAuth];
158
+ return userData;
159
+ };
@@ -0,0 +1,3 @@
1
+ import { ValidateLimitedSecurity } from "../../../types";
2
+ declare const FillValidateLimitedSecurityData: <K extends keyof ValidateLimitedSecurity>(key: K, value: ValidateLimitedSecurity[K]) => ValidateLimitedSecurity;
3
+ export { FillValidateLimitedSecurityData };
@@ -0,0 +1,10 @@
1
+ const FillValidateLimitedSecurityData = (key, value) => {
2
+ const forgetSecurityData = {
3
+ result: null,
4
+ info: null,
5
+ security: null,
6
+ };
7
+ forgetSecurityData[key] = value;
8
+ return forgetSecurityData;
9
+ };
10
+ export { FillValidateLimitedSecurityData };
@@ -0,0 +1,3 @@
1
+ import { ValidateUserSecurity } from "../../../types";
2
+ declare const FillValidateSecurityData: <K extends keyof ValidateUserSecurity>(key: K, value: ValidateUserSecurity[K]) => ValidateUserSecurity;
3
+ export { FillValidateSecurityData };
@@ -0,0 +1,11 @@
1
+ const FillValidateSecurityData = (key, value) => {
2
+ const forgetSecurityData = {
3
+ result: null,
4
+ info: null,
5
+ validate_data: null,
6
+ geo_coordinates: null,
7
+ };
8
+ forgetSecurityData[key] = value;
9
+ return forgetSecurityData;
10
+ };
11
+ export { FillValidateSecurityData };
@@ -0,0 +1,3 @@
1
+ import { VerifyUserSecurity } from "../../../types";
2
+ declare const FillVerifyUserSecurityData: <K extends keyof VerifyUserSecurity>(key: K, value: VerifyUserSecurity[K]) => VerifyUserSecurity;
3
+ export { FillVerifyUserSecurityData };
@@ -0,0 +1,11 @@
1
+ const FillVerifyUserSecurityData = (key, value) => {
2
+ const validateSecurityData = {
3
+ result: null,
4
+ info: null,
5
+ verify_data: null,
6
+ geo_coordinates: null,
7
+ };
8
+ validateSecurityData[key] = value;
9
+ return validateSecurityData;
10
+ };
11
+ export { FillVerifyUserSecurityData };
@@ -4,9 +4,9 @@ import { IPAddressAndLocationService } from "..";
4
4
  import { GeoHelper } from "../../helper";
5
5
  import { AxiosHelper } from "../../helper";
6
6
  class AccountService extends BaseService {
7
+ endpoint = Endpoints.Account;
7
8
  constructor(config) {
8
9
  super(config);
9
- this.endpoint = Endpoints.Account;
10
10
  this.axiosInstance.interceptors.request.use(async (req) => {
11
11
  const locationService = new IPAddressAndLocationService(config);
12
12
  const geoCoordinates = await GeoHelper.GetGeoCoordinates(locationService);
@@ -1,20 +1,19 @@
1
1
  import { Endpoints } from "../../constants";
2
2
  import { BaseService } from "./base";
3
3
  class AuthService extends BaseService {
4
+ nodeUrl;
5
+ endpoint = Endpoints.Auth;
4
6
  constructor(config, nodeUrl) {
5
7
  super(config);
6
- this.endpoint = Endpoints.Auth;
7
8
  this.nodeUrl = nodeUrl;
8
9
  }
9
10
  // #region "POST"
10
11
  async login(data) {
11
12
  const url = this.resolveURL();
12
- const response = await this.POST(url, data);
13
- return response;
13
+ return this.POST(url, data);
14
14
  }
15
15
  async generateLimitedToken(data) {
16
- const response = await this.POST(`${this.nodeUrl}/v1/limited-token`, data);
17
- return response;
16
+ return this.POST(`${this.nodeUrl}/v1/limited-token`, data);
18
17
  }
19
18
  }
20
19
  export { AuthService };
@@ -3,7 +3,7 @@ declare abstract class BaseService {
3
3
  protected axiosInstance: AxiosInstance;
4
4
  protected abstract endpoint: string;
5
5
  constructor(config: AxiosRequestConfig);
6
- protected resolveURL(path?: string): string;
6
+ protected resolveURL(path?: any): string;
7
7
  protected GET<T>(url: string, params?: any, config?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
8
8
  protected POST<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
9
9
  protected PUT<T>(url: string, data: any, config?: AxiosRequestConfig): Promise<AxiosResponse<T, any, {}>>;
@@ -1,6 +1,7 @@
1
1
  import axios from "axios";
2
2
  import { AxiosHelper } from "../../helper";
3
3
  class BaseService {
4
+ axiosInstance;
4
5
  constructor(config) {
5
6
  this.axiosInstance = axios.create(config);
6
7
  this.axiosInstance.interceptors.request.use((req) => {
@@ -1,30 +1,26 @@
1
1
  import { Endpoints } from "../../constants";
2
2
  import { BaseService } from "./base";
3
3
  class BlockchainService extends BaseService {
4
+ endpoint = Endpoints.Blockchain;
4
5
  constructor(config) {
5
6
  super(config);
6
- this.endpoint = Endpoints.Blockchain;
7
7
  }
8
8
  // #region "POST"
9
9
  async send(payload) {
10
10
  const url = this.resolveURL();
11
- const response = await this.POST(url, payload);
12
- return response;
11
+ return this.POST(url, payload);
13
12
  }
14
13
  async multiSend(payload) {
15
14
  const url = this.resolveURL();
16
- const response = await this.POST(url, payload);
17
- return response;
15
+ return this.POST(url, payload);
18
16
  }
19
17
  async delegate(payload) {
20
18
  const url = this.resolveURL();
21
- const response = await this.POST(url, payload);
22
- return response;
19
+ return this.POST(url, payload);
23
20
  }
24
21
  async undelegate(payload) {
25
22
  const url = this.resolveURL();
26
- const response = await this.POST(url, payload);
27
- return response;
23
+ return this.POST(url, payload);
28
24
  }
29
25
  }
30
26
  export { BlockchainService };
@@ -1,18 +1,18 @@
1
1
  import { BaseService } from "./base";
2
2
  import { Endpoints } from "../../constants";
3
3
  class IPAddressAndLocationService extends BaseService {
4
+ endpoint = Endpoints.IPAddress;
4
5
  constructor(config) {
5
6
  super(config);
6
- this.endpoint = Endpoints.IPAddress;
7
- // #region "GET"
8
- this.getIPAddressAndLocation = async () => {
9
- try {
10
- return this.GET(this.endpoint);
11
- }
12
- catch (error) {
13
- // console.error(error);
14
- }
15
- };
16
7
  }
8
+ // #region "GET"
9
+ getIPAddressAndLocation = async () => {
10
+ try {
11
+ return this.GET(this.endpoint);
12
+ }
13
+ catch (error) {
14
+ // console.error(error);
15
+ }
16
+ };
17
17
  }
18
18
  export { IPAddressAndLocationService };
@@ -3,9 +3,10 @@ import { BaseService } from "./base";
3
3
  import { AuthService } from "./auth";
4
4
  import { AxiosHelper } from "../../helper";
5
5
  class LimitedService extends BaseService {
6
+ endpoint = Endpoints.Limited;
7
+ nodeUrl;
6
8
  constructor(config, nodeUrl) {
7
9
  super(config);
8
- this.endpoint = Endpoints.Limited;
9
10
  this.nodeUrl = nodeUrl;
10
11
  this.axiosInstance.interceptors.request.use(async (req) => {
11
12
  const config = AxiosHelper.GetAuthAxiosConfig(this.nodeUrl, "", "");
@@ -4,9 +4,9 @@ import { IPAddressAndLocationService } from "..";
4
4
  import { GeoHelper } from "../../helper";
5
5
  import { AxiosHelper } from "../../helper";
6
6
  class OrderService extends BaseService {
7
+ endpoint = Endpoints.Order;
7
8
  constructor(config) {
8
9
  super(config);
9
- this.endpoint = Endpoints.Order;
10
10
  this.axiosInstance.interceptors.request.use(async (req) => {
11
11
  const locationService = new IPAddressAndLocationService(config);
12
12
  const geoCoordinates = await GeoHelper.GetGeoCoordinates(locationService);
@@ -17,8 +17,7 @@ class OrderService extends BaseService {
17
17
  // #region "POST"
18
18
  async create(data) {
19
19
  const url = this.resolveURL();
20
- const response = await this.POST(url, data);
21
- return response;
20
+ return this.POST(url, data);
22
21
  }
23
22
  }
24
23
  export { OrderService };
@@ -6,8 +6,8 @@ declare class OrganizationService extends BaseService {
6
6
  endpoint: string;
7
7
  constructor(config: AxiosRequestConfig);
8
8
  create(data: OrganizationData): Promise<import("axios").AxiosResponse<OrganizationData, any, {}>>;
9
- createDocument(id: string, data: DocumentData): Promise<import("axios").AxiosResponse<DocumentData, any, {}>>;
10
- update(id: string, data: OrganizationData): Promise<import("axios").AxiosResponse<OrganizationData, any, {}>>;
9
+ createDocument(id: number, data: DocumentData): Promise<import("axios").AxiosResponse<DocumentData, any, {}>>;
10
+ update(id: number, data: OrganizationData): Promise<import("axios").AxiosResponse<OrganizationData, any, {}>>;
11
11
  delete(id: number): Promise<import("axios").AxiosResponse<OrganizationData, any, {}>>;
12
12
  }
13
13
  export { OrganizationService };
@@ -4,9 +4,10 @@ import { IPAddressAndLocationService } from "..";
4
4
  import { GeoHelper } from "../../helper";
5
5
  import { AxiosHelper } from "../../helper";
6
6
  class OrganizationService extends BaseService {
7
+ url;
8
+ endpoint = Endpoints.Organization;
7
9
  constructor(config) {
8
10
  super(config);
9
- this.endpoint = Endpoints.Organization;
10
11
  this.axiosInstance.interceptors.request.use(async (req) => {
11
12
  const locationService = new IPAddressAndLocationService(config);
12
13
  const geoCoordinates = await GeoHelper.GetGeoCoordinates(locationService);
@@ -17,27 +18,23 @@ class OrganizationService extends BaseService {
17
18
  // #region "POST"
18
19
  async create(data) {
19
20
  const url = this.resolveURL();
20
- const response = await this.POST(url, data);
21
- return response;
21
+ return this.POST(url, data);
22
22
  }
23
23
  async createDocument(id, data) {
24
24
  const url = this.resolveURL(`${OrganizationEndpoints.Document}/${id}`);
25
- const response = await this.POST(url, data);
26
- return response;
25
+ return this.POST(url, data);
27
26
  }
28
27
  // #endregion
29
28
  // #region "PUT"
30
29
  async update(id, data) {
31
30
  const url = this.resolveURL(id);
32
- const response = await this.PUT(url, data);
33
- return response;
31
+ return this.PUT(url, data);
34
32
  }
35
33
  // #endregion
36
34
  // #region "DELETE"
37
35
  async delete(id) {
38
- const url = this.resolveURL(id.toString());
39
- const response = await this.DELETE(url);
40
- return response;
36
+ const url = this.resolveURL(id);
37
+ return this.DELETE(url);
41
38
  }
42
39
  }
43
40
  export { OrganizationService };
@@ -1,9 +1,9 @@
1
1
  import { Endpoints } from "../../constants";
2
2
  import { BaseService } from "./base";
3
3
  class PromotionService extends BaseService {
4
+ endpoint = Endpoints.Promotion;
4
5
  constructor(config) {
5
6
  super(config);
6
- this.endpoint = Endpoints.Promotion;
7
7
  }
8
8
  // #region "GET"
9
9
  async getPromotionByCode(promotionCode) {
@@ -1,10 +1,10 @@
1
1
  import { AxiosRequestConfig } from "axios";
2
2
  import { BaseService } from "./base";
3
- import type { TransactionData, TransactionInquiry } from "../../types";
3
+ import type { TransactionData, TransactionInquiry, TransactionResultInquiry } from "../../types";
4
4
  declare class TransactionService extends BaseService {
5
5
  endpoint: string;
6
6
  constructor(config: AxiosRequestConfig);
7
- inquiry(payload: TransactionInquiry): Promise<import("axios").AxiosResponse<TransactionInquiry, any, {}>>;
7
+ inquiry(payload: TransactionInquiry): Promise<import("axios").AxiosResponse<TransactionResultInquiry, any, {}>>;
8
8
  create(payload: TransactionData): Promise<import("axios").AxiosResponse<TransactionData, any, {}>>;
9
9
  }
10
10
  export { TransactionService };
@@ -4,9 +4,9 @@ import { IPAddressAndLocationService } from "..";
4
4
  import { GeoHelper } from "../../helper";
5
5
  import { AxiosHelper } from "../../helper";
6
6
  class TransactionService extends BaseService {
7
+ endpoint = Endpoints.Transaction;
7
8
  constructor(config) {
8
9
  super(config);
9
- this.endpoint = Endpoints.Transaction;
10
10
  this.axiosInstance.interceptors.request.use(async (req) => {
11
11
  const locationService = new IPAddressAndLocationService(config);
12
12
  const geoCoordinates = await GeoHelper.GetGeoCoordinates(locationService);
@@ -17,15 +17,13 @@ class TransactionService extends BaseService {
17
17
  // #region "GET"
18
18
  async inquiry(payload) {
19
19
  const url = this.resolveURL("/inquiry");
20
- const response = await this.GET(url, payload);
21
- return response;
20
+ return this.GET(url, payload);
22
21
  }
23
22
  // #endregion
24
23
  // #region "POST"
25
24
  async create(payload) {
26
25
  const url = this.resolveURL();
27
- const response = await this.POST(url, payload);
28
- return response;
26
+ return this.POST(url, payload);
29
27
  }
30
28
  }
31
29
  export { TransactionService };