2023-08-07 11:39:41 +00:00
|
|
|
export const gatewayInitialize = `subscription {
|
|
|
|
event {
|
|
|
|
... on PaymentGatewayInitializeSession {
|
|
|
|
issuedAt
|
|
|
|
version
|
|
|
|
issuingPrincipal {
|
2023-08-07 12:56:54 +00:00
|
|
|
... on App {
|
|
|
|
id
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
... on User {
|
|
|
|
id
|
|
|
|
__typename
|
|
|
|
}
|
2023-08-07 11:39:41 +00:00
|
|
|
... on Node {
|
|
|
|
id
|
2023-08-07 12:56:54 +00:00
|
|
|
__typename
|
2023-08-07 11:39:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
recipient {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
sourceObject {
|
2023-08-07 12:49:24 +00:00
|
|
|
... on Checkout {
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
...on Order {
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
2023-08-07 11:39:41 +00:00
|
|
|
}
|
|
|
|
data
|
|
|
|
amount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
|
|
|
export const transactionInitialize = `subscription {
|
|
|
|
event {
|
|
|
|
... on TransactionInitializeSession {
|
|
|
|
issuedAt
|
|
|
|
version
|
|
|
|
issuingPrincipal {
|
|
|
|
... on Node {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
recipient {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
2023-08-07 12:49:24 +00:00
|
|
|
sourceObject {
|
|
|
|
... on Checkout {
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
...on Order {
|
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
__typename
|
|
|
|
}
|
2023-08-07 11:39:41 +00:00
|
|
|
transaction {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
pspReference
|
|
|
|
}
|
|
|
|
data
|
|
|
|
merchantReference
|
|
|
|
action {
|
|
|
|
amount
|
|
|
|
currency
|
|
|
|
actionType
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-07 12:49:24 +00:00
|
|
|
}`;
|
2023-08-07 11:39:41 +00:00
|
|
|
|
2023-08-07 15:24:47 +00:00
|
|
|
export const transactionProcess = `fragment Money {
|
|
|
|
... on Money {
|
|
|
|
currency
|
|
|
|
amount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
subscription {
|
|
|
|
event {
|
|
|
|
... on TransactionProcessSession {
|
|
|
|
issuedAt
|
|
|
|
version
|
|
|
|
issuingPrincipal {
|
|
|
|
... on User {
|
|
|
|
id
|
|
|
|
lastName
|
|
|
|
firstName
|
|
|
|
}
|
|
|
|
... on App {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
recipient {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
}
|
|
|
|
sourceObject {
|
|
|
|
... on Checkout {
|
|
|
|
id
|
|
|
|
totalPrice {
|
|
|
|
currency
|
|
|
|
gross {
|
|
|
|
...Money
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on Order {
|
|
|
|
id
|
|
|
|
total {
|
|
|
|
currency
|
|
|
|
gross {
|
|
|
|
...Money
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
data
|
|
|
|
merchantReference
|
|
|
|
action
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`;
|
|
|
|
|
2023-01-11 09:52:15 +00:00
|
|
|
export const chargeSub = `subscription {
|
|
|
|
event {
|
|
|
|
... on TransactionChargeRequested {
|
|
|
|
issuedAt
|
|
|
|
version
|
|
|
|
issuingPrincipal {
|
|
|
|
... on User {
|
|
|
|
lastName
|
|
|
|
firstName
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
transaction {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
action {
|
|
|
|
actionType
|
|
|
|
amount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-07 11:39:41 +00:00
|
|
|
`;
|
2023-01-11 09:52:15 +00:00
|
|
|
|
|
|
|
export const refundSub = `subscription {
|
|
|
|
event {
|
|
|
|
... on TransactionRefundRequested {
|
|
|
|
issuedAt
|
|
|
|
version
|
|
|
|
issuingPrincipal {
|
|
|
|
... on User {
|
|
|
|
lastName
|
|
|
|
firstName
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
transaction {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
action {
|
|
|
|
actionType
|
|
|
|
amount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-07 11:39:41 +00:00
|
|
|
}`;
|
2023-01-11 09:52:15 +00:00
|
|
|
|
|
|
|
export const cancelSub = `subscription {
|
|
|
|
event {
|
|
|
|
... on TransactionCancelationRequested {
|
|
|
|
issuedAt
|
|
|
|
version
|
|
|
|
issuingPrincipal {
|
|
|
|
... on User {
|
|
|
|
lastName
|
|
|
|
firstName
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
transaction {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
action {
|
|
|
|
actionType
|
|
|
|
amount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-08-07 11:39:41 +00:00
|
|
|
}`;
|