-
Notifications
You must be signed in to change notification settings - Fork 1
second review #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| -----|-----------|------------------------- | ||
| `id`| `id` of the draft order |`string` | ||
| `order_id` | The id of the order associated to the draft order, once created. | `string` | ||
| `name` | Name of the draft order, format #D<number>, where number, is an sequential identifier unique to the shop, starting at 1. For example #D133 | `integer` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a sequential identifier
| `id`| `id` of the draft order |`string` | ||
| `order_id` | The id of the order associated to the draft order, once created. | `string` | ||
| `name` | Name of the draft order, format #D<number>, where number, is an sequential identifier unique to the shop, starting at 1. For example #D133 | `integer` | ||
| `customer` | Customer object will be serialized with only the default address, however only the ID can be set in order to associate the customer to the draft order. Setting the value to null removes the customer from the draft order. | `object` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an internal description. Change to something like (my english isn't perfect so rewrite in any way!):
The customer associated with this draft order. The customer is read only, however a new customer can be specified by replacing the ID. Setting the value to null removes the customer from the draft order.
| `shipping_address` | The mailing address to where the draft order will be shipped. | `string` | ||
| `billing_address` | The mailing address associated with the payment method. | `string` | ||
| `note` | The text of an optional note that a shop owner can attach to the draft order. | `string` | ||
| `email` | The email address used for sending notifications. |`string` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add that is default's t the customer's email address, when not specified and a customer is present? Or is that too much info?
| `currency` | The three letter code for the currency to be used for the payment. | `string` | ||
| `invoice_sent_at` | DateTime when the invoice was emailed to the customer by Shopify. | `dateTime` | ||
| `invoice_url` | The url to send to the customer so that they can complete the checkout. When using `send_invoice`, this url is emailed to the customer. This field can be used so that an API client can use another method of communication to provide the url to the customer. | `string` | ||
| `line_item`[ ] | | array of `line_item` objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to expand these here, like we do below in the parameters for create, update?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're also missing a description for these?
A list of line item objects, each one containing information about an item in the draft order.
| `tax_exempt` | Sets whether taxes are exempt for this draft order. If this value is `false`, Shopify will honor the `tax_exempt` value for each `line_item`. | `boolean` | ||
| `tax_lines` | Tax lines describing the sum of each type of tax line for line items and shipping line. | array of `tax_line` objects | ||
| `discount` | Order level discount. | `string` | ||
| `taxes_included` | Shop settings taxes are included in the price | `boolean` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a word missing here or something. The shop settings state, or have or something that taxes are included in the price.
| `billing_address` | The mailing address associated with the payment method. | `string` | ||
| `note` | The text of an optional note that a shop owner can attach to the draft order. | `string` | ||
| `email` | The email address used for sending notifications. |`string` | ||
| `currency` | The three letter code for the currency to be used for the payment. | `string` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field can't be set and is also a shop setting, provided here for convenience. Might be helpful to add that.
| `email` | The email address used for sending notifications. |`string` | ||
| `currency` | The three letter code for the currency to be used for the payment. | `string` | ||
| `invoice_sent_at` | DateTime when the invoice was emailed to the customer by Shopify. | `dateTime` | ||
| `invoice_url` | The url to send to the customer so that they can complete the checkout. When using `send_invoice`, this url is emailed to the customer. This field can be used so that an API client can use another method of communication to provide the url to the customer. | `string` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you we use API client or app to refer to apps?
| `invoice_sent_at` | DateTime when the invoice was emailed to the customer by Shopify. | `dateTime` | ||
| `invoice_url` | The url to send to the customer so that they can complete the checkout. When using `send_invoice`, this url is emailed to the customer. This field can be used so that an API client can use another method of communication to provide the url to the customer. | `string` | ||
| `line_item`[ ] | | array of `line_item` objects | ||
| `metafields`[ ] | | array of `metafield` objects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're missing a description. Perhaps:
Attaches additional information to a shop's resources.
| `invoice_url` | The url to send to the customer so that they can complete the checkout. When using `send_invoice`, this url is emailed to the customer. This field can be used so that an API client can use another method of communication to provide the url to the customer. | `string` | ||
| `line_item`[ ] | | array of `line_item` objects | ||
| `metafields`[ ] | | array of `metafield` objects | ||
| `shipping_line` | | `object` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also missing description.
An object which details the shipping rate which has been selected for the draft order. The shipping line is automatically reset to null when the applied shipping rate is no longer valid.
| `total_tax` | Total tax amount | `integer` | ||
| `completed_at` | Date at which an order was created and the draft order moved to “completed” status. | `DateTime` | ||
| `created_at` | By default, this auto-generated property is the date and time when the order was created in Shopify, in ISO 8601 format. If you are importing orders to the Shopify platform from another system, the writable `processed_at` property will override the `created_at` date. | `dateTime` | ||
| `updated_at` | | `dateTime` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The date and time when the draft order was last modified. The API returns this value in ISO 8601 format.
| `taxes_included` | Shop settings taxes are included in the price | `boolean` | ||
| `total_tax` | Total tax amount | `integer` | ||
| `completed_at` | Date at which an order was created and the draft order moved to “completed” status. | `DateTime` | ||
| `created_at` | By default, this auto-generated property is the date and time when the order was created in Shopify, in ISO 8601 format. If you are importing orders to the Shopify platform from another system, the writable `processed_at` property will override the `created_at` date. | `dateTime` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This processed_at info isn't valid, there is no processed_at field on draft orders.
| ### About line items | ||
| There are two ways to add a line item: | ||
|
|
||
| * Supply a `variant_id`, `quantity` and (if applicable) `discount` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe start this off by saying add a line item from a product variant by...
| There are two ways to add a line item: | ||
|
|
||
| * Supply a `variant_id`, `quantity` and (if applicable) `discount` | ||
| * Add a custom line item by supplying `title`, `price`, `taxable` and `quantity` (at a minimum). The array of line items on a draft order must not contain a `variant_id` more than once. The data copied over from a variant upon creation of a line item is never subsequently updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This text should be on the overall line item:
- The array of line items on a draft order must not contain a
variant_idmore than once.
And this text should be on the line above since it talks about the variant line items, not custom line items:
- The data copied over from a variant upon creation of a line item is never subsequently updated.
| paths: | ||
| /admin/draft_orders.json: | ||
| get: | ||
| description: Retrieve draft orders |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes you have periods and sometimes you don't. Can you please be consistent?
| description: array of staff account e-mail addresses. | ||
| subject: | ||
| type: string | ||
| description: subject of custom message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I previously gave feedback that this was incorrect. can you go back and apply this feedback? this is not the subject of the custom message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feedback that was provided was for draft_order_invoice and I will apply the same here.
| description: subject of custom message. | ||
| custom_message: | ||
| type: string | ||
| description: Custom message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I provided a longer description for this too on your previous PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feedback that was provided was for draft_order_invoice and I will apply the same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feedback that was provided was for draft_order_invoice and I will apply the same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feedback that was provided was for draft_order_invoice and I will apply the same here.
| title: | ||
| type: string | ||
| description: The shipping method name. | ||
| phone_required: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove phone_required from the docs as we aren't exposing it for now
| properties: | ||
| handle: | ||
| type: string | ||
| description: The handle of the shipping rate which was selected and applied, if applicable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistency with periods... Pick one or the other please.
use this branch for the second round of reviews