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,54 @@
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
+
13
+ # Unit tests for SquareConnect::V1LocationsApi
14
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
15
+ # Please update as you see appropriate
16
+ describe 'V1LocationsApi' do
17
+ before do
18
+ # run before each test
19
+ @instance = SquareConnect::V1LocationsApi.new
20
+ end
21
+
22
+ after do
23
+ # run after each test
24
+ end
25
+
26
+ describe 'test an instance of V1LocationApi' do
27
+ it 'should create an instact of V1LocationApi' do
28
+ expect(@instance).to be_instance_of(SquareConnect::V1LocationsApi)
29
+ end
30
+ end
31
+
32
+ # unit tests for list_locations
33
+ # Provides details for a business's locations, including their IDs.
34
+ # Provides details for a business's locations, including their IDs.
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<V1Merchant>]
37
+ describe 'list_locations test' do
38
+ it "should work" do
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+
43
+ # unit tests for retrieve_business
44
+ # Get a business&#39;s information.
45
+ # Get a business&#39;s information.
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [V1Merchant]
48
+ describe 'retrieve_business test' do
49
+ it "should work" do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ end
@@ -0,0 +1,186 @@
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
+
13
+ # Unit tests for SquareConnect::V1TransactionsApi
14
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
15
+ # Please update as you see appropriate
16
+ describe 'V1TransactionsApi' do
17
+ before do
18
+ # run before each test
19
+ @instance = SquareConnect::V1TransactionsApi.new
20
+ end
21
+
22
+ after do
23
+ # run after each test
24
+ end
25
+
26
+ describe 'test an instance of V1TransactionsApi' do
27
+ it 'should create an instact of V1TransactionsApi' do
28
+ expect(@instance).to be_instance_of(SquareConnect::V1TransactionsApi)
29
+ end
30
+ end
31
+
32
+ # unit tests for create_refund
33
+ # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
34
+ # Issues a refund for a previously processed payment. You must issue a refund within 60 days of the associated payment.
35
+ # @param location_id The ID of the original payment&#39;s associated location.
36
+ # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [V1Refund]
39
+ describe 'create_refund test' do
40
+ it "should work" do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ # unit tests for list_bank_accounts
46
+ # Provides non-confidential details for all of a location&#39;s associated bank accounts. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
47
+ # Provides non-confidential details for all of a location&#39;s associated bank accounts. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
48
+ # @param location_id The ID of the location to list bank accounts for.
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Array<V1BankAccount>]
51
+ describe 'list_bank_accounts test' do
52
+ it "should work" do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for list_orders
58
+ # Provides summary information for a merchant&#39;s online store orders.
59
+ # Provides summary information for a merchant&#39;s online store orders.
60
+ # @param location_id The ID of the location to list online store orders for.
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :order TThe order in which payments are listed in the response.
63
+ # @option opts [Integer] :limit The maximum number of payments to return in a single response. This value cannot exceed 200.
64
+ # @return [Array<V1Order>]
65
+ describe 'list_orders test' do
66
+ it "should work" do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for list_payments
72
+ # Provides summary information for all payments taken by a merchant or any of the merchant&#39;s mobile staff during a date range. Date ranges cannot exceed one year in length. See Date ranges for details of inclusive and exclusive dates.
73
+ # Provides summary information for all payments taken by a merchant or any of the merchant&#39;s mobile staff during a date range. Date ranges cannot exceed one year in length. See Date ranges for details of inclusive and exclusive dates.
74
+ # @param location_id The ID of the location to list payments for. If you specify me, this endpoint returns payments aggregated from all of the business&#39;s locations.
75
+ # @param [Hash] opts the optional parameters
76
+ # @option opts [String] :order The order in which payments are listed in the response.
77
+ # @option opts [String] :begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
78
+ # @option opts [String] :end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
79
+ # @option opts [Integer] :limit The maximum number of payments to return in a single response. This value cannot exceed 200.
80
+ # @return [Array<V1Payment>]
81
+ describe 'list_payments test' do
82
+ it "should work" do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for list_refunds
88
+ # Provides the details for all refunds initiated by a merchant or any of the merchant&#39;s mobile staff during a date range. Date ranges cannot exceed one year in length.
89
+ # Provides the details for all refunds initiated by a merchant or any of the merchant&#39;s mobile staff during a date range. Date ranges cannot exceed one year in length.
90
+ # @param location_id The ID of the location to list refunds for.
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [String] :order TThe order in which payments are listed in the response.
93
+ # @option opts [String] :begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
94
+ # @option opts [String] :end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
95
+ # @option opts [Integer] :limit The maximum number of payments to return in a single response. This value cannot exceed 200.
96
+ # @return [Array<V1Refund>]
97
+ describe 'list_refunds test' do
98
+ it "should work" do
99
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
100
+ end
101
+ end
102
+
103
+ # unit tests for list_settlements
104
+ # Provides summary information for all deposits and withdrawals initiated by Square to a merchant&#39;s bank account during a date range. Date ranges cannot exceed one year in length.
105
+ # Provides summary information for all deposits and withdrawals initiated by Square to a merchant&#39;s bank account during a date range. Date ranges cannot exceed one year in length.
106
+ # @param location_id The ID of the location to list settlements for. If you specify me, this endpoint returns payments aggregated from all of the business&#39;s locations.
107
+ # @param [Hash] opts the optional parameters
108
+ # @option opts [String] :order TThe order in which payments are listed in the response.
109
+ # @option opts [String] :begin_time The beginning of the requested reporting period, in ISO 8601 format. If this value is before January 1, 2013 (2013-01-01T00:00:00Z), this endpoint returns an error. Default value: The current time minus one year.
110
+ # @option opts [String] :end_time The end of the requested reporting period, in ISO 8601 format. If this value is more than one year greater than begin_time, this endpoint returns an error. Default value: The current time.
111
+ # @option opts [Integer] :limit The maximum number of payments to return in a single response. This value cannot exceed 200.
112
+ # @option opts [String] :status Provide this parameter to retrieve only settlements with a particular status (SENT or FAILED).
113
+ # @return [Array<V1Settlement>]
114
+ describe 'list_settlements test' do
115
+ it "should work" do
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
117
+ end
118
+ end
119
+
120
+ # unit tests for retrieve_bank_account
121
+ # Provides non-confidential details for a merchant&#39;s associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
122
+ # Provides non-confidential details for a merchant&#39;s associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
123
+ # @param location_id The ID of the bank account&#39;s associated location.
124
+ # @param bank_account_id The bank account&#39;s Square-issued ID. You obtain this value from Settlement objects returned.
125
+ # @param [Hash] opts the optional parameters
126
+ # @return [V1BankAccount]
127
+ describe 'retrieve_bank_account test' do
128
+ it "should work" do
129
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
130
+ end
131
+ end
132
+
133
+ # unit tests for retrieve_order
134
+ # Provides comprehensive information for a single online store order, including the order&#39;s history.
135
+ # Provides comprehensive information for a single online store order, including the order&#39;s history.
136
+ # @param location_id The ID of the order&#39;s associated location.
137
+ # @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
138
+ # @param [Hash] opts the optional parameters
139
+ # @return [V1Order]
140
+ describe 'retrieve_order test' do
141
+ it "should work" do
142
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
143
+ end
144
+ end
145
+
146
+ # unit tests for retrieve_payment
147
+ # Provides comprehensive information for a single payment.
148
+ # Provides comprehensive information for a single payment.
149
+ # @param location_id The ID of the payment&#39;s associated location.
150
+ # @param payment_id The payment&#39;s Square-issued ID. You obtain this value from Payment objects returned by the List Payments endpoint, or Settlement objects returned by the List Settlements endpoint.
151
+ # @param [Hash] opts the optional parameters
152
+ # @return [V1Payment]
153
+ describe 'retrieve_payment test' do
154
+ it "should work" do
155
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
156
+ end
157
+ end
158
+
159
+ # unit tests for retrieve_settlement
160
+ # Provides comprehensive information for a single settlement, including the entries that contribute to the settlement&#39;s total.
161
+ # Provides comprehensive information for a single settlement, including the entries that contribute to the settlement&#39;s total.
162
+ # @param location_id The ID of the settlements&#39;s associated location.
163
+ # @param settlement_id The settlement&#39;s Square-issued ID. You obtain this value from Settlement objects returned by the List Settlements endpoint.
164
+ # @param [Hash] opts the optional parameters
165
+ # @return [V1Settlement]
166
+ describe 'retrieve_settlement test' do
167
+ it "should work" do
168
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
169
+ end
170
+ end
171
+
172
+ # unit tests for update_order
173
+ # Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
174
+ # Updates the details of an online store order. Every update you perform on an order corresponds to one of three actions:
175
+ # @param location_id The ID of the order&#39;s associated location.
176
+ # @param order_id The order&#39;s Square-issued ID. You obtain this value from Order objects returned by the List Orders endpoint
177
+ # @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [V1Order]
180
+ describe 'update_order test' do
181
+ it "should work" do
182
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
183
+ end
184
+ end
185
+
186
+ 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,156 +26,100 @@ describe 'Address' do
29
26
 
30
27
  describe 'test an instance of Address' do
31
28
  it 'should create an instact of Address' do
32
- @instance.should be_a(SquareConnect::Address)
29
+ expect(@instance).to be_instance_of(SquareConnect::Address)
33
30
  end
34
31
  end
35
32
  describe 'test attribute "address_line_1"' 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 "address_line_2"' 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 "address_line_3"' 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
 
65
50
  describe 'test attribute "locality"' do
66
51
  it 'should work' do
67
- # assertion here
68
- # should be_a()
69
- # should be_nil
70
- # should ==
71
- # should_not ==
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
53
  end
73
54
  end
74
55
 
75
56
  describe 'test attribute "sublocality"' do
76
57
  it 'should work' do
77
- # assertion here
78
- # should be_a()
79
- # should be_nil
80
- # should ==
81
- # should_not ==
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
59
  end
83
60
  end
84
61
 
85
62
  describe 'test attribute "sublocality_2"' do
86
63
  it 'should work' do
87
- # assertion here
88
- # should be_a()
89
- # should be_nil
90
- # should ==
91
- # should_not ==
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
65
  end
93
66
  end
94
67
 
95
68
  describe 'test attribute "sublocality_3"' do
96
69
  it 'should work' do
97
- # assertion here
98
- # should be_a()
99
- # should be_nil
100
- # should ==
101
- # should_not ==
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
71
  end
103
72
  end
104
73
 
105
74
  describe 'test attribute "administrative_district_level_1"' do
106
75
  it 'should work' do
107
- # assertion here
108
- # should be_a()
109
- # should be_nil
110
- # should ==
111
- # should_not ==
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
112
77
  end
113
78
  end
114
79
 
115
80
  describe 'test attribute "administrative_district_level_2"' do
116
81
  it 'should work' do
117
- # assertion here
118
- # should be_a()
119
- # should be_nil
120
- # should ==
121
- # should_not ==
82
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
83
  end
123
84
  end
124
85
 
125
86
  describe 'test attribute "administrative_district_level_3"' do
126
87
  it 'should work' do
127
- # assertion here
128
- # should be_a()
129
- # should be_nil
130
- # should ==
131
- # should_not ==
88
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
89
  end
133
90
  end
134
91
 
135
92
  describe 'test attribute "postal_code"' do
136
93
  it 'should work' do
137
- # assertion here
138
- # should be_a()
139
- # should be_nil
140
- # should ==
141
- # should_not ==
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
142
95
  end
143
96
  end
144
97
 
145
98
  describe 'test attribute "country"' do
146
99
  it 'should work' do
147
- # assertion here
148
- # should be_a()
149
- # should be_nil
150
- # should ==
151
- # should_not ==
100
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
101
+ #validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ZZ", "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"])
102
+ #validator.allowable_values.each do |value|
103
+ # expect { @instance.country = value }.not_to raise_error
104
+ #end
152
105
  end
153
106
  end
154
107
 
155
108
  describe 'test attribute "first_name"' do
156
109
  it 'should work' do
157
- # assertion here
158
- # should be_a()
159
- # should be_nil
160
- # should ==
161
- # should_not ==
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
111
  end
163
112
  end
164
113
 
165
114
  describe 'test attribute "last_name"' do
166
115
  it 'should work' do
167
- # assertion here
168
- # should be_a()
169
- # should be_nil
170
- # should ==
171
- # should_not ==
116
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
172
117
  end
173
118
  end
174
119
 
175
120
  describe 'test attribute "organization"' do
176
121
  it 'should work' do
177
- # assertion here
178
- # should be_a()
179
- # should be_nil
180
- # should ==
181
- # should_not ==
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
182
123
  end
183
124
  end
184
125
 
@@ -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 'CaptureTransactionRequest' do
29
26
 
30
27
  describe 'test an instance of CaptureTransactionRequest' do
31
28
  it 'should create an instact of CaptureTransactionRequest' do
32
- @instance.should be_a(SquareConnect::CaptureTransactionRequest)
29
+ expect(@instance).to be_instance_of(SquareConnect::CaptureTransactionRequest)
33
30
  end
34
31
  end
35
32
  end