212 lines
3.2 KiB
TypeScript
212 lines
3.2 KiB
TypeScript
export const gatewayInitialize = `subscription {
|
|
event {
|
|
... on PaymentGatewayInitializeSession {
|
|
issuedAt
|
|
version
|
|
issuingPrincipal {
|
|
... on App {
|
|
id
|
|
__typename
|
|
}
|
|
... on User {
|
|
id
|
|
__typename
|
|
}
|
|
... on Node {
|
|
id
|
|
__typename
|
|
}
|
|
}
|
|
recipient {
|
|
id
|
|
name
|
|
}
|
|
sourceObject {
|
|
... on Checkout {
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
...on Order {
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
data
|
|
amount
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const transactionInitialize = `subscription {
|
|
event {
|
|
... on TransactionInitializeSession {
|
|
issuedAt
|
|
version
|
|
issuingPrincipal {
|
|
... on Node {
|
|
id
|
|
}
|
|
__typename
|
|
}
|
|
recipient {
|
|
id
|
|
name
|
|
}
|
|
sourceObject {
|
|
... on Checkout {
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
...on Order {
|
|
user {
|
|
id
|
|
}
|
|
}
|
|
__typename
|
|
}
|
|
transaction {
|
|
id
|
|
name
|
|
pspReference
|
|
}
|
|
data
|
|
merchantReference
|
|
action {
|
|
amount
|
|
currency
|
|
actionType
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
|
|
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 {
|
|
amount
|
|
currency
|
|
actionType
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const chargeSub = `subscription {
|
|
event {
|
|
... on TransactionChargeRequested {
|
|
issuedAt
|
|
version
|
|
issuingPrincipal {
|
|
... on User {
|
|
lastName
|
|
firstName
|
|
email
|
|
}
|
|
}
|
|
transaction {
|
|
id
|
|
}
|
|
action {
|
|
actionType
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const refundSub = `subscription {
|
|
event {
|
|
... on TransactionRefundRequested {
|
|
issuedAt
|
|
version
|
|
issuingPrincipal {
|
|
... on User {
|
|
lastName
|
|
firstName
|
|
email
|
|
}
|
|
}
|
|
transaction {
|
|
id
|
|
}
|
|
action {
|
|
actionType
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}`;
|
|
|
|
export const cancelSub = `subscription {
|
|
event {
|
|
... on TransactionCancelationRequested {
|
|
issuedAt
|
|
version
|
|
issuingPrincipal {
|
|
... on User {
|
|
lastName
|
|
firstName
|
|
email
|
|
}
|
|
}
|
|
transaction {
|
|
id
|
|
}
|
|
action {
|
|
actionType
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}`;
|