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