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
|
@@ -0,0 +1,568 @@
|
|
|
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::V1ItemsApi
|
|
14
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
15
|
+
# Please update as you see appropriate
|
|
16
|
+
describe 'V1ItemsApi' do
|
|
17
|
+
before do
|
|
18
|
+
# run before each test
|
|
19
|
+
@instance = SquareConnect::V1ItemsApi.new
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
after do
|
|
23
|
+
# run after each test
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
describe 'test an instance of V1ItemsApi' do
|
|
27
|
+
it 'should create an instact of V1ItemsApi' do
|
|
28
|
+
expect(@instance).to be_instance_of(SquareConnect::V1ItemsApi)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# unit tests for adjust_inventory
|
|
33
|
+
# Adjusts an item variation's current available inventory.
|
|
34
|
+
# Adjusts an item variation's current available inventory.
|
|
35
|
+
# @param location_id The ID of the item's associated location.
|
|
36
|
+
# @param variation_id The ID of the variation to adjust inventory information for.
|
|
37
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [V1InventoryEntry]
|
|
40
|
+
describe 'adjust_inventory test' do
|
|
41
|
+
it "should work" do
|
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for apply_fee
|
|
47
|
+
# Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
|
|
48
|
+
# Associates a fee with an item, meaning the fee is automatically applied to the item in Square Register.
|
|
49
|
+
# @param location_id The ID of the fee's associated location.
|
|
50
|
+
# @param item_id The ID of the item to add the fee to.
|
|
51
|
+
# @param fee_id The ID of the fee to apply.
|
|
52
|
+
# @param [Hash] opts the optional parameters
|
|
53
|
+
# @return [V1Item]
|
|
54
|
+
describe 'apply_fee test' do
|
|
55
|
+
it "should work" do
|
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# unit tests for apply_modifier_list
|
|
61
|
+
# Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
|
|
62
|
+
# Associates a modifier list with an item, meaning modifier options from the list can be applied to the item.
|
|
63
|
+
# @param location_id The ID of the item's associated location.
|
|
64
|
+
# @param modifier_list_id The ID of the modifier list to apply.
|
|
65
|
+
# @param item_id The ID of the item to add the modifier list to.
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [V1Item]
|
|
68
|
+
describe 'apply_modifier_list test' 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
|
+
# unit tests for create_category
|
|
75
|
+
# Creates an item category.
|
|
76
|
+
# Creates an item category.
|
|
77
|
+
# @param location_id The ID of the location to create an item for.
|
|
78
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [V1Category]
|
|
81
|
+
describe 'create_category 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 create_discount
|
|
88
|
+
# Creates a discount.
|
|
89
|
+
# Creates a discount.
|
|
90
|
+
# @param location_id The ID of the location to create an item for.
|
|
91
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [V1Discount]
|
|
94
|
+
describe 'create_discount test' do
|
|
95
|
+
it "should work" do
|
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# unit tests for create_fee
|
|
101
|
+
# Creates a fee (tax).
|
|
102
|
+
# Creates a fee (tax).
|
|
103
|
+
# @param location_id The ID of the location to create a fee for.
|
|
104
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
105
|
+
# @param [Hash] opts the optional parameters
|
|
106
|
+
# @return [V1Fee]
|
|
107
|
+
describe 'create_fee test' do
|
|
108
|
+
it "should work" do
|
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# unit tests for create_item
|
|
114
|
+
# Creates an item and at least one variation for it.
|
|
115
|
+
# Creates an item and at least one variation for it.
|
|
116
|
+
# @param location_id The ID of the location to create an item for.
|
|
117
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
118
|
+
# @param [Hash] opts the optional parameters
|
|
119
|
+
# @return [V1Item]
|
|
120
|
+
describe 'create_item test' do
|
|
121
|
+
it "should work" do
|
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# unit tests for create_modifier_list
|
|
127
|
+
# Creates an item modifier list and at least one modifier option for it.
|
|
128
|
+
# Creates an item modifier list and at least one modifier option for it.
|
|
129
|
+
# @param location_id The ID of the location to create a modifier list for.
|
|
130
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
131
|
+
# @param [Hash] opts the optional parameters
|
|
132
|
+
# @return [V1ModifierList]
|
|
133
|
+
describe 'create_modifier_list test' do
|
|
134
|
+
it "should work" do
|
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# unit tests for create_modifier_option
|
|
140
|
+
# Creates an item modifier option and adds it to a modifier list.
|
|
141
|
+
# Creates an item modifier option and adds it to a modifier list.
|
|
142
|
+
# @param location_id The ID of the item's associated location.
|
|
143
|
+
# @param modifier_list_id The ID of the modifier list to edit.
|
|
144
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
145
|
+
# @param [Hash] opts the optional parameters
|
|
146
|
+
# @return [V1ModifierOption]
|
|
147
|
+
describe 'create_modifier_option test' do
|
|
148
|
+
it "should work" do
|
|
149
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# unit tests for create_page
|
|
154
|
+
# Creates a Favorites page in Square Register.
|
|
155
|
+
# Creates a Favorites page in Square Register.
|
|
156
|
+
# @param location_id The ID of the location to create an item for.
|
|
157
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
158
|
+
# @param [Hash] opts the optional parameters
|
|
159
|
+
# @return [V1Page]
|
|
160
|
+
describe 'create_page test' do
|
|
161
|
+
it "should work" do
|
|
162
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# unit tests for create_variation
|
|
167
|
+
# Creates an item variation for an existing item.
|
|
168
|
+
# Creates an item variation for an existing item.
|
|
169
|
+
# @param location_id The ID of the item's associated location.
|
|
170
|
+
# @param item_id The item's ID.
|
|
171
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
172
|
+
# @param [Hash] opts the optional parameters
|
|
173
|
+
# @return [V1Variation]
|
|
174
|
+
describe 'create_variation test' do
|
|
175
|
+
it "should work" do
|
|
176
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# unit tests for delete_category
|
|
181
|
+
# Deletes an existing item category.
|
|
182
|
+
# Deletes an existing item category.
|
|
183
|
+
# @param location_id The ID of the item's associated location.
|
|
184
|
+
# @param category_id The ID of the category to delete.
|
|
185
|
+
# @param [Hash] opts the optional parameters
|
|
186
|
+
# @return [V1Category]
|
|
187
|
+
describe 'delete_category test' do
|
|
188
|
+
it "should work" do
|
|
189
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# unit tests for delete_discount
|
|
194
|
+
# Deletes an existing discount.
|
|
195
|
+
# Deletes an existing discount.
|
|
196
|
+
# @param location_id The ID of the item's associated location.
|
|
197
|
+
# @param discount_id The ID of the discount to delete.
|
|
198
|
+
# @param [Hash] opts the optional parameters
|
|
199
|
+
# @return [V1Discount]
|
|
200
|
+
describe 'delete_discount test' do
|
|
201
|
+
it "should work" do
|
|
202
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# unit tests for delete_fee
|
|
207
|
+
# Deletes an existing fee (tax).
|
|
208
|
+
# Deletes an existing fee (tax).
|
|
209
|
+
# @param location_id The ID of the fee's associated location.
|
|
210
|
+
# @param fee_id The ID of the fee to delete.
|
|
211
|
+
# @param [Hash] opts the optional parameters
|
|
212
|
+
# @return [V1Fee]
|
|
213
|
+
describe 'delete_fee test' do
|
|
214
|
+
it "should work" do
|
|
215
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# unit tests for delete_item
|
|
220
|
+
# Deletes an existing item and all item variations associated with it.
|
|
221
|
+
# Deletes an existing item and all item variations associated with it.
|
|
222
|
+
# @param location_id The ID of the item's associated location.
|
|
223
|
+
# @param item_id The ID of the item to modify.
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @return [V1Item]
|
|
226
|
+
describe 'delete_item test' do
|
|
227
|
+
it "should work" do
|
|
228
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# unit tests for delete_modifier_list
|
|
233
|
+
# Deletes an existing item modifier list and all modifier options associated with it.
|
|
234
|
+
# Deletes an existing item modifier list and all modifier options associated with it.
|
|
235
|
+
# @param location_id The ID of the item's associated location.
|
|
236
|
+
# @param modifier_list_id The ID of the modifier list to delete.
|
|
237
|
+
# @param [Hash] opts the optional parameters
|
|
238
|
+
# @return [V1ModifierList]
|
|
239
|
+
describe 'delete_modifier_list test' do
|
|
240
|
+
it "should work" do
|
|
241
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# unit tests for delete_modifier_option
|
|
246
|
+
# Deletes an existing item modifier option from a modifier list.
|
|
247
|
+
# Deletes an existing item modifier option from a modifier list.
|
|
248
|
+
# @param location_id The ID of the item's associated location.
|
|
249
|
+
# @param modifier_list_id The ID of the modifier list to delete.
|
|
250
|
+
# @param modifier_option_id The ID of the modifier list to edit.
|
|
251
|
+
# @param [Hash] opts the optional parameters
|
|
252
|
+
# @return [V1ModifierOption]
|
|
253
|
+
describe 'delete_modifier_option test' do
|
|
254
|
+
it "should work" do
|
|
255
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
256
|
+
end
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# unit tests for delete_page
|
|
260
|
+
# Deletes an existing Favorites page and all of its cells.
|
|
261
|
+
# Deletes an existing Favorites page and all of its cells.
|
|
262
|
+
# @param location_id The ID of the Favorites page's associated location.
|
|
263
|
+
# @param page_id The ID of the page to delete.
|
|
264
|
+
# @param [Hash] opts the optional parameters
|
|
265
|
+
# @return [V1Page]
|
|
266
|
+
describe 'delete_page test' do
|
|
267
|
+
it "should work" do
|
|
268
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
269
|
+
end
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# unit tests for delete_page_cell
|
|
273
|
+
# Deletes a cell from a Favorites page in Square Register.
|
|
274
|
+
# Deletes a cell from a Favorites page in Square Register.
|
|
275
|
+
# @param location_id The ID of the Favorites page's associated location.
|
|
276
|
+
# @param page_id The ID of the page to delete.
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @option opts [String] :row The row of the cell to clear. Always an integer between 0 and 4, inclusive. Row 0 is the top row.
|
|
279
|
+
# @option opts [String] :column The column of the cell to clear. Always an integer between 0 and 4, inclusive. Column 0 is the leftmost column.
|
|
280
|
+
# @return [V1Page]
|
|
281
|
+
describe 'delete_page_cell test' do
|
|
282
|
+
it "should work" do
|
|
283
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
284
|
+
end
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# unit tests for delete_variation
|
|
288
|
+
# Deletes an existing item variation from an item.
|
|
289
|
+
# Deletes an existing item variation from an item.
|
|
290
|
+
# @param location_id The ID of the item's associated location.
|
|
291
|
+
# @param item_id The ID of the item to delete.
|
|
292
|
+
# @param variation_id The ID of the variation to delete.
|
|
293
|
+
# @param [Hash] opts the optional parameters
|
|
294
|
+
# @return [V1Variation]
|
|
295
|
+
describe 'delete_variation test' do
|
|
296
|
+
it "should work" do
|
|
297
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
298
|
+
end
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# unit tests for list_categories
|
|
302
|
+
# Lists all of a location's item categories.
|
|
303
|
+
# Lists all of a location's item categories.
|
|
304
|
+
# @param location_id The ID of the location to list categories for.
|
|
305
|
+
# @param [Hash] opts the optional parameters
|
|
306
|
+
# @return [Array<V1Category>]
|
|
307
|
+
describe 'list_categories test' do
|
|
308
|
+
it "should work" do
|
|
309
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
|
|
313
|
+
# unit tests for list_discounts
|
|
314
|
+
# Lists all of a location's discounts.
|
|
315
|
+
# Lists all of a location's discounts.
|
|
316
|
+
# @param location_id The ID of the location to list categories for.
|
|
317
|
+
# @param [Hash] opts the optional parameters
|
|
318
|
+
# @return [Array<V1Discount>]
|
|
319
|
+
describe 'list_discounts test' do
|
|
320
|
+
it "should work" do
|
|
321
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
# unit tests for list_fees
|
|
326
|
+
# Lists all of a location's fees (taxes).
|
|
327
|
+
# Lists all of a location's fees (taxes).
|
|
328
|
+
# @param location_id The ID of the location to list fees for.
|
|
329
|
+
# @param [Hash] opts the optional parameters
|
|
330
|
+
# @return [Array<V1Fee>]
|
|
331
|
+
describe 'list_fees test' do
|
|
332
|
+
it "should work" do
|
|
333
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
334
|
+
end
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# unit tests for list_inventory
|
|
338
|
+
# Provides inventory information for all of a merchant's inventory-enabled item variations.
|
|
339
|
+
# Provides inventory information for all of a merchant's inventory-enabled item variations.
|
|
340
|
+
# @param location_id The ID of the item's associated location.
|
|
341
|
+
# @param [Hash] opts the optional parameters
|
|
342
|
+
# @option opts [Integer] :limit The maximum number of inventory entries to return in a single response. This value cannot exceed 1000.
|
|
343
|
+
# @return [Array<V1InventoryEntry>]
|
|
344
|
+
describe 'list_inventory test' do
|
|
345
|
+
it "should work" do
|
|
346
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
347
|
+
end
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# unit tests for list_items
|
|
351
|
+
# Provides summary information for all of a location's items.
|
|
352
|
+
# Provides summary information for all of a location's items.
|
|
353
|
+
# @param location_id The ID of the location to list items for.
|
|
354
|
+
# @param [Hash] opts the optional parameters
|
|
355
|
+
# @return [Array<V1Item>]
|
|
356
|
+
describe 'list_items test' do
|
|
357
|
+
it "should work" do
|
|
358
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
359
|
+
end
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# unit tests for list_modifier_lists
|
|
363
|
+
# Lists all of a location's modifier lists.
|
|
364
|
+
# Lists all of a location's modifier lists.
|
|
365
|
+
# @param location_id The ID of the location to list modifier lists for.
|
|
366
|
+
# @param [Hash] opts the optional parameters
|
|
367
|
+
# @return [Array<V1ModifierList>]
|
|
368
|
+
describe 'list_modifier_lists test' do
|
|
369
|
+
it "should work" do
|
|
370
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
# unit tests for list_pages
|
|
375
|
+
# Lists all of a location's Favorites pages in Square Register.
|
|
376
|
+
# Lists all of a location's Favorites pages in Square Register.
|
|
377
|
+
# @param location_id The ID of the location to list Favorites pages for.
|
|
378
|
+
# @param [Hash] opts the optional parameters
|
|
379
|
+
# @return [Array<V1Page>]
|
|
380
|
+
describe 'list_pages test' do
|
|
381
|
+
it "should work" do
|
|
382
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
383
|
+
end
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
# unit tests for remove_fee
|
|
387
|
+
# Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
|
|
388
|
+
# Removes a fee assocation from an item, meaning the fee is no longer automatically applied to the item in Square Register.
|
|
389
|
+
# @param location_id The ID of the fee's associated location.
|
|
390
|
+
# @param item_id The ID of the item to add the fee to.
|
|
391
|
+
# @param fee_id The ID of the fee to apply.
|
|
392
|
+
# @param [Hash] opts the optional parameters
|
|
393
|
+
# @return [V1Item]
|
|
394
|
+
describe 'remove_fee test' do
|
|
395
|
+
it "should work" do
|
|
396
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
397
|
+
end
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
# unit tests for remove_modifier_list
|
|
401
|
+
# Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
|
|
402
|
+
# Removes a modifier list association from an item, meaning modifier options from the list can no longer be applied to the item.
|
|
403
|
+
# @param location_id The ID of the item's associated location.
|
|
404
|
+
# @param modifier_list_id The ID of the modifier list to remove.
|
|
405
|
+
# @param item_id The ID of the item to remove the modifier list from.
|
|
406
|
+
# @param [Hash] opts the optional parameters
|
|
407
|
+
# @return [V1Item]
|
|
408
|
+
describe 'remove_modifier_list test' do
|
|
409
|
+
it "should work" do
|
|
410
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
411
|
+
end
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# unit tests for retrieve_item
|
|
415
|
+
# Provides the details for a single item, including associated modifier lists and fees.
|
|
416
|
+
# Provides the details for a single item, including associated modifier lists and fees.
|
|
417
|
+
# @param location_id The ID of the item's associated location.
|
|
418
|
+
# @param item_id The item's ID.
|
|
419
|
+
# @param [Hash] opts the optional parameters
|
|
420
|
+
# @return [V1Item]
|
|
421
|
+
describe 'retrieve_item test' do
|
|
422
|
+
it "should work" do
|
|
423
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
424
|
+
end
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
# unit tests for retrieve_modifier_list
|
|
428
|
+
# Provides the details for a single modifier list.
|
|
429
|
+
# Provides the details for a single modifier list.
|
|
430
|
+
# @param location_id The ID of the item's associated location.
|
|
431
|
+
# @param modifier_list_id The modifier list's ID.
|
|
432
|
+
# @param [Hash] opts the optional parameters
|
|
433
|
+
# @return [V1ModifierList]
|
|
434
|
+
describe 'retrieve_modifier_list test' do
|
|
435
|
+
it "should work" do
|
|
436
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
437
|
+
end
|
|
438
|
+
end
|
|
439
|
+
|
|
440
|
+
# unit tests for update_category
|
|
441
|
+
# Modifies the details of an existing item category.
|
|
442
|
+
# Modifies the details of an existing item category.
|
|
443
|
+
# @param location_id The ID of the category's associated location.
|
|
444
|
+
# @param category_id The ID of the category to edit.
|
|
445
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
446
|
+
# @param [Hash] opts the optional parameters
|
|
447
|
+
# @return [V1Category]
|
|
448
|
+
describe 'update_category test' do
|
|
449
|
+
it "should work" do
|
|
450
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
451
|
+
end
|
|
452
|
+
end
|
|
453
|
+
|
|
454
|
+
# unit tests for update_discount
|
|
455
|
+
# Modifies the details of an existing discount.
|
|
456
|
+
# Modifies the details of an existing discount.
|
|
457
|
+
# @param location_id The ID of the category's associated location.
|
|
458
|
+
# @param discount_id The ID of the discount to edit.
|
|
459
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
460
|
+
# @param [Hash] opts the optional parameters
|
|
461
|
+
# @return [V1Discount]
|
|
462
|
+
describe 'update_discount test' do
|
|
463
|
+
it "should work" do
|
|
464
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
465
|
+
end
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# unit tests for update_fee
|
|
469
|
+
# Modifies the details of an existing fee (tax).
|
|
470
|
+
# Modifies the details of an existing fee (tax).
|
|
471
|
+
# @param location_id The ID of the fee's associated location.
|
|
472
|
+
# @param fee_id The ID of the fee to edit.
|
|
473
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
474
|
+
# @param [Hash] opts the optional parameters
|
|
475
|
+
# @return [V1Fee]
|
|
476
|
+
describe 'update_fee test' do
|
|
477
|
+
it "should work" do
|
|
478
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
479
|
+
end
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# unit tests for update_item
|
|
483
|
+
# Modifies the core details of an existing item.
|
|
484
|
+
# Modifies the core details of an existing item.
|
|
485
|
+
# @param location_id The ID of the item's associated location.
|
|
486
|
+
# @param item_id The ID of the item to modify.
|
|
487
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
488
|
+
# @param [Hash] opts the optional parameters
|
|
489
|
+
# @return [V1Item]
|
|
490
|
+
describe 'update_item test' do
|
|
491
|
+
it "should work" do
|
|
492
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
493
|
+
end
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
# unit tests for update_modifier_list
|
|
497
|
+
# Modifies the details of an existing item modifier list.
|
|
498
|
+
# Modifies the details of an existing item modifier list.
|
|
499
|
+
# @param location_id The ID of the item's associated location.
|
|
500
|
+
# @param modifier_list_id The ID of the modifier list to edit.
|
|
501
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
502
|
+
# @param [Hash] opts the optional parameters
|
|
503
|
+
# @return [V1ModifierList]
|
|
504
|
+
describe 'update_modifier_list test' do
|
|
505
|
+
it "should work" do
|
|
506
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
507
|
+
end
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
# unit tests for update_modifier_option
|
|
511
|
+
# Modifies the details of an existing item modifier option.
|
|
512
|
+
# Modifies the details of an existing item modifier option.
|
|
513
|
+
# @param location_id The ID of the item's associated location.
|
|
514
|
+
# @param modifier_list_id The ID of the modifier list to edit.
|
|
515
|
+
# @param modifier_option_id The ID of the modifier list to edit.
|
|
516
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
517
|
+
# @param [Hash] opts the optional parameters
|
|
518
|
+
# @return [V1ModifierOption]
|
|
519
|
+
describe 'update_modifier_option test' do
|
|
520
|
+
it "should work" do
|
|
521
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
|
|
525
|
+
# unit tests for update_page
|
|
526
|
+
# Modifies the details of a Favorites page in Square Register.
|
|
527
|
+
# Modifies the details of a Favorites page in Square Register.
|
|
528
|
+
# @param location_id The ID of the Favorites page's associated location
|
|
529
|
+
# @param page_id The ID of the page to modify.
|
|
530
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
531
|
+
# @param [Hash] opts the optional parameters
|
|
532
|
+
# @return [V1Page]
|
|
533
|
+
describe 'update_page test' do
|
|
534
|
+
it "should work" do
|
|
535
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
536
|
+
end
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# unit tests for update_page_cell
|
|
540
|
+
# Modifies a cell of a Favorites page in Square Register.
|
|
541
|
+
# Modifies a cell of a Favorites page in Square Register.
|
|
542
|
+
# @param location_id The ID of the Favorites page's associated location.
|
|
543
|
+
# @param page_id The ID of the page the cell belongs to.
|
|
544
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
545
|
+
# @param [Hash] opts the optional parameters
|
|
546
|
+
# @return [V1Page]
|
|
547
|
+
describe 'update_page_cell test' do
|
|
548
|
+
it "should work" do
|
|
549
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
550
|
+
end
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# unit tests for update_variation
|
|
554
|
+
# Modifies the details of an existing item variation.
|
|
555
|
+
# Modifies the details of an existing item variation.
|
|
556
|
+
# @param location_id The ID of the item's associated location.
|
|
557
|
+
# @param item_id The ID of the item to modify.
|
|
558
|
+
# @param variation_id The ID of the variation to modify.
|
|
559
|
+
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
|
560
|
+
# @param [Hash] opts the optional parameters
|
|
561
|
+
# @return [V1Variation]
|
|
562
|
+
describe 'update_variation test' do
|
|
563
|
+
it "should work" do
|
|
564
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
565
|
+
end
|
|
566
|
+
end
|
|
567
|
+
|
|
568
|
+
end
|