@tonder.io/ionic-lite-sdk 0.0.6 → 0.0.12

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/.gitlab-ci.yml CHANGED
@@ -20,7 +20,7 @@ deploy:
20
20
  before_script:
21
21
  - |
22
22
  {
23
- echo "@tonder.io:https://registry=//registry.npmjs.org/"
23
+ echo "@tonder.io:registry=https://registry.npmjs.org/"
24
24
  echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}"
25
25
  } | tee -a .npmrc
26
26
  script:
package/README.md CHANGED
@@ -470,24 +470,22 @@ const jsonResponseOrder = await liteCheckout.getCustomerCards(
470
470
  );
471
471
  ```
472
472
 
473
- ## Return get customer card
473
+ ## Return get customer cards
474
474
  ```typescript
475
475
  {
476
476
  user_id: number,
477
- cards: {
478
- records: [
479
- {
480
- fields: {
481
- card_number: string,
482
- cardholder_name: string,
483
- cvv: string,
484
- expiration_month: string,
485
- expiration_year: string,
486
- skyflow_id: string
487
- }
477
+ cards: [
478
+ {
479
+ fields: {
480
+ card_number: string,
481
+ cardholder_name: string,
482
+ cvv: string,
483
+ expiration_month: string,
484
+ expiration_year: string,
485
+ skyflow_id: string
488
486
  }
489
- ]
490
- }
487
+ }
488
+ ]
491
489
  }
492
490
  ```
493
491
 
@@ -159,17 +159,15 @@ export type TokensResponse = {
159
159
  export type GetCustomerCardsResponse = {
160
160
  user_id: number;
161
161
  cards: {
162
- records: {
163
- fields: {
164
- card_number: string;
165
- cardholder_name: string;
166
- cvv: string;
167
- expiration_month: string;
168
- expiration_year: string;
169
- skyflow_id: string;
170
- };
171
- }[];
172
- };
162
+ fields: {
163
+ card_number: string;
164
+ cardholder_name: string;
165
+ cvv: string;
166
+ expiration_month: string;
167
+ expiration_year: string;
168
+ skyflow_id: string;
169
+ };
170
+ }[];
173
171
  };
174
172
  export type RegisterCustomerCardResponse = {
175
173
  skyflow_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonder.io/ionic-lite-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.12",
4
4
  "description": "Tonder ionic lite SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -167,17 +167,15 @@ export type TokensResponse = {
167
167
  export type GetCustomerCardsResponse = {
168
168
  user_id: number;
169
169
  cards: {
170
- records: {
171
- fields: {
172
- card_number: string;
173
- cardholder_name: string;
174
- cvv: string;
175
- expiration_month: string;
176
- expiration_year: string;
177
- skyflow_id: string;
178
- };
179
- }[];
180
- };
170
+ fields: {
171
+ card_number: string;
172
+ cardholder_name: string;
173
+ cvv: string;
174
+ expiration_month: string;
175
+ expiration_year: string;
176
+ skyflow_id: string;
177
+ };
178
+ }[];
181
179
  };
182
180
 
183
181
  export type RegisterCustomerCardResponse = {
@@ -506,35 +506,31 @@ export class RegisterCustomerCardRequestClass
506
506
  export class GetCustomerCardsResponseClass implements GetCustomerCardsResponse {
507
507
  user_id!: number;
508
508
  cards!: {
509
- records: {
510
- fields: {
511
- card_number: string;
512
- cardholder_name: string;
513
- cvv: string;
514
- expiration_month: string;
515
- expiration_year: string;
516
- skyflow_id: string;
517
- };
518
- }[];
519
- };
509
+ fields: {
510
+ card_number: string;
511
+ cardholder_name: string;
512
+ cvv: string;
513
+ expiration_month: string;
514
+ expiration_year: string;
515
+ skyflow_id: string;
516
+ };
517
+ }[];
520
518
 
521
519
  get mockObject(): GetCustomerCardsResponse {
522
520
  return {
523
521
  user_id: 0,
524
- cards: {
525
- records: [
526
- {
527
- fields: {
528
- card_number: "string",
529
- cardholder_name: "string",
530
- cvv: "string",
531
- expiration_month: "string",
532
- expiration_year: "string",
533
- skyflow_id: "string",
534
- },
522
+ cards: [
523
+ {
524
+ fields: {
525
+ card_number: "string",
526
+ cardholder_name: "string",
527
+ cvv: "string",
528
+ expiration_month: "string",
529
+ expiration_year: "string",
530
+ skyflow_id: "string",
535
531
  },
536
- ],
537
- },
532
+ },
533
+ ],
538
534
  };
539
535
  }
540
536
  }