Skip to content

Commit

Permalink
Add gitlab ci, tests to get and register user cards methods, models s…
Browse files Browse the repository at this point in the history
…eparation by types, update readme, mockobject to tests classes
  • Loading branch information
rbapdev committed Feb 1, 2024
1 parent e86d4ee commit daf42d1
Show file tree
Hide file tree
Showing 21 changed files with 1,713 additions and 448 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/node_modules
/coverage-ts
.vscode
lib
.env
Expand Down
13 changes: 13 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
image: grupoapok/awscli:18

stages:
- test

test:
stage: test
only:
- development
before_script:
- npm install
script:
- npm run test
50 changes: 50 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,56 @@ const jsonResponseRouter = await liteCheckout.startCheckoutRouter(
}
```

# Customer Cards(Register)

## Register customer card

```typescript

customerToken: string;

data: {
skyflow_id: string;
};

const jsonResponseOrder = await liteCheckout.registerCustomerCard(
customerToken,
data
);
```

## Return register customer card
```typescript
{
skyflow_id: string;
user_id: number;
}
```

# Customer Cards(Get)

## Get customer cards

```typescript

customerToken: string;

query: string;

const jsonResponseOrder = await liteCheckout.getCustomerCards(
customerToken,
query
);
```

## Return get customer card
```typescript
{
skyflow_id: string;
user_id: number;
}
```

Take actions on base to the checkout router response

## License
Expand Down
Loading

0 comments on commit daf42d1

Please sign in to comment.