square_connect 2.0.2.69 → 2.1.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (231) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +133 -21
  3. data/docs/ChargeRequest.md +1 -1
  4. data/docs/CheckoutApi.md +8 -6
  5. data/docs/CustomersApi.md +389 -0
  6. data/docs/Device.md +11 -0
  7. data/docs/LocationsApi.md +55 -0
  8. data/docs/TransactionsApi.md +417 -0
  9. data/docs/V1AdjustInventoryRequest.md +12 -0
  10. data/docs/V1BankAccount.md +17 -0
  11. data/docs/V1CashDrawerEvent.md +15 -0
  12. data/docs/V1CashDrawerShift.md +28 -0
  13. data/docs/V1Category.md +11 -0
  14. data/docs/V1CreateRefundRequest.md +14 -0
  15. data/docs/V1Discount.md +16 -0
  16. data/docs/V1Employee.md +21 -0
  17. data/docs/V1EmployeeRole.md +15 -0
  18. data/docs/V1EmployeesApi.md +915 -0
  19. data/docs/V1Fee.md +18 -0
  20. data/docs/V1InventoryEntry.md +11 -0
  21. data/docs/V1Item.md +23 -0
  22. data/docs/V1ItemImage.md +11 -0
  23. data/docs/V1ItemsApi.md +2297 -0
  24. data/docs/V1LocationApi.md +102 -0
  25. data/docs/V1LocationsApi.md +102 -0
  26. data/docs/V1Merchant.md +26 -0
  27. data/docs/V1MerchantLocationDetails.md +12 -0
  28. data/docs/V1ModifierList.md +13 -0
  29. data/docs/V1ModifierOption.md +15 -0
  30. data/docs/V1Money.md +13 -0
  31. data/docs/V1Order.md +34 -0
  32. data/docs/V1OrderHistoryEntry.md +11 -0
  33. data/docs/V1Page.md +13 -0
  34. data/docs/V1PageCell.md +15 -0
  35. data/docs/V1Payment.md +33 -0
  36. data/docs/V1PaymentDiscount.md +12 -0
  37. data/docs/V1PaymentItemDetail.md +13 -0
  38. data/docs/V1PaymentItemization.md +23 -0
  39. data/docs/V1PaymentModifier.md +12 -0
  40. data/docs/V1PaymentTax.md +15 -0
  41. data/docs/V1PhoneNumber.md +13 -0
  42. data/docs/V1Refund.md +16 -0
  43. data/docs/V1Settlement.md +15 -0
  44. data/docs/V1SettlementEntry.md +13 -0
  45. data/docs/V1Tender.md +22 -0
  46. data/docs/V1Timecard.md +20 -0
  47. data/docs/V1TimecardEvent.md +14 -0
  48. data/docs/V1TransactionsApi.md +650 -0
  49. data/docs/V1UpdateModifierListRequest.md +11 -0
  50. data/docs/V1UpdateOrderRequest.md +14 -0
  51. data/docs/V1Variation.md +20 -0
  52. data/lib/.DS_Store +0 -0
  53. data/lib/square_connect.rb +46 -5
  54. data/lib/square_connect/.DS_Store +0 -0
  55. data/lib/square_connect/api/checkout_api.rb +4 -9
  56. data/lib/square_connect/api/{customer_api.rb → customers_api.rb} +150 -61
  57. data/lib/square_connect/api/{location_api.rb → locations_api.rb} +7 -12
  58. data/lib/square_connect/api/{transaction_api.rb → transactions_api.rb} +169 -65
  59. data/lib/square_connect/api/v1_employees_api.rb +974 -0
  60. data/lib/square_connect/api/v1_items_api.rb +2365 -0
  61. data/lib/square_connect/api/v1_locations_api.rb +118 -0
  62. data/lib/square_connect/api/v1_transactions_api.rb +707 -0
  63. data/lib/square_connect/api_client.rb +1 -1
  64. data/lib/square_connect/models/charge_request.rb +1 -1
  65. data/lib/square_connect/models/device.rb +196 -0
  66. data/lib/square_connect/models/v1_adjust_inventory_request.rb +206 -0
  67. data/lib/square_connect/models/v1_bank_account.rb +289 -0
  68. data/lib/square_connect/models/v1_cash_drawer_event.rb +269 -0
  69. data/lib/square_connect/models/v1_cash_drawer_shift.rb +403 -0
  70. data/lib/square_connect/models/v1_category.rb +196 -0
  71. data/lib/square_connect/models/v1_create_refund_request.rb +274 -0
  72. data/lib/square_connect/models/v1_discount.rb +291 -0
  73. data/lib/square_connect/models/v1_employee.rb +323 -0
  74. data/lib/square_connect/models/v1_employee_role.rb +269 -0
  75. data/lib/square_connect/models/v1_fee.rb +335 -0
  76. data/lib/square_connect/models/v1_inventory_entry.rb +196 -0
  77. data/lib/square_connect/models/v1_item.rb +379 -0
  78. data/lib/square_connect/models/v1_item_image.rb +196 -0
  79. data/lib/square_connect/models/v1_merchant.rb +372 -0
  80. data/lib/square_connect/models/v1_merchant_location_details.rb +186 -0
  81. data/lib/square_connect/models/v1_modifier_list.rb +251 -0
  82. data/lib/square_connect/models/v1_modifier_option.rb +236 -0
  83. data/lib/square_connect/models/v1_money.rb +229 -0
  84. data/lib/square_connect/models/v1_order.rb +463 -0
  85. data/lib/square_connect/models/v1_order_history_entry.rb +229 -0
  86. data/lib/square_connect/models/v1_page.rb +218 -0
  87. data/lib/square_connect/models/v1_page_cell.rb +261 -0
  88. data/lib/square_connect/models/v1_payment.rb +423 -0
  89. data/lib/square_connect/models/v1_payment_discount.rb +206 -0
  90. data/lib/square_connect/models/v1_payment_item_detail.rb +216 -0
  91. data/lib/square_connect/models/v1_payment_itemization.rb +355 -0
  92. data/lib/square_connect/models/v1_payment_modifier.rb +206 -0
  93. data/lib/square_connect/models/v1_payment_tax.rb +271 -0
  94. data/lib/square_connect/models/v1_phone_number.rb +206 -0
  95. data/lib/square_connect/models/v1_refund.rb +279 -0
  96. data/lib/square_connect/models/v1_settlement.rb +271 -0
  97. data/lib/square_connect/models/v1_settlement_entry.rb +249 -0
  98. data/lib/square_connect/models/v1_tender.rb +363 -0
  99. data/lib/square_connect/models/v1_timecard.rb +271 -0
  100. data/lib/square_connect/models/v1_timecard_event.rb +259 -0
  101. data/lib/square_connect/models/v1_update_modifier_list_request.rb +229 -0
  102. data/lib/square_connect/models/v1_update_order_request.rb +264 -0
  103. data/lib/square_connect/models/v1_variation.rb +331 -0
  104. data/lib/square_connect/version.rb +1 -1
  105. data/spec/.DS_Store +0 -0
  106. data/spec/api/checkout_api_spec.rb +4 -12
  107. data/spec/api/{customer_api_spec.rb → customers_api_spec.rb} +39 -41
  108. data/spec/api/{location_api_spec.rb → locations_api_spec.rb} +9 -15
  109. data/spec/api/{transaction_api_spec.rb → transactions_api_spec.rb} +43 -41
  110. data/spec/api/v1_employees_api_spec.rb +250 -0
  111. data/spec/api/v1_items_api_spec.rb +568 -0
  112. data/spec/api/v1_locations_api_spec.rb +54 -0
  113. data/spec/api/v1_transactions_api_spec.rb +186 -0
  114. data/spec/models/address_spec.rb +22 -81
  115. data/spec/models/capture_transaction_request_spec.rb +3 -6
  116. data/spec/models/capture_transaction_response_spec.rb +4 -11
  117. data/spec/models/card_brand_spec.rb +3 -6
  118. data/spec/models/card_spec.rb +14 -41
  119. data/spec/models/charge_request_spec.rb +14 -61
  120. data/spec/models/charge_response_spec.rb +5 -16
  121. data/spec/models/checkout_spec.rb +12 -51
  122. data/spec/models/country_spec.rb +3 -6
  123. data/spec/models/create_checkout_request_spec.rb +10 -41
  124. data/spec/models/create_checkout_response_spec.rb +5 -16
  125. data/spec/models/create_customer_card_request_spec.rb +6 -21
  126. data/spec/models/create_customer_card_response_spec.rb +5 -16
  127. data/spec/models/create_customer_request_spec.rb +12 -51
  128. data/spec/models/create_customer_response_spec.rb +5 -16
  129. data/spec/models/create_order_request_line_item_spec.rb +6 -21
  130. data/spec/models/create_order_request_order_spec.rb +5 -16
  131. data/spec/models/create_order_request_spec.rb +5 -16
  132. data/spec/models/create_refund_request_spec.rb +7 -26
  133. data/spec/models/create_refund_response_spec.rb +5 -16
  134. data/spec/models/currency_spec.rb +3 -6
  135. data/spec/models/customer_group_info_spec.rb +5 -16
  136. data/spec/models/customer_preferences_spec.rb +4 -11
  137. data/spec/models/customer_spec.rb +18 -81
  138. data/spec/models/delete_customer_card_request_spec.rb +3 -6
  139. data/spec/models/delete_customer_card_response_spec.rb +4 -11
  140. data/spec/models/delete_customer_request_spec.rb +3 -6
  141. data/spec/models/delete_customer_response_spec.rb +4 -11
  142. data/spec/models/device_spec.rb +45 -0
  143. data/spec/models/error_category_spec.rb +3 -6
  144. data/spec/models/error_code_spec.rb +3 -6
  145. data/spec/models/error_spec.rb +15 -26
  146. data/spec/models/list_customers_request_spec.rb +4 -11
  147. data/spec/models/list_customers_response_spec.rb +6 -21
  148. data/spec/models/list_locations_request_spec.rb +3 -6
  149. data/spec/models/list_locations_response_spec.rb +5 -16
  150. data/spec/models/list_refunds_request_spec.rb +11 -26
  151. data/spec/models/list_refunds_response_spec.rb +6 -21
  152. data/spec/models/list_transactions_request_spec.rb +11 -26
  153. data/spec/models/list_transactions_response_spec.rb +6 -21
  154. data/spec/models/location_capability_spec.rb +3 -6
  155. data/spec/models/location_spec.rb +12 -31
  156. data/spec/models/money_spec.rb +9 -16
  157. data/spec/models/order_line_item_spec.rb +8 -31
  158. data/spec/models/order_spec.rb +8 -31
  159. data/spec/models/refund_spec.rb +16 -51
  160. data/spec/models/refund_status_spec.rb +3 -6
  161. data/spec/models/retrieve_customer_request_spec.rb +3 -6
  162. data/spec/models/retrieve_customer_response_spec.rb +5 -16
  163. data/spec/models/retrieve_transaction_request_spec.rb +3 -6
  164. data/spec/models/retrieve_transaction_response_spec.rb +5 -16
  165. data/spec/models/sort_order_spec.rb +3 -6
  166. data/spec/models/tender_card_details_entry_method_spec.rb +3 -6
  167. data/spec/models/tender_card_details_spec.rb +14 -21
  168. data/spec/models/tender_card_details_status_spec.rb +3 -6
  169. data/spec/models/tender_cash_details_spec.rb +5 -16
  170. data/spec/models/tender_spec.rb +18 -61
  171. data/spec/models/tender_type_spec.rb +3 -6
  172. data/spec/models/transaction_product_spec.rb +3 -6
  173. data/spec/models/transaction_spec.rb +17 -56
  174. data/spec/models/update_customer_request_spec.rb +12 -51
  175. data/spec/models/update_customer_response_spec.rb +5 -16
  176. data/spec/models/v1_adjust_inventory_request_spec.rb +51 -0
  177. data/spec/models/v1_bank_account_spec.rb +85 -0
  178. data/spec/models/v1_cash_drawer_event_spec.rb +73 -0
  179. data/spec/models/v1_cash_drawer_shift_spec.rb +151 -0
  180. data/spec/models/v1_category_spec.rb +45 -0
  181. data/spec/models/v1_create_refund_request_spec.rb +67 -0
  182. data/spec/models/v1_discount_spec.rb +83 -0
  183. data/spec/models/v1_employee_role_spec.rb +73 -0
  184. data/spec/models/v1_employee_spec.rb +97 -0
  185. data/spec/models/v1_fee_spec.rb +103 -0
  186. data/spec/models/v1_inventory_entry_spec.rb +45 -0
  187. data/spec/models/v1_item_image_spec.rb +45 -0
  188. data/spec/models/v1_item_spec.rb +129 -0
  189. data/spec/models/v1_merchant_location_details_spec.rb +39 -0
  190. data/spec/models/v1_merchant_spec.rb +131 -0
  191. data/spec/models/v1_modifier_list_spec.rb +61 -0
  192. data/spec/models/v1_modifier_option_spec.rb +69 -0
  193. data/spec/models/v1_money_spec.rb +49 -0
  194. data/spec/models/v1_order_history_entry_spec.rb +49 -0
  195. data/spec/models/v1_order_spec.rb +187 -0
  196. data/spec/models/v1_page_cell_spec.rb +77 -0
  197. data/spec/models/v1_page_spec.rb +57 -0
  198. data/spec/models/v1_payment_discount_spec.rb +51 -0
  199. data/spec/models/v1_payment_item_detail_spec.rb +57 -0
  200. data/spec/models/v1_payment_itemization_spec.rb +121 -0
  201. data/spec/models/v1_payment_modifier_spec.rb +51 -0
  202. data/spec/models/v1_payment_spec.rb +177 -0
  203. data/spec/models/v1_payment_tax_spec.rb +73 -0
  204. data/spec/models/v1_phone_number_spec.rb +45 -0
  205. data/spec/models/v1_refund_spec.rb +79 -0
  206. data/spec/models/v1_settlement_entry_spec.rb +61 -0
  207. data/spec/models/v1_settlement_spec.rb +73 -0
  208. data/spec/models/v1_tender_spec.rb +123 -0
  209. data/spec/models/v1_timecard_event_spec.rb +67 -0
  210. data/spec/models/v1_timecard_spec.rb +87 -0
  211. data/spec/models/v1_update_modifier_list_request_spec.rb +49 -0
  212. data/spec/models/v1_update_order_request_spec.rb +67 -0
  213. data/spec/models/v1_variation_spec.rb +107 -0
  214. data/spec/models/void_transaction_request_spec.rb +3 -6
  215. data/spec/models/void_transaction_response_spec.rb +4 -11
  216. data/spec/spec_helper.rb +10 -0
  217. data/square_connect-2.0.2.gem +0 -0
  218. data/square_connect-2.1.0.gem +0 -0
  219. data/square_connect-2.1.0beta.gem +0 -0
  220. data/square_connect.gemspec +1 -1
  221. data/travis-ci/accounts.enc +0 -0
  222. metadata +197 -26
  223. data/docs/CustomerApi.md +0 -267
  224. data/docs/CustomerCardApi.md +0 -116
  225. data/docs/LocationApi.md +0 -56
  226. data/docs/RefundApi.md +0 -126
  227. data/docs/TransactionApi.md +0 -285
  228. data/lib/square_connect/api/customer_card_api.rb +0 -144
  229. data/lib/square_connect/api/refund_api.rb +0 -159
  230. data/spec/api/customer_card_api_spec.rb +0 -71
  231. data/spec/api/refund_api_spec.rb +0 -75
@@ -0,0 +1,102 @@
1
+ # SquareConnect::V1LocationApi
2
+
3
+ All URIs are relative to *https://connect.squareup.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_locations**](V1LocationApi.md#list_locations) | **GET** /v1/me/locations | Provides details for a business's locations, including their IDs.
8
+ [**retrieve_business**](V1LocationApi.md#retrieve_business) | **GET** /v1/me | Get a business's information.
9
+
10
+
11
+ # **list_locations**
12
+ > Array<V1Merchant> list_locations
13
+
14
+ Provides details for a business's locations, including their IDs.
15
+
16
+ Provides details for a business's locations, including their IDs.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'square_connect'
22
+ # setup authorization
23
+ SquareConnect.configure do |config|
24
+ # Configure OAuth2 access token for authorization: oauth2
25
+ config.access_token = 'YOUR ACCESS TOKEN'
26
+ end
27
+
28
+ api_instance = SquareConnect::V1LocationApi.new
29
+
30
+ begin
31
+ #Provides details for a business's locations, including their IDs.
32
+ result = api_instance.list_locations
33
+ p result
34
+ rescue SquareConnect::ApiError => e
35
+ puts "Exception when calling V1LocationApi->list_locations: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+ This endpoint does not need any parameter.
41
+
42
+ ### Return type
43
+
44
+ [**Array<V1Merchant>**](V1Merchant.md)
45
+
46
+ ### Authorization
47
+
48
+ [oauth2](../README.md#oauth2)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+
57
+ # **retrieve_business**
58
+ > V1Merchant retrieve_business
59
+
60
+ Get a business's information.
61
+
62
+ Get a business's information.
63
+
64
+ ### Example
65
+ ```ruby
66
+ # load the gem
67
+ require 'square_connect'
68
+ # setup authorization
69
+ SquareConnect.configure do |config|
70
+ # Configure OAuth2 access token for authorization: oauth2
71
+ config.access_token = 'YOUR ACCESS TOKEN'
72
+ end
73
+
74
+ api_instance = SquareConnect::V1LocationApi.new
75
+
76
+ begin
77
+ #Get a business's information.
78
+ result = api_instance.retrieve_business
79
+ p result
80
+ rescue SquareConnect::ApiError => e
81
+ puts "Exception when calling V1LocationApi->retrieve_business: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Parameters
86
+ This endpoint does not need any parameter.
87
+
88
+ ### Return type
89
+
90
+ [**V1Merchant**](V1Merchant.md)
91
+
92
+ ### Authorization
93
+
94
+ [oauth2](../README.md#oauth2)
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: application/json
99
+ - **Accept**: application/json
100
+
101
+
102
+
@@ -0,0 +1,102 @@
1
+ # SquareConnect::V1LocationsApi
2
+
3
+ All URIs are relative to *https://connect.squareup.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_locations**](V1LocationsApi.md#list_locations) | **GET** /v1/me/locations | Provides details for a business's locations, including their IDs.
8
+ [**retrieve_business**](V1LocationsApi.md#retrieve_business) | **GET** /v1/me | Get a business's information.
9
+
10
+
11
+ # **list_locations**
12
+ > Array<V1Merchant> list_locations
13
+
14
+ Provides details for a business's locations, including their IDs.
15
+
16
+ Provides details for a business's locations, including their IDs.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'square_connect'
22
+ # setup authorization
23
+ SquareConnect.configure do |config|
24
+ # Configure OAuth2 access token for authorization: oauth2
25
+ config.access_token = 'YOUR ACCESS TOKEN'
26
+ end
27
+
28
+ api_instance = SquareConnect::V1LocationsApi.new
29
+
30
+ begin
31
+ #Provides details for a business's locations, including their IDs.
32
+ result = api_instance.list_locations
33
+ p result
34
+ rescue SquareConnect::ApiError => e
35
+ puts "Exception when calling V1LocationsApi->list_locations: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+ This endpoint does not need any parameter.
41
+
42
+ ### Return type
43
+
44
+ [**Array<V1Merchant>**](V1Merchant.md)
45
+
46
+ ### Authorization
47
+
48
+ [oauth2](../README.md#oauth2)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: application/json
53
+ - **Accept**: application/json
54
+
55
+
56
+
57
+ # **retrieve_business**
58
+ > V1Merchant retrieve_business
59
+
60
+ Get a business's information.
61
+
62
+ Get a business's information.
63
+
64
+ ### Example
65
+ ```ruby
66
+ # load the gem
67
+ require 'square_connect'
68
+ # setup authorization
69
+ SquareConnect.configure do |config|
70
+ # Configure OAuth2 access token for authorization: oauth2
71
+ config.access_token = 'YOUR ACCESS TOKEN'
72
+ end
73
+
74
+ api_instance = SquareConnect::V1LocationsApi.new
75
+
76
+ begin
77
+ #Get a business's information.
78
+ result = api_instance.retrieve_business
79
+ p result
80
+ rescue SquareConnect::ApiError => e
81
+ puts "Exception when calling V1LocationsApi->retrieve_business: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Parameters
86
+ This endpoint does not need any parameter.
87
+
88
+ ### Return type
89
+
90
+ [**V1Merchant**](V1Merchant.md)
91
+
92
+ ### Authorization
93
+
94
+ [oauth2](../README.md#oauth2)
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: application/json
99
+ - **Accept**: application/json
100
+
101
+
102
+
@@ -0,0 +1,26 @@
1
+ # SquareConnect::V1Merchant
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the **RetrieveBusiness** endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | The merchant account's unique identifier. | [optional]
11
+ **name** | **String** | The name associated with the merchant account. | [optional]
12
+ **email** | **String** | The email address associated with the merchant account. | [optional]
13
+ **account_type** | **String** | Indicates whether the merchant account corresponds to a single-location account (LOCATION) or a business account (BUSINESS). This value is almost always LOCATION. | [optional]
14
+ **account_capabilities** | **Array<String>** | Capabilities that are enabled for the merchant's Square account. Capabilities that are not listed in this array are not enabled for the account. | [optional]
15
+ **country_code** | **String** | The country associated with the merchant account, in ISO 3166-1-alpha-2 format. | [optional]
16
+ **language_code** | **String** | The language associated with the merchant account, in BCP 47 format. | [optional]
17
+ **currency_code** | **String** | The currency associated with the merchant account, in ISO 4217 format. For example, the currency code for US dollars is USD. | [optional]
18
+ **business_name** | **String** | The name of the merchant's business. | [optional]
19
+ **business_address** | [**Address**](Address.md) | The address of the merchant's business. | [optional]
20
+ **business_phone** | [**V1PhoneNumber**](V1PhoneNumber.md) | The phone number of the merchant's business. | [optional]
21
+ **business_type** | **String** | The type of business operated by the merchant. | [optional]
22
+ **shipping_address_** | [**Address**](Address.md) | The merchant's shipping address. | [optional]
23
+ **location_details** | [**V1MerchantLocationDetails**](V1MerchantLocationDetails.md) | | [optional]
24
+ **market_url** | **String** | The URL of the merchant's online store. | [optional]
25
+
26
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::V1MerchantLocationDetails
2
+
3
+ ### Description
4
+
5
+ Additional information for a single-location account specified by its associated business account, if it has one.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **nickname** | **String** | The nickname assigned to the single-location account by the parent business. This value appears in the parent business's multi-location dashboard. | [optional]
11
+
12
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::V1ModifierList
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The modifier list's unique ID. | [optional]
9
+ **name** | **String** | The modifier list's name. | [optional]
10
+ **selection_type** | **String** | Indicates whether MULTIPLE options or a SINGLE option from the modifier list can be applied to a single item. | [optional]
11
+ **modifier_options** | [**Array<V1ModifierOption>**](V1ModifierOption.md) | The options included in the modifier list. | [optional]
12
+
13
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::V1ModifierOption
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The modifier option's unique ID. | [optional]
9
+ **name** | **String** | The modifier option's name. | [optional]
10
+ **price_money** | [**V1Money**](V1Money.md) | The modifier option's price. | [optional]
11
+ **on_by_default** | **BOOLEAN** | If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE. | [optional]
12
+ **ordinal** | **Integer** | Indicates the modifier option's list position when displayed in Square Register and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order. | [optional]
13
+ **modifier_list_id** | **String** | The ID of the modifier list the option belongs to. | [optional]
14
+
15
+
data/docs/V1Money.md ADDED
@@ -0,0 +1,13 @@
1
+ # SquareConnect::V1Money
2
+
3
+ ### Description
4
+
5
+
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **amount** | **Integer** | Amount in the lowest denominated value of this Currency. E.g. in USD these are cents, in JPY they are Yen (which do not have a 'cent' concept). | [optional]
11
+ **currency_code** | **String** | | [optional]
12
+
13
+
data/docs/V1Order.md ADDED
@@ -0,0 +1,34 @@
1
+ # SquareConnect::V1Order
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
9
+ **id** | **String** | The order's unique identifier. | [optional]
10
+ **buyer_email** | **String** | The email address of the order's buyer. | [optional]
11
+ **recipient_name** | **String** | The name of the order's buyer. | [optional]
12
+ **recipient_phone_number** | **String** | The phone number to use for the order's delivery. | [optional]
13
+ **state** | **String** | Whether the tax is an ADDITIVE tax or an INCLUSIVE tax. | [optional]
14
+ **shipping_address** | [**Address**](Address.md) | The address to ship the order to. | [optional]
15
+ **subtotal_money** | [**V1Money**](V1Money.md) | The amount of all items purchased in the order, before taxes and shipping. | [optional]
16
+ **total_shipping_money** | [**V1Money**](V1Money.md) | The shipping cost for the order. | [optional]
17
+ **total_tax_money** | [**V1Money**](V1Money.md) | The total of all taxes applied to the order. | [optional]
18
+ **total_price_money** | [**V1Money**](V1Money.md) | The total cost of the order. | [optional]
19
+ **total_discount_money** | [**V1Money**](V1Money.md) | The total of all discounts applied to the order. | [optional]
20
+ **created_at** | **String** | The time when the order was created, in ISO 8601 format. | [optional]
21
+ **updated_at** | **String** | The time when the order was last modified, in ISO 8601 format. | [optional]
22
+ **expires_at** | **String** | The time when the order expires if no action is taken, in ISO 8601 format. | [optional]
23
+ **payment_id** | **String** | The unique identifier of the payment associated with the order. | [optional]
24
+ **buyer_note** | **String** | A note provided by the buyer when the order was created, if any. | [optional]
25
+ **completed_note** | **String** | A note provided by the merchant when the order's state was set to COMPLETED, if any | [optional]
26
+ **refunded_note** | **String** | A note provided by the merchant when the order's state was set to REFUNDED, if any. | [optional]
27
+ **canceled_note** | **String** | A note provided by the merchant when the order's state was set to CANCELED, if any. | [optional]
28
+ **tender** | [**V1Tender**](V1Tender.md) | The tender used to pay for the order. | [optional]
29
+ **order_history** | [**Array<V1OrderHistoryEntry>**](V1OrderHistoryEntry.md) | The history of actions associated with the order. | [optional]
30
+ **promo_code** | **String** | The promo code provided by the buyer, if any. | [optional]
31
+ **btc_receive_address** | **String** | For Bitcoin transactions, the address that the buyer sent Bitcoin to. | [optional]
32
+ **btc_price_satoshi** | **Float** | For Bitcoin transactions, the price of the buyer's order in satoshi (100 million satoshi equals 1 BTC). | [optional]
33
+
34
+
@@ -0,0 +1,11 @@
1
+ # SquareConnect::V1OrderHistoryEntry
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **action** | **String** | The type of action performed on the order. | [optional]
9
+ **created_at** | **String** | The time when the action was performed, in ISO 8601 format. | [optional]
10
+
11
+
data/docs/V1Page.md ADDED
@@ -0,0 +1,13 @@
1
+ # SquareConnect::V1Page
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The page's unique identifier. | [optional]
9
+ **name** | **String** | The page's name, if any. | [optional]
10
+ **page_index** | **Integer** | The page's position in the merchant's list of pages. Always an integer between 0 and 4, inclusive. | [optional]
11
+ **cells** | [**Array<V1PageCell>**](V1PageCell.md) | The cells included on the page. | [optional]
12
+
13
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::V1PageCell
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **page_id** | **String** | The unique identifier of the page the cell is included on. | [optional]
9
+ **row** | **Integer** | The row of the cell. Always an integer between 0 and 4, inclusive. | [optional]
10
+ **column** | **Integer** | The column of the cell. Always an integer between 0 and 4, inclusive. | [optional]
11
+ **object_type** | **Array<String>** | The type of entity represented in the cell (ITEM, DISCOUNT, CATEGORY, or PLACEHOLDER). | [optional]
12
+ **object_id** | **String** | The unique identifier of the entity represented in the cell. Not present for cells with an object_type of PLACEHOLDER. | [optional]
13
+ **placeholder_type** | **Array<String>** | For a cell with an object_type of PLACEHOLDER, this value indicates the cell's special behavior. | [optional]
14
+
15
+
data/docs/V1Payment.md ADDED
@@ -0,0 +1,33 @@
1
+ # SquareConnect::V1Payment
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **String** | The payment's unique identifier. | [optional]
9
+ **merchant_id** | **String** | The unique identifier of the merchant that took the payment. | [optional]
10
+ **created_at** | **String** | The time when the payment was created, in ISO 8601 format. | [optional]
11
+ **creator_id** | **BOOLEAN** | The unique identifier of the Square account that took the payment. | [optional]
12
+ **device** | [**Device**](Device.md) | The device that took the payment. | [optional]
13
+ **payment_url** | **String** | The URL of the payment's detail page in the merchant dashboard. The merchant must be signed in to the merchant dashboard to view this page. | [optional]
14
+ **receipt_url** | **String** | The URL of the receipt for the payment. Note that for split tender payments, this URL corresponds to the receipt for the first tender listed in the payment's tender field. Each Tender object has its own receipt_url field you can use to get the other receipts associated with a split tender payment. | [optional]
15
+ **inclusive_tax_money** | [**V1Money**](V1Money.md) | The sum of all inclusive taxes associated with the payment. | [optional]
16
+ **additive_tax_money** | [**V1Money**](V1Money.md) | The sum of all additive taxes associated with the payment. | [optional]
17
+ **tax_money** | [**V1Money**](V1Money.md) | The total of all taxes applied to the payment. This is always the sum of inclusive_tax_money and additive_tax_money. | [optional]
18
+ **tip_money** | [**V1Money**](V1Money.md) | The total of all tips applied to the payment. | [optional]
19
+ **discount_money** | [**V1Money**](V1Money.md) | The total of all discounts applied to the payment. | [optional]
20
+ **total_collected_money** | [**V1Money**](V1Money.md) | The total of all discounts applied to the payment. | [optional]
21
+ **processing_fee_money** | [**V1Money**](V1Money.md) | The total of all processing fees collected by Square for the payment. | [optional]
22
+ **net_total_money** | [**V1Money**](V1Money.md) | The amount to be deposited into the merchant's bank account for the payment. | [optional]
23
+ **refunded_money** | [**V1Money**](V1Money.md) | The total of all refunds applied to the payment. | [optional]
24
+ **swedish_rounding_money** | [**V1Money**](V1Money.md) | | [optional]
25
+ **gross_sales_money** | [**V1Money**](V1Money.md) | | [optional]
26
+ **net_sales_money** | [**V1Money**](V1Money.md) | | [optional]
27
+ **inclusive_tax** | [**Array<V1PaymentTax>**](V1PaymentTax.md) | All of the inclusive taxes associated with the payment. | [optional]
28
+ **additive_tax** | [**Array<V1PaymentTax>**](V1PaymentTax.md) | All of the additive taxes associated with the payment. | [optional]
29
+ **tender** | [**Array<V1Tender>**](V1Tender.md) | All of the additive taxes associated with the payment. | [optional]
30
+ **refunds** | [**Array<V1Refund>**](V1Refund.md) | All of the refunds applied to the payment. | [optional]
31
+ **itemizations** | [**Array<V1PaymentItemization>**](V1PaymentItemization.md) | The items purchased in the payment. | [optional]
32
+
33
+
@@ -0,0 +1,12 @@
1
+ # SquareConnect::V1PaymentDiscount
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **String** | The discount's name. | [optional]
9
+ **applied_money** | [**V1Money**](V1Money.md) | The amount of money that this discount adds to the payment (note that this value is always negative or zero). | [optional]
10
+ **discount_id** | **String** | The ID of the applied discount, if available. Discounts applied in older versions of Square Register might not have an ID. | [optional]
11
+
12
+
@@ -0,0 +1,13 @@
1
+ # SquareConnect::V1PaymentItemDetail
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **category_name** | **String** | The name of the item's merchant-defined category, if any. | [optional]
9
+ **sku** | **Float** | The item's merchant-defined SKU, if any. | [optional]
10
+ **item_id** | **String** | The unique ID of the item purchased, if any. | [optional]
11
+ **item_variation_id** | **String** | The unique ID of the item variation purchased, if any. | [optional]
12
+
13
+
@@ -0,0 +1,23 @@
1
+ # SquareConnect::V1PaymentItemization
2
+
3
+ ### Description
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **String** | The item's name. | [optional]
9
+ **quantity** | **Float** | The quantity of the item purchased. This can be a decimal value. | [optional]
10
+ **itemization_type** | **String** | The type of purchase that the itemization represents, such as an ITEM or CUSTOM_AMOUNT | [optional]
11
+ **item_detail** | [**V1PaymentItemDetail**](V1PaymentItemDetail.md) | Details of the item, including its unique identifier and the identifier of the item variation purchased. | [optional]
12
+ **notes** | **String** | Notes entered by the merchant about the item at the time of payment, if any. | [optional]
13
+ **item_variation_name** | **String** | The name of the item variation purchased, if any. | [optional]
14
+ **total_money** | [**V1Money**](V1Money.md) | The total cost of the item, including all taxes and discounts. | [optional]
15
+ **single_quantity_money** | [**V1Money**](V1Money.md) | The cost of a single unit of this item. | [optional]
16
+ **gross_sales_money** | [**V1Money**](V1Money.md) | The total cost of the itemization and its modifiers, not including taxes or discounts. | [optional]
17
+ **discount_money** | [**V1Money**](V1Money.md) | The total of all discounts applied to the itemization. This value is always negative or zero. | [optional]
18
+ **net_sales_money** | [**V1Money**](V1Money.md) | The sum of gross_sales_money and discount_money. | [optional]
19
+ **taxes** | [**Array<V1PaymentTax>**](V1PaymentTax.md) | All taxes applied to this itemization. | [optional]
20
+ **discounts** | [**Array<V1PaymentDiscount>**](V1PaymentDiscount.md) | All discounts applied to this itemization. | [optional]
21
+ **modifiers** | [**Array<V1PaymentModifier>**](V1PaymentModifier.md) | All modifier options applied to this itemization. | [optional]
22
+
23
+