-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(openapi): add support for customer orders in the OpenAPI specifi…
…cation feat(openapi): add order-related types to the OpenAPI specification feat(openapi): add support for customer order list endpoint feat(openapi): add support for customer order get endpoint feat(openapi): add address type for customer orders feat(openapi): add client type for customer orders feat(openapi): add customer type for customer orders feat(openapi): add discount type for customer orders feat(openapi): add fulfillment type for customer orders feat(openapi): add line item type for customer orders feat(openapi): add money type for customer orders feat(openapi): add order type for customer orders feat(openapi): add property type for customer orders feat(openapi): add new OpenAPI files for customer order refund, shipping, and order types - Added new OpenAPI files for customer order refund, shipping, and order types. - Created `refund-line-item.yaml`, `refund.yaml`, `shipping.yaml`, `simple-line-item.yaml`, `response.yaml` files. - These files define the structure and properties of refund line items, refunds, shipping, simple line items, and response payloads for customer orders. - These files are necessary for documenting and defining the API endpoints related to customer orders. - The new files follow the conventional naming and structure for OpenAPI specifications.
- Loading branch information
1 parent
136cad0
commit 05182e8
Showing
18 changed files
with
656 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
type: object | ||
properties: | ||
first_name: | ||
type: string | ||
address1: | ||
type: string | ||
phone: | ||
type: string | ||
city: | ||
type: string | ||
zip: | ||
type: string | ||
province: | ||
type: string | ||
nullable: true | ||
country: | ||
type: string | ||
last_name: | ||
type: string | ||
address2: | ||
type: string | ||
nullable: true | ||
company: | ||
type: string | ||
nullable: true | ||
latitude: | ||
type: number | ||
nullable: true | ||
longitude: | ||
type: number | ||
nullable: true | ||
name: | ||
type: string | ||
country_code: | ||
type: string | ||
province_code: | ||
type: string | ||
nullable: true |
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,19 @@ | ||
type: object | ||
properties: | ||
accept_language: | ||
type: string | ||
nullable: true | ||
browser_height: | ||
type: number | ||
nullable: true | ||
browser_ip: | ||
type: string | ||
browser_width: | ||
type: number | ||
nullable: true | ||
session_hash: | ||
type: string | ||
nullable: true | ||
user_agent: | ||
type: string | ||
nullable: true |
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,81 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: number | ||
email: | ||
type: string | ||
nullable: true | ||
accepts_marketing: | ||
type: boolean | ||
created_at: | ||
type: string | ||
format: date-time | ||
updated_at: | ||
type: string | ||
format: date-time | ||
first_name: | ||
type: string | ||
last_name: | ||
type: string | ||
state: | ||
type: string | ||
note: | ||
type: string | ||
nullable: true | ||
verified_email: | ||
type: boolean | ||
multipass_identifier: | ||
type: string | ||
nullable: true | ||
tax_exempt: | ||
type: boolean | ||
phone: | ||
type: string | ||
nullable: true | ||
email_marketing_consent: | ||
type: boolean | ||
nullable: true | ||
sms_marketing_consent: | ||
type: object | ||
properties: | ||
state: | ||
type: string | ||
opt_in_level: | ||
type: string | ||
consent_updated_at: | ||
type: string | ||
format: date-time | ||
consent_collected_from: | ||
type: string | ||
nullable: true | ||
tags: | ||
type: string | ||
currency: | ||
type: string | ||
accepts_marketing_updated_at: | ||
type: string | ||
marketing_opt_in_level: | ||
type: string | ||
nullable: true | ||
tax_exemptions: | ||
type: array | ||
items: | ||
type: string | ||
admin_graphql_api_id: | ||
type: string | ||
default_address: | ||
$ref: address.yaml | ||
nullable: true | ||
required: | ||
- id | ||
- accepts_marketing | ||
- created_at | ||
- updated_at | ||
- first_name | ||
- last_name | ||
- state | ||
- verified_email | ||
- tax_exempt | ||
- tags | ||
- currency | ||
- admin_graphql_api_id |
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,12 @@ | ||
type: object | ||
properties: | ||
code: | ||
type: string | ||
amount: | ||
type: string | ||
type: | ||
type: string | ||
required: | ||
- code | ||
- amount | ||
- type |
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,56 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: number | ||
admin_graphql_api_id: | ||
type: string | ||
created_at: | ||
type: string | ||
format: date-time | ||
location_id: | ||
type: number | ||
name: | ||
type: string | ||
order_id: | ||
type: number | ||
service: | ||
type: string | ||
shipment_status: | ||
type: string | ||
nullable: true | ||
status: | ||
type: string | ||
tracking_company: | ||
type: string | ||
nullable: true | ||
tracking_number: | ||
type: string | ||
nullable: true | ||
tracking_numbers: | ||
type: array | ||
items: | ||
type: string | ||
tracking_url: | ||
type: string | ||
nullable: true | ||
tracking_urls: | ||
type: array | ||
items: | ||
type: string | ||
updated_at: | ||
type: string | ||
format: date-time | ||
line_items: | ||
type: array | ||
items: | ||
$ref: simple-line-item.yaml | ||
required: | ||
- id | ||
- admin_graphql_api_id | ||
- created_at | ||
- location_id | ||
- name | ||
- order_id | ||
- service | ||
- status | ||
- line_items |
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,77 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: number | ||
admin_graphql_api_id: | ||
type: string | ||
fulfillable_quantity: | ||
type: number | ||
fulfillment_service: | ||
type: string | ||
fulfillment_status: | ||
type: string | ||
nullable: true | ||
gift_card: | ||
type: boolean | ||
grams: | ||
type: number | ||
name: | ||
type: string | ||
price: | ||
type: string | ||
price_set: | ||
$ref: money.yaml | ||
product_exists: | ||
type: boolean | ||
product_id: | ||
type: number | ||
nullable: true | ||
properties: | ||
type: array | ||
items: | ||
$ref: property.yaml | ||
quantity: | ||
type: number | ||
requires_shipping: | ||
type: boolean | ||
sku: | ||
type: string | ||
nullable: true | ||
taxable: | ||
type: boolean | ||
title: | ||
type: string | ||
total_discount: | ||
type: string | ||
total_discount_set: | ||
$ref: money.yaml | ||
variant_id: | ||
type: number | ||
nullable: true | ||
variant_inventory_management: | ||
type: string | ||
nullable: true | ||
variant_title: | ||
type: string | ||
nullable: true | ||
vendor: | ||
type: string | ||
nullable: true | ||
required: | ||
- id | ||
- admin_graphql_api_id | ||
- fulfillable_quantity | ||
- fulfillment_service | ||
- gift_card | ||
- grams | ||
- name | ||
- price | ||
- properties | ||
- price_set | ||
- product_exists | ||
- quantity | ||
- requires_shipping | ||
- taxable | ||
- title | ||
- total_discount | ||
- total_discount_set |
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,25 @@ | ||
type: object | ||
properties: | ||
shop_money: | ||
type: object | ||
properties: | ||
amount: | ||
type: string | ||
currency_code: | ||
type: string | ||
required: | ||
- amount | ||
- currency_code | ||
presentment_money: | ||
type: object | ||
properties: | ||
amount: | ||
type: string | ||
currency_code: | ||
type: string | ||
required: | ||
- amount | ||
- currency_code | ||
required: | ||
- shop_money | ||
- presentment_money |
Oops, something went wrong.