{"list_checkouts":{"type":"object","properties":{"after":{"type":"string","description":"Read all values in the set after (below) this cursor."},"condition":{"$ref":"#/$defs/CheckoutCondition","description":"A condition to be used in determining which values should be returned by the collection."},"first":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."},"orderBy":{"type":"array","items":{"type":"string","enum":["CONNECTION_ID_ASC","CONNECTION_ID_DESC","CUSTOMER_REF_ASC","CUSTOMER_REF_DESC","EXTERNAL_REF_ASC","EXTERNAL_REF_DESC","NATURAL","ORDER_ID_ASC","ORDER_ID_DESC","PARTNER_ID_ASC","PARTNER_ID_DESC","PRIMARY_KEY_ASC","PRIMARY_KEY_DESC","PROVIDER_UPDATED_AT_ASC","PROVIDER_UPDATED_AT_DESC","ROW_ID_ASC","ROW_ID_DESC","STARTED_DAY_ASC","STARTED_DAY_DESC","WORKSPACE_ID_ASC","WORKSPACE_ID_DESC"]},"description":"The method to use when ordering `Checkout`."}},"$defs":{"CheckoutCondition":{"type":"object","description":"A condition to be used against `Checkout` object types. All fields are tested\nfor equality and combined with a logical ‘and.’","properties":{"connectionId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `connectionId` field."},"customerId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `customerId` field."},"customerRef":{"type":"string","description":"Checks for equality with the object’s `customerRef` field."},"externalRef":{"type":"string","description":"Checks for equality with the object’s `externalRef` field."},"formResponseId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `formResponseId` field."},"orderId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `orderId` field."},"partnerId":{"anyOf":[{"type":"string","format":"uuid"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"Checks for equality with the object’s `partnerId` field. A UUID, the partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."},"providerUpdatedAt":{"type":"string","format":"date-time","description":"Checks for equality with the object’s `providerUpdatedAt` field."},"rowId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `rowId` field."},"stage":{"type":"string","enum":["CART","CHECKOUT"],"description":"Checks for equality with the object’s `stage` field."},"startedDay":{"type":"string","format":"date","description":"Checks for equality with the object’s `startedDay` field."},"status":{"type":"string","enum":["ABANDONED","CONVERTED","OPEN"],"description":"Checks for equality with the object’s `status` field."},"workspaceId":{"type":"string","format":"uuid","description":"Checks for equality with the object’s `workspaceId` field."}}}}},"get_checkouts_summary":{"type":"object","properties":{}},"list_orders":{"type":"object","properties":{"after":{"type":"string","description":"Read all values in the set after (below) this cursor."},"filter":{"$ref":"#/$defs/OrderFilter","description":"A filter to be used in determining which values should be returned by the collection."},"first":{"type":"integer","default":50,"description":"Only read the first `n` values of the set."},"orderBy":{"type":"array","items":{"type":"string","enum":["ATTRIBUTED_REVENUE_ASC","ATTRIBUTED_REVENUE_DESC","ATTRIBUTION_SCORED_AT_ASC","ATTRIBUTION_SCORED_AT_DESC","BEST_TIER_ASC","BEST_TIER_DESC","CONNECTION_ID_ASC","CONNECTION_ID_DESC","CREATED_AT_ASC","CREATED_AT_DESC","CURRENCY_ID_ASC","CURRENCY_ID_DESC","CUSTOMER_ID_ASC","CUSTOMER_ID_DESC","CUSTOMER_REF_ASC","CUSTOMER_REF_DESC","DISCOUNT_CODE_ID_ASC","DISCOUNT_CODE_ID_DESC","EXTERNAL_REF_ASC","EXTERNAL_REF_DESC","FORM_RESPONSE_ID_ASC","FORM_RESPONSE_ID_DESC","INTEGRATION_SLUG_ASC","INTEGRATION_SLUG_DESC","NATURAL","PAID_AT_ASC","PAID_AT_DESC","PARTNER_ID_ASC","PARTNER_ID_DESC","PLACED_AT_ASC","PLACED_AT_DESC","PLACED_DAY_ASC","PLACED_DAY_DESC","PRIMARY_KEY_ASC","PRIMARY_KEY_DESC","ROW_ID_ASC","ROW_ID_DESC","WORKSPACE_ID_ASC","WORKSPACE_ID_DESC"]},"default":["CREATED_AT_DESC"],"description":"The method to use when ordering `Order`."}},"$defs":{"OrderFilter":{"type":"object","properties":{"and":{"type":"array","items":{"$ref":"#/$defs/OrderFilter"}},"attributedRevenue":{"$ref":"#/$defs/BigFloatFilter"},"attributionScoredAt":{"$ref":"#/$defs/DatetimeFilter"},"bestTier":{"$ref":"#/$defs/StringFilter"},"connectionByConnectionIdExists":{"type":"boolean"},"connectionId":{"$ref":"#/$defs/UUIDFilter"},"createdAt":{"$ref":"#/$defs/DatetimeFilter"},"currencyId":{"$ref":"#/$defs/UUIDFilter"},"customerByCustomerIdExists":{"type":"boolean"},"customerId":{"$ref":"#/$defs/UUIDFilter"},"customerRef":{"$ref":"#/$defs/StringFilter"},"discountCodeByDiscountCodeIdExists":{"type":"boolean"},"discountCodeId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the name, or { \"name\": \"…\" } — resolved for you."},"externalRef":{"$ref":"#/$defs/StringFilter"},"financialStatus":{"$ref":"#/$defs/FinancialStatusFilter"},"formResponseByFormResponseIdExists":{"type":"boolean"},"formResponseId":{"$ref":"#/$defs/UUIDFilter"},"fulfillmentStatus":{"$ref":"#/$defs/FulfillmentStatusFilter"},"integrationSlug":{"$ref":"#/$defs/StringFilter"},"isReal":{"$ref":"#/$defs/BooleanFilter"},"not":{"$ref":"#/$defs/OrderFilter"},"or":{"type":"array","items":{"$ref":"#/$defs/OrderFilter"}},"orderCustomByOrderIdExists":{"type":"boolean"},"orderReportedByOrderIdExists":{"type":"boolean"},"orderShopifyByOrderIdExists":{"type":"boolean"},"orderStatus":{"$ref":"#/$defs/OrderStatusFilter"},"orderStripeByOrderIdExists":{"type":"boolean"},"originRefs":{"$ref":"#/$defs/StringListFilter"},"paidAt":{"$ref":"#/$defs/DatetimeFilter"},"partnerByPartnerIdExists":{"type":"boolean"},"partnerId":{"anyOf":[{"$ref":"#/$defs/UUIDFilter"},{"type":"string","minLength":1},{"type":"object","properties":{"name":{"type":"string","minLength":1}},"required":["name"],"additionalProperties":false}],"description":"A UUID, the partner's name, \"@handle\", or { \"name\": \"…\" } — resolved for you."},"placedAt":{"$ref":"#/$defs/DatetimeFilter"},"placedDay":{"$ref":"#/$defs/DateFilter"},"rowId":{"$ref":"#/$defs/UUIDFilter"},"workspaceId":{"$ref":"#/$defs/UUIDFilter"}}},"BigFloatFilter":{"type":"object","properties":{"equalTo":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."},"greaterThan":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."},"greaterThanOrEqualTo":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."},"in":{"type":"array","items":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."},"lessThanOrEqualTo":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."},"notEqualTo":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."},"notIn":{"type":"array","items":{"type":"string","pattern":"^-?\\d+(\\.\\d+)?$","description":"Decimal as a string."}}}},"DatetimeFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"greaterThan":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"greaterThanOrEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"in":{"type":"array","items":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"lessThanOrEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"notEqualTo":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."},"notIn":{"type":"array","items":{"type":"string","format":"date-time","description":"ISO 8601 with a zone offset."}}}},"StringFilter":{"type":"object","properties":{"equalTo":{"type":"string"},"greaterThan":{"type":"string"},"greaterThanOrEqualTo":{"type":"string"},"in":{"type":"array","items":{"type":"string"}},"includesInsensitive":{"type":"string"},"isNull":{"type":"boolean"},"lessThan":{"type":"string"},"lessThanOrEqualTo":{"type":"string"},"notEqualTo":{"type":"string"},"notIn":{"type":"array","items":{"type":"string"}}}},"UUIDFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"uuid"},"greaterThan":{"type":"string","format":"uuid"},"greaterThanOrEqualTo":{"type":"string","format":"uuid"},"in":{"type":"array","items":{"type":"string","format":"uuid"}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"uuid"},"lessThanOrEqualTo":{"type":"string","format":"uuid"},"notEqualTo":{"type":"string","format":"uuid"},"notIn":{"type":"array","items":{"type":"string","format":"uuid"}}}},"FinancialStatusFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]},"greaterThan":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]},"greaterThanOrEqualTo":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]},"in":{"type":"array","items":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]},"lessThanOrEqualTo":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]},"notEqualTo":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]},"notIn":{"type":"array","items":{"type":"string","enum":["AUTHORIZED","PAID","PARTIALLY_PAID","PARTIALLY_REFUNDED","PENDING","REFUNDED","VOIDED"]}}}},"FulfillmentStatusFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]},"greaterThan":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]},"greaterThanOrEqualTo":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]},"in":{"type":"array","items":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]},"lessThanOrEqualTo":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]},"notEqualTo":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]},"notIn":{"type":"array","items":{"type":"string","enum":["FULFILLED","INCOMPLETE","NOT_APPLICABLE","OPEN","PARTIALLY_FULFILLED","PENDING","RESTOCKED","SCHEDULED"]}}}},"BooleanFilter":{"type":"object","properties":{"equalTo":{"type":"boolean"},"greaterThan":{"type":"boolean"},"greaterThanOrEqualTo":{"type":"boolean"},"in":{"type":"array","items":{"type":"boolean"}},"isNull":{"type":"boolean"},"lessThan":{"type":"boolean"},"lessThanOrEqualTo":{"type":"boolean"},"notEqualTo":{"type":"boolean"},"notIn":{"type":"array","items":{"type":"boolean"}}}},"OrderStatusFilter":{"type":"object","properties":{"equalTo":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]},"greaterThan":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]},"greaterThanOrEqualTo":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]},"in":{"type":"array","items":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]},"lessThanOrEqualTo":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]},"notEqualTo":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]},"notIn":{"type":"array","items":{"type":"string","enum":["ARCHIVED","CANCELLED","CLOSED","FRAUD","OPEN","PENDING"]}}}},"StringListFilter":{"type":"object","properties":{"anyEqualTo":{"type":"string"},"equalTo":{"type":"array","items":{"type":"string"}},"greaterThan":{"type":"array","items":{"type":"string"}},"greaterThanOrEqualTo":{"type":"array","items":{"type":"string"}},"isNull":{"type":"boolean"},"lessThan":{"type":"array","items":{"type":"string"}},"lessThanOrEqualTo":{"type":"array","items":{"type":"string"}},"notEqualTo":{"type":"array","items":{"type":"string"}}}},"DateFilter":{"type":"object","properties":{"equalTo":{"type":"string","format":"date"},"greaterThan":{"type":"string","format":"date"},"greaterThanOrEqualTo":{"type":"string","format":"date"},"in":{"type":"array","items":{"type":"string","format":"date"}},"isNull":{"type":"boolean"},"lessThan":{"type":"string","format":"date"},"lessThanOrEqualTo":{"type":"string","format":"date"},"notEqualTo":{"type":"string","format":"date"},"notIn":{"type":"array","items":{"type":"string","format":"date"}}}}}}}