From 70c77a40a9e4b030834a58f32222a2c48da939ef Mon Sep 17 00:00:00 2001 From: vinoth Date: Tue, 10 Mar 2020 07:43:46 +0530 Subject: [PATCH 1/2] Added input attributes for delete payment Token mutation --- .../v2.3/graphql/mutations/delete-payment-token.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/guides/v2.3/graphql/mutations/delete-payment-token.md b/src/guides/v2.3/graphql/mutations/delete-payment-token.md index 23b71262a6b..dd62c70a93c 100644 --- a/src/guides/v2.3/graphql/mutations/delete-payment-token.md +++ b/src/guides/v2.3/graphql/mutations/delete-payment-token.md @@ -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 @@ -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 %} From 90762eb61ceb7c932a5b8eaa5e0ce021b10b05cf Mon Sep 17 00:00:00 2001 From: vinoth Date: Tue, 10 Mar 2020 07:55:11 +0530 Subject: [PATCH 2/2] Adding non nullable attribute data type --- src/_includes/graphql/customer-payment-tokens.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_includes/graphql/customer-payment-tokens.md b/src/_includes/graphql/customer-payment-tokens.md index 65db8ba43f4..9000c34d476 100644 --- a/src/_includes/graphql/customer-payment-tokens.md +++ b/src/_includes/graphql/customer-payment-tokens.md @@ -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 @@ -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`