# Namespace: card

## card

The cards class is the way to store card data of your customers safely to improve the shopping experience. This will allow your customers to complete their purchases much faster and easily, since they will not have to complete their card data again. This class must be used in conjunction with the Customer class.

Source:
  - resources/card.js, line 4

### Methods

#### (static) all(customer_id)

Get all saved cards from a customer Click here for more infos

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID

Source:
  - resources/card.js, line 14

#### (static) create(customer_id)

Create a new card for provided Customer ID Click here for more infos

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID

Source:
  - resources/card.js, line 48

#### (static) create(customer_id)

Create a new card for provided Customer ID Click here for more infos

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID

Source:
  - resources/card.js, line 60

#### (static) delete(customer_id)

Delete card from customer id Click here for more infos

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID

Source:
  - resources/card.js, line 81

#### (static) findById(customer_id, id)

Get card from card's id and customer's id

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID
`id` | string | Card ID

Source:
  - resources/card.js, line 39

#### (static) get(customer_id, id)

Get card from card's id and customer's id Click here for more infos

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID
`id` | string | Card ID

Source:
  - resources/card.js, line 26

#### (static) update(customer_id)

Update card from customer id Click here for more infos

##### Parameters:

Name | Type | Description
--- | --- | ---
`customer_id` | string | Customer ID

Source:
  - resources/card.js, line 69