wdc
This commit is contained in:
0
graphql/fragments/.gitkeep
Normal file
0
graphql/fragments/.gitkeep
Normal file
4
graphql/fragments/Money.graphql
Normal file
4
graphql/fragments/Money.graphql
Normal file
@@ -0,0 +1,4 @@
|
||||
fragment Money on Money {
|
||||
currency
|
||||
amount
|
||||
}
|
||||
110
graphql/fragments/OrderOrCheckoutLines.graphql
Normal file
110
graphql/fragments/OrderOrCheckoutLines.graphql
Normal file
@@ -0,0 +1,110 @@
|
||||
fragment OrderOrCheckoutLines on OrderOrCheckout {
|
||||
__typename
|
||||
... on Checkout {
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
shippingPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
net {
|
||||
...Money
|
||||
}
|
||||
tax {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
deliveryMethod {
|
||||
__typename
|
||||
... on ShippingMethod {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
lines {
|
||||
__typename
|
||||
id
|
||||
quantity
|
||||
totalPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
net {
|
||||
...Money
|
||||
}
|
||||
tax {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
checkoutVariant: variant {
|
||||
name
|
||||
sku
|
||||
product {
|
||||
name
|
||||
thumbnail {
|
||||
url
|
||||
}
|
||||
category {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
... on Order {
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
shippingPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
net {
|
||||
...Money
|
||||
}
|
||||
tax {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
deliveryMethod {
|
||||
__typename
|
||||
... on ShippingMethod {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
lines {
|
||||
__typename
|
||||
id
|
||||
quantity
|
||||
taxRate
|
||||
totalPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
net {
|
||||
...Money
|
||||
}
|
||||
tax {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
orderVariant: variant {
|
||||
name
|
||||
sku
|
||||
product {
|
||||
name
|
||||
thumbnail {
|
||||
url
|
||||
}
|
||||
category {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
45
graphql/fragments/OrderOrCheckoutSourceObject.graphql
Normal file
45
graphql/fragments/OrderOrCheckoutSourceObject.graphql
Normal file
@@ -0,0 +1,45 @@
|
||||
fragment OrderOrCheckoutSourceObject on OrderOrCheckout {
|
||||
__typename
|
||||
... on Checkout {
|
||||
id
|
||||
languageCode
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
userEmail: email
|
||||
billingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
shippingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
total: totalPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
...OrderOrCheckoutLines
|
||||
}
|
||||
... on Order {
|
||||
id
|
||||
languageCodeEnum
|
||||
userEmail
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
billingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
shippingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
total {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
...OrderOrCheckoutLines
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
fragment PaymentGatewayInitializeSessionAddress on Address {
|
||||
country {
|
||||
code
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
fragment PaymentGatewayInitializeSessionEvent on PaymentGatewayInitializeSession {
|
||||
__typename
|
||||
recipient {
|
||||
...PaymentGatewayRecipient
|
||||
}
|
||||
data
|
||||
amount
|
||||
issuingPrincipal {
|
||||
... on Node {
|
||||
id
|
||||
}
|
||||
}
|
||||
sourceObject {
|
||||
__typename
|
||||
... on Checkout {
|
||||
id
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
languageCode
|
||||
billingAddress {
|
||||
...PaymentGatewayInitializeSessionAddress
|
||||
}
|
||||
total: totalPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
}
|
||||
... on Order {
|
||||
id
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
languageCodeEnum
|
||||
userEmail
|
||||
billingAddress {
|
||||
...PaymentGatewayInitializeSessionAddress
|
||||
}
|
||||
total {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
graphql/fragments/PaymentGatewayRecipient.graphql
Normal file
11
graphql/fragments/PaymentGatewayRecipient.graphql
Normal file
@@ -0,0 +1,11 @@
|
||||
fragment PaymentGatewayRecipient on App {
|
||||
id
|
||||
privateMetadata {
|
||||
key
|
||||
value
|
||||
}
|
||||
metadata {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
fragment TransactionCancelationRequestedEvent on TransactionCancelationRequested {
|
||||
__typename
|
||||
recipient {
|
||||
...PaymentGatewayRecipient
|
||||
}
|
||||
action {
|
||||
actionType
|
||||
amount
|
||||
}
|
||||
transaction {
|
||||
id
|
||||
pspReference
|
||||
sourceObject: order {
|
||||
channel {
|
||||
id
|
||||
slug
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
24
graphql/fragments/TransactionChargeRequestedEvent.graphql
Normal file
24
graphql/fragments/TransactionChargeRequestedEvent.graphql
Normal file
@@ -0,0 +1,24 @@
|
||||
fragment TransactionChargeRequestedEvent on TransactionChargeRequested {
|
||||
__typename
|
||||
recipient {
|
||||
...PaymentGatewayRecipient
|
||||
}
|
||||
action {
|
||||
amount
|
||||
actionType
|
||||
}
|
||||
transaction {
|
||||
id
|
||||
pspReference
|
||||
sourceObject: order {
|
||||
... on Order {
|
||||
total {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
}
|
||||
...OrderOrCheckoutLines
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
fragment TransactionInitializeSessionAddress on Address {
|
||||
firstName
|
||||
lastName
|
||||
phone
|
||||
city
|
||||
streetAddress1
|
||||
streetAddress2
|
||||
postalCode
|
||||
countryArea
|
||||
companyName
|
||||
country {
|
||||
code
|
||||
}
|
||||
}
|
||||
26
graphql/fragments/TransactionInitializeSessionEvent.graphql
Normal file
26
graphql/fragments/TransactionInitializeSessionEvent.graphql
Normal file
@@ -0,0 +1,26 @@
|
||||
fragment TransactionInitializeSessionEvent on TransactionInitializeSession {
|
||||
__typename
|
||||
recipient {
|
||||
...PaymentGatewayRecipient
|
||||
}
|
||||
data
|
||||
merchantReference
|
||||
action {
|
||||
amount
|
||||
currency
|
||||
actionType
|
||||
}
|
||||
issuingPrincipal {
|
||||
... on Node {
|
||||
id
|
||||
}
|
||||
}
|
||||
transaction {
|
||||
id
|
||||
pspReference
|
||||
}
|
||||
sourceObject {
|
||||
__typename
|
||||
...OrderOrCheckoutSourceObject
|
||||
}
|
||||
}
|
||||
54
graphql/fragments/TransactionProcessSessionEvent.graphql
Normal file
54
graphql/fragments/TransactionProcessSessionEvent.graphql
Normal file
@@ -0,0 +1,54 @@
|
||||
fragment TransactionProcessSessionEvent on TransactionProcessSession {
|
||||
__typename
|
||||
recipient {
|
||||
...PaymentGatewayRecipient
|
||||
}
|
||||
data
|
||||
merchantReference
|
||||
action {
|
||||
amount
|
||||
currency
|
||||
actionType
|
||||
}
|
||||
transaction {
|
||||
id
|
||||
pspReference
|
||||
}
|
||||
sourceObject {
|
||||
__typename
|
||||
... on Checkout {
|
||||
id
|
||||
languageCode
|
||||
userEmail: email
|
||||
billingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
shippingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
total: totalPrice {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
...OrderOrCheckoutLines
|
||||
}
|
||||
... on Order {
|
||||
id
|
||||
languageCodeEnum
|
||||
userEmail
|
||||
billingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
shippingAddress {
|
||||
...TransactionInitializeSessionAddress
|
||||
}
|
||||
total {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
...OrderOrCheckoutLines
|
||||
}
|
||||
}
|
||||
}
|
||||
24
graphql/fragments/TransactionRefundRequestedEvent.graphql
Normal file
24
graphql/fragments/TransactionRefundRequestedEvent.graphql
Normal file
@@ -0,0 +1,24 @@
|
||||
fragment TransactionRefundRequestedEvent on TransactionRefundRequested {
|
||||
__typename
|
||||
recipient {
|
||||
...PaymentGatewayRecipient
|
||||
}
|
||||
action {
|
||||
amount
|
||||
actionType
|
||||
}
|
||||
transaction {
|
||||
id
|
||||
pspReference
|
||||
sourceObject: order {
|
||||
... on Order {
|
||||
total {
|
||||
gross {
|
||||
...Money
|
||||
}
|
||||
}
|
||||
}
|
||||
...OrderOrCheckoutLines
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user