-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1001 from oxaudo/updates
Add acceptsCardPayments field for partner that combines info from Gravity and Lewitt-api
- Loading branch information
Showing
9 changed files
with
269 additions
and
12 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
schema { | ||
query: RootQuery | ||
mutation: Mutation | ||
} | ||
|
||
# An ArtworkGroup which has an artwork and its related line items | ||
type ArtworkGroup { | ||
artists: [String] | ||
date: String | ||
default_image_id: String | ||
dimensions: Json | ||
edition_set_id: String | ||
id: ID! | ||
images: Json | ||
line_items: [LineItem] | ||
price_in_cents: Int! | ||
title: String | ||
} | ||
|
||
# Autogenerated input type of CreateInvoice | ||
input CreateInvoiceInput { | ||
# A unique identifier for the client performing the mutation. | ||
clientMutationId: String | ||
id: ID | ||
partner_id: String! | ||
payment_method: String | ||
currency: Currencies | ||
impulse_conversation_id: String | ||
} | ||
|
||
enum Currencies { | ||
# US Dollar | ||
usd | ||
} | ||
|
||
# An Invoice | ||
type Invoice { | ||
artwork_groups: [ArtworkGroup] | ||
artwork_groups_count: Int | ||
created_at: String | ||
currency: String | ||
discount_total_cents: Int | ||
fee_in_cents: Int | ||
id: ID! | ||
impulse_conversation_id: Int | ||
invoice_transactions_count: Int | ||
line_items: [LineItem] | ||
line_items_count: Int | ||
merchant_account: [MerchantAccount] | ||
merchant_account_id: Int | ||
paid_at: String | ||
partner_id: String | ||
payment_method: String | ||
refunded_at: String | ||
sent_at: String | ||
shipping_total_cents: Int | ||
state: String | ||
tax_total_cents: Int | ||
token: String! | ||
total_cents: Int | ||
updated_at: String | ||
voided_at: String | ||
} | ||
|
||
scalar Json | ||
|
||
# A LineItem | ||
type LineItem { | ||
amount_cents: Int! | ||
description: String! | ||
id: ID! | ||
line_item_type: String! | ||
} | ||
|
||
# A MerchantAccount | ||
type MerchantAccount { | ||
# Checks if account is properly configured for credit card payments | ||
credit_card_enabled: Boolean! | ||
id: ID! | ||
partner_id: String! | ||
} | ||
|
||
type Mutation { | ||
create_invoice(input: CreateInvoiceInput!): Invoice | ||
} | ||
|
||
# Root query | ||
type RootQuery { | ||
# Search Invoices | ||
invoices(ids: [ID], partner_id: String!, token: String): [Invoice] | ||
|
||
# Retrieve a Merchant Account | ||
partner_product_merchant_account(partner_id: String!): MerchantAccount | ||
} |
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
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
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
Oops, something went wrong.