Created
August 26, 2020 21:26
-
-
Save powerslacker/f7059e954ba1297b0dfc3810e447fc83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Query{ | |
// ... | |
findPaymentRequests( | |
offset: Int | |
limit: Int | |
locationId: String | |
isPaid: Bool | |
isRefunded: Bool | |
isPartiallyRefunded: Bool | |
isRecorded: Bool | |
sortBy: FindPaymentRequestsSortOption | |
requestedAmount: IntQueryOperatorInput | |
paidAmount: IntQueryOperatorInput | |
personFirstName: String | |
personLastName: String | |
patientManagementId: String | |
requestCreated: StringQueryOperatorInput | |
paymentReceived: StringQueryOperatorInput | |
): PaymentRequests | |
} | |
input IntQueryOperatorInput { | |
eq: Int | |
gt: Int | |
gte: Int | |
lt: Int | |
lte: Int | |
} | |
input StringQueryOperatorInput { | |
eq: String | |
gt: String | |
gte: String | |
lt: String | |
lte: String | |
} | |
enum FindPaymentRequestsSortOption{ | |
REQUEST_CREATED_ASCENDING | |
REQUEST_CREATED_DESCENDING | |
PAYMENT_RECEIVED_ASCENDING | |
PAYMENT_RECEIVED_DESCENDING | |
PAID_AMOUNT_ASCENDING | |
PAID_AMOUNT_DESCENDING | |
} | |
type PaymentRequests{ | |
edges: [PaymentRequest!]! | |
pageInfo: PageInfo! # Pagination Info | |
summary: FindPaymentRequestsSummary | |
} | |
type FindPaymentRequestsSummary{ | |
grossIncomeTotal: Int | |
netIncomeTotal: Int | |
feesTotal: Int | |
} | |
type PaymentRequest{ | |
id: String | |
created: String | |
amount: Int | |
payment: Payment | |
person: Person | |
isRecorded: Bool | |
} | |
type Payment{ | |
balanceTransaction: Transaction | |
chargeId: String | |
paymentIntentId: String | |
paymentMethodDetails: PaymentMethodDetails | |
amount: Int | |
fee: Int | |
net: Int | |
refunded: Bool | |
refunds: [Refund] | |
} | |
type PaymentMethodDetails{ | |
type: String | |
cardholderName: String | |
last4: String | |
brand: String | |
expirationMonth: Int | |
expirationYear: Int | |
funding: String | |
fingerprint: String | |
readMethod: String | |
} | |
type Refund{ | |
amount: Int | |
created: String | |
reason: String | |
failureReason: String | |
status: RefundStatus | |
} | |
enum RefundStatus{ | |
PENDING | |
FAILED | |
SUCCEEDED | |
} | |
type Person{ | |
firstName: String | |
lastName: String | |
mobilePhone: String | |
patientManagementId: String | |
} | |
type PageInfo{ | |
startCursor: String! | |
endCursor: String! | |
hasNextPage: Boolean! | |
hasPreviousPage: Boolean! | |
} | |
type Transaction{ | |
transactionId: String! | |
amount: Int! | |
eta: String! | |
createdAt: String! | |
currency: Currency! | |
fee: Int! | |
net: Int! | |
status: TransactionStatus! | |
transactionType: TransactionType! | |
} | |
enum TransactionType{ | |
ADJUSTMENT | |
ADVANCE | |
ADVANCE_FUNDING | |
APPLICATION_FEE | |
APPLICATION_FEE_REFUND | |
CHARGE | |
CONNECT_COLLECTION_TRANSFER | |
ISSUING_AUTHORIZATION_HOLD | |
ISSUING_AUTHORIZATION_RELEASE | |
ISSUING_TRANSACTION | |
PAYMENT | |
PAYMENT_FAILURE_REFUND | |
PAYMENT_REFUND | |
PAYOUT | |
PAYOUT_CANCEL | |
PAYOUT_FAILURE | |
REFUND | |
REFUND_FAILURE | |
RESERVE_TRANSACTION | |
RESERVED_FUNDS | |
STRIPE_FEE | |
STRIPE_FX_FEE | |
TAX_FEE | |
TOPUP | |
TOPUP_REVERSAL | |
TRANSFER | |
TRANSFER_CANCEL | |
TRANSFER_FAILURE | |
TRANSFER_REFUND | |
} | |
enum TransactionStatus{ | |
AVAILABLE | |
PENDING | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment