square_connect 2.20190327.1.292 → 2.20190410.0.296
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +19 -0
- data/README.md +23 -20
- data/docs/BatchRetrieveOrdersRequest.md +1 -1
- data/docs/BatchRetrieveOrdersResponse.md +1 -1
- data/docs/CaptureTransactionRequest.md +1 -1
- data/docs/CaptureTransactionResponse.md +1 -1
- data/docs/ChargeRequest.md +1 -1
- data/docs/ChargeResponse.md +1 -1
- data/docs/CreateCheckoutRequest.md +1 -1
- data/docs/CreateCheckoutResponse.md +1 -1
- data/docs/CreateCustomerCardRequest.md +1 -1
- data/docs/CreateCustomerCardResponse.md +1 -1
- data/docs/CreateCustomerRequest.md +1 -1
- data/docs/CreateCustomerResponse.md +1 -1
- data/docs/CreateMobileAuthorizationCodeRequest.md +1 -1
- data/docs/CreateMobileAuthorizationCodeResponse.md +1 -1
- data/docs/CreateOrderResponse.md +1 -1
- data/docs/CreateRefundRequest.md +1 -1
- data/docs/CreateRefundResponse.md +1 -1
- data/docs/CustomerFilter.md +1 -1
- data/docs/CustomersApi.md +1 -1
- data/docs/DeleteCustomerCardRequest.md +1 -1
- data/docs/DeleteCustomerCardResponse.md +1 -1
- data/docs/DeleteCustomerRequest.md +1 -1
- data/docs/DeleteCustomerResponse.md +1 -1
- data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +1 -1
- data/docs/ListAdditionalRecipientReceivableRefundsResponse.md +1 -1
- data/docs/ListAdditionalRecipientReceivablesRequest.md +1 -1
- data/docs/ListAdditionalRecipientReceivablesResponse.md +1 -1
- data/docs/ListCustomersRequest.md +1 -1
- data/docs/ListCustomersResponse.md +1 -1
- data/docs/ListEmployeesResponse.md +1 -1
- data/docs/ListLocationsRequest.md +1 -1
- data/docs/ListLocationsResponse.md +1 -1
- data/docs/ListRefundsRequest.md +1 -1
- data/docs/ListRefundsResponse.md +1 -1
- data/docs/ListTransactionsRequest.md +1 -1
- data/docs/ListTransactionsResponse.md +1 -1
- data/docs/Order.md +2 -1
- data/docs/OrderSource.md +12 -0
- data/docs/OrdersApi.md +1 -1
- data/docs/RegisterDomainRequest.md +1 -1
- data/docs/RegisterDomainResponse.md +1 -1
- data/docs/RetrieveCustomerRequest.md +1 -1
- data/docs/RetrieveCustomerResponse.md +1 -1
- data/docs/RetrieveEmployeeResponse.md +1 -1
- data/docs/RetrieveTransactionRequest.md +1 -1
- data/docs/RetrieveTransactionResponse.md +1 -1
- data/docs/SearchCustomersRequest.md +1 -1
- data/docs/SearchCustomersResponse.md +1 -1
- data/docs/Transaction.md +1 -1
- data/docs/TransactionsApi.md +3 -3
- data/docs/UpdateCustomerRequest.md +1 -1
- data/docs/UpdateCustomerResponse.md +1 -1
- data/docs/V1Category.md +1 -0
- data/docs/V1Discount.md +1 -0
- data/docs/V1Fee.md +1 -0
- data/docs/V1Item.md +1 -0
- data/docs/V1ModifierList.md +1 -0
- data/docs/V1ModifierOption.md +1 -0
- data/docs/V1Variation.md +1 -0
- data/docs/VoidTransactionRequest.md +1 -1
- data/docs/VoidTransactionResponse.md +1 -1
- 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 +10 -10
- 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 +4 -4
- data/lib/square_connect/api/reporting_api.rb +2 -2
- data/lib/square_connect/api/transactions_api.rb +13 -13
- 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_request.rb +1 -1
- data/lib/square_connect/models/batch_retrieve_orders_response.rb +1 -1
- data/lib/square_connect/models/capture_transaction_request.rb +1 -1
- data/lib/square_connect/models/capture_transaction_response.rb +1 -1
- data/lib/square_connect/models/charge_request.rb +1 -1
- data/lib/square_connect/models/charge_response.rb +1 -1
- data/lib/square_connect/models/create_checkout_request.rb +1 -1
- data/lib/square_connect/models/create_checkout_response.rb +1 -1
- data/lib/square_connect/models/create_customer_card_request.rb +1 -1
- data/lib/square_connect/models/create_customer_card_response.rb +1 -1
- data/lib/square_connect/models/create_customer_request.rb +1 -1
- data/lib/square_connect/models/create_customer_response.rb +1 -1
- data/lib/square_connect/models/create_mobile_authorization_code_request.rb +1 -1
- data/lib/square_connect/models/create_mobile_authorization_code_response.rb +1 -1
- data/lib/square_connect/models/create_order_response.rb +1 -1
- data/lib/square_connect/models/create_refund_request.rb +1 -1
- data/lib/square_connect/models/create_refund_response.rb +1 -1
- data/lib/square_connect/models/customer_filter.rb +1 -1
- data/lib/square_connect/models/delete_customer_card_request.rb +1 -1
- data/lib/square_connect/models/delete_customer_card_response.rb +1 -1
- data/lib/square_connect/models/delete_customer_request.rb +1 -1
- data/lib/square_connect/models/delete_customer_response.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivable_refunds_response.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +1 -1
- data/lib/square_connect/models/list_additional_recipient_receivables_response.rb +1 -1
- data/lib/square_connect/models/list_customers_request.rb +1 -1
- data/lib/square_connect/models/list_customers_response.rb +1 -1
- data/lib/square_connect/models/list_employees_response.rb +1 -1
- data/lib/square_connect/models/list_locations_request.rb +1 -1
- data/lib/square_connect/models/list_locations_response.rb +1 -1
- data/lib/square_connect/models/list_refunds_request.rb +1 -1
- data/lib/square_connect/models/list_refunds_response.rb +1 -1
- data/lib/square_connect/models/list_transactions_request.rb +1 -1
- data/lib/square_connect/models/list_transactions_response.rb +1 -1
- data/lib/square_connect/models/order.rb +12 -2
- data/lib/square_connect/models/order_source.rb +186 -0
- data/lib/square_connect/models/register_domain_request.rb +1 -1
- data/lib/square_connect/models/register_domain_response.rb +1 -1
- data/lib/square_connect/models/retrieve_customer_request.rb +1 -1
- data/lib/square_connect/models/retrieve_customer_response.rb +1 -1
- data/lib/square_connect/models/retrieve_employee_response.rb +1 -1
- data/lib/square_connect/models/retrieve_transaction_request.rb +1 -1
- data/lib/square_connect/models/retrieve_transaction_response.rb +1 -1
- data/lib/square_connect/models/search_customers_request.rb +1 -1
- data/lib/square_connect/models/search_customers_response.rb +1 -1
- data/lib/square_connect/models/transaction.rb +1 -1
- data/lib/square_connect/models/update_customer_request.rb +1 -1
- data/lib/square_connect/models/update_customer_response.rb +1 -1
- data/lib/square_connect/models/v1_category.rb +14 -4
- data/lib/square_connect/models/v1_discount.rb +14 -4
- data/lib/square_connect/models/v1_fee.rb +14 -4
- data/lib/square_connect/models/v1_item.rb +14 -4
- data/lib/square_connect/models/v1_modifier_list.rb +14 -4
- data/lib/square_connect/models/v1_modifier_option.rb +14 -4
- data/lib/square_connect/models/v1_variation.rb +14 -4
- data/lib/square_connect/models/void_transaction_request.rb +1 -1
- data/lib/square_connect/models/void_transaction_response.rb +1 -1
- data/lib/square_connect/version.rb +1 -1
- data/lib/square_connect.rb +1 -0
- data/spec/models/order_source_spec.rb +39 -0
- metadata +6 -2
@@ -45,6 +45,9 @@ module SquareConnect
|
|
45
45
|
# Arbitrary metadata associated with the variation. Cannot exceed 255 characters.
|
46
46
|
attr_accessor :user_data
|
47
47
|
|
48
|
+
# The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID.
|
49
|
+
attr_accessor :v2_id
|
50
|
+
|
48
51
|
class EnumAttributeValidator
|
49
52
|
attr_reader :datatype
|
50
53
|
attr_reader :allowable_values
|
@@ -80,7 +83,8 @@ module SquareConnect
|
|
80
83
|
:'track_inventory' => :'track_inventory',
|
81
84
|
:'inventory_alert_type' => :'inventory_alert_type',
|
82
85
|
:'inventory_alert_threshold' => :'inventory_alert_threshold',
|
83
|
-
:'user_data' => :'user_data'
|
86
|
+
:'user_data' => :'user_data',
|
87
|
+
:'v2_id' => :'v2_id'
|
84
88
|
}
|
85
89
|
end
|
86
90
|
|
@@ -97,7 +101,8 @@ module SquareConnect
|
|
97
101
|
:'track_inventory' => :'BOOLEAN',
|
98
102
|
:'inventory_alert_type' => :'String',
|
99
103
|
:'inventory_alert_threshold' => :'Integer',
|
100
|
-
:'user_data' => :'String'
|
104
|
+
:'user_data' => :'String',
|
105
|
+
:'v2_id' => :'String'
|
101
106
|
}
|
102
107
|
end
|
103
108
|
|
@@ -153,6 +158,10 @@ module SquareConnect
|
|
153
158
|
self.user_data = attributes[:'user_data']
|
154
159
|
end
|
155
160
|
|
161
|
+
if attributes.has_key?(:'v2_id')
|
162
|
+
self.v2_id = attributes[:'v2_id']
|
163
|
+
end
|
164
|
+
|
156
165
|
end
|
157
166
|
|
158
167
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -207,7 +216,8 @@ module SquareConnect
|
|
207
216
|
track_inventory == o.track_inventory &&
|
208
217
|
inventory_alert_type == o.inventory_alert_type &&
|
209
218
|
inventory_alert_threshold == o.inventory_alert_threshold &&
|
210
|
-
user_data == o.user_data
|
219
|
+
user_data == o.user_data &&
|
220
|
+
v2_id == o.v2_id
|
211
221
|
end
|
212
222
|
|
213
223
|
# @see the `==` method
|
@@ -219,7 +229,7 @@ module SquareConnect
|
|
219
229
|
# Calculates hash code according to all attributes.
|
220
230
|
# @return [Fixnum] Hash code
|
221
231
|
def hash
|
222
|
-
[id, name, item_id, ordinal, pricing_type, price_money, sku, track_inventory, inventory_alert_type, inventory_alert_threshold, user_data].hash
|
232
|
+
[id, name, item_id, ordinal, pricing_type, price_money, sku, track_inventory, inventory_alert_type, inventory_alert_threshold, user_data, v2_id].hash
|
223
233
|
end
|
224
234
|
|
225
235
|
# Builds the object from hash
|
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
10
10
|
require 'date'
|
11
11
|
|
12
12
|
module SquareConnect
|
13
|
-
#
|
13
|
+
# Defines the request body for calls to the VoidTransaction endpoint.
|
14
14
|
class VoidTransactionRequest
|
15
15
|
|
16
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
10
10
|
require 'date'
|
11
11
|
|
12
12
|
module SquareConnect
|
13
|
-
# Defines the fields that are included in the response body of a request to the
|
13
|
+
# Defines the fields that are included in the response body of a request to the VoidTransaction endpoint.
|
14
14
|
class VoidTransactionResponse
|
15
15
|
# Any errors that occurred during the request.
|
16
16
|
attr_accessor :errors
|
data/lib/square_connect.rb
CHANGED
@@ -181,6 +181,7 @@ require 'square_connect/models/order_line_item_modifier'
|
|
181
181
|
require 'square_connect/models/order_line_item_tax'
|
182
182
|
require 'square_connect/models/order_line_item_tax_scope'
|
183
183
|
require 'square_connect/models/order_line_item_tax_type'
|
184
|
+
require 'square_connect/models/order_source'
|
184
185
|
require 'square_connect/models/product'
|
185
186
|
require 'square_connect/models/refund'
|
186
187
|
require 'square_connect/models/refund_status'
|
@@ -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::OrderSource
|
15
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
16
|
+
# Please update as you see appropriate
|
17
|
+
describe 'OrderSource' do
|
18
|
+
before do
|
19
|
+
# run before each test
|
20
|
+
@instance = SquareConnect::OrderSource.new
|
21
|
+
end
|
22
|
+
|
23
|
+
after do
|
24
|
+
# run after each test
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'test an instance of OrderSource' do
|
28
|
+
it 'should create an instact of OrderSource' do
|
29
|
+
expect(@instance).to be_instance_of(SquareConnect::OrderSource)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "name"' 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
|
+
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: square_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.20190410.0.296
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Square, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -380,6 +380,7 @@ files:
|
|
380
380
|
- docs/OrderLineItemTax.md
|
381
381
|
- docs/OrderLineItemTaxScope.md
|
382
382
|
- docs/OrderLineItemTaxType.md
|
383
|
+
- docs/OrderSource.md
|
383
384
|
- docs/OrdersApi.md
|
384
385
|
- docs/Product.md
|
385
386
|
- docs/Refund.md
|
@@ -807,6 +808,7 @@ files:
|
|
807
808
|
- lib/square_connect/models/order_line_item_tax.rb
|
808
809
|
- lib/square_connect/models/order_line_item_tax_scope.rb
|
809
810
|
- lib/square_connect/models/order_line_item_tax_type.rb
|
811
|
+
- lib/square_connect/models/order_source.rb
|
810
812
|
- lib/square_connect/models/product.rb
|
811
813
|
- lib/square_connect/models/refund.rb
|
812
814
|
- lib/square_connect/models/refund_status.rb
|
@@ -1225,6 +1227,7 @@ files:
|
|
1225
1227
|
- spec/models/order_line_item_tax_scope_spec.rb
|
1226
1228
|
- spec/models/order_line_item_tax_spec.rb
|
1227
1229
|
- spec/models/order_line_item_tax_type_spec.rb
|
1230
|
+
- spec/models/order_source_spec.rb
|
1228
1231
|
- spec/models/order_spec.rb
|
1229
1232
|
- spec/models/product_spec.rb
|
1230
1233
|
- spec/models/refund_spec.rb
|
@@ -1625,6 +1628,7 @@ test_files:
|
|
1625
1628
|
- spec/models/v1_update_order_request_action_spec.rb
|
1626
1629
|
- spec/models/v1_list_settlements_response_spec.rb
|
1627
1630
|
- spec/models/catalog_discount_spec.rb
|
1631
|
+
- spec/models/order_source_spec.rb
|
1628
1632
|
- spec/models/item_variation_location_overrides_spec.rb
|
1629
1633
|
- spec/models/tender_spec.rb
|
1630
1634
|
- spec/models/update_customer_response_spec.rb
|