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
202f89b6
Commit
202f89b6
authored
Jun 15, 2021
by
Vitaly Slobodin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add additional fields to paymentMethod field
parent
3c4592bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
ee/app/assets/javascripts/subscriptions/buy_minutes/utils.js
ee/app/assets/javascripts/subscriptions/buy_minutes/utils.js
+0
-1
ee/app/assets/javascripts/subscriptions/graphql/queries/state.query.graphql
...scripts/subscriptions/graphql/queries/state.query.graphql
+7
-1
ee/spec/frontend/subscriptions/buy_minutes/mock_data.js
ee/spec/frontend/subscriptions/buy_minutes/mock_data.js
+8
-1
No files found.
ee/app/assets/javascripts/subscriptions/buy_minutes/utils.js
View file @
202f89b6
...
...
@@ -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
:
{
...
...
ee/app/assets/javascripts/subscriptions/graphql/queries/state.query.graphql
View file @
202f89b6
...
...
@@ -17,7 +17,13 @@ query State {
zipCode
company
}
paymentMethod
@client
paymentMethod
@client
{
id
creditCardExpirationMonth
creditCardExpirationYear
creditCardType
creditCardMaskNumber
}
subscription
@client
{
quantity
namespaceId
...
...
ee/spec/frontend/subscriptions/buy_minutes/mock_data.js
View file @
202f89b6
...
...
@@ -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
,
...
...
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