This commit is contained in:
jackbeeby
2024-12-05 18:20:27 +11:00
parent b8de0556ec
commit dc5eea1ad0
288 changed files with 101937 additions and 0 deletions

View File

View File

@@ -0,0 +1,4 @@
fragment Money on Money {
currency
amount
}

View 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
}
}
}
}
}
}

View 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
}
}

View File

@@ -0,0 +1,5 @@
fragment PaymentGatewayInitializeSessionAddress on Address {
country {
code
}
}

View File

@@ -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
}
}
}
}
}

View File

@@ -0,0 +1,11 @@
fragment PaymentGatewayRecipient on App {
id
privateMetadata {
key
value
}
metadata {
key
value
}
}

View File

@@ -0,0 +1,20 @@
fragment TransactionCancelationRequestedEvent on TransactionCancelationRequested {
__typename
recipient {
...PaymentGatewayRecipient
}
action {
actionType
amount
}
transaction {
id
pspReference
sourceObject: order {
channel {
id
slug
}
}
}
}

View 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
}
}
}

View File

@@ -0,0 +1,14 @@
fragment TransactionInitializeSessionAddress on Address {
firstName
lastName
phone
city
streetAddress1
streetAddress2
postalCode
countryArea
companyName
country {
code
}
}

View 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
}
}

View 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
}
}
}

View 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
}
}
}

View File

View 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
}
}
}

View File

@@ -0,0 +1,10 @@
mutation UpdateAppMetadata($id: ID!, $input: [MetadataInput!]!) {
updatePrivateMetadata(id: $id, input: $input) {
item {
privateMetadata {
key
value
}
}
}
}

View 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
View File

View File

@@ -0,0 +1,16 @@
query FetchAppDetails {
shop {
schemaVersion
}
app {
id
privateMetadata {
key
value
}
metadata {
key
value
}
}
}

View File

@@ -0,0 +1,6 @@
query FetchChannels {
channels {
id
name
}
}

28869
graphql/schema.graphql Normal file

File diff suppressed because it is too large Load Diff

View File

View File

@@ -0,0 +1,5 @@
subscription PaymentGatewayInitializeSession {
event {
...PaymentGatewayInitializeSessionEvent
}
}

View File

@@ -0,0 +1,5 @@
subscription TransactionCancelationRequested {
event {
...TransactionCancelationRequestedEvent
}
}

View File

@@ -0,0 +1,5 @@
subscription TransactionChargeRequested {
event {
...TransactionChargeRequestedEvent
}
}

View File

@@ -0,0 +1,5 @@
subscription TransactionInitializeSession {
event {
...TransactionInitializeSessionEvent
}
}

View File

@@ -0,0 +1,5 @@
subscription TransactionProcessSession {
event {
...TransactionProcessSessionEvent
}
}

View File

@@ -0,0 +1,5 @@
subscription TransactionRefundRequested {
event {
...TransactionRefundRequestedEvent
}
}