@tourist-esim/touristesim-nodejs-sdk 1.0.3 → 1.0.4

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.
@@ -31,6 +31,12 @@ export declare class Plan extends Model {
31
31
  getCountries(): string[];
32
32
  getCountriesCount(): number;
33
33
  getRegion(): string | null;
34
+ getNetwork(): {
35
+ operator: string | null;
36
+ speed: string | null;
37
+ } | null;
38
+ getNetworkOperator(): string | null;
39
+ getNetworkSpeed(): string | null;
34
40
  }
35
41
  /**
36
42
  * Country Model
@@ -108,6 +108,15 @@ export class Plan extends Model {
108
108
  getRegion() {
109
109
  return this.get('region', null);
110
110
  }
111
+ getNetwork() {
112
+ return this.get('network', null);
113
+ }
114
+ getNetworkOperator() {
115
+ return this.getNetwork()?.operator ?? null;
116
+ }
117
+ getNetworkSpeed() {
118
+ return this.getNetwork()?.speed ?? null;
119
+ }
111
120
  }
112
121
  /**
113
122
  * Country Model
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tourist-esim/touristesim-nodejs-sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Official Node.js SDK for Tourist eSIM Partner API - Easy integration for resellers and partners",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -127,6 +127,18 @@ export class Plan extends Model {
127
127
  getRegion(): string | null {
128
128
  return this.get('region', null);
129
129
  }
130
+
131
+ getNetwork(): { operator: string | null; speed: string | null } | null {
132
+ return this.get('network', null);
133
+ }
134
+
135
+ getNetworkOperator(): string | null {
136
+ return this.getNetwork()?.operator ?? null;
137
+ }
138
+
139
+ getNetworkSpeed(): string | null {
140
+ return this.getNetwork()?.speed ?? null;
141
+ }
130
142
  }
131
143
 
132
144
  /**