Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Added input attribute for delete payment token mutation #6822

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/_includes/graphql/customer-payment-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The `CustomerPaymentTokens` output object contains an array of `items`.

Attribute | Data Type | Description
--- | --- | ---
`items` | [PaymentToken] | Contains an array of customer payment tokens
`items` | [PaymentToken]! | Contains an array of customer payment tokens

### PaymentToken attributes

Expand All @@ -13,6 +13,6 @@ The `PaymentToken` object defines characteristics of a token stored in the payme
Attribute | Data Type | Description
--- | --- | ---
`details` | String | Stored account details
`payment_method_code` | String | The payment method code associated with the token
`public_hash` | String | The public hash of the token generated by the vault provider
`type` | `PaymentTokenTypeEnum` | `card` or `account`
`payment_method_code` | String! | The payment method code associated with the token
`public_hash` | String! | The public hash of the token generated by the vault provider
`type` | `PaymentTokenTypeEnum!` | `card` or `account`
9 changes: 8 additions & 1 deletion src/guides/v2.3/graphql/mutations/delete-payment-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ mutation {
}
}
```
## Input attributes

The `deletePaymentToken` object must contain the following attributes.

Attribute | Data Type | Description
--- | --- | ---
`public_hash` | `String!` | The public hash of the token

## Output attributes

Expand All @@ -70,7 +77,7 @@ The `DeletePaymentTokenOutput` object returns the result of the operation and de
Attribute | Data Type | Description
--- | --- | ---
`customerPaymentTokens` | `CustomerPaymentTokens` | Contains an array of customer payment tokens
`result` | Boolean | A value of `true` indicates the request was successful
`result` | Boolean! | A value of `true` indicates the request was successful

{% include graphql/customer-payment-tokens.md %}

Expand Down