Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cb49fb4d
Commit
cb49fb4d
authored
Jun 15, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add paymentMethod to the local state
parent
dd6642bd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
ee/app/assets/javascripts/subscriptions/buy_minutes/utils.js
ee/app/assets/javascripts/subscriptions/buy_minutes/utils.js
+9
-1
ee/app/assets/javascripts/subscriptions/graphql/queries/state.query.graphql
...scripts/subscriptions/graphql/queries/state.query.graphql
+1
-1
No files found.
ee/app/assets/javascripts/subscriptions/buy_minutes/utils.js
View file @
cb49fb4d
...
...
@@ -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
,
...
...
ee/app/assets/javascripts/subscriptions/graphql/queries/state.query.graphql
View file @
cb49fb4d
...
...
@@ -17,8 +17,8 @@ query State {
zipCode
company
}
paymentMethod
@client
subscription
@client
{
paymentMethodId
quantity
namespaceId
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment