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
|
||||
}
|
||||
}
|
||||
}
|
||||
0
graphql/mutations/.gitkeep
Normal file
0
graphql/mutations/.gitkeep
Normal file
28
graphql/mutations/TransactionEventReport.graphql
Normal file
28
graphql/mutations/TransactionEventReport.graphql
Normal file
@@ -0,0 +1,28 @@
|
||||
mutation TransactionEventReport(
|
||||
$transactionId: ID!
|
||||
$amount: PositiveDecimal!
|
||||
$availableActions: [TransactionActionEnum!]!
|
||||
$externalUrl: String!
|
||||
$message: String
|
||||
$pspReference: String!
|
||||
$time: DateTime!
|
||||
$type: TransactionEventTypeEnum!
|
||||
) {
|
||||
transactionEventReport(
|
||||
id: $transactionId
|
||||
amount: $amount
|
||||
availableActions: $availableActions
|
||||
externalUrl: $externalUrl
|
||||
message: $message
|
||||
pspReference: $pspReference
|
||||
time: $time
|
||||
type: $type
|
||||
) {
|
||||
alreadyProcessed
|
||||
errors {
|
||||
field
|
||||
message
|
||||
code
|
||||
}
|
||||
}
|
||||
}
|
||||
10
graphql/mutations/UpdateAppMetadata.graphql
Normal file
10
graphql/mutations/UpdateAppMetadata.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
mutation UpdateAppMetadata($id: ID!, $input: [MetadataInput!]!) {
|
||||
updatePrivateMetadata(id: $id, input: $input) {
|
||||
item {
|
||||
privateMetadata {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
10
graphql/mutations/UpdatePublicMetadata.graphql
Normal file
10
graphql/mutations/UpdatePublicMetadata.graphql
Normal file
@@ -0,0 +1,10 @@
|
||||
mutation UpdatePublicMetadata($id: ID!, $input: [MetadataInput!]!) {
|
||||
updateMetadata(id: $id, input: $input) {
|
||||
item {
|
||||
metadata {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
0
graphql/queries/.gitkeep
Normal file
0
graphql/queries/.gitkeep
Normal file
16
graphql/queries/FetchAppDetails.graphql
Normal file
16
graphql/queries/FetchAppDetails.graphql
Normal file
@@ -0,0 +1,16 @@
|
||||
query FetchAppDetails {
|
||||
shop {
|
||||
schemaVersion
|
||||
}
|
||||
app {
|
||||
id
|
||||
privateMetadata {
|
||||
key
|
||||
value
|
||||
}
|
||||
metadata {
|
||||
key
|
||||
value
|
||||
}
|
||||
}
|
||||
}
|
||||
6
graphql/queries/FetchChannels.graphql
Normal file
6
graphql/queries/FetchChannels.graphql
Normal file
@@ -0,0 +1,6 @@
|
||||
query FetchChannels {
|
||||
channels {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
28869
graphql/schema.graphql
Normal file
28869
graphql/schema.graphql
Normal file
File diff suppressed because it is too large
Load Diff
0
graphql/subscriptions/.gitkeep
Normal file
0
graphql/subscriptions/.gitkeep
Normal file
@@ -0,0 +1,5 @@
|
||||
subscription PaymentGatewayInitializeSession {
|
||||
event {
|
||||
...PaymentGatewayInitializeSessionEvent
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
subscription TransactionCancelationRequested {
|
||||
event {
|
||||
...TransactionCancelationRequestedEvent
|
||||
}
|
||||
}
|
||||
5
graphql/subscriptions/TransactionChargeRequested.graphql
Normal file
5
graphql/subscriptions/TransactionChargeRequested.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
subscription TransactionChargeRequested {
|
||||
event {
|
||||
...TransactionChargeRequestedEvent
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
subscription TransactionInitializeSession {
|
||||
event {
|
||||
...TransactionInitializeSessionEvent
|
||||
}
|
||||
}
|
||||
5
graphql/subscriptions/TransactionProcessSession.graphql
Normal file
5
graphql/subscriptions/TransactionProcessSession.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
subscription TransactionProcessSession {
|
||||
event {
|
||||
...TransactionProcessSessionEvent
|
||||
}
|
||||
}
|
||||
5
graphql/subscriptions/TransactionRefundRequested.graphql
Normal file
5
graphql/subscriptions/TransactionRefundRequested.graphql
Normal file
@@ -0,0 +1,5 @@
|
||||
subscription TransactionRefundRequested {
|
||||
event {
|
||||
...TransactionRefundRequestedEvent
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user