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

Commit 53e465c

Browse files
committed
Update strings
1 parent e35aad7 commit 53e465c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

app/code/Magento/VaultGraphQl/Model/Resolver/DeletePaymentToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function resolve(
7373
$token = $this->paymentTokenManagement->getByPublicHash($args['public_hash'], $currentUserId);
7474
if (!$token) {
7575
throw new GraphQlNoSuchEntityException(
76-
__('Token could not be found by public hash: %1', $args['public_hash'])
76+
__('Could not find a token using public hash: %1', $args['public_hash'])
7777
);
7878
}
7979

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# VaultGraphQl
22

33
**VaultGraphQl** provides type and resolver information for the GraphQl module
4-
to generate Vault (stored payment information) information endpoints. Also
4+
to generate Vault (stored payment information) information endpoints. This module also
55
provides mutations for modifying a payment token.

app/code/Magento/VaultGraphQl/etc/schema.graphqls

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See COPYING.txt for license details.
33

44
type Mutation {
5-
deletePaymentToken(public_hash: String!): DeletePaymentTokenOutput @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\DeletePaymentToken") @doc(description:"Delete customer Payment Token")
5+
deletePaymentToken(public_hash: String!): DeletePaymentTokenOutput @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\DeletePaymentToken") @doc(description:"Delete a customer payment token")
66
}
77

88
type DeletePaymentTokenOutput {
@@ -11,16 +11,16 @@ type DeletePaymentTokenOutput {
1111
}
1212

1313
type Query {
14-
customerPaymentTokens: CustomerPaymentTokens @doc(description: "List of customer payment tokens") @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens")
14+
customerPaymentTokens: CustomerPaymentTokens @doc(description: "Return a list of customer payment tokens") @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens")
1515
}
1616

1717
type CustomerPaymentTokens @resolver(class: "\\Magento\\VaultGraphQl\\Model\\Resolver\\PaymentTokens") {
1818
items: [PaymentToken]! @doc(description: "An array of payment tokens")
1919
}
2020

21-
type PaymentToken @doc(description: "Stored payment method available to customer") {
22-
public_hash: String! @doc(description: "Token public hash")
23-
payment_method_code: String! @doc(description: "Payment method code associated with token")
21+
type PaymentToken @doc(description: "The stored payment method available to the customer") {
22+
public_hash: String! @doc(description: "The public hash of the token")
23+
payment_method_code: String! @doc(description: "The payment method code associated with the token")
2424
type: PaymentTokenTypeEnum!
2525
details: String @doc(description: "Stored account details")
2626
}

dev/tests/api-functional/testsuite/Magento/GraphQl/Vault/CustomerPaymentTokensTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function testDeletePaymentTokenIfUserIsNotAuthorized()
175175
/**
176176
* @magentoApiDataFixture Magento/Vault/_files/payment_tokens.php
177177
* @expectedException \Exception
178-
* @expectedExceptionMessage GraphQL response contains errors: Token could not be found by public hash: ksdfk392ks
178+
* @expectedExceptionMessage GraphQL response contains errors: Could not find a token using public hash: ksdfk392ks
179179
*/
180180
public function testDeletePaymentTokenInvalidPublicHash()
181181
{

0 commit comments

Comments
 (0)