Commit cb49fb4d authored by Vitaly Slobodin's avatar Vitaly Slobodin

Add paymentMethod to the local state

parent dd6642bd
......@@ -26,12 +26,20 @@ export function writeInitialDataToApolloCache(apolloProvider, dataset) {
fullName,
selectedPlanId: planId,
subscription: {
paymentMethodId: null,
quantity: 1,
namespaceId: null,
// eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'Subscription',
},
paymentMethod: {
id: null,
creditCardExpirationMonth: null,
creditCardExpirationYear: null,
creditCardType: null,
creditCardMaskNumber: null,
// eslint-disable-next-line @gitlab/require-i18n-strings
__typename: 'PaymentMethod',
},
customer: {
country: null,
address1: null,
......
......@@ -17,8 +17,8 @@ query State {
zipCode
company
}
paymentMethod @client
subscription @client {
paymentMethodId
quantity
namespaceId
}
......
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