Commit 202f89b6 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Add additional fields to paymentMethod field

parent 3c4592bb
......@@ -37,7 +37,6 @@ export function writeInitialDataToApolloCache(apolloProvider, dataset) {
creditCardExpirationYear: null,
creditCardType: null,
creditCardMaskNumber: null,
// eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'PaymentMethod',
},
customer: {
......
......@@ -17,7 +17,13 @@ query State {
zipCode
company
}
paymentMethod @client
paymentMethod @client {
id
creditCardExpirationMonth
creditCardExpirationYear
creditCardType
creditCardMaskNumber
}
subscription @client {
quantity
namespaceId
......
......@@ -21,10 +21,17 @@ export const stateData = {
subscription: {
quantity: 1,
namespaceId: null,
paymentMethodId: null,
__typename: 'Subscription',
},
selectedPlanId: null,
paymentMethod: {
id: null,
creditCardExpirationMonth: null,
creditCardExpirationYear: null,
creditCardType: null,
creditCardMaskNumber: null,
__typename: 'PaymentMethod',
},
customer: {
country: null,
address1: null,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment