portal-www
Version:
Nova Portal Website. Based on Next starter by Ueno
62 lines (59 loc) • 1.09 kB
text/typescript
import gql from 'graphql-tag';
export const PAYMENT_METHODS = gql`
query PaymentMethods($input: PaymentMethodsInput!) {
paymentMethods(input: $input) {
paymentmethods {
... on CreditCardPaymentMethod {
id
customerId
type
status
isDefault
maskedNumber
nick
issuer
expiry
}
... on BankClaimPaymentMethod {
id
customerId
type
isDefault
status
}
}
}
}
`;
export const PAYMENT_METHOD = gql`
query PaymentMethod($input: ContractInput!) {
paymentMethod(input: $input) {
... on CreditCardPaymentMethod {
id
customerId
type
status
isDefault
maskedNumber
nick
issuer
expiry
name
}
... on BankClaimPaymentMethod {
id
customerId
type
status
isDefault
name
}
customerId
id
isDefault
name
status
type
}
}
`;