square_connect 2.0.2.69 → 2.1.0.beta

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.
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
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,7 +26,7 @@ describe 'DeleteCustomerCardRequest' do
29
26
 
30
27
  describe 'test an instance of DeleteCustomerCardRequest' do
31
28
  it 'should create an instact of DeleteCustomerCardRequest' do
32
- @instance.should be_a(SquareConnect::DeleteCustomerCardRequest)
29
+ expect(@instance).to be_instance_of(SquareConnect::DeleteCustomerCardRequest)
33
30
  end
34
31
  end
35
32
  end
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,16 +26,12 @@ describe 'DeleteCustomerCardResponse' do
29
26
 
30
27
  describe 'test an instance of DeleteCustomerCardResponse' do
31
28
  it 'should create an instact of DeleteCustomerCardResponse' do
32
- @instance.should be_a(SquareConnect::DeleteCustomerCardResponse)
29
+ expect(@instance).to be_instance_of(SquareConnect::DeleteCustomerCardResponse)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "errors"' do
36
33
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
35
  end
43
36
  end
44
37
 
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,7 +26,7 @@ describe 'DeleteCustomerRequest' do
29
26
 
30
27
  describe 'test an instance of DeleteCustomerRequest' do
31
28
  it 'should create an instact of DeleteCustomerRequest' do
32
- @instance.should be_a(SquareConnect::DeleteCustomerRequest)
29
+ expect(@instance).to be_instance_of(SquareConnect::DeleteCustomerRequest)
33
30
  end
34
31
  end
35
32
  end
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,16 +26,12 @@ describe 'DeleteCustomerResponse' do
29
26
 
30
27
  describe 'test an instance of DeleteCustomerResponse' do
31
28
  it 'should create an instact of DeleteCustomerResponse' do
32
- @instance.should be_a(SquareConnect::DeleteCustomerResponse)
29
+ expect(@instance).to be_instance_of(SquareConnect::DeleteCustomerResponse)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "errors"' do
36
33
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
35
  end
43
36
  end
44
37
 
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::Device
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'Device' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::Device.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of Device' do
28
+ it 'should create an instact of Device' do
29
+ expect(@instance).to be_instance_of(SquareConnect::Device)
30
+ end
31
+ end
32
+ describe 'test attribute "id"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "name"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ end
45
+
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,7 +26,7 @@ describe 'ErrorCategory' do
29
26
 
30
27
  describe 'test an instance of ErrorCategory' do
31
28
  it 'should create an instact of ErrorCategory' do
32
- @instance.should be_a(SquareConnect::ErrorCategory)
29
+ expect(@instance).to be_instance_of(SquareConnect::ErrorCategory)
33
30
  end
34
31
  end
35
32
  end
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,7 +26,7 @@ describe 'ErrorCode' do
29
26
 
30
27
  describe 'test an instance of ErrorCode' do
31
28
  it 'should create an instact of ErrorCode' do
32
- @instance.should be_a(SquareConnect::ErrorCode)
29
+ expect(@instance).to be_instance_of(SquareConnect::ErrorCode)
33
30
  end
34
31
  end
35
32
  end
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,46 +26,38 @@ describe 'Error' do
29
26
 
30
27
  describe 'test an instance of Error' do
31
28
  it 'should create an instact of Error' do
32
- @instance.should be_a(SquareConnect::Error)
29
+ expect(@instance).to be_instance_of(SquareConnect::Error)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "category"' do
36
33
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["API_ERROR", "AUTHENTICATION_ERROR", "INVALID_REQUEST_ERROR", "RATE_LIMIT_ERROR", "PAYMENT_METHOD_ERROR", "REFUND_ERROR"])
36
+ #validator.allowable_values.each do |value|
37
+ # expect { @instance.category = value }.not_to raise_error
38
+ #end
42
39
  end
43
40
  end
44
41
 
45
42
  describe 'test attribute "code"' do
46
43
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["INTERNAL_SERVER_ERROR", "UNAUTHORIZED", "ACCESS_TOKEN_EXPIRED", "ACCESS_TOKEN_REVOKED", "FORBIDDEN", "INSUFFICIENT_SCOPES", "APPLICATION_DISABLED", "V1_APPLICATION", "V1_ACCESS_TOKEN", "CARD_PROCESSING_NOT_ENABLED", "BAD_REQUEST", "MISSING_REQUIRED_PARAMETER", "INCORRECT_TYPE", "INVALID_TIME", "INVALID_TIME_RANGE", "INVALID_VALUE", "INVALID_CURSOR", "UNKNOWN_QUERY_PARAMETER", "CONFLICTING_PARAMETERS", "EXPECTED_JSON_BODY", "INVALID_SORT_ORDER", "VALUE_REGEX_MISMATCH", "VALUE_TOO_SHORT", "VALUE_TOO_LONG", "VALUE_TOO_LOW", "VALUE_TOO_HIGH", "VALUE_EMPTY", "ARRAY_EMPTY", "EXPECTED_BOOLEAN", "EXPECTED_INTEGER", "EXPECTED_FLOAT", "EXPECTED_STRING", "EXPECTED_OBJECT", "EXPECTED_ARRAY", "EXPECTED_BASE64_ENCODED_BYTE_ARRAY", "INVALID_ARRAY_VALUE", "INVALID_ENUM_VALUE", "INVALID_CONTENT_TYPE", "INVALID_FORM_VALUE", "ONE_INSTRUMENT_EXPECTED", "NO_FIELDS_SET", "CARD_EXPIRED", "INVALID_EXPIRATION", "INVALID_EXPIRATION_YEAR", "INVALID_EXPIRATION_DATE", "UNSUPPORTED_CARD_BRAND", "INVALID_CARD", "DELAYED_TRANSACTION_EXPIRED", "DELAYED_TRANSACTION_CANCELED", "DELAYED_TRANSACTION_CAPTURED", "DELAYED_TRANSACTION_FAILED", "CARD_TOKEN_EXPIRED", "CARD_TOKEN_USED", "AMOUNT_TOO_HIGH", "UNSUPPORTED_INSTRUMENT_TYPE", "REFUND_AMOUNT_INVALID", "REFUND_ALREADY_PENDING", "PAYMENT_NOT_REFUNDABLE", "INVALID_CARD_DATA", "IDEMPOTENCY_KEY_REUSED", "UNEXPECTED_VALUE", "CARD_DECLINED", "VERIFY_CVV_FAILURE", "VERIFY_AVS_FAILURE", "CARD_DECLINED_CALL_ISSUER", "NOT_FOUND", "REQUEST_TIMEOUT", "CONFLICT", "REQUEST_ENTITY_TOO_LARGE", "UNSUPPORTED_MEDIA_TYPE", "RATE_LIMITED", "NOT_IMPLEMENTED", "SERVICE_UNAVAILABLE"])
46
+ #validator.allowable_values.each do |value|
47
+ # expect { @instance.code = value }.not_to raise_error
48
+ #end
52
49
  end
53
50
  end
54
51
 
55
52
  describe 'test attribute "detail"' do
56
53
  it 'should work' do
57
- # assertion here
58
- # should be_a()
59
- # should be_nil
60
- # should ==
61
- # should_not ==
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
55
  end
63
56
  end
64
57
 
65
58
  describe 'test attribute "field"' do
66
59
  it 'should work' do
67
- # assertion here
68
- # should be_a()
69
- # should be_nil
70
- # should ==
71
- # should_not ==
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
61
  end
73
62
  end
74
63
 
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,16 +26,12 @@ describe 'ListCustomersRequest' do
29
26
 
30
27
  describe 'test an instance of ListCustomersRequest' do
31
28
  it 'should create an instact of ListCustomersRequest' do
32
- @instance.should be_a(SquareConnect::ListCustomersRequest)
29
+ expect(@instance).to be_instance_of(SquareConnect::ListCustomersRequest)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "cursor"' do
36
33
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
35
  end
43
36
  end
44
37
 
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,36 +26,24 @@ describe 'ListCustomersResponse' do
29
26
 
30
27
  describe 'test an instance of ListCustomersResponse' do
31
28
  it 'should create an instact of ListCustomersResponse' do
32
- @instance.should be_a(SquareConnect::ListCustomersResponse)
29
+ expect(@instance).to be_instance_of(SquareConnect::ListCustomersResponse)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "errors"' do
36
33
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
35
  end
43
36
  end
44
37
 
45
38
  describe 'test attribute "customers"' do
46
39
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
41
  end
53
42
  end
54
43
 
55
44
  describe 'test attribute "cursor"' do
56
45
  it 'should work' do
57
- # assertion here
58
- # should be_a()
59
- # should be_nil
60
- # should ==
61
- # should_not ==
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
47
  end
63
48
  end
64
49
 
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,7 +26,7 @@ describe 'ListLocationsRequest' do
29
26
 
30
27
  describe 'test an instance of ListLocationsRequest' do
31
28
  it 'should create an instact of ListLocationsRequest' do
32
- @instance.should be_a(SquareConnect::ListLocationsRequest)
29
+ expect(@instance).to be_instance_of(SquareConnect::ListLocationsRequest)
33
30
  end
34
31
  end
35
32
  end
@@ -1,13 +1,10 @@
1
1
  =begin
2
- Square Connect API
3
-
4
- No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
2
+ #Square Connect API
5
3
 
6
4
  OpenAPI spec version: 2.0
7
-
5
+ Contact: developers@squareup.com
8
6
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
7
 
10
-
11
8
  =end
12
9
 
13
10
  require 'spec_helper'
@@ -29,26 +26,18 @@ describe 'ListLocationsResponse' do
29
26
 
30
27
  describe 'test an instance of ListLocationsResponse' do
31
28
  it 'should create an instact of ListLocationsResponse' do
32
- @instance.should be_a(SquareConnect::ListLocationsResponse)
29
+ expect(@instance).to be_instance_of(SquareConnect::ListLocationsResponse)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "errors"' do
36
33
  it 'should work' do
37
- # assertion here
38
- # should be_a()
39
- # should be_nil
40
- # should ==
41
- # should_not ==
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
35
  end
43
36
  end
44
37
 
45
38
  describe 'test attribute "locations"' do
46
39
  it 'should work' do
47
- # assertion here
48
- # should be_a()
49
- # should be_nil
50
- # should ==
51
- # should_not ==
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
41
  end
53
42
  end
54
43