From 157d93dcfad7fc3703520da6dc1da8f7474c4ec1 Mon Sep 17 00:00:00 2001 From: Tina Gomez Date: Tue, 27 Dec 2022 16:53:51 -0600 Subject: [PATCH 1/3] Add gift certificate consignment to getAnOrder. --- reference/orders.v2.oas2.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/reference/orders.v2.oas2.yml b/reference/orders.v2.oas2.yml index c2039c9c7..c92713341 100644 --- a/reference/orders.v2.oas2.yml +++ b/reference/orders.v2.oas2.yml @@ -182,6 +182,15 @@ paths: value: 12 price_inc_tax: 12.45 price_ex_tax: 10.12 + Updating a Order's Gift Certificate Consignment: + value: + consignments: + email: + gift_certificates: + - recipient_email: "jane.doe@bigcommerce.com" + line_items: + - gift_certificate_id: 123 + - quantity: 0 required: true responses: '200': From 4aaf690dfb02f53e1a08fb4054f983ac8834ca99 Mon Sep 17 00:00:00 2001 From: Tina Gomez Date: Tue, 27 Dec 2022 17:38:16 -0600 Subject: [PATCH 2/3] Update PUT/ Update an order's shipping consignment --- reference/orders.v2.oas2.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/reference/orders.v2.oas2.yml b/reference/orders.v2.oas2.yml index c92713341..252034e76 100644 --- a/reference/orders.v2.oas2.yml +++ b/reference/orders.v2.oas2.yml @@ -113,7 +113,7 @@ paths: schema: $ref: '#/components/schemas/order_Put' examples: - application/json: + Updating an Order: value: status_id: 0 customer_id: 11 @@ -182,12 +182,30 @@ paths: value: 12 price_inc_tax: 12.45 price_ex_tax: 10.12 - Updating a Order's Gift Certificate Consignment: + Updating an Order's Shipping Consignment: + value: + consignments: + - shipping: + id: 149 + line_items: + - id: 123 + quantity: 1 + first_name: "Jane" + last_name: "Doe" + company: "BC" + street_1: "123 Main Street" + city: "Austin" + state: "Texas" + zip: "78751" + country: "United States" + country_iso": "US" + email: "janedoe@example.com" + Updating an Order's Gift Certificate Consignment: value: consignments: email: gift_certificates: - - recipient_email: "jane.doe@bigcommerce.com" + - recipient_email: "janedoe@example.com" line_items: - gift_certificate_id: 123 - quantity: 0 @@ -309,7 +327,7 @@ paths: zip: '78751' country: United States country_iso2: US - email: janedoe@email.com + email: janedoe@example.com products: - name: BigCommerce Coffee Mug quantity: 1 @@ -1831,7 +1849,7 @@ components: country: United States country_iso2: US phone: '1234567890' - email: janedoe@email.com + email: janedoe@example.com form_fields: name: Delivery Instructions value: Leave in backyard From 657e770199dcb3d3534d6450a1ff02d6c5241dee Mon Sep 17 00:00:00 2001 From: Tina Gomez Date: Tue, 27 Dec 2022 17:57:53 -0600 Subject: [PATCH 3/3] Update an Order's Shipping Consignment --- reference/orders.v2.oas2.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/reference/orders.v2.oas2.yml b/reference/orders.v2.oas2.yml index 252034e76..42e0c39ab 100644 --- a/reference/orders.v2.oas2.yml +++ b/reference/orders.v2.oas2.yml @@ -200,15 +200,6 @@ paths: country: "United States" country_iso": "US" email: "janedoe@example.com" - Updating an Order's Gift Certificate Consignment: - value: - consignments: - email: - gift_certificates: - - recipient_email: "janedoe@example.com" - line_items: - - gift_certificate_id: 123 - - quantity: 0 required: true responses: '200':