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.
- checksums.yaml +4 -4
- data/README.md +133 -21
- data/docs/ChargeRequest.md +1 -1
- data/docs/CheckoutApi.md +8 -6
- data/docs/CustomersApi.md +389 -0
- data/docs/Device.md +11 -0
- data/docs/LocationsApi.md +55 -0
- data/docs/TransactionsApi.md +417 -0
- data/docs/V1AdjustInventoryRequest.md +12 -0
- data/docs/V1BankAccount.md +17 -0
- data/docs/V1CashDrawerEvent.md +15 -0
- data/docs/V1CashDrawerShift.md +28 -0
- data/docs/V1Category.md +11 -0
- data/docs/V1CreateRefundRequest.md +14 -0
- data/docs/V1Discount.md +16 -0
- data/docs/V1Employee.md +21 -0
- data/docs/V1EmployeeRole.md +15 -0
- data/docs/V1EmployeesApi.md +915 -0
- data/docs/V1Fee.md +18 -0
- data/docs/V1InventoryEntry.md +11 -0
- data/docs/V1Item.md +23 -0
- data/docs/V1ItemImage.md +11 -0
- data/docs/V1ItemsApi.md +2297 -0
- data/docs/V1LocationApi.md +102 -0
- data/docs/V1LocationsApi.md +102 -0
- data/docs/V1Merchant.md +26 -0
- data/docs/V1MerchantLocationDetails.md +12 -0
- data/docs/V1ModifierList.md +13 -0
- data/docs/V1ModifierOption.md +15 -0
- data/docs/V1Money.md +13 -0
- data/docs/V1Order.md +34 -0
- data/docs/V1OrderHistoryEntry.md +11 -0
- data/docs/V1Page.md +13 -0
- data/docs/V1PageCell.md +15 -0
- data/docs/V1Payment.md +33 -0
- data/docs/V1PaymentDiscount.md +12 -0
- data/docs/V1PaymentItemDetail.md +13 -0
- data/docs/V1PaymentItemization.md +23 -0
- data/docs/V1PaymentModifier.md +12 -0
- data/docs/V1PaymentTax.md +15 -0
- data/docs/V1PhoneNumber.md +13 -0
- data/docs/V1Refund.md +16 -0
- data/docs/V1Settlement.md +15 -0
- data/docs/V1SettlementEntry.md +13 -0
- data/docs/V1Tender.md +22 -0
- data/docs/V1Timecard.md +20 -0
- data/docs/V1TimecardEvent.md +14 -0
- data/docs/V1TransactionsApi.md +650 -0
- data/docs/V1UpdateModifierListRequest.md +11 -0
- data/docs/V1UpdateOrderRequest.md +14 -0
- data/docs/V1Variation.md +20 -0
- data/lib/.DS_Store +0 -0
- data/lib/square_connect.rb +46 -5
- data/lib/square_connect/.DS_Store +0 -0
- data/lib/square_connect/api/checkout_api.rb +4 -9
- data/lib/square_connect/api/{customer_api.rb → customers_api.rb} +150 -61
- data/lib/square_connect/api/{location_api.rb → locations_api.rb} +7 -12
- data/lib/square_connect/api/{transaction_api.rb → transactions_api.rb} +169 -65
- data/lib/square_connect/api/v1_employees_api.rb +974 -0
- data/lib/square_connect/api/v1_items_api.rb +2365 -0
- data/lib/square_connect/api/v1_locations_api.rb +118 -0
- data/lib/square_connect/api/v1_transactions_api.rb +707 -0
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/charge_request.rb +1 -1
- data/lib/square_connect/models/device.rb +196 -0
- data/lib/square_connect/models/v1_adjust_inventory_request.rb +206 -0
- data/lib/square_connect/models/v1_bank_account.rb +289 -0
- data/lib/square_connect/models/v1_cash_drawer_event.rb +269 -0
- data/lib/square_connect/models/v1_cash_drawer_shift.rb +403 -0
- data/lib/square_connect/models/v1_category.rb +196 -0
- data/lib/square_connect/models/v1_create_refund_request.rb +274 -0
- data/lib/square_connect/models/v1_discount.rb +291 -0
- data/lib/square_connect/models/v1_employee.rb +323 -0
- data/lib/square_connect/models/v1_employee_role.rb +269 -0
- data/lib/square_connect/models/v1_fee.rb +335 -0
- data/lib/square_connect/models/v1_inventory_entry.rb +196 -0
- data/lib/square_connect/models/v1_item.rb +379 -0
- data/lib/square_connect/models/v1_item_image.rb +196 -0
- data/lib/square_connect/models/v1_merchant.rb +372 -0
- data/lib/square_connect/models/v1_merchant_location_details.rb +186 -0
- data/lib/square_connect/models/v1_modifier_list.rb +251 -0
- data/lib/square_connect/models/v1_modifier_option.rb +236 -0
- data/lib/square_connect/models/v1_money.rb +229 -0
- data/lib/square_connect/models/v1_order.rb +463 -0
- data/lib/square_connect/models/v1_order_history_entry.rb +229 -0
- data/lib/square_connect/models/v1_page.rb +218 -0
- data/lib/square_connect/models/v1_page_cell.rb +261 -0
- data/lib/square_connect/models/v1_payment.rb +423 -0
- data/lib/square_connect/models/v1_payment_discount.rb +206 -0
- data/lib/square_connect/models/v1_payment_item_detail.rb +216 -0
- data/lib/square_connect/models/v1_payment_itemization.rb +355 -0
- data/lib/square_connect/models/v1_payment_modifier.rb +206 -0
- data/lib/square_connect/models/v1_payment_tax.rb +271 -0
- data/lib/square_connect/models/v1_phone_number.rb +206 -0
- data/lib/square_connect/models/v1_refund.rb +279 -0
- data/lib/square_connect/models/v1_settlement.rb +271 -0
- data/lib/square_connect/models/v1_settlement_entry.rb +249 -0
- data/lib/square_connect/models/v1_tender.rb +363 -0
- data/lib/square_connect/models/v1_timecard.rb +271 -0
- data/lib/square_connect/models/v1_timecard_event.rb +259 -0
- data/lib/square_connect/models/v1_update_modifier_list_request.rb +229 -0
- data/lib/square_connect/models/v1_update_order_request.rb +264 -0
- data/lib/square_connect/models/v1_variation.rb +331 -0
- data/lib/square_connect/version.rb +1 -1
- data/spec/.DS_Store +0 -0
- data/spec/api/checkout_api_spec.rb +4 -12
- data/spec/api/{customer_api_spec.rb → customers_api_spec.rb} +39 -41
- data/spec/api/{location_api_spec.rb → locations_api_spec.rb} +9 -15
- data/spec/api/{transaction_api_spec.rb → transactions_api_spec.rb} +43 -41
- data/spec/api/v1_employees_api_spec.rb +250 -0
- data/spec/api/v1_items_api_spec.rb +568 -0
- data/spec/api/v1_locations_api_spec.rb +54 -0
- data/spec/api/v1_transactions_api_spec.rb +186 -0
- data/spec/models/address_spec.rb +22 -81
- data/spec/models/capture_transaction_request_spec.rb +3 -6
- data/spec/models/capture_transaction_response_spec.rb +4 -11
- data/spec/models/card_brand_spec.rb +3 -6
- data/spec/models/card_spec.rb +14 -41
- data/spec/models/charge_request_spec.rb +14 -61
- data/spec/models/charge_response_spec.rb +5 -16
- data/spec/models/checkout_spec.rb +12 -51
- data/spec/models/country_spec.rb +3 -6
- data/spec/models/create_checkout_request_spec.rb +10 -41
- data/spec/models/create_checkout_response_spec.rb +5 -16
- data/spec/models/create_customer_card_request_spec.rb +6 -21
- data/spec/models/create_customer_card_response_spec.rb +5 -16
- data/spec/models/create_customer_request_spec.rb +12 -51
- data/spec/models/create_customer_response_spec.rb +5 -16
- data/spec/models/create_order_request_line_item_spec.rb +6 -21
- data/spec/models/create_order_request_order_spec.rb +5 -16
- data/spec/models/create_order_request_spec.rb +5 -16
- data/spec/models/create_refund_request_spec.rb +7 -26
- data/spec/models/create_refund_response_spec.rb +5 -16
- data/spec/models/currency_spec.rb +3 -6
- data/spec/models/customer_group_info_spec.rb +5 -16
- data/spec/models/customer_preferences_spec.rb +4 -11
- data/spec/models/customer_spec.rb +18 -81
- data/spec/models/delete_customer_card_request_spec.rb +3 -6
- data/spec/models/delete_customer_card_response_spec.rb +4 -11
- data/spec/models/delete_customer_request_spec.rb +3 -6
- data/spec/models/delete_customer_response_spec.rb +4 -11
- data/spec/models/device_spec.rb +45 -0
- data/spec/models/error_category_spec.rb +3 -6
- data/spec/models/error_code_spec.rb +3 -6
- data/spec/models/error_spec.rb +15 -26
- data/spec/models/list_customers_request_spec.rb +4 -11
- data/spec/models/list_customers_response_spec.rb +6 -21
- data/spec/models/list_locations_request_spec.rb +3 -6
- data/spec/models/list_locations_response_spec.rb +5 -16
- data/spec/models/list_refunds_request_spec.rb +11 -26
- data/spec/models/list_refunds_response_spec.rb +6 -21
- data/spec/models/list_transactions_request_spec.rb +11 -26
- data/spec/models/list_transactions_response_spec.rb +6 -21
- data/spec/models/location_capability_spec.rb +3 -6
- data/spec/models/location_spec.rb +12 -31
- data/spec/models/money_spec.rb +9 -16
- data/spec/models/order_line_item_spec.rb +8 -31
- data/spec/models/order_spec.rb +8 -31
- data/spec/models/refund_spec.rb +16 -51
- data/spec/models/refund_status_spec.rb +3 -6
- data/spec/models/retrieve_customer_request_spec.rb +3 -6
- data/spec/models/retrieve_customer_response_spec.rb +5 -16
- data/spec/models/retrieve_transaction_request_spec.rb +3 -6
- data/spec/models/retrieve_transaction_response_spec.rb +5 -16
- data/spec/models/sort_order_spec.rb +3 -6
- data/spec/models/tender_card_details_entry_method_spec.rb +3 -6
- data/spec/models/tender_card_details_spec.rb +14 -21
- data/spec/models/tender_card_details_status_spec.rb +3 -6
- data/spec/models/tender_cash_details_spec.rb +5 -16
- data/spec/models/tender_spec.rb +18 -61
- data/spec/models/tender_type_spec.rb +3 -6
- data/spec/models/transaction_product_spec.rb +3 -6
- data/spec/models/transaction_spec.rb +17 -56
- data/spec/models/update_customer_request_spec.rb +12 -51
- data/spec/models/update_customer_response_spec.rb +5 -16
- data/spec/models/v1_adjust_inventory_request_spec.rb +51 -0
- data/spec/models/v1_bank_account_spec.rb +85 -0
- data/spec/models/v1_cash_drawer_event_spec.rb +73 -0
- data/spec/models/v1_cash_drawer_shift_spec.rb +151 -0
- data/spec/models/v1_category_spec.rb +45 -0
- data/spec/models/v1_create_refund_request_spec.rb +67 -0
- data/spec/models/v1_discount_spec.rb +83 -0
- data/spec/models/v1_employee_role_spec.rb +73 -0
- data/spec/models/v1_employee_spec.rb +97 -0
- data/spec/models/v1_fee_spec.rb +103 -0
- data/spec/models/v1_inventory_entry_spec.rb +45 -0
- data/spec/models/v1_item_image_spec.rb +45 -0
- data/spec/models/v1_item_spec.rb +129 -0
- data/spec/models/v1_merchant_location_details_spec.rb +39 -0
- data/spec/models/v1_merchant_spec.rb +131 -0
- data/spec/models/v1_modifier_list_spec.rb +61 -0
- data/spec/models/v1_modifier_option_spec.rb +69 -0
- data/spec/models/v1_money_spec.rb +49 -0
- data/spec/models/v1_order_history_entry_spec.rb +49 -0
- data/spec/models/v1_order_spec.rb +187 -0
- data/spec/models/v1_page_cell_spec.rb +77 -0
- data/spec/models/v1_page_spec.rb +57 -0
- data/spec/models/v1_payment_discount_spec.rb +51 -0
- data/spec/models/v1_payment_item_detail_spec.rb +57 -0
- data/spec/models/v1_payment_itemization_spec.rb +121 -0
- data/spec/models/v1_payment_modifier_spec.rb +51 -0
- data/spec/models/v1_payment_spec.rb +177 -0
- data/spec/models/v1_payment_tax_spec.rb +73 -0
- data/spec/models/v1_phone_number_spec.rb +45 -0
- data/spec/models/v1_refund_spec.rb +79 -0
- data/spec/models/v1_settlement_entry_spec.rb +61 -0
- data/spec/models/v1_settlement_spec.rb +73 -0
- data/spec/models/v1_tender_spec.rb +123 -0
- data/spec/models/v1_timecard_event_spec.rb +67 -0
- data/spec/models/v1_timecard_spec.rb +87 -0
- data/spec/models/v1_update_modifier_list_request_spec.rb +49 -0
- data/spec/models/v1_update_order_request_spec.rb +67 -0
- data/spec/models/v1_variation_spec.rb +107 -0
- data/spec/models/void_transaction_request_spec.rb +3 -6
- data/spec/models/void_transaction_response_spec.rb +4 -11
- data/spec/spec_helper.rb +10 -0
- data/square_connect-2.0.2.gem +0 -0
- data/square_connect-2.1.0.gem +0 -0
- data/square_connect-2.1.0beta.gem +0 -0
- data/square_connect.gemspec +1 -1
- data/travis-ci/accounts.enc +0 -0
- metadata +197 -26
- data/docs/CustomerApi.md +0 -267
- data/docs/CustomerCardApi.md +0 -116
- data/docs/LocationApi.md +0 -56
- data/docs/RefundApi.md +0 -126
- data/docs/TransactionApi.md +0 -285
- data/lib/square_connect/api/customer_card_api.rb +0 -144
- data/lib/square_connect/api/refund_api.rb +0 -159
- data/spec/api/customer_card_api_spec.rb +0 -71
- 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,46 +26,34 @@ describe 'ListRefundsRequest' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of ListRefundsRequest' do
|
|
31
28
|
it 'should create an instact of ListRefundsRequest' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::ListRefundsRequest)
|
|
33
30
|
end
|
|
34
31
|
end
|
|
35
32
|
describe 'test attribute "begin_time"' 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 "end_time"' 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 "sort_order"' do
|
|
56
45
|
it 'should work' do
|
|
57
|
-
# assertion here
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
47
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DESC", "ASC"])
|
|
48
|
+
#validator.allowable_values.each do |value|
|
|
49
|
+
# expect { @instance.sort_order = value }.not_to raise_error
|
|
50
|
+
#end
|
|
62
51
|
end
|
|
63
52
|
end
|
|
64
53
|
|
|
65
54
|
describe 'test attribute "cursor"' do
|
|
66
55
|
it 'should work' do
|
|
67
|
-
# assertion here
|
|
68
|
-
# should be_a()
|
|
69
|
-
# should be_nil
|
|
70
|
-
# should ==
|
|
71
|
-
# should_not ==
|
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
57
|
end
|
|
73
58
|
end
|
|
74
59
|
|
|
@@ -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 'ListRefundsResponse' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of ListRefundsResponse' do
|
|
31
28
|
it 'should create an instact of ListRefundsResponse' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::ListRefundsResponse)
|
|
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 "refunds"' 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,46 +26,34 @@ describe 'ListTransactionsRequest' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of ListTransactionsRequest' do
|
|
31
28
|
it 'should create an instact of ListTransactionsRequest' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::ListTransactionsRequest)
|
|
33
30
|
end
|
|
34
31
|
end
|
|
35
32
|
describe 'test attribute "begin_time"' 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 "end_time"' 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 "sort_order"' do
|
|
56
45
|
it 'should work' do
|
|
57
|
-
# assertion here
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
47
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DESC", "ASC"])
|
|
48
|
+
#validator.allowable_values.each do |value|
|
|
49
|
+
# expect { @instance.sort_order = value }.not_to raise_error
|
|
50
|
+
#end
|
|
62
51
|
end
|
|
63
52
|
end
|
|
64
53
|
|
|
65
54
|
describe 'test attribute "cursor"' do
|
|
66
55
|
it 'should work' do
|
|
67
|
-
# assertion here
|
|
68
|
-
# should be_a()
|
|
69
|
-
# should be_nil
|
|
70
|
-
# should ==
|
|
71
|
-
# should_not ==
|
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
72
57
|
end
|
|
73
58
|
end
|
|
74
59
|
|
|
@@ -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 'ListTransactionsResponse' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of ListTransactionsResponse' do
|
|
31
28
|
it 'should create an instact of ListTransactionsResponse' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::ListTransactionsResponse)
|
|
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 "transactions"' 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 'LocationCapability' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of LocationCapability' do
|
|
31
28
|
it 'should create an instact of LocationCapability' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::LocationCapability)
|
|
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,56 +26,40 @@ describe 'Location' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of Location' do
|
|
31
28
|
it 'should create an instact of Location' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::Location)
|
|
33
30
|
end
|
|
34
31
|
end
|
|
35
32
|
describe 'test attribute "id"' 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 "name"' 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"' 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 "timezone"' 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 "capabilities"' do
|
|
76
57
|
it 'should work' do
|
|
77
|
-
# assertion here
|
|
78
|
-
#
|
|
79
|
-
#
|
|
80
|
-
#
|
|
81
|
-
#
|
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
59
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('Array<String>', ["CREDIT_CARD_PROCESSING"])
|
|
60
|
+
#validator.allowable_values.each do |value|
|
|
61
|
+
# expect { @instance.capabilities = value }.not_to raise_error
|
|
62
|
+
#end
|
|
82
63
|
end
|
|
83
64
|
end
|
|
84
65
|
|
data/spec/models/money_spec.rb
CHANGED
|
@@ -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,22 @@ describe 'Money' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of Money' do
|
|
31
28
|
it 'should create an instact of Money' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::Money)
|
|
33
30
|
end
|
|
34
31
|
end
|
|
35
32
|
describe 'test attribute "amount"' 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 "currency"' do
|
|
46
39
|
it 'should work' do
|
|
47
|
-
# assertion here
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
41
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYR", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LTL", "LVL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRO", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STD", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "USS", "UYI", "UYU", "UZS", "VEF", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XTS", "XXX", "YER", "ZAR", "ZMK", "ZMW", "BTC"])
|
|
42
|
+
#validator.allowable_values.each do |value|
|
|
43
|
+
# expect { @instance.currency = value }.not_to raise_error
|
|
44
|
+
#end
|
|
52
45
|
end
|
|
53
46
|
end
|
|
54
47
|
|
|
@@ -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,56 +26,36 @@ describe 'OrderLineItem' do
|
|
|
29
26
|
|
|
30
27
|
describe 'test an instance of OrderLineItem' do
|
|
31
28
|
it 'should create an instact of OrderLineItem' do
|
|
32
|
-
@instance.
|
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderLineItem)
|
|
33
30
|
end
|
|
34
31
|
end
|
|
35
32
|
describe 'test attribute "id"' 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 "name"' 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 "quantity"' 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 "base_price_money"' 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 "total_money"' 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
|
|