@tonder.io/ionic-lite-sdk 0.0.11 → 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/README.md +12 -14
- package/dist/types/responses.d.ts +9 -11
- package/package.json +1 -1
- package/src/types/responses.ts +9 -11
- package/tests/utils/mockClasses.ts +20 -24
package/README.md
CHANGED
|
@@ -470,24 +470,22 @@ const jsonResponseOrder = await liteCheckout.getCustomerCards(
|
|
|
470
470
|
);
|
|
471
471
|
```
|
|
472
472
|
|
|
473
|
-
## Return get customer
|
|
473
|
+
## Return get customer cards
|
|
474
474
|
```typescript
|
|
475
475
|
{
|
|
476
476
|
user_id: number,
|
|
477
|
-
cards:
|
|
478
|
-
|
|
479
|
-
{
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
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
package/src/types/responses.ts
CHANGED
|
@@ -167,17 +167,15 @@ export type TokensResponse = {
|
|
|
167
167
|
export type GetCustomerCardsResponse = {
|
|
168
168
|
user_id: number;
|
|
169
169
|
cards: {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
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
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
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
|
-
|
|
526
|
-
{
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
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
|
}
|