ggez-banking-sdk 0.5.28 → 0.5.30

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.
@@ -69,6 +69,8 @@ class BaseService {
69
69
  headers[HeaderKeys.ShowSensitiveData] = "1";
70
70
  if (flags?.showCustomField)
71
71
  headers[HeaderKeys.ShowCustomField] = "1";
72
+ if (flags?.showTicket)
73
+ headers[HeaderKeys.ShowTicket] = "1";
72
74
  return headers;
73
75
  }
74
76
  }
@@ -15,7 +15,9 @@ class UserService extends BaseService {
15
15
  // #region "GET"
16
16
  async getUser() {
17
17
  const url = this.resolveURL(`/${await this.userId()}`);
18
- return this.GET(url, { flags: { showCustomField: true } });
18
+ return this.GET(url, {
19
+ flags: { showCustomField: true, showTicket: true },
20
+ });
19
21
  }
20
22
  async getTermsAndConditions() {
21
23
  const url = this.resolveURL(`${UserEndpoints.TermsAndConditions}/${await this.userId()}`);
@@ -173,7 +173,7 @@ class UserHelper {
173
173
  case Entity.Entity_Phone:
174
174
  return createDefaultUserData({ phone: [{ ...data[0], id }] });
175
175
  case Entity.Ticket:
176
- return createDefaultUserData({ ticket: [{ ...data[0], id }] });
176
+ return createDefaultUserData({ ticket: [{ ...data }] });
177
177
  case Entity.Account:
178
178
  return createDefaultUserData({ account: [{ ...data[0], id }] });
179
179
  case Entity.Entity_Custom_Field:
@@ -1,5 +1,6 @@
1
1
  type RequestFlag = {
2
2
  showSensitiveData?: boolean;
3
3
  showCustomField?: boolean;
4
+ showTicket?: boolean;
4
5
  };
5
6
  export type { RequestFlag };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ggez-banking-sdk",
3
- "version": "0.5.28",
3
+ "version": "0.5.30",
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",