square_connect 2.20190410.1.300 → 2.20190508.0.304
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +10 -0
- data/README.md +32 -1
- data/docs/BatchRetrieveOrdersResponse.md +1 -0
- data/docs/BusinessHours.md +12 -0
- data/docs/BusinessHoursPeriod.md +14 -0
- data/docs/ChargeRequest.md +3 -3
- data/docs/CreateOrderRequest.md +1 -1
- data/docs/CreateOrderRequestTax.md +1 -1
- data/docs/DayOfWeek.md +18 -0
- data/docs/ErrorCode.md +2 -0
- data/docs/InventoryAdjustment.md +1 -1
- data/docs/InventoryCount.md +2 -2
- data/docs/InventoryPhysicalCount.md +2 -2
- data/docs/InventoryTransfer.md +1 -1
- data/docs/Location.md +1 -0
- data/docs/MeasurementUnit.md +16 -0
- data/docs/MeasurementUnitArea.md +19 -0
- data/docs/MeasurementUnitCustom.md +13 -0
- data/docs/MeasurementUnitLength.md +19 -0
- data/docs/MeasurementUnitVolume.md +22 -0
- data/docs/MeasurementUnitWeight.md +17 -0
- data/docs/Order.md +12 -1
- data/docs/OrderEntry.md +13 -0
- data/docs/OrderLineItem.md +5 -2
- data/docs/OrderLineItemDiscount.md +2 -1
- data/docs/OrderLineItemModifier.md +2 -1
- data/docs/OrderLineItemTax.md +1 -0
- data/docs/OrderMoneyAmounts.md +16 -0
- data/docs/OrderQuantityUnit.md +13 -0
- data/docs/OrderReturn.md +18 -0
- data/docs/OrderReturnDiscount.md +20 -0
- data/docs/OrderReturnLineItem.md +28 -0
- data/docs/OrderReturnLineItemModifier.md +17 -0
- data/docs/OrderReturnTax.md +19 -0
- data/docs/OrderRoundingAdjustment.md +14 -0
- data/docs/OrderSource.md +1 -1
- data/docs/OrderState.md +14 -0
- data/docs/OrdersApi.md +54 -1
- data/docs/SearchOrdersCustomerFilter.md +12 -0
- data/docs/SearchOrdersDateTimeFilter.md +14 -0
- data/docs/SearchOrdersFilter.md +16 -0
- data/docs/SearchOrdersFulfillmentFilter.md +13 -0
- data/docs/SearchOrdersQuery.md +13 -0
- data/docs/SearchOrdersRequest.md +16 -0
- data/docs/SearchOrdersResponse.md +16 -0
- data/docs/SearchOrdersSort.md +13 -0
- data/docs/SearchOrdersSortField.md +14 -0
- data/docs/SearchOrdersSourceFilter.md +12 -0
- data/docs/SearchOrdersStateFilter.md +12 -0
- data/docs/TransactionsApi.md +1 -1
- data/lib/square_connect.rb +30 -0
- data/lib/square_connect/api/apple_pay_api.rb +1 -1
- data/lib/square_connect/api/catalog_api.rb +11 -11
- data/lib/square_connect/api/checkout_api.rb +1 -1
- data/lib/square_connect/api/customers_api.rb +8 -8
- data/lib/square_connect/api/employees_api.rb +2 -2
- data/lib/square_connect/api/inventory_api.rb +7 -7
- data/lib/square_connect/api/labor_api.rb +14 -14
- data/lib/square_connect/api/locations_api.rb +1 -1
- data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
- data/lib/square_connect/api/o_auth_api.rb +3 -3
- data/lib/square_connect/api/orders_api.rb +59 -4
- data/lib/square_connect/api/reporting_api.rb +2 -2
- data/lib/square_connect/api/transactions_api.rb +9 -9
- data/lib/square_connect/api/v1_employees_api.rb +16 -16
- data/lib/square_connect/api/v1_items_api.rb +40 -40
- data/lib/square_connect/api/v1_locations_api.rb +2 -2
- data/lib/square_connect/api/v1_transactions_api.rb +11 -11
- data/lib/square_connect/api_client.rb +1 -1
- data/lib/square_connect/models/batch_retrieve_orders_response.rb +16 -4
- data/lib/square_connect/models/business_hours.rb +188 -0
- data/lib/square_connect/models/business_hours_period.rb +239 -0
- data/lib/square_connect/models/charge_request.rb +3 -3
- data/lib/square_connect/models/create_order_request.rb +1 -1
- data/lib/square_connect/models/create_order_request_tax.rb +1 -1
- data/lib/square_connect/models/day_of_week.rb +24 -0
- data/lib/square_connect/models/error.rb +2 -2
- data/lib/square_connect/models/error_code.rb +2 -0
- data/lib/square_connect/models/inventory_adjustment.rb +1 -1
- data/lib/square_connect/models/inventory_count.rb +2 -2
- data/lib/square_connect/models/inventory_physical_count.rb +2 -2
- data/lib/square_connect/models/inventory_transfer.rb +1 -1
- data/lib/square_connect/models/location.rb +14 -4
- data/lib/square_connect/models/measurement_unit.rb +295 -0
- data/lib/square_connect/models/measurement_unit_area.rb +25 -0
- data/lib/square_connect/models/measurement_unit_custom.rb +206 -0
- data/lib/square_connect/models/measurement_unit_length.rb +25 -0
- data/lib/square_connect/models/measurement_unit_volume.rb +28 -0
- data/lib/square_connect/models/measurement_unit_weight.rb +23 -0
- data/lib/square_connect/models/order.rb +151 -2
- data/lib/square_connect/models/order_entry.rb +196 -0
- data/lib/square_connect/models/order_line_item.rb +54 -8
- data/lib/square_connect/models/order_line_item_discount.rb +28 -2
- data/lib/square_connect/models/order_line_item_modifier.rb +28 -2
- data/lib/square_connect/models/order_line_item_tax.rb +27 -1
- data/lib/square_connect/models/order_money_amounts.rb +226 -0
- data/lib/square_connect/models/order_quantity_unit.rb +196 -0
- data/lib/square_connect/models/order_return.rb +268 -0
- data/lib/square_connect/models/order_return_discount.rb +391 -0
- data/lib/square_connect/models/order_return_line_item.rb +481 -0
- data/lib/square_connect/models/order_return_line_item_modifier.rb +300 -0
- data/lib/square_connect/models/order_return_tax.rb +381 -0
- data/lib/square_connect/models/order_rounding_adjustment.rb +222 -0
- data/lib/square_connect/models/order_source.rb +1 -1
- data/lib/square_connect/models/order_state.rb +20 -0
- data/lib/square_connect/models/search_orders_customer_filter.rb +188 -0
- data/lib/square_connect/models/search_orders_date_time_filter.rb +206 -0
- data/lib/square_connect/models/search_orders_filter.rb +226 -0
- data/lib/square_connect/models/search_orders_fulfillment_filter.rb +226 -0
- data/lib/square_connect/models/search_orders_query.rb +196 -0
- data/lib/square_connect/models/search_orders_request.rb +244 -0
- data/lib/square_connect/models/search_orders_response.rb +234 -0
- data/lib/square_connect/models/search_orders_sort.rb +246 -0
- data/lib/square_connect/models/search_orders_sort_field.rb +20 -0
- data/lib/square_connect/models/search_orders_source_filter.rb +188 -0
- data/lib/square_connect/models/search_orders_state_filter.rb +214 -0
- data/lib/square_connect/version.rb +1 -1
- data/spec/models/business_hours_period_spec.rb +55 -0
- data/spec/models/business_hours_spec.rb +39 -0
- data/spec/models/day_of_week_spec.rb +33 -0
- data/spec/models/measurement_unit_area_spec.rb +33 -0
- data/spec/models/measurement_unit_custom_spec.rb +45 -0
- data/spec/models/measurement_unit_length_spec.rb +33 -0
- data/spec/models/measurement_unit_spec.rb +79 -0
- data/spec/models/measurement_unit_volume_spec.rb +33 -0
- data/spec/models/measurement_unit_weight_spec.rb +33 -0
- data/spec/models/order_entry_spec.rb +45 -0
- data/spec/models/order_money_amounts_spec.rb +63 -0
- data/spec/models/order_quantity_unit_spec.rb +45 -0
- data/spec/models/order_return_discount_spec.rb +95 -0
- data/spec/models/order_return_line_item_modifier_spec.rb +69 -0
- data/spec/models/order_return_line_item_spec.rb +135 -0
- data/spec/models/order_return_spec.rb +75 -0
- data/spec/models/order_return_tax_spec.rb +89 -0
- data/spec/models/order_rounding_adjustment_spec.rb +51 -0
- data/spec/models/order_state_spec.rb +33 -0
- data/spec/models/search_orders_customer_filter_spec.rb +39 -0
- data/spec/models/search_orders_date_time_filter_spec.rb +51 -0
- data/spec/models/search_orders_filter_spec.rb +63 -0
- data/spec/models/search_orders_fulfillment_filter_spec.rb +53 -0
- data/spec/models/search_orders_query_spec.rb +45 -0
- data/spec/models/search_orders_request_spec.rb +63 -0
- data/spec/models/search_orders_response_spec.rb +63 -0
- data/spec/models/search_orders_sort_field_spec.rb +33 -0
- data/spec/models/search_orders_sort_spec.rb +53 -0
- data/spec/models/search_orders_source_filter_spec.rb +39 -0
- data/spec/models/search_orders_state_filter_spec.rb +43 -0
- metadata +122 -2
@@ -0,0 +1,135 @@
|
|
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::OrderReturnLineItem
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'OrderReturnLineItem' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::OrderReturnLineItem.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of OrderReturnLineItem' do
|
28
|
+
it 'should create an instact of OrderReturnLineItem' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderReturnLineItem)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "uid"' 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 "source_line_item_uid"' 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
|
+
describe 'test attribute "name"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "quantity"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "quantity_unit"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "note"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe 'test attribute "catalog_object_id"' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
describe 'test attribute "variation_name"' do
|
75
|
+
it 'should work' do
|
76
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
describe 'test attribute "return_modifiers"' do
|
81
|
+
it 'should work' do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
describe 'test attribute "return_taxes"' do
|
87
|
+
it 'should work' do
|
88
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe 'test attribute "return_discounts"' do
|
93
|
+
it 'should work' do
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
describe 'test attribute "base_price_money"' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
describe 'test attribute "variation_total_price_money"' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
describe 'test attribute "gross_return_money"' do
|
111
|
+
it 'should work' do
|
112
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
describe 'test attribute "total_tax_money"' do
|
117
|
+
it 'should work' do
|
118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
describe 'test attribute "total_discount_money"' do
|
123
|
+
it 'should work' do
|
124
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
describe 'test attribute "total_money"' do
|
129
|
+
it 'should work' do
|
130
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
end
|
135
|
+
|
@@ -0,0 +1,75 @@
|
|
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::OrderReturn
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'OrderReturn' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::OrderReturn.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of OrderReturn' do
|
28
|
+
it 'should create an instact of OrderReturn' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderReturn)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "uid"' 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 "source_order_id"' 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
|
+
describe 'test attribute "return_line_items"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "return_taxes"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "return_discounts"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "rounding_adjustment"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe 'test attribute "return_amounts"' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
|
@@ -0,0 +1,89 @@
|
|
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::OrderReturnTax
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'OrderReturnTax' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::OrderReturnTax.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of OrderReturnTax' do
|
28
|
+
it 'should create an instact of OrderReturnTax' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderReturnTax)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "uid"' 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 "source_tax_uid"' 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
|
+
describe 'test attribute "catalog_object_id"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "name"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "type"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UNKNOWN_TAX", "ADDITIVE", "INCLUSIVE"])
|
60
|
+
#validator.allowable_values.each do |value|
|
61
|
+
# expect { @instance.type = value }.not_to raise_error
|
62
|
+
#end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "percentage"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "applied_money"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "scope"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
#validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["OTHER_TAX_SCOPE", "LINE_ITEM", "ORDER"])
|
82
|
+
#validator.allowable_values.each do |value|
|
83
|
+
# expect { @instance.scope = value }.not_to raise_error
|
84
|
+
#end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
89
|
+
|
@@ -0,0 +1,51 @@
|
|
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::OrderRoundingAdjustment
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'OrderRoundingAdjustment' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::OrderRoundingAdjustment.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of OrderRoundingAdjustment' do
|
28
|
+
it 'should create an instact of OrderRoundingAdjustment' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderRoundingAdjustment)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "uid"' 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
|
+
describe 'test attribute "amount_money"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
@@ -0,0 +1,33 @@
|
|
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::OrderState
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'OrderState' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::OrderState.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of OrderState' do
|
28
|
+
it 'should create an instact of OrderState' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderState)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
@@ -0,0 +1,39 @@
|
|
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::SearchOrdersCustomerFilter
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'SearchOrdersCustomerFilter' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::SearchOrdersCustomerFilter.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of SearchOrdersCustomerFilter' do
|
28
|
+
it 'should create an instact of SearchOrdersCustomerFilter' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::SearchOrdersCustomerFilter)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "customer_ids"' 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
|
+
end
|
39
|
+
|
@@ -0,0 +1,51 @@
|
|
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::SearchOrdersDateTimeFilter
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'SearchOrdersDateTimeFilter' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::SearchOrdersDateTimeFilter.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of SearchOrdersDateTimeFilter' do
|
28
|
+
it 'should create an instact of SearchOrdersDateTimeFilter' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::SearchOrdersDateTimeFilter)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "created_at"' 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 "updated_at"' 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
|
+
describe 'test attribute "closed_at"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|