Skip to content

Conversation

@andrewjtech123
Copy link
Owner

use this branch for the second round of reviews

@andrewjtech123 andrewjtech123 mentioned this pull request Nov 7, 2016
-----|-----------|-------------------------
`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`

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`

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`

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

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?

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`

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`

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`

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

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`

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`

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`

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`
Copy link

@dominiquesr dominiquesr Nov 7, 2016

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.

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_id more 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

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.

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.

Copy link
Owner Author

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.

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.

Copy link
Owner Author

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

Copy link
Owner Author

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

Copy link
Owner Author

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:
Copy link

@dominiquesr dominiquesr Nov 8, 2016

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants