noths 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/Gemfile.lock +69 -0
  4. data/README.md +149 -0
  5. data/Rakefile +8 -0
  6. data/bin/generate_gem +18 -0
  7. data/bin/refresh_schemas +94 -0
  8. data/docs/AcceptanceBulkModel.md +11 -0
  9. data/docs/Currency.md +11 -0
  10. data/docs/DeclineBulkModel.md +9 -0
  11. data/docs/DeliveryAddress.md +13 -0
  12. data/docs/DeliveryService.md +9 -0
  13. data/docs/DeliveryZone.md +9 -0
  14. data/docs/DispatchBulkModel.md +12 -0
  15. data/docs/DispatchNotesBulkModel.md +8 -0
  16. data/docs/Enquiry.md +10 -0
  17. data/docs/EnquiryMessage.md +8 -0
  18. data/docs/Error.md +9 -0
  19. data/docs/Financials.md +25 -0
  20. data/docs/FinancialsDetails.md +10 -0
  21. data/docs/ImageUrl.md +13 -0
  22. data/docs/Item.md +15 -0
  23. data/docs/ItemFinancials.md +13 -0
  24. data/docs/Link.md +10 -0
  25. data/docs/ManualPayment.md +11 -0
  26. data/docs/Money.md +9 -0
  27. data/docs/Order.md +53 -0
  28. data/docs/OrderDetail.md +9 -0
  29. data/docs/OrderDetailsBulkModel.md +8 -0
  30. data/docs/OrderIndex.md +10 -0
  31. data/docs/OrderRefund.md +8 -0
  32. data/docs/OrdersApi.md +796 -0
  33. data/docs/Product.md +12 -0
  34. data/docs/ProductOption.md +9 -0
  35. data/docs/RefundResponse.md +10 -0
  36. data/docs/RefundsApi.md +69 -0
  37. data/docs/SearchResultMeta.md +9 -0
  38. data/docs/User.md +10 -0
  39. data/lib/noths.rb +70 -0
  40. data/lib/noths/api/orders_api.rb +819 -0
  41. data/lib/noths/api/refunds_api.rb +88 -0
  42. data/lib/noths/api_client.rb +389 -0
  43. data/lib/noths/api_error.rb +38 -0
  44. data/lib/noths/configuration.rb +209 -0
  45. data/lib/noths/models/acceptance_bulk_model.rb +233 -0
  46. data/lib/noths/models/currency.rb +235 -0
  47. data/lib/noths/models/decline_bulk_model.rb +208 -0
  48. data/lib/noths/models/delivery_address.rb +263 -0
  49. data/lib/noths/models/delivery_service.rb +207 -0
  50. data/lib/noths/models/delivery_zone.rb +207 -0
  51. data/lib/noths/models/dispatch_bulk_model.rb +236 -0
  52. data/lib/noths/models/dispatch_notes_bulk_model.rb +194 -0
  53. data/lib/noths/models/enquiry.rb +223 -0
  54. data/lib/noths/models/enquiry_message.rb +193 -0
  55. data/lib/noths/models/error.rb +207 -0
  56. data/lib/noths/models/financials.rb +433 -0
  57. data/lib/noths/models/financials_details.rb +221 -0
  58. data/lib/noths/models/image_url.rb +263 -0
  59. data/lib/noths/models/item.rb +293 -0
  60. data/lib/noths/models/item_financials.rb +263 -0
  61. data/lib/noths/models/link.rb +222 -0
  62. data/lib/noths/models/manual_payment.rb +235 -0
  63. data/lib/noths/models/money.rb +207 -0
  64. data/lib/noths/models/order.rb +812 -0
  65. data/lib/noths/models/order_detail.rb +207 -0
  66. data/lib/noths/models/order_details_bulk_model.rb +194 -0
  67. data/lib/noths/models/order_index.rb +225 -0
  68. data/lib/noths/models/order_refund.rb +193 -0
  69. data/lib/noths/models/product.rb +249 -0
  70. data/lib/noths/models/product_option.rb +207 -0
  71. data/lib/noths/models/refund_response.rb +223 -0
  72. data/lib/noths/models/search_result_meta.rb +207 -0
  73. data/lib/noths/models/user.rb +221 -0
  74. data/lib/noths/version.rb +15 -0
  75. data/noths.gemspec +45 -0
  76. data/schemas/api-docs.json +26 -0
  77. data/schemas/orders.json +2013 -0
  78. data/schemas/refunds.json +128 -0
  79. data/spec/api/orders_api_spec.rb +239 -0
  80. data/spec/api/refunds_api_spec.rb +50 -0
  81. data/spec/api_client_spec.rb +226 -0
  82. data/spec/configuration_spec.rb +42 -0
  83. data/spec/models/acceptance_bulk_model_spec.rb +60 -0
  84. data/spec/models/currency_spec.rb +60 -0
  85. data/spec/models/decline_bulk_model_spec.rb +48 -0
  86. data/spec/models/delivery_address_spec.rb +72 -0
  87. data/spec/models/delivery_service_spec.rb +48 -0
  88. data/spec/models/delivery_zone_spec.rb +48 -0
  89. data/spec/models/dispatch_bulk_model_spec.rb +66 -0
  90. data/spec/models/dispatch_notes_bulk_model_spec.rb +42 -0
  91. data/spec/models/enquiry_message_spec.rb +42 -0
  92. data/spec/models/enquiry_spec.rb +54 -0
  93. data/spec/models/error_spec.rb +48 -0
  94. data/spec/models/financials_details_spec.rb +54 -0
  95. data/spec/models/financials_spec.rb +144 -0
  96. data/spec/models/image_url_spec.rb +72 -0
  97. data/spec/models/item_financials_spec.rb +72 -0
  98. data/spec/models/item_spec.rb +84 -0
  99. data/spec/models/link_spec.rb +54 -0
  100. data/spec/models/manual_payment_spec.rb +60 -0
  101. data/spec/models/money_spec.rb +48 -0
  102. data/spec/models/order_detail_spec.rb +48 -0
  103. data/spec/models/order_details_bulk_model_spec.rb +42 -0
  104. data/spec/models/order_index_spec.rb +54 -0
  105. data/spec/models/order_refund_spec.rb +42 -0
  106. data/spec/models/order_spec.rb +312 -0
  107. data/spec/models/product_option_spec.rb +48 -0
  108. data/spec/models/product_spec.rb +66 -0
  109. data/spec/models/refund_response_spec.rb +54 -0
  110. data/spec/models/search_result_meta_spec.rb +48 -0
  111. data/spec/models/user_spec.rb +54 -0
  112. data/spec/spec_helper.rb +111 -0
  113. data/swagger_config.json +16 -0
  114. metadata +370 -0
@@ -0,0 +1,8 @@
1
+ # Noths::DispatchNotesBulkModel
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | Order Id |
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # Noths::Enquiry
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **state** | **String** | |
8
+ **messages** | [**Array<EnquiryMessage>**](EnquiryMessage.md) | |
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # Noths::EnquiryMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **body** | **String** | |
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # Noths::Error
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **code** | **String** | |
7
+ **title** | **String** | |
8
+
9
+
@@ -0,0 +1,25 @@
1
+ # Noths::Financials
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **commission** | [**FinancialsDetails**](FinancialsDetails.md) | |
7
+ **delivery_commission** | [**FinancialsDetails**](FinancialsDetails.md) | |
8
+ **items_commission** | [**FinancialsDetails**](FinancialsDetails.md) | |
9
+ **listing_delivery** | [**FinancialsDetails**](FinancialsDetails.md) | |
10
+ **listing_discount** | [**FinancialsDetails**](FinancialsDetails.md) | |
11
+ **listing_items** | [**FinancialsDetails**](FinancialsDetails.md) | |
12
+ **listing_subtotal** | [**FinancialsDetails**](FinancialsDetails.md) | |
13
+ **listing_total** | [**FinancialsDetails**](FinancialsDetails.md) | |
14
+ **manual_payment_total** | [**FinancialsDetails**](FinancialsDetails.md) | |
15
+ **purchase_delivery** | [**FinancialsDetails**](FinancialsDetails.md) | |
16
+ **purchase_discount** | [**FinancialsDetails**](FinancialsDetails.md) | |
17
+ **purchase_items** | [**FinancialsDetails**](FinancialsDetails.md) | |
18
+ **purchase_subtotal** | [**FinancialsDetails**](FinancialsDetails.md) | |
19
+ **purchase_total** | [**FinancialsDetails**](FinancialsDetails.md) | |
20
+ **partner_total** | [**FinancialsDetails**](FinancialsDetails.md) | |
21
+ **listing_items_discounted** | [**FinancialsDetails**](FinancialsDetails.md) | |
22
+ **listing_total_with_discount** | [**FinancialsDetails**](FinancialsDetails.md) | |
23
+ **manual_payments** | [**Array<ManualPayment>**](ManualPayment.md) | |
24
+
25
+
@@ -0,0 +1,10 @@
1
+ # Noths::FinancialsDetails
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **vat** | [**Money**](Money.md) | |
7
+ **net** | [**Money**](Money.md) | |
8
+ **gross** | [**Money**](Money.md) | |
9
+
10
+
@@ -0,0 +1,13 @@
1
+ # Noths::ImageUrl
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **micro_url** | **String** | |
7
+ **mini_url** | **String** | |
8
+ **thumb_url** | **String** | |
9
+ **medium_url** | **String** | |
10
+ **preview_url** | **String** | |
11
+ **normal_url** | **String** | |
12
+
13
+
@@ -0,0 +1,15 @@
1
+ # Noths::Item
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **item_title** | **String** | |
8
+ **quantity** | **Integer** | |
9
+ **commission_vat_rate** | **String** | |
10
+ **listing_total_gross** | [**Money**](Money.md) | |
11
+ **product** | [**Product**](Product.md) | |
12
+ **options** | [**Array<ProductOption>**](ProductOption.md) | |
13
+ **financials** | [**ItemFinancials**](ItemFinancials.md) | |
14
+
15
+
@@ -0,0 +1,13 @@
1
+ # Noths::ItemFinancials
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **commission_rate** | **Integer** | |
7
+ **commission_vat_rate** | **Integer** | |
8
+ **commission** | [**FinancialsDetails**](FinancialsDetails.md) | |
9
+ **listing_price** | [**FinancialsDetails**](FinancialsDetails.md) | |
10
+ **listing_total** | [**FinancialsDetails**](FinancialsDetails.md) | |
11
+ **listing_discounted_price** | [**FinancialsDetails**](FinancialsDetails.md) | |
12
+
13
+
@@ -0,0 +1,10 @@
1
+ # Noths::Link
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **rel** | **String** | a unique reference for an action or relation on this object |
7
+ **method** | **String** | |
8
+ **href** | **String** | |
9
+
10
+
@@ -0,0 +1,11 @@
1
+ # Noths::ManualPayment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **payment_reason** | **String** | |
8
+ **commission** | [**FinancialsDetails**](FinancialsDetails.md) | |
9
+ **amount** | [**FinancialsDetails**](FinancialsDetails.md) | |
10
+
11
+
@@ -0,0 +1,9 @@
1
+ # Noths::Money
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **cents** | **Integer** | |
7
+ **currency** | [**Currency**](Currency.md) | |
8
+
9
+
@@ -0,0 +1,53 @@
1
+ # Noths::Order
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+ **state** | **String** | |
8
+ **confirm_by** | **Date** | |
9
+ **estimated_dispatch_at** | **Date** | |
10
+ **placed_at** | **Date** | |
11
+ **expired_at** | **Date** | |
12
+ **declined_at** | **Date** | |
13
+ **accepted_at** | **Date** | |
14
+ **dispatched_at** | **Date** | |
15
+ **archived_at** | **Date** | | [optional]
16
+ **repeat_customer** | **BOOLEAN** | |
17
+ **customer_expected_delivery_date** | **Date** | |
18
+ **number** | **String** | |
19
+ **dispatch_note_viewed** | **BOOLEAN** | |
20
+ **express** | **BOOLEAN** | |
21
+ **partner_name** | **String** | |
22
+ **delivery_recipient_name** | **String** | |
23
+ **delivery_recipient_first_name** | **String** | |
24
+ **delivery_recipient_last_name** | **String** | |
25
+ **international** | **BOOLEAN** | |
26
+ **dispatch_overdue** | **BOOLEAN** | |
27
+ **gift** | **BOOLEAN** | |
28
+ **gift_message** | **String** | |
29
+ **gift_wrap** | **BOOLEAN** | |
30
+ **gift_receipt** | **BOOLEAN** | |
31
+ **delivery_note** | **String** | |
32
+ **has_enquiry** | **BOOLEAN** | |
33
+ **estimated_delivery_date** | **Date** | |
34
+ **rebate_qualified** | **BOOLEAN** | null in sites where rebates are not offered | [optional]
35
+ **rebate_achieved** | **BOOLEAN** | null in sites where rebates are not offered | [optional]
36
+ **financials** | [**Financials**](Financials.md) | |
37
+ **promotion_discount** | **Integer** | |
38
+ **promotion_present** | **BOOLEAN** | |
39
+ **remaining_refund_amount** | [**Money**](Money.md) | |
40
+ **refund_total** | [**Money**](Money.md) | |
41
+ **extra_refund_amount** | [**Money**](Money.md) | |
42
+ **user** | [**User**](User.md) | |
43
+ **delivery_address** | [**DeliveryAddress**](DeliveryAddress.md) | |
44
+ **delivery_zone** | [**DeliveryZone**](DeliveryZone.md) | |
45
+ **delivery_service** | [**DeliveryService**](DeliveryService.md) | |
46
+ **order_detail** | [**OrderDetail**](OrderDetail.md) | |
47
+ **order_total** | [**Money**](Money.md) | |
48
+ **delivery_total** | [**Money**](Money.md) | |
49
+ **enquiry** | [**Enquiry**](Enquiry.md) | |
50
+ **items** | [**Item**](Item.md) | |
51
+ **links** | [**Array<Link>**](Link.md) | |
52
+
53
+
@@ -0,0 +1,9 @@
1
+ # Noths::OrderDetail
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **tracking_number** | **String** | |
7
+ **parcel_tracking_url** | **String** | |
8
+
9
+
@@ -0,0 +1,8 @@
1
+ # Noths::OrderDetailsBulkModel
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | Order Id |
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # Noths::OrderIndex
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **query** | [**SearchResultMeta**](SearchResultMeta.md) | |
7
+ **data** | [**Array<Order>**](Order.md) | |
8
+ **links** | [**Array<Link>**](Link.md) | |
9
+
10
+
@@ -0,0 +1,8 @@
1
+ # Noths::OrderRefund
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | |
7
+
8
+
@@ -0,0 +1,796 @@
1
+ # Noths::OrdersApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**orders_acceptance**](OrdersApi.md#orders_acceptance) | **POST** /api/v1/orders/{id}/accept | Accept an order
8
+ [**orders_acceptance_bulk**](OrdersApi.md#orders_acceptance_bulk) | **POST** /api/v1/orders/accept | Accept multiple orders
9
+ [**orders_decline**](OrdersApi.md#orders_decline) | **POST** /api/v1/orders/{id}/decline | Decline an order
10
+ [**orders_decline_bulk**](OrdersApi.md#orders_decline_bulk) | **POST** /api/v1/orders/decline | Decline multiple orders
11
+ [**orders_dispatch_note**](OrdersApi.md#orders_dispatch_note) | **GET** /api/v1/orders/{id}/dispatch_note | Generate a dispatch note pdf or gift note pdf.
12
+ [**orders_dispatch_notes_bulk**](OrdersApi.md#orders_dispatch_notes_bulk) | **POST** /api/v1/orders/dispatch_notes | Generate pdf with dispatch note for each order
13
+ [**orders_dispatch_order**](OrdersApi.md#orders_dispatch_order) | **POST** /api/v1/orders/{id}/dispatch | Dispatch an order
14
+ [**orders_dispatch_orders_bulk**](OrdersApi.md#orders_dispatch_orders_bulk) | **POST** /api/v1/orders/dispatch | Dispatch multiple orders
15
+ [**orders_index**](OrdersApi.md#orders_index) | **GET** /api/v1/orders | Fetch orders
16
+ [**orders_invoice**](OrdersApi.md#orders_invoice) | **GET** /api/v1/orders/{id}/invoice | Generate a vat invoice pdf.
17
+ [**orders_order_details**](OrdersApi.md#orders_order_details) | **GET** /api/v1/orders/{id}/order_details | Generate an order details pdf
18
+ [**orders_order_details_bulk**](OrdersApi.md#orders_order_details_bulk) | **POST** /api/v1/orders/order_details | Generate pdf with order details for each order
19
+ [**orders_show**](OrdersApi.md#orders_show) | **GET** /api/v1/orders/{id} | Fetch a single Order
20
+
21
+
22
+ # **orders_acceptance**
23
+ > orders_acceptance(id, estimated_delivery_date, estimated_dispatch_at, opts)
24
+
25
+ Accept an order
26
+
27
+ Accept an order that is in the placed state. Note: In rare instances orders may not transition to the 'accepted' state immediately.
28
+
29
+ ### Example
30
+ ```ruby
31
+ # load the gem
32
+ require 'noths'
33
+ # setup authorization
34
+ Noths.configure do |config|
35
+ # Configure API key authorization: token
36
+ config.api_key['token'] = 'YOUR API KEY'
37
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
38
+ #config.api_key_prefix['token'] = 'Bearer'
39
+ end
40
+
41
+ api_instance = Noths::OrdersApi.new
42
+
43
+ id = 56 # Integer | Order id
44
+
45
+ estimated_delivery_date = Date.parse("2013-10-20") # Date | 'yyyy-mm-dd'
46
+
47
+ estimated_dispatch_at = Date.parse("2013-10-20") # Date | 'yyyy-mm-dd'
48
+
49
+ opts = {
50
+ confirmation_note: "confirmation_note_example" # String |
51
+ }
52
+
53
+ begin
54
+ #Accept an order
55
+ api_instance.orders_acceptance(id, estimated_delivery_date, estimated_dispatch_at, opts)
56
+ rescue Noths::ApiError => e
57
+ puts "Exception when calling OrdersApi->orders_acceptance: #{e}"
58
+ end
59
+ ```
60
+
61
+ ### Parameters
62
+
63
+ Name | Type | Description | Notes
64
+ ------------- | ------------- | ------------- | -------------
65
+ **id** | **Integer**| Order id |
66
+ **estimated_delivery_date** | **Date**| 'yyyy-mm-dd' |
67
+ **estimated_dispatch_at** | **Date**| 'yyyy-mm-dd' |
68
+ **confirmation_note** | **String**| | [optional]
69
+
70
+ ### Return type
71
+
72
+ nil (empty response body)
73
+
74
+ ### Authorization
75
+
76
+ [token](../README.md#token)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: Not defined
81
+ - **Accept**: Not defined
82
+
83
+
84
+
85
+ # **orders_acceptance_bulk**
86
+ > orders_acceptance_bulk(payload)
87
+
88
+ Accept multiple orders
89
+
90
+ Returns an array of hashes containing order ids and status codes. A status code of 200 indicates that the order was eligible to be accepted and is expected to be processed successfully. This is not a guarantee that the order will be accepted. Processing acceptance is not instantaneous and may take some time while funds are captured. Example response: <pre> [ { \"id\": 12, \"status\": 200, \"errors\": [] }, { \"id\": 22, \"status\": 404, \"errors\": [ { \"code\": \"RESOURCE_NOT_FOUND\", \"title\": \"Couldn't find the requested resource\" } ] } ] </pre>
91
+
92
+ ### Example
93
+ ```ruby
94
+ # load the gem
95
+ require 'noths'
96
+ # setup authorization
97
+ Noths.configure do |config|
98
+ # Configure API key authorization: token
99
+ config.api_key['token'] = 'YOUR API KEY'
100
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
101
+ #config.api_key_prefix['token'] = 'Bearer'
102
+ end
103
+
104
+ api_instance = Noths::OrdersApi.new
105
+
106
+ payload = [Noths::AcceptanceBulkModel.new] # Array<AcceptanceBulkModel> |
107
+
108
+
109
+ begin
110
+ #Accept multiple orders
111
+ api_instance.orders_acceptance_bulk(payload)
112
+ rescue Noths::ApiError => e
113
+ puts "Exception when calling OrdersApi->orders_acceptance_bulk: #{e}"
114
+ end
115
+ ```
116
+
117
+ ### Parameters
118
+
119
+ Name | Type | Description | Notes
120
+ ------------- | ------------- | ------------- | -------------
121
+ **payload** | [**Array&lt;AcceptanceBulkModel&gt;**](AcceptanceBulkModel.md)| |
122
+
123
+ ### Return type
124
+
125
+ nil (empty response body)
126
+
127
+ ### Authorization
128
+
129
+ [token](../README.md#token)
130
+
131
+ ### HTTP request headers
132
+
133
+ - **Content-Type**: Not defined
134
+ - **Accept**: Not defined
135
+
136
+
137
+
138
+ # **orders_decline**
139
+ > orders_decline(id, decline_reason)
140
+
141
+ Decline an order
142
+
143
+ Declines an order that is in the placed state
144
+
145
+ ### Example
146
+ ```ruby
147
+ # load the gem
148
+ require 'noths'
149
+ # setup authorization
150
+ Noths.configure do |config|
151
+ # Configure API key authorization: token
152
+ config.api_key['token'] = 'YOUR API KEY'
153
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
154
+ #config.api_key_prefix['token'] = 'Bearer'
155
+ end
156
+
157
+ api_instance = Noths::OrdersApi.new
158
+
159
+ id = 56 # Integer | Order id
160
+
161
+ decline_reason = "decline_reason_example" # String |
162
+
163
+
164
+ begin
165
+ #Decline an order
166
+ api_instance.orders_decline(id, decline_reason)
167
+ rescue Noths::ApiError => e
168
+ puts "Exception when calling OrdersApi->orders_decline: #{e}"
169
+ end
170
+ ```
171
+
172
+ ### Parameters
173
+
174
+ Name | Type | Description | Notes
175
+ ------------- | ------------- | ------------- | -------------
176
+ **id** | **Integer**| Order id |
177
+ **decline_reason** | **String**| |
178
+
179
+ ### Return type
180
+
181
+ nil (empty response body)
182
+
183
+ ### Authorization
184
+
185
+ [token](../README.md#token)
186
+
187
+ ### HTTP request headers
188
+
189
+ - **Content-Type**: Not defined
190
+ - **Accept**: Not defined
191
+
192
+
193
+
194
+ # **orders_decline_bulk**
195
+ > orders_decline_bulk(payload)
196
+
197
+ Decline multiple orders
198
+
199
+ Returns an array of hashes containing order ids and status codes. A status code of 200 indicates a successful update whereas a code of 400 indicates failure. Example response: <pre> [ { \"id\": 12, \"status\": 200, \"errors\": [] }, { \"id\": 22, \"status\": 404, \"errors\": [ { \"code\": \"RESOURCE_NOT_FOUND\", \"title\": \"Couldn't find the requested resource\" } ] } ] </pre>
200
+
201
+ ### Example
202
+ ```ruby
203
+ # load the gem
204
+ require 'noths'
205
+ # setup authorization
206
+ Noths.configure do |config|
207
+ # Configure API key authorization: token
208
+ config.api_key['token'] = 'YOUR API KEY'
209
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
210
+ #config.api_key_prefix['token'] = 'Bearer'
211
+ end
212
+
213
+ api_instance = Noths::OrdersApi.new
214
+
215
+ payload = [Noths::DeclineBulkModel.new] # Array<DeclineBulkModel> |
216
+
217
+
218
+ begin
219
+ #Decline multiple orders
220
+ api_instance.orders_decline_bulk(payload)
221
+ rescue Noths::ApiError => e
222
+ puts "Exception when calling OrdersApi->orders_decline_bulk: #{e}"
223
+ end
224
+ ```
225
+
226
+ ### Parameters
227
+
228
+ Name | Type | Description | Notes
229
+ ------------- | ------------- | ------------- | -------------
230
+ **payload** | [**Array&lt;DeclineBulkModel&gt;**](DeclineBulkModel.md)| |
231
+
232
+ ### Return type
233
+
234
+ nil (empty response body)
235
+
236
+ ### Authorization
237
+
238
+ [token](../README.md#token)
239
+
240
+ ### HTTP request headers
241
+
242
+ - **Content-Type**: Not defined
243
+ - **Accept**: Not defined
244
+
245
+
246
+
247
+ # **orders_dispatch_note**
248
+ > orders_dispatch_note(id, opts)
249
+
250
+ Generate a dispatch note pdf or gift note pdf.
251
+
252
+ Force the kind of document by passing the force_type parameter. A gift note can only be printed for an order that is a gift, which will be the default behaviour.<p/>Here is an example of how to obtain a pdf using curl: <pre>curl -XPOST [URL] > document.pdf</pre>
253
+
254
+ ### Example
255
+ ```ruby
256
+ # load the gem
257
+ require 'noths'
258
+ # setup authorization
259
+ Noths.configure do |config|
260
+ # Configure API key authorization: token
261
+ config.api_key['token'] = 'YOUR API KEY'
262
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
263
+ #config.api_key_prefix['token'] = 'Bearer'
264
+ end
265
+
266
+ api_instance = Noths::OrdersApi.new
267
+
268
+ id = 56 # Integer | Order id
269
+
270
+ opts = {
271
+ force_type: "force_type_example" # String | Type of document
272
+ }
273
+
274
+ begin
275
+ #Generate a dispatch note pdf or gift note pdf.
276
+ api_instance.orders_dispatch_note(id, opts)
277
+ rescue Noths::ApiError => e
278
+ puts "Exception when calling OrdersApi->orders_dispatch_note: #{e}"
279
+ end
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ Name | Type | Description | Notes
285
+ ------------- | ------------- | ------------- | -------------
286
+ **id** | **Integer**| Order id |
287
+ **force_type** | **String**| Type of document | [optional]
288
+
289
+ ### Return type
290
+
291
+ nil (empty response body)
292
+
293
+ ### Authorization
294
+
295
+ [token](../README.md#token)
296
+
297
+ ### HTTP request headers
298
+
299
+ - **Content-Type**: Not defined
300
+ - **Accept**: Not defined
301
+
302
+
303
+
304
+ # **orders_dispatch_notes_bulk**
305
+ > orders_dispatch_notes_bulk(payload)
306
+
307
+ Generate pdf with dispatch note for each order
308
+
309
+ <p/> Here is an example of how to obtain a pdf using curl: <pre>curl -H \"Content-Type: application/json\" -d '[{\"id\": 123}, {\"id\": 456}]' -XPOST [URL] > document.pdf</pre><p/> Ensure that the Content-Type header is set to \"Content-Type: application/json\".<p/>
310
+
311
+ ### Example
312
+ ```ruby
313
+ # load the gem
314
+ require 'noths'
315
+ # setup authorization
316
+ Noths.configure do |config|
317
+ # Configure API key authorization: token
318
+ config.api_key['token'] = 'YOUR API KEY'
319
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
320
+ #config.api_key_prefix['token'] = 'Bearer'
321
+ end
322
+
323
+ api_instance = Noths::OrdersApi.new
324
+
325
+ payload = [Noths::DispatchNotesBulkModel.new] # Array<DispatchNotesBulkModel> |
326
+
327
+
328
+ begin
329
+ #Generate pdf with dispatch note for each order
330
+ api_instance.orders_dispatch_notes_bulk(payload)
331
+ rescue Noths::ApiError => e
332
+ puts "Exception when calling OrdersApi->orders_dispatch_notes_bulk: #{e}"
333
+ end
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ Name | Type | Description | Notes
339
+ ------------- | ------------- | ------------- | -------------
340
+ **payload** | [**Array&lt;DispatchNotesBulkModel&gt;**](DispatchNotesBulkModel.md)| |
341
+
342
+ ### Return type
343
+
344
+ nil (empty response body)
345
+
346
+ ### Authorization
347
+
348
+ [token](../README.md#token)
349
+
350
+ ### HTTP request headers
351
+
352
+ - **Content-Type**: Not defined
353
+ - **Accept**: Not defined
354
+
355
+
356
+
357
+ # **orders_dispatch_order**
358
+ > orders_dispatch_order(id, estimated_delivery_date, opts)
359
+
360
+ Dispatch an order
361
+
362
+ Dispatches an order that is in an accepted state and has also had its dispatch note printed
363
+
364
+ ### Example
365
+ ```ruby
366
+ # load the gem
367
+ require 'noths'
368
+ # setup authorization
369
+ Noths.configure do |config|
370
+ # Configure API key authorization: token
371
+ config.api_key['token'] = 'YOUR API KEY'
372
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
373
+ #config.api_key_prefix['token'] = 'Bearer'
374
+ end
375
+
376
+ api_instance = Noths::OrdersApi.new
377
+
378
+ id = 56 # Integer | Order id
379
+
380
+ estimated_delivery_date = Date.parse("2013-10-20") # Date | 'yyyy-mm-dd'
381
+
382
+ opts = {
383
+ resolve_enquiry: true, # BOOLEAN |
384
+ tracking_number: "tracking_number_example", # String |
385
+ parcel_tracking_url: "parcel_tracking_url_example", # String |
386
+ ignore_unresolved_enquiries: true # BOOLEAN | Defaults to false
387
+ }
388
+
389
+ begin
390
+ #Dispatch an order
391
+ api_instance.orders_dispatch_order(id, estimated_delivery_date, opts)
392
+ rescue Noths::ApiError => e
393
+ puts "Exception when calling OrdersApi->orders_dispatch_order: #{e}"
394
+ end
395
+ ```
396
+
397
+ ### Parameters
398
+
399
+ Name | Type | Description | Notes
400
+ ------------- | ------------- | ------------- | -------------
401
+ **id** | **Integer**| Order id |
402
+ **estimated_delivery_date** | **Date**| &#39;yyyy-mm-dd&#39; |
403
+ **resolve_enquiry** | **BOOLEAN**| | [optional]
404
+ **tracking_number** | **String**| | [optional]
405
+ **parcel_tracking_url** | **String**| | [optional]
406
+ **ignore_unresolved_enquiries** | **BOOLEAN**| Defaults to false | [optional]
407
+
408
+ ### Return type
409
+
410
+ nil (empty response body)
411
+
412
+ ### Authorization
413
+
414
+ [token](../README.md#token)
415
+
416
+ ### HTTP request headers
417
+
418
+ - **Content-Type**: Not defined
419
+ - **Accept**: Not defined
420
+
421
+
422
+
423
+ # **orders_dispatch_orders_bulk**
424
+ > orders_dispatch_orders_bulk(payload, opts)
425
+
426
+ Dispatch multiple orders
427
+
428
+ Returns an array of hashes containing order ids and status codes. A status code of 200 indicates a successful update whereas a code of 400 indicates failure. Example response: <pre> [ { \"id\": 12, \"status\": 200, \"errors\": [] }, { \"id\": 22, \"status\": 404, \"errors\": [ { \"code\": \"RESOURCE_NOT_FOUND\", \"title\": \"Couldn't find the requested resource\" } ] } ] </pre>
429
+
430
+ ### Example
431
+ ```ruby
432
+ # load the gem
433
+ require 'noths'
434
+ # setup authorization
435
+ Noths.configure do |config|
436
+ # Configure API key authorization: token
437
+ config.api_key['token'] = 'YOUR API KEY'
438
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
439
+ #config.api_key_prefix['token'] = 'Bearer'
440
+ end
441
+
442
+ api_instance = Noths::OrdersApi.new
443
+
444
+ payload = [Noths::DispatchBulkModel.new] # Array<DispatchBulkModel> |
445
+
446
+ opts = {
447
+ ignore_unresolved_enquiries: true # BOOLEAN | Defaults to false
448
+ }
449
+
450
+ begin
451
+ #Dispatch multiple orders
452
+ api_instance.orders_dispatch_orders_bulk(payload, opts)
453
+ rescue Noths::ApiError => e
454
+ puts "Exception when calling OrdersApi->orders_dispatch_orders_bulk: #{e}"
455
+ end
456
+ ```
457
+
458
+ ### Parameters
459
+
460
+ Name | Type | Description | Notes
461
+ ------------- | ------------- | ------------- | -------------
462
+ **payload** | [**Array&lt;DispatchBulkModel&gt;**](DispatchBulkModel.md)| |
463
+ **ignore_unresolved_enquiries** | **BOOLEAN**| Defaults to false | [optional]
464
+
465
+ ### Return type
466
+
467
+ nil (empty response body)
468
+
469
+ ### Authorization
470
+
471
+ [token](../README.md#token)
472
+
473
+ ### HTTP request headers
474
+
475
+ - **Content-Type**: Not defined
476
+ - **Accept**: Not defined
477
+
478
+
479
+
480
+ # **orders_index**
481
+ > OrderIndex orders_index(opts)
482
+
483
+ Fetch orders
484
+
485
+ Lists orders descending by placed at time by default.<p/>If you just want a count, use per_page=0 and offset=0 .
486
+
487
+ ### Example
488
+ ```ruby
489
+ # load the gem
490
+ require 'noths'
491
+ # setup authorization
492
+ Noths.configure do |config|
493
+ # Configure API key authorization: token
494
+ config.api_key['token'] = 'YOUR API KEY'
495
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
496
+ #config.api_key_prefix['token'] = 'Bearer'
497
+ end
498
+
499
+ api_instance = Noths::OrdersApi.new
500
+
501
+ opts = {
502
+ customer_expected_delivery_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Earliest customer_expected_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'
503
+ customer_expected_delivery_date_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Latest customer_expected_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'
504
+ delivery_service_code: "delivery_service_code_example", # String | Delivery service code
505
+ delivery_zone_ids: "delivery_zone_ids_example", # String | List of delivery zone ids
506
+ dir: "dir_example", # String | Direction (defaults to desc)
507
+ dispatch_note_viewed: true, # BOOLEAN |
508
+ enquiry_state: "enquiry_state_example", # String | Enquiry state where `unresolved` includes `opened`, `acknowledged` and `overdue`
509
+ estimated_delivery_date_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Earliest estimated_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'
510
+ estimated_delivery_date_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Latest estimated_delivery_date datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'
511
+ estimated_dispatch_at_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Earliest estimated_dispatch_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'
512
+ estimated_dispatch_at_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Latest estimated_dispatch_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'
513
+ updated_at_from: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Earliest updated_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'. Is not changed on nested resource updates eg 'Enquiry'
514
+ updated_at_to: DateTime.parse("2013-10-20T19:20:30+01:00"), # DateTime | Latest updated_at datetime - format iso8601 eg '2011-10-05T22:26:12-04:00'. Is not changed on nested resource updates eg 'Enquiry'
515
+ gift: true, # BOOLEAN |
516
+ unresolved_enquiry: true, # BOOLEAN |
517
+ ids: "ids_example", # String | List of order ids
518
+ offset: 56, # Integer |
519
+ per_page: 56, # Integer | Defaults to 30, maximum is 250
520
+ product_ids: "product_ids_example", # String | List of product ids
521
+ query: "query_example", # String | Matches your query to information related to your orders
522
+ repeat_customer: true, # BOOLEAN |
523
+ sort: "sort_example", # String | Defaults to placed_at
524
+ state: "state_example" # String | State
525
+ }
526
+
527
+ begin
528
+ #Fetch orders
529
+ result = api_instance.orders_index(opts)
530
+ p result
531
+ rescue Noths::ApiError => e
532
+ puts "Exception when calling OrdersApi->orders_index: #{e}"
533
+ end
534
+ ```
535
+
536
+ ### Parameters
537
+
538
+ Name | Type | Description | Notes
539
+ ------------- | ------------- | ------------- | -------------
540
+ **customer_expected_delivery_date_from** | **DateTime**| Earliest customer_expected_delivery_date datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39; | [optional]
541
+ **customer_expected_delivery_date_to** | **DateTime**| Latest customer_expected_delivery_date datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39; | [optional]
542
+ **delivery_service_code** | **String**| Delivery service code | [optional]
543
+ **delivery_zone_ids** | **String**| List of delivery zone ids | [optional]
544
+ **dir** | **String**| Direction (defaults to desc) | [optional]
545
+ **dispatch_note_viewed** | **BOOLEAN**| | [optional]
546
+ **enquiry_state** | **String**| Enquiry state where &#x60;unresolved&#x60; includes &#x60;opened&#x60;, &#x60;acknowledged&#x60; and &#x60;overdue&#x60; | [optional]
547
+ **estimated_delivery_date_from** | **DateTime**| Earliest estimated_delivery_date datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39; | [optional]
548
+ **estimated_delivery_date_to** | **DateTime**| Latest estimated_delivery_date datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39; | [optional]
549
+ **estimated_dispatch_at_from** | **DateTime**| Earliest estimated_dispatch_at datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39; | [optional]
550
+ **estimated_dispatch_at_to** | **DateTime**| Latest estimated_dispatch_at datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39; | [optional]
551
+ **updated_at_from** | **DateTime**| Earliest updated_at datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39;. Is not changed on nested resource updates eg &#39;Enquiry&#39; | [optional]
552
+ **updated_at_to** | **DateTime**| Latest updated_at datetime - format iso8601 eg &#39;2011-10-05T22:26:12-04:00&#39;. Is not changed on nested resource updates eg &#39;Enquiry&#39; | [optional]
553
+ **gift** | **BOOLEAN**| | [optional]
554
+ **unresolved_enquiry** | **BOOLEAN**| | [optional]
555
+ **ids** | **String**| List of order ids | [optional]
556
+ **offset** | **Integer**| | [optional]
557
+ **per_page** | **Integer**| Defaults to 30, maximum is 250 | [optional]
558
+ **product_ids** | **String**| List of product ids | [optional]
559
+ **query** | **String**| Matches your query to information related to your orders | [optional]
560
+ **repeat_customer** | **BOOLEAN**| | [optional]
561
+ **sort** | **String**| Defaults to placed_at | [optional]
562
+ **state** | **String**| State | [optional]
563
+
564
+ ### Return type
565
+
566
+ [**OrderIndex**](OrderIndex.md)
567
+
568
+ ### Authorization
569
+
570
+ [token](../README.md#token)
571
+
572
+ ### HTTP request headers
573
+
574
+ - **Content-Type**: Not defined
575
+ - **Accept**: Not defined
576
+
577
+
578
+
579
+ # **orders_invoice**
580
+ > orders_invoice(id, type)
581
+
582
+ Generate a vat invoice pdf.
583
+
584
+ <p>Invoices are currently only applicable for the UK site</p>Here is an example of how to obtain a pdf using curl: <pre>curl -XPOST [URL] > document.pdf</pre>
585
+
586
+ ### Example
587
+ ```ruby
588
+ # load the gem
589
+ require 'noths'
590
+ # setup authorization
591
+ Noths.configure do |config|
592
+ # Configure API key authorization: token
593
+ config.api_key['token'] = 'YOUR API KEY'
594
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
595
+ #config.api_key_prefix['token'] = 'Bearer'
596
+ end
597
+
598
+ api_instance = Noths::OrdersApi.new
599
+
600
+ id = 56 # Integer | Order id
601
+
602
+ type = "type_example" # String | Type of invoice
603
+
604
+
605
+ begin
606
+ #Generate a vat invoice pdf.
607
+ api_instance.orders_invoice(id, type)
608
+ rescue Noths::ApiError => e
609
+ puts "Exception when calling OrdersApi->orders_invoice: #{e}"
610
+ end
611
+ ```
612
+
613
+ ### Parameters
614
+
615
+ Name | Type | Description | Notes
616
+ ------------- | ------------- | ------------- | -------------
617
+ **id** | **Integer**| Order id |
618
+ **type** | **String**| Type of invoice |
619
+
620
+ ### Return type
621
+
622
+ nil (empty response body)
623
+
624
+ ### Authorization
625
+
626
+ [token](../README.md#token)
627
+
628
+ ### HTTP request headers
629
+
630
+ - **Content-Type**: Not defined
631
+ - **Accept**: Not defined
632
+
633
+
634
+
635
+ # **orders_order_details**
636
+ > orders_order_details(id)
637
+
638
+ Generate an order details pdf
639
+
640
+ Here is an example of how to obtain a pdf using curl: <pre>curl -XPOST [URL] > document.pdf</pre>
641
+
642
+ ### Example
643
+ ```ruby
644
+ # load the gem
645
+ require 'noths'
646
+ # setup authorization
647
+ Noths.configure do |config|
648
+ # Configure API key authorization: token
649
+ config.api_key['token'] = 'YOUR API KEY'
650
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
651
+ #config.api_key_prefix['token'] = 'Bearer'
652
+ end
653
+
654
+ api_instance = Noths::OrdersApi.new
655
+
656
+ id = 56 # Integer | Order id
657
+
658
+
659
+ begin
660
+ #Generate an order details pdf
661
+ api_instance.orders_order_details(id)
662
+ rescue Noths::ApiError => e
663
+ puts "Exception when calling OrdersApi->orders_order_details: #{e}"
664
+ end
665
+ ```
666
+
667
+ ### Parameters
668
+
669
+ Name | Type | Description | Notes
670
+ ------------- | ------------- | ------------- | -------------
671
+ **id** | **Integer**| Order id |
672
+
673
+ ### Return type
674
+
675
+ nil (empty response body)
676
+
677
+ ### Authorization
678
+
679
+ [token](../README.md#token)
680
+
681
+ ### HTTP request headers
682
+
683
+ - **Content-Type**: Not defined
684
+ - **Accept**: Not defined
685
+
686
+
687
+
688
+ # **orders_order_details_bulk**
689
+ > orders_order_details_bulk(payload)
690
+
691
+ Generate pdf with order details for each order
692
+
693
+ <p/> Here is an example of how to obtain a pdf using curl: <pre>curl -H \"Content-Type: application/json\" -d '[{\"id\": 123}, {\"id\": 456}]' -XPOST [URL] > document.pdf</pre><p/> Ensure that the Content-Type header is set to \"Content-Type: application/json\".<p/>
694
+
695
+ ### Example
696
+ ```ruby
697
+ # load the gem
698
+ require 'noths'
699
+ # setup authorization
700
+ Noths.configure do |config|
701
+ # Configure API key authorization: token
702
+ config.api_key['token'] = 'YOUR API KEY'
703
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
704
+ #config.api_key_prefix['token'] = 'Bearer'
705
+ end
706
+
707
+ api_instance = Noths::OrdersApi.new
708
+
709
+ payload = [Noths::OrderDetailsBulkModel.new] # Array<OrderDetailsBulkModel> |
710
+
711
+
712
+ begin
713
+ #Generate pdf with order details for each order
714
+ api_instance.orders_order_details_bulk(payload)
715
+ rescue Noths::ApiError => e
716
+ puts "Exception when calling OrdersApi->orders_order_details_bulk: #{e}"
717
+ end
718
+ ```
719
+
720
+ ### Parameters
721
+
722
+ Name | Type | Description | Notes
723
+ ------------- | ------------- | ------------- | -------------
724
+ **payload** | [**Array&lt;OrderDetailsBulkModel&gt;**](OrderDetailsBulkModel.md)| |
725
+
726
+ ### Return type
727
+
728
+ nil (empty response body)
729
+
730
+ ### Authorization
731
+
732
+ [token](../README.md#token)
733
+
734
+ ### HTTP request headers
735
+
736
+ - **Content-Type**: Not defined
737
+ - **Accept**: Not defined
738
+
739
+
740
+
741
+ # **orders_show**
742
+ > Order orders_show(id, opts)
743
+
744
+ Fetch a single Order
745
+
746
+ ### Example
747
+ ```ruby
748
+ # load the gem
749
+ require 'noths'
750
+ # setup authorization
751
+ Noths.configure do |config|
752
+ # Configure API key authorization: token
753
+ config.api_key['token'] = 'YOUR API KEY'
754
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
755
+ #config.api_key_prefix['token'] = 'Bearer'
756
+ end
757
+
758
+ api_instance = Noths::OrdersApi.new
759
+
760
+ id = 56 # Integer | Order Id
761
+
762
+ opts = {
763
+ include: "include_example" # String | Comma separated list of nodes to expand. Currently the available values are: <br /><b style=\"margin-left: 10px\">financials</b> <p style=\"margin-left: 20px\"> Additional financial data about this order, eg: commission and discount amounts. </p>
764
+ }
765
+
766
+ begin
767
+ #Fetch a single Order
768
+ result = api_instance.orders_show(id, opts)
769
+ p result
770
+ rescue Noths::ApiError => e
771
+ puts "Exception when calling OrdersApi->orders_show: #{e}"
772
+ end
773
+ ```
774
+
775
+ ### Parameters
776
+
777
+ Name | Type | Description | Notes
778
+ ------------- | ------------- | ------------- | -------------
779
+ **id** | **Integer**| Order Id |
780
+ **include** | **String**| Comma separated list of nodes to expand. Currently the available values are: &lt;br /&gt;&lt;b style&#x3D;\&quot;margin-left: 10px\&quot;&gt;financials&lt;/b&gt; &lt;p style&#x3D;\&quot;margin-left: 20px\&quot;&gt; Additional financial data about this order, eg: commission and discount amounts. &lt;/p&gt; | [optional]
781
+
782
+ ### Return type
783
+
784
+ [**Order**](Order.md)
785
+
786
+ ### Authorization
787
+
788
+ [token](../README.md#token)
789
+
790
+ ### HTTP request headers
791
+
792
+ - **Content-Type**: Not defined
793
+ - **Accept**: Not defined
794
+
795
+
796
+