squarespace 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
 - data/.gitignore +2 -0
 - data/Gemfile +3 -0
 - data/Gemfile.lock +68 -0
 - data/LICENSE +21 -0
 - data/README.md +70 -0
 - data/lib/squarespace.rb +17 -0
 - data/lib/squarespace/client.rb +107 -0
 - data/lib/squarespace/configuration.rb +13 -0
 - data/lib/squarespace/order.rb +7 -0
 - data/lib/squarespace/version.rb +3 -0
 - data/spec/fixtures/fulfill_order_body.json +19 -0
 - data/spec/fixtures/fulfilled_orders_response.json +146 -0
 - data/spec/fixtures/order_response.json +100 -0
 - data/spec/fixtures/orders_response.json +283 -0
 - data/spec/fixtures/pending_orders_response.json +283 -0
 - data/spec/spec_helper.rb +103 -0
 - data/spec/squarespace/client_spec.rb +106 -0
 - data/spec/squarespace/configuration_spec.rb +23 -0
 - data/spec/squarespace_spec.rb +7 -0
 - data/squarespace.gemspec +32 -0
 - metadata +184 -0
 
| 
         @@ -0,0 +1,100 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "id" : "585d498fdee9f31a60284a37",
         
     | 
| 
      
 3 
     | 
    
         
            +
              "orderNumber" : "3",
         
     | 
| 
      
 4 
     | 
    
         
            +
              "createdOn" : "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 5 
     | 
    
         
            +
              "modifiedOn" : "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 6 
     | 
    
         
            +
              "testmode" : true,
         
     | 
| 
      
 7 
     | 
    
         
            +
              "customerEmail" : "foo@example.com",
         
     | 
| 
      
 8 
     | 
    
         
            +
              "billingAddress" : {
         
     | 
| 
      
 9 
     | 
    
         
            +
                "firstName" : "Bob",
         
     | 
| 
      
 10 
     | 
    
         
            +
                "lastName" : "Loblaw",
         
     | 
| 
      
 11 
     | 
    
         
            +
                "address1" : "459 Broadway",
         
     | 
| 
      
 12 
     | 
    
         
            +
                "address2" : null,
         
     | 
| 
      
 13 
     | 
    
         
            +
                "city" : "New York",
         
     | 
| 
      
 14 
     | 
    
         
            +
                "state" : "NY",
         
     | 
| 
      
 15 
     | 
    
         
            +
                "countryCode" : "US",
         
     | 
| 
      
 16 
     | 
    
         
            +
                "postalCode" : "10003",
         
     | 
| 
      
 17 
     | 
    
         
            +
                "phone": "5553334444"
         
     | 
| 
      
 18 
     | 
    
         
            +
              },
         
     | 
| 
      
 19 
     | 
    
         
            +
              "shippingAddress" : {
         
     | 
| 
      
 20 
     | 
    
         
            +
                "firstName" : "Bob",
         
     | 
| 
      
 21 
     | 
    
         
            +
                "lastName" : "Loblaw",
         
     | 
| 
      
 22 
     | 
    
         
            +
                "address1" : "459 Broadway",
         
     | 
| 
      
 23 
     | 
    
         
            +
                "address2" : null,
         
     | 
| 
      
 24 
     | 
    
         
            +
                "city" : "New York",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "state" : "NY",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "countryCode" : "US",
         
     | 
| 
      
 27 
     | 
    
         
            +
                "postalCode" : "10003",
         
     | 
| 
      
 28 
     | 
    
         
            +
                "phone": "5553334444"
         
     | 
| 
      
 29 
     | 
    
         
            +
              },
         
     | 
| 
      
 30 
     | 
    
         
            +
              "fulfillmentStatus" : "PENDING",
         
     | 
| 
      
 31 
     | 
    
         
            +
              "lineItems" : [ {
         
     | 
| 
      
 32 
     | 
    
         
            +
                "id" : "585d4975dee9f31a60284a16",
         
     | 
| 
      
 33 
     | 
    
         
            +
                "sku" : "SQ3381024",
         
     | 
| 
      
 34 
     | 
    
         
            +
                "productId" : "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 35 
     | 
    
         
            +
                "productName" : "Product",
         
     | 
| 
      
 36 
     | 
    
         
            +
                "quantity" : 1,
         
     | 
| 
      
 37 
     | 
    
         
            +
                "unitPricePaid" : {
         
     | 
| 
      
 38 
     | 
    
         
            +
                  "value" : "55.00",
         
     | 
| 
      
 39 
     | 
    
         
            +
                  "currency" : "USD"
         
     | 
| 
      
 40 
     | 
    
         
            +
                },
         
     | 
| 
      
 41 
     | 
    
         
            +
                "variantOptions" : [ {
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "value" : "Large",
         
     | 
| 
      
 43 
     | 
    
         
            +
                  "optionName" : "Size"
         
     | 
| 
      
 44 
     | 
    
         
            +
                }, {
         
     | 
| 
      
 45 
     | 
    
         
            +
                  "value" : "Black",
         
     | 
| 
      
 46 
     | 
    
         
            +
                  "optionName" : "Color"
         
     | 
| 
      
 47 
     | 
    
         
            +
                } ],
         
     | 
| 
      
 48 
     | 
    
         
            +
                "customizations" : null,
         
     | 
| 
      
 49 
     | 
    
         
            +
                "imageUrl" : "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w"
         
     | 
| 
      
 50 
     | 
    
         
            +
              } ],
         
     | 
| 
      
 51 
     | 
    
         
            +
              "internalNotes" : [ {
         
     | 
| 
      
 52 
     | 
    
         
            +
                  "content" : "First note"
         
     | 
| 
      
 53 
     | 
    
         
            +
                }, {
         
     | 
| 
      
 54 
     | 
    
         
            +
                  "content" : "Second note"
         
     | 
| 
      
 55 
     | 
    
         
            +
              } ],
         
     | 
| 
      
 56 
     | 
    
         
            +
              "shippingLines" : [ {
         
     | 
| 
      
 57 
     | 
    
         
            +
                "method" : "Flat Rate",
         
     | 
| 
      
 58 
     | 
    
         
            +
                "amount" : {
         
     | 
| 
      
 59 
     | 
    
         
            +
                  "value" : "1.00",
         
     | 
| 
      
 60 
     | 
    
         
            +
                  "currency" : "USD"
         
     | 
| 
      
 61 
     | 
    
         
            +
                }
         
     | 
| 
      
 62 
     | 
    
         
            +
              } ],
         
     | 
| 
      
 63 
     | 
    
         
            +
              "discountLines" : [ {
         
     | 
| 
      
 64 
     | 
    
         
            +
                "description" : "Fall Sale",
         
     | 
| 
      
 65 
     | 
    
         
            +
                "amount" : {
         
     | 
| 
      
 66 
     | 
    
         
            +
                  "value" : "1.00",
         
     | 
| 
      
 67 
     | 
    
         
            +
                  "currency" : "USD"
         
     | 
| 
      
 68 
     | 
    
         
            +
                },
         
     | 
| 
      
 69 
     | 
    
         
            +
                "promoCode" : "FALLSALE"
         
     | 
| 
      
 70 
     | 
    
         
            +
              } ],
         
     | 
| 
      
 71 
     | 
    
         
            +
              "formSubmission" : [ {
         
     | 
| 
      
 72 
     | 
    
         
            +
                "label" : "How did you hear about us?",
         
     | 
| 
      
 73 
     | 
    
         
            +
                "value" : "Facebook"
         
     | 
| 
      
 74 
     | 
    
         
            +
              } ],
         
     | 
| 
      
 75 
     | 
    
         
            +
              "fulfillments" : [ ],
         
     | 
| 
      
 76 
     | 
    
         
            +
              "subtotal" : {
         
     | 
| 
      
 77 
     | 
    
         
            +
                "value" : "55.00",
         
     | 
| 
      
 78 
     | 
    
         
            +
                "currency" : "USD"
         
     | 
| 
      
 79 
     | 
    
         
            +
              },
         
     | 
| 
      
 80 
     | 
    
         
            +
              "shippingTotal" : {
         
     | 
| 
      
 81 
     | 
    
         
            +
                "value" : "1.00",
         
     | 
| 
      
 82 
     | 
    
         
            +
                "currency" : "USD"
         
     | 
| 
      
 83 
     | 
    
         
            +
              },
         
     | 
| 
      
 84 
     | 
    
         
            +
              "discountTotal" : {
         
     | 
| 
      
 85 
     | 
    
         
            +
                "value" : "1.00",
         
     | 
| 
      
 86 
     | 
    
         
            +
                "currency" : "USD"
         
     | 
| 
      
 87 
     | 
    
         
            +
              },
         
     | 
| 
      
 88 
     | 
    
         
            +
              "taxTotal" : {
         
     | 
| 
      
 89 
     | 
    
         
            +
                "value" : "2.70",
         
     | 
| 
      
 90 
     | 
    
         
            +
                "currency" : "USD"
         
     | 
| 
      
 91 
     | 
    
         
            +
              },
         
     | 
| 
      
 92 
     | 
    
         
            +
              "refundedTotal" : {
         
     | 
| 
      
 93 
     | 
    
         
            +
                "value" : "0.00",
         
     | 
| 
      
 94 
     | 
    
         
            +
                "currency" : "USD"
         
     | 
| 
      
 95 
     | 
    
         
            +
              },
         
     | 
| 
      
 96 
     | 
    
         
            +
              "grandTotal" : {
         
     | 
| 
      
 97 
     | 
    
         
            +
                "value" : "57.70",
         
     | 
| 
      
 98 
     | 
    
         
            +
                "currency" : "USD"
         
     | 
| 
      
 99 
     | 
    
         
            +
              }
         
     | 
| 
      
 100 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -0,0 +1,283 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "pagination": {
         
     | 
| 
      
 3 
     | 
    
         
            +
                "hasNextPage": false,
         
     | 
| 
      
 4 
     | 
    
         
            +
                "nextPageCursor": null,
         
     | 
| 
      
 5 
     | 
    
         
            +
                "nextPageUrl": null
         
     | 
| 
      
 6 
     | 
    
         
            +
              },
         
     | 
| 
      
 7 
     | 
    
         
            +
              "result": [
         
     | 
| 
      
 8 
     | 
    
         
            +
                {
         
     | 
| 
      
 9 
     | 
    
         
            +
                  "billingAddress": {
         
     | 
| 
      
 10 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 11 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 12 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 13 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 14 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 15 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 16 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 17 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 18 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 19 
     | 
    
         
            +
                  },
         
     | 
| 
      
 20 
     | 
    
         
            +
                  "createdOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 21 
     | 
    
         
            +
                  "customerEmail": "foo@example.com",
         
     | 
| 
      
 22 
     | 
    
         
            +
                  "discountLines": [
         
     | 
| 
      
 23 
     | 
    
         
            +
                    {
         
     | 
| 
      
 24 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 25 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 26 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 27 
     | 
    
         
            +
                      },
         
     | 
| 
      
 28 
     | 
    
         
            +
                      "description": "Fall Sale",
         
     | 
| 
      
 29 
     | 
    
         
            +
                      "promoCode": "FALLSALE"
         
     | 
| 
      
 30 
     | 
    
         
            +
                    }
         
     | 
| 
      
 31 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 32 
     | 
    
         
            +
                  "discountTotal": {
         
     | 
| 
      
 33 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 34 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 35 
     | 
    
         
            +
                  },
         
     | 
| 
      
 36 
     | 
    
         
            +
                  "formSubmission": [
         
     | 
| 
      
 37 
     | 
    
         
            +
                    {
         
     | 
| 
      
 38 
     | 
    
         
            +
                      "label": "How did you hear about us?",
         
     | 
| 
      
 39 
     | 
    
         
            +
                      "value": "Facebook"
         
     | 
| 
      
 40 
     | 
    
         
            +
                    }
         
     | 
| 
      
 41 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "fulfillmentStatus": "PENDING",
         
     | 
| 
      
 43 
     | 
    
         
            +
                  "fulfillments": [],
         
     | 
| 
      
 44 
     | 
    
         
            +
                  "grandTotal": {
         
     | 
| 
      
 45 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 46 
     | 
    
         
            +
                    "value": "57.70"
         
     | 
| 
      
 47 
     | 
    
         
            +
                  },
         
     | 
| 
      
 48 
     | 
    
         
            +
                  "id": "585d498fdee9f31a60284a37",
         
     | 
| 
      
 49 
     | 
    
         
            +
                  "internalNotes": [
         
     | 
| 
      
 50 
     | 
    
         
            +
                    {
         
     | 
| 
      
 51 
     | 
    
         
            +
                      "content": "First note"
         
     | 
| 
      
 52 
     | 
    
         
            +
                    },
         
     | 
| 
      
 53 
     | 
    
         
            +
                    {
         
     | 
| 
      
 54 
     | 
    
         
            +
                      "content": "Second note"
         
     | 
| 
      
 55 
     | 
    
         
            +
                    }
         
     | 
| 
      
 56 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 57 
     | 
    
         
            +
                  "lineItems": [
         
     | 
| 
      
 58 
     | 
    
         
            +
                    {
         
     | 
| 
      
 59 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 60 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 61 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 62 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 63 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 64 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 65 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 66 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 67 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 68 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 69 
     | 
    
         
            +
                      },
         
     | 
| 
      
 70 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 71 
     | 
    
         
            +
                        {
         
     | 
| 
      
 72 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 73 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 74 
     | 
    
         
            +
                        },
         
     | 
| 
      
 75 
     | 
    
         
            +
                        {
         
     | 
| 
      
 76 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 77 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 78 
     | 
    
         
            +
                        }
         
     | 
| 
      
 79 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 80 
     | 
    
         
            +
                    },
         
     | 
| 
      
 81 
     | 
    
         
            +
                    {
         
     | 
| 
      
 82 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 83 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 84 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 85 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 86 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 87 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 88 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 89 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 90 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 91 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 92 
     | 
    
         
            +
                      },
         
     | 
| 
      
 93 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 94 
     | 
    
         
            +
                        {
         
     | 
| 
      
 95 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 96 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 97 
     | 
    
         
            +
                        },
         
     | 
| 
      
 98 
     | 
    
         
            +
                        {
         
     | 
| 
      
 99 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 100 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 101 
     | 
    
         
            +
                        }
         
     | 
| 
      
 102 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 103 
     | 
    
         
            +
                    }
         
     | 
| 
      
 104 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 105 
     | 
    
         
            +
                  "modifiedOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 106 
     | 
    
         
            +
                  "orderNumber": "3",
         
     | 
| 
      
 107 
     | 
    
         
            +
                  "refundedTotal": {
         
     | 
| 
      
 108 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 109 
     | 
    
         
            +
                    "value": "0.00"
         
     | 
| 
      
 110 
     | 
    
         
            +
                  },
         
     | 
| 
      
 111 
     | 
    
         
            +
                  "shippingAddress": {
         
     | 
| 
      
 112 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 113 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 114 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 115 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 116 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 117 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 118 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 119 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 120 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 121 
     | 
    
         
            +
                  },
         
     | 
| 
      
 122 
     | 
    
         
            +
                  "shippingLines": [
         
     | 
| 
      
 123 
     | 
    
         
            +
                    {
         
     | 
| 
      
 124 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 125 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 126 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 127 
     | 
    
         
            +
                      },
         
     | 
| 
      
 128 
     | 
    
         
            +
                      "method": "Flat Rate"
         
     | 
| 
      
 129 
     | 
    
         
            +
                    }
         
     | 
| 
      
 130 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 131 
     | 
    
         
            +
                  "shippingTotal": {
         
     | 
| 
      
 132 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 133 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 134 
     | 
    
         
            +
                  },
         
     | 
| 
      
 135 
     | 
    
         
            +
                  "subtotal": {
         
     | 
| 
      
 136 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 137 
     | 
    
         
            +
                    "value": "55.00"
         
     | 
| 
      
 138 
     | 
    
         
            +
                  },
         
     | 
| 
      
 139 
     | 
    
         
            +
                  "taxTotal": {
         
     | 
| 
      
 140 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 141 
     | 
    
         
            +
                    "value": "2.70"
         
     | 
| 
      
 142 
     | 
    
         
            +
                  },
         
     | 
| 
      
 143 
     | 
    
         
            +
                  "testmode": true
         
     | 
| 
      
 144 
     | 
    
         
            +
                },
         
     | 
| 
      
 145 
     | 
    
         
            +
                {
         
     | 
| 
      
 146 
     | 
    
         
            +
                  "billingAddress": {
         
     | 
| 
      
 147 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 148 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 149 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 150 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 151 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 152 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 153 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 154 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 155 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 156 
     | 
    
         
            +
                  },
         
     | 
| 
      
 157 
     | 
    
         
            +
                  "createdOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 158 
     | 
    
         
            +
                  "customerEmail": "foo@example.com",
         
     | 
| 
      
 159 
     | 
    
         
            +
                  "discountLines": [
         
     | 
| 
      
 160 
     | 
    
         
            +
                    {
         
     | 
| 
      
 161 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 162 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 163 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 164 
     | 
    
         
            +
                      },
         
     | 
| 
      
 165 
     | 
    
         
            +
                      "description": "Fall Sale",
         
     | 
| 
      
 166 
     | 
    
         
            +
                      "promoCode": "FALLSALE"
         
     | 
| 
      
 167 
     | 
    
         
            +
                    }
         
     | 
| 
      
 168 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 169 
     | 
    
         
            +
                  "discountTotal": {
         
     | 
| 
      
 170 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 171 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 172 
     | 
    
         
            +
                  },
         
     | 
| 
      
 173 
     | 
    
         
            +
                  "formSubmission": [
         
     | 
| 
      
 174 
     | 
    
         
            +
                    {
         
     | 
| 
      
 175 
     | 
    
         
            +
                      "label": "How did you hear about us?",
         
     | 
| 
      
 176 
     | 
    
         
            +
                      "value": "Facebook"
         
     | 
| 
      
 177 
     | 
    
         
            +
                    }
         
     | 
| 
      
 178 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 179 
     | 
    
         
            +
                  "fulfillmentStatus": "PENDING",
         
     | 
| 
      
 180 
     | 
    
         
            +
                  "fulfillments": [],
         
     | 
| 
      
 181 
     | 
    
         
            +
                  "grandTotal": {
         
     | 
| 
      
 182 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 183 
     | 
    
         
            +
                    "value": "57.70"
         
     | 
| 
      
 184 
     | 
    
         
            +
                  },
         
     | 
| 
      
 185 
     | 
    
         
            +
                  "id": "585d498fdee9f31a60284a37",
         
     | 
| 
      
 186 
     | 
    
         
            +
                  "internalNotes": [
         
     | 
| 
      
 187 
     | 
    
         
            +
                    {
         
     | 
| 
      
 188 
     | 
    
         
            +
                      "content": "First note"
         
     | 
| 
      
 189 
     | 
    
         
            +
                    },
         
     | 
| 
      
 190 
     | 
    
         
            +
                    {
         
     | 
| 
      
 191 
     | 
    
         
            +
                      "content": "Second note"
         
     | 
| 
      
 192 
     | 
    
         
            +
                    }
         
     | 
| 
      
 193 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 194 
     | 
    
         
            +
                  "lineItems": [
         
     | 
| 
      
 195 
     | 
    
         
            +
                    {
         
     | 
| 
      
 196 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 197 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 198 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 199 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 200 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 201 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 202 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 203 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 204 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 205 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 206 
     | 
    
         
            +
                      },
         
     | 
| 
      
 207 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 208 
     | 
    
         
            +
                        {
         
     | 
| 
      
 209 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 210 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 211 
     | 
    
         
            +
                        },
         
     | 
| 
      
 212 
     | 
    
         
            +
                        {
         
     | 
| 
      
 213 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 214 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 215 
     | 
    
         
            +
                        }
         
     | 
| 
      
 216 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 217 
     | 
    
         
            +
                    },
         
     | 
| 
      
 218 
     | 
    
         
            +
                    {
         
     | 
| 
      
 219 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 220 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 221 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 222 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 223 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 224 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 225 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 226 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 227 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 228 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 229 
     | 
    
         
            +
                      },
         
     | 
| 
      
 230 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 231 
     | 
    
         
            +
                        {
         
     | 
| 
      
 232 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 233 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 234 
     | 
    
         
            +
                        },
         
     | 
| 
      
 235 
     | 
    
         
            +
                        {
         
     | 
| 
      
 236 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 237 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 238 
     | 
    
         
            +
                        }
         
     | 
| 
      
 239 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 240 
     | 
    
         
            +
                    }
         
     | 
| 
      
 241 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 242 
     | 
    
         
            +
                  "modifiedOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 243 
     | 
    
         
            +
                  "orderNumber": "3",
         
     | 
| 
      
 244 
     | 
    
         
            +
                  "refundedTotal": {
         
     | 
| 
      
 245 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 246 
     | 
    
         
            +
                    "value": "0.00"
         
     | 
| 
      
 247 
     | 
    
         
            +
                  },
         
     | 
| 
      
 248 
     | 
    
         
            +
                  "shippingAddress": {
         
     | 
| 
      
 249 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 250 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 251 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 252 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 253 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 254 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 255 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 256 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 257 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 258 
     | 
    
         
            +
                  },
         
     | 
| 
      
 259 
     | 
    
         
            +
                  "shippingLines": [
         
     | 
| 
      
 260 
     | 
    
         
            +
                    {
         
     | 
| 
      
 261 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 262 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 263 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 264 
     | 
    
         
            +
                      },
         
     | 
| 
      
 265 
     | 
    
         
            +
                      "method": "Flat Rate"
         
     | 
| 
      
 266 
     | 
    
         
            +
                    }
         
     | 
| 
      
 267 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 268 
     | 
    
         
            +
                  "shippingTotal": {
         
     | 
| 
      
 269 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 270 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 271 
     | 
    
         
            +
                  },
         
     | 
| 
      
 272 
     | 
    
         
            +
                  "subtotal": {
         
     | 
| 
      
 273 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 274 
     | 
    
         
            +
                    "value": "55.00"
         
     | 
| 
      
 275 
     | 
    
         
            +
                  },
         
     | 
| 
      
 276 
     | 
    
         
            +
                  "taxTotal": {
         
     | 
| 
      
 277 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 278 
     | 
    
         
            +
                    "value": "2.70"
         
     | 
| 
      
 279 
     | 
    
         
            +
                  },
         
     | 
| 
      
 280 
     | 
    
         
            +
                  "testmode": true
         
     | 
| 
      
 281 
     | 
    
         
            +
                }
         
     | 
| 
      
 282 
     | 
    
         
            +
              ]
         
     | 
| 
      
 283 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -0,0 +1,283 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "pagination": {
         
     | 
| 
      
 3 
     | 
    
         
            +
                "hasNextPage": false,
         
     | 
| 
      
 4 
     | 
    
         
            +
                "nextPageCursor": null,
         
     | 
| 
      
 5 
     | 
    
         
            +
                "nextPageUrl": null
         
     | 
| 
      
 6 
     | 
    
         
            +
              },
         
     | 
| 
      
 7 
     | 
    
         
            +
              "result": [
         
     | 
| 
      
 8 
     | 
    
         
            +
                {
         
     | 
| 
      
 9 
     | 
    
         
            +
                  "billingAddress": {
         
     | 
| 
      
 10 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 11 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 12 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 13 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 14 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 15 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 16 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 17 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 18 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 19 
     | 
    
         
            +
                  },
         
     | 
| 
      
 20 
     | 
    
         
            +
                  "createdOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 21 
     | 
    
         
            +
                  "customerEmail": "foo@example.com",
         
     | 
| 
      
 22 
     | 
    
         
            +
                  "discountLines": [
         
     | 
| 
      
 23 
     | 
    
         
            +
                    {
         
     | 
| 
      
 24 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 25 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 26 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 27 
     | 
    
         
            +
                      },
         
     | 
| 
      
 28 
     | 
    
         
            +
                      "description": "Fall Sale",
         
     | 
| 
      
 29 
     | 
    
         
            +
                      "promoCode": "FALLSALE"
         
     | 
| 
      
 30 
     | 
    
         
            +
                    }
         
     | 
| 
      
 31 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 32 
     | 
    
         
            +
                  "discountTotal": {
         
     | 
| 
      
 33 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 34 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 35 
     | 
    
         
            +
                  },
         
     | 
| 
      
 36 
     | 
    
         
            +
                  "formSubmission": [
         
     | 
| 
      
 37 
     | 
    
         
            +
                    {
         
     | 
| 
      
 38 
     | 
    
         
            +
                      "label": "How did you hear about us?",
         
     | 
| 
      
 39 
     | 
    
         
            +
                      "value": "Facebook"
         
     | 
| 
      
 40 
     | 
    
         
            +
                    }
         
     | 
| 
      
 41 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 42 
     | 
    
         
            +
                  "fulfillmentStatus": "PENDING",
         
     | 
| 
      
 43 
     | 
    
         
            +
                  "fulfillments": [],
         
     | 
| 
      
 44 
     | 
    
         
            +
                  "grandTotal": {
         
     | 
| 
      
 45 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 46 
     | 
    
         
            +
                    "value": "57.70"
         
     | 
| 
      
 47 
     | 
    
         
            +
                  },
         
     | 
| 
      
 48 
     | 
    
         
            +
                  "id": "585d498fdee9f31a60284a37",
         
     | 
| 
      
 49 
     | 
    
         
            +
                  "internalNotes": [
         
     | 
| 
      
 50 
     | 
    
         
            +
                    {
         
     | 
| 
      
 51 
     | 
    
         
            +
                      "content": "First note"
         
     | 
| 
      
 52 
     | 
    
         
            +
                    },
         
     | 
| 
      
 53 
     | 
    
         
            +
                    {
         
     | 
| 
      
 54 
     | 
    
         
            +
                      "content": "Second note"
         
     | 
| 
      
 55 
     | 
    
         
            +
                    }
         
     | 
| 
      
 56 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 57 
     | 
    
         
            +
                  "lineItems": [
         
     | 
| 
      
 58 
     | 
    
         
            +
                    {
         
     | 
| 
      
 59 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 60 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 61 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 62 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 63 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 64 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 65 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 66 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 67 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 68 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 69 
     | 
    
         
            +
                      },
         
     | 
| 
      
 70 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 71 
     | 
    
         
            +
                        {
         
     | 
| 
      
 72 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 73 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 74 
     | 
    
         
            +
                        },
         
     | 
| 
      
 75 
     | 
    
         
            +
                        {
         
     | 
| 
      
 76 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 77 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 78 
     | 
    
         
            +
                        }
         
     | 
| 
      
 79 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 80 
     | 
    
         
            +
                    },
         
     | 
| 
      
 81 
     | 
    
         
            +
                    {
         
     | 
| 
      
 82 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 83 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 84 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 85 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 86 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 87 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 88 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 89 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 90 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 91 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 92 
     | 
    
         
            +
                      },
         
     | 
| 
      
 93 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 94 
     | 
    
         
            +
                        {
         
     | 
| 
      
 95 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 96 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 97 
     | 
    
         
            +
                        },
         
     | 
| 
      
 98 
     | 
    
         
            +
                        {
         
     | 
| 
      
 99 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 100 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 101 
     | 
    
         
            +
                        }
         
     | 
| 
      
 102 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 103 
     | 
    
         
            +
                    }
         
     | 
| 
      
 104 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 105 
     | 
    
         
            +
                  "modifiedOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 106 
     | 
    
         
            +
                  "orderNumber": "3",
         
     | 
| 
      
 107 
     | 
    
         
            +
                  "refundedTotal": {
         
     | 
| 
      
 108 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 109 
     | 
    
         
            +
                    "value": "0.00"
         
     | 
| 
      
 110 
     | 
    
         
            +
                  },
         
     | 
| 
      
 111 
     | 
    
         
            +
                  "shippingAddress": {
         
     | 
| 
      
 112 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 113 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 114 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 115 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 116 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 117 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 118 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 119 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 120 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 121 
     | 
    
         
            +
                  },
         
     | 
| 
      
 122 
     | 
    
         
            +
                  "shippingLines": [
         
     | 
| 
      
 123 
     | 
    
         
            +
                    {
         
     | 
| 
      
 124 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 125 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 126 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 127 
     | 
    
         
            +
                      },
         
     | 
| 
      
 128 
     | 
    
         
            +
                      "method": "Flat Rate"
         
     | 
| 
      
 129 
     | 
    
         
            +
                    }
         
     | 
| 
      
 130 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 131 
     | 
    
         
            +
                  "shippingTotal": {
         
     | 
| 
      
 132 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 133 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 134 
     | 
    
         
            +
                  },
         
     | 
| 
      
 135 
     | 
    
         
            +
                  "subtotal": {
         
     | 
| 
      
 136 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 137 
     | 
    
         
            +
                    "value": "55.00"
         
     | 
| 
      
 138 
     | 
    
         
            +
                  },
         
     | 
| 
      
 139 
     | 
    
         
            +
                  "taxTotal": {
         
     | 
| 
      
 140 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 141 
     | 
    
         
            +
                    "value": "2.70"
         
     | 
| 
      
 142 
     | 
    
         
            +
                  },
         
     | 
| 
      
 143 
     | 
    
         
            +
                  "testmode": true
         
     | 
| 
      
 144 
     | 
    
         
            +
                },
         
     | 
| 
      
 145 
     | 
    
         
            +
                {
         
     | 
| 
      
 146 
     | 
    
         
            +
                  "billingAddress": {
         
     | 
| 
      
 147 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 148 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 149 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 150 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 151 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 152 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 153 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 154 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 155 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 156 
     | 
    
         
            +
                  },
         
     | 
| 
      
 157 
     | 
    
         
            +
                  "createdOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 158 
     | 
    
         
            +
                  "customerEmail": "foo@example.com",
         
     | 
| 
      
 159 
     | 
    
         
            +
                  "discountLines": [
         
     | 
| 
      
 160 
     | 
    
         
            +
                    {
         
     | 
| 
      
 161 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 162 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 163 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 164 
     | 
    
         
            +
                      },
         
     | 
| 
      
 165 
     | 
    
         
            +
                      "description": "Fall Sale",
         
     | 
| 
      
 166 
     | 
    
         
            +
                      "promoCode": "FALLSALE"
         
     | 
| 
      
 167 
     | 
    
         
            +
                    }
         
     | 
| 
      
 168 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 169 
     | 
    
         
            +
                  "discountTotal": {
         
     | 
| 
      
 170 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 171 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 172 
     | 
    
         
            +
                  },
         
     | 
| 
      
 173 
     | 
    
         
            +
                  "formSubmission": [
         
     | 
| 
      
 174 
     | 
    
         
            +
                    {
         
     | 
| 
      
 175 
     | 
    
         
            +
                      "label": "How did you hear about us?",
         
     | 
| 
      
 176 
     | 
    
         
            +
                      "value": "Facebook"
         
     | 
| 
      
 177 
     | 
    
         
            +
                    }
         
     | 
| 
      
 178 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 179 
     | 
    
         
            +
                  "fulfillmentStatus": "PENDING",
         
     | 
| 
      
 180 
     | 
    
         
            +
                  "fulfillments": [],
         
     | 
| 
      
 181 
     | 
    
         
            +
                  "grandTotal": {
         
     | 
| 
      
 182 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 183 
     | 
    
         
            +
                    "value": "57.70"
         
     | 
| 
      
 184 
     | 
    
         
            +
                  },
         
     | 
| 
      
 185 
     | 
    
         
            +
                  "id": "585d498fdee9f31a60284a37",
         
     | 
| 
      
 186 
     | 
    
         
            +
                  "internalNotes": [
         
     | 
| 
      
 187 
     | 
    
         
            +
                    {
         
     | 
| 
      
 188 
     | 
    
         
            +
                      "content": "First note"
         
     | 
| 
      
 189 
     | 
    
         
            +
                    },
         
     | 
| 
      
 190 
     | 
    
         
            +
                    {
         
     | 
| 
      
 191 
     | 
    
         
            +
                      "content": "Second note"
         
     | 
| 
      
 192 
     | 
    
         
            +
                    }
         
     | 
| 
      
 193 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 194 
     | 
    
         
            +
                  "lineItems": [
         
     | 
| 
      
 195 
     | 
    
         
            +
                    {
         
     | 
| 
      
 196 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 197 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 198 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 199 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 200 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 201 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 202 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 203 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 204 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 205 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 206 
     | 
    
         
            +
                      },
         
     | 
| 
      
 207 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 208 
     | 
    
         
            +
                        {
         
     | 
| 
      
 209 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 210 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 211 
     | 
    
         
            +
                        },
         
     | 
| 
      
 212 
     | 
    
         
            +
                        {
         
     | 
| 
      
 213 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 214 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 215 
     | 
    
         
            +
                        }
         
     | 
| 
      
 216 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 217 
     | 
    
         
            +
                    },
         
     | 
| 
      
 218 
     | 
    
         
            +
                    {
         
     | 
| 
      
 219 
     | 
    
         
            +
                      "customizations": null,
         
     | 
| 
      
 220 
     | 
    
         
            +
                      "id": "585d4975dee9f31a60284a16",
         
     | 
| 
      
 221 
     | 
    
         
            +
                      "imageUrl": "https://static.squarespace.com/universal/commerce/images/brine-32oz-spring-mix-v2.jpg?format=300w",
         
     | 
| 
      
 222 
     | 
    
         
            +
                      "productId": "565c8f3da7c8a3cf71d5fd0a",
         
     | 
| 
      
 223 
     | 
    
         
            +
                      "productName": "Product",
         
     | 
| 
      
 224 
     | 
    
         
            +
                      "quantity": 1,
         
     | 
| 
      
 225 
     | 
    
         
            +
                      "sku": "SQ3381024",
         
     | 
| 
      
 226 
     | 
    
         
            +
                      "unitPricePaid": {
         
     | 
| 
      
 227 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 228 
     | 
    
         
            +
                        "value": "55.00"
         
     | 
| 
      
 229 
     | 
    
         
            +
                      },
         
     | 
| 
      
 230 
     | 
    
         
            +
                      "variantOptions": [
         
     | 
| 
      
 231 
     | 
    
         
            +
                        {
         
     | 
| 
      
 232 
     | 
    
         
            +
                          "optionName": "Size",
         
     | 
| 
      
 233 
     | 
    
         
            +
                          "value": "Large"
         
     | 
| 
      
 234 
     | 
    
         
            +
                        },
         
     | 
| 
      
 235 
     | 
    
         
            +
                        {
         
     | 
| 
      
 236 
     | 
    
         
            +
                          "optionName": "Color",
         
     | 
| 
      
 237 
     | 
    
         
            +
                          "value": "Black"
         
     | 
| 
      
 238 
     | 
    
         
            +
                        }
         
     | 
| 
      
 239 
     | 
    
         
            +
                      ]
         
     | 
| 
      
 240 
     | 
    
         
            +
                    }
         
     | 
| 
      
 241 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 242 
     | 
    
         
            +
                  "modifiedOn": "2016-12-23T15:58:07.187Z",
         
     | 
| 
      
 243 
     | 
    
         
            +
                  "orderNumber": "3",
         
     | 
| 
      
 244 
     | 
    
         
            +
                  "refundedTotal": {
         
     | 
| 
      
 245 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 246 
     | 
    
         
            +
                    "value": "0.00"
         
     | 
| 
      
 247 
     | 
    
         
            +
                  },
         
     | 
| 
      
 248 
     | 
    
         
            +
                  "shippingAddress": {
         
     | 
| 
      
 249 
     | 
    
         
            +
                    "address1": "459 Broadway",
         
     | 
| 
      
 250 
     | 
    
         
            +
                    "address2": null,
         
     | 
| 
      
 251 
     | 
    
         
            +
                    "city": "New York",
         
     | 
| 
      
 252 
     | 
    
         
            +
                    "countryCode": "US",
         
     | 
| 
      
 253 
     | 
    
         
            +
                    "firstName": "Bob",
         
     | 
| 
      
 254 
     | 
    
         
            +
                    "lastName": "Loblaw",
         
     | 
| 
      
 255 
     | 
    
         
            +
                    "phone": "5553334444",
         
     | 
| 
      
 256 
     | 
    
         
            +
                    "postalCode": "10003",
         
     | 
| 
      
 257 
     | 
    
         
            +
                    "state": "NY"
         
     | 
| 
      
 258 
     | 
    
         
            +
                  },
         
     | 
| 
      
 259 
     | 
    
         
            +
                  "shippingLines": [
         
     | 
| 
      
 260 
     | 
    
         
            +
                    {
         
     | 
| 
      
 261 
     | 
    
         
            +
                      "amount": {
         
     | 
| 
      
 262 
     | 
    
         
            +
                        "currency": "USD",
         
     | 
| 
      
 263 
     | 
    
         
            +
                        "value": "1.00"
         
     | 
| 
      
 264 
     | 
    
         
            +
                      },
         
     | 
| 
      
 265 
     | 
    
         
            +
                      "method": "Flat Rate"
         
     | 
| 
      
 266 
     | 
    
         
            +
                    }
         
     | 
| 
      
 267 
     | 
    
         
            +
                  ],
         
     | 
| 
      
 268 
     | 
    
         
            +
                  "shippingTotal": {
         
     | 
| 
      
 269 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 270 
     | 
    
         
            +
                    "value": "1.00"
         
     | 
| 
      
 271 
     | 
    
         
            +
                  },
         
     | 
| 
      
 272 
     | 
    
         
            +
                  "subtotal": {
         
     | 
| 
      
 273 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 274 
     | 
    
         
            +
                    "value": "55.00"
         
     | 
| 
      
 275 
     | 
    
         
            +
                  },
         
     | 
| 
      
 276 
     | 
    
         
            +
                  "taxTotal": {
         
     | 
| 
      
 277 
     | 
    
         
            +
                    "currency": "USD",
         
     | 
| 
      
 278 
     | 
    
         
            +
                    "value": "2.70"
         
     | 
| 
      
 279 
     | 
    
         
            +
                  },
         
     | 
| 
      
 280 
     | 
    
         
            +
                  "testmode": true
         
     | 
| 
      
 281 
     | 
    
         
            +
                }
         
     | 
| 
      
 282 
     | 
    
         
            +
              ]
         
     | 
| 
      
 283 
     | 
    
         
            +
            }
         
     |