square.rb 39.0.0.20240821 → 39.1.0.20240919
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/square/api/apple_pay_api.rb +1 -1
- data/lib/square/api/bank_accounts_api.rb +3 -3
- data/lib/square/api/base_api.rb +1 -1
- data/lib/square/api/booking_custom_attributes_api.rb +11 -11
- data/lib/square/api/bookings_api.rb +13 -13
- data/lib/square/api/cards_api.rb +4 -4
- data/lib/square/api/cash_drawers_api.rb +3 -3
- data/lib/square/api/catalog_api.rb +14 -14
- data/lib/square/api/checkout_api.rb +10 -10
- data/lib/square/api/customer_custom_attributes_api.rb +10 -10
- data/lib/square/api/customer_groups_api.rb +5 -5
- data/lib/square/api/customer_segments_api.rb +2 -2
- data/lib/square/api/customers_api.rb +14 -14
- data/lib/square/api/devices_api.rb +5 -5
- data/lib/square/api/disputes_api.rb +9 -9
- data/lib/square/api/employees_api.rb +2 -2
- data/lib/square/api/events_api.rb +4 -4
- data/lib/square/api/gift_card_activities_api.rb +2 -2
- data/lib/square/api/gift_cards_api.rb +7 -7
- data/lib/square/api/inventory_api.rb +13 -13
- data/lib/square/api/invoices_api.rb +10 -10
- data/lib/square/api/labor_api.rb +16 -16
- data/lib/square/api/location_custom_attributes_api.rb +11 -11
- data/lib/square/api/locations_api.rb +4 -4
- data/lib/square/api/loyalty_api.rb +18 -18
- data/lib/square/api/merchant_custom_attributes_api.rb +11 -11
- data/lib/square/api/merchants_api.rb +2 -2
- data/lib/square/api/mobile_authorization_api.rb +1 -1
- data/lib/square/api/o_auth_api.rb +3 -3
- data/lib/square/api/order_custom_attributes_api.rb +11 -11
- data/lib/square/api/orders_api.rb +8 -8
- data/lib/square/api/payments_api.rb +7 -7
- data/lib/square/api/payouts_api.rb +3 -3
- data/lib/square/api/refunds_api.rb +3 -3
- data/lib/square/api/sites_api.rb +1 -1
- data/lib/square/api/snippets_api.rb +3 -3
- data/lib/square/api/subscriptions_api.rb +12 -12
- data/lib/square/api/team_api.rb +8 -8
- data/lib/square/api/terminal_api.rb +15 -15
- data/lib/square/api/transactions_api.rb +4 -4
- data/lib/square/api/v1_transactions_api.rb +3 -3
- data/lib/square/api/vendors_api.rb +7 -7
- data/lib/square/api/webhook_subscriptions_api.rb +8 -8
- data/lib/square/client.rb +2 -2
- data/lib/square/configuration.rb +1 -1
- metadata +2 -2
@@ -14,7 +14,7 @@ module Square
|
|
14
14
|
# The default value is 50. For more information, see
|
15
15
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
16
16
|
# atterns/pagination).
|
17
|
-
# @return [
|
17
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
18
18
|
def list_customer_groups(cursor: nil,
|
19
19
|
limit: nil)
|
20
20
|
new_api_call_builder
|
@@ -37,7 +37,7 @@ module Square
|
|
37
37
|
# @param [CreateCustomerGroupRequest] body Required parameter: An object
|
38
38
|
# containing the fields to POST for the request. See the corresponding
|
39
39
|
# object definition for field details.
|
40
|
-
# @return [
|
40
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
41
41
|
def create_customer_group(body:)
|
42
42
|
new_api_call_builder
|
43
43
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -58,7 +58,7 @@ module Square
|
|
58
58
|
# Deletes a customer group as identified by the `group_id` value.
|
59
59
|
# @param [String] group_id Required parameter: The ID of the customer group
|
60
60
|
# to delete.
|
61
|
-
# @return [
|
61
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
62
62
|
def delete_customer_group(group_id:)
|
63
63
|
new_api_call_builder
|
64
64
|
.request(new_request_builder(HttpMethodEnum::DELETE,
|
@@ -78,7 +78,7 @@ module Square
|
|
78
78
|
# Retrieves a specific customer group as identified by the `group_id` value.
|
79
79
|
# @param [String] group_id Required parameter: The ID of the customer group
|
80
80
|
# to retrieve.
|
81
|
-
# @return [
|
81
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
82
82
|
def retrieve_customer_group(group_id:)
|
83
83
|
new_api_call_builder
|
84
84
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -101,7 +101,7 @@ module Square
|
|
101
101
|
# @param [UpdateCustomerGroupRequest] body Required parameter: An object
|
102
102
|
# containing the fields to POST for the request. See the corresponding
|
103
103
|
# object definition for field details.
|
104
|
-
# @return [
|
104
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
105
105
|
def update_customer_group(group_id:,
|
106
106
|
body:)
|
107
107
|
new_api_call_builder
|
@@ -14,7 +14,7 @@ module Square
|
|
14
14
|
# VALUE_TOO_HIGH` error. The default value is 50. For more information, see
|
15
15
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
16
16
|
# atterns/pagination).
|
17
|
-
# @return [
|
17
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
18
18
|
def list_customer_segments(cursor: nil,
|
19
19
|
limit: nil)
|
20
20
|
new_api_call_builder
|
@@ -36,7 +36,7 @@ module Square
|
|
36
36
|
# value.
|
37
37
|
# @param [String] segment_id Required parameter: The Square-issued ID of the
|
38
38
|
# customer segment.
|
39
|
-
# @return [
|
39
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
40
40
|
def retrieve_customer_segment(segment_id:)
|
41
41
|
new_api_call_builder
|
42
42
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -29,7 +29,7 @@ module Square
|
|
29
29
|
# @param [TrueClass | FalseClass] count Optional parameter: Indicates
|
30
30
|
# whether to return the total count of customers in the `count` field of the
|
31
31
|
# response. The default value is `false`.
|
32
|
-
# @return [
|
32
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
33
33
|
def list_customers(cursor: nil,
|
34
34
|
limit: nil,
|
35
35
|
sort_field: nil,
|
@@ -65,7 +65,7 @@ module Square
|
|
65
65
|
# @param [CreateCustomerRequest] body Required parameter: An object
|
66
66
|
# containing the fields to POST for the request. See the corresponding
|
67
67
|
# object definition for field details.
|
68
|
-
# @return [
|
68
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
69
69
|
def create_customer(body:)
|
70
70
|
new_api_call_builder
|
71
71
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -96,7 +96,7 @@ module Square
|
|
96
96
|
# @param [BulkCreateCustomersRequest] body Required parameter: An object
|
97
97
|
# containing the fields to POST for the request. See the corresponding
|
98
98
|
# object definition for field details.
|
99
|
-
# @return [
|
99
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
100
100
|
def bulk_create_customers(body:)
|
101
101
|
new_api_call_builder
|
102
102
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -119,7 +119,7 @@ module Square
|
|
119
119
|
# @param [BulkDeleteCustomersRequest] body Required parameter: An object
|
120
120
|
# containing the fields to POST for the request. See the corresponding
|
121
121
|
# object definition for field details.
|
122
|
-
# @return [
|
122
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
123
123
|
def bulk_delete_customers(body:)
|
124
124
|
new_api_call_builder
|
125
125
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -142,7 +142,7 @@ module Square
|
|
142
142
|
# @param [BulkRetrieveCustomersRequest] body Required parameter: An object
|
143
143
|
# containing the fields to POST for the request. See the corresponding
|
144
144
|
# object definition for field details.
|
145
|
-
# @return [
|
145
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
146
146
|
def bulk_retrieve_customers(body:)
|
147
147
|
new_api_call_builder
|
148
148
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -168,7 +168,7 @@ module Square
|
|
168
168
|
# @param [BulkUpdateCustomersRequest] body Required parameter: An object
|
169
169
|
# containing the fields to POST for the request. See the corresponding
|
170
170
|
# object definition for field details.
|
171
|
-
# @return [
|
171
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
172
172
|
def bulk_update_customers(body:)
|
173
173
|
new_api_call_builder
|
174
174
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -200,7 +200,7 @@ module Square
|
|
200
200
|
# @param [SearchCustomersRequest] body Required parameter: An object
|
201
201
|
# containing the fields to POST for the request. See the corresponding
|
202
202
|
# object definition for field details.
|
203
|
-
# @return [
|
203
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
204
204
|
def search_customers(body:)
|
205
205
|
new_api_call_builder
|
206
206
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -232,7 +232,7 @@ module Square
|
|
232
232
|
# [Delete a customer
|
233
233
|
# profile](https://developer.squareup.com/docs/customers-api/use-the-api/kee
|
234
234
|
# p-records#delete-customer-profile).
|
235
|
-
# @return [
|
235
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
236
236
|
def delete_customer(customer_id:,
|
237
237
|
version: nil)
|
238
238
|
new_api_call_builder
|
@@ -254,7 +254,7 @@ module Square
|
|
254
254
|
# Returns details for a single customer.
|
255
255
|
# @param [String] customer_id Required parameter: The ID of the customer to
|
256
256
|
# retrieve.
|
257
|
-
# @return [
|
257
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
258
258
|
def retrieve_customer(customer_id:)
|
259
259
|
new_api_call_builder
|
260
260
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -284,7 +284,7 @@ module Square
|
|
284
284
|
# @param [UpdateCustomerRequest] body Required parameter: An object
|
285
285
|
# containing the fields to POST for the request. See the corresponding
|
286
286
|
# object definition for field details.
|
287
|
-
# @return [
|
287
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
288
288
|
def update_customer(customer_id:,
|
289
289
|
body:)
|
290
290
|
new_api_call_builder
|
@@ -315,7 +315,7 @@ module Square
|
|
315
315
|
# @param [CreateCustomerCardRequest] body Required parameter: An object
|
316
316
|
# containing the fields to POST for the request. See the corresponding
|
317
317
|
# object definition for field details.
|
318
|
-
# @return [
|
318
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
319
319
|
def create_customer_card(customer_id:,
|
320
320
|
body:)
|
321
321
|
warn 'Endpoint create_customer_card in CustomersApi is deprecated'
|
@@ -342,7 +342,7 @@ module Square
|
|
342
342
|
# that the card on file belongs to.
|
343
343
|
# @param [String] card_id Required parameter: The ID of the card on file to
|
344
344
|
# delete.
|
345
|
-
# @return [
|
345
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
346
346
|
def delete_customer_card(customer_id:,
|
347
347
|
card_id:)
|
348
348
|
warn 'Endpoint delete_customer_card in CustomersApi is deprecated'
|
@@ -370,7 +370,7 @@ module Square
|
|
370
370
|
# remove from the group.
|
371
371
|
# @param [String] group_id Required parameter: The ID of the customer group
|
372
372
|
# to remove the customer from.
|
373
|
-
# @return [
|
373
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
374
374
|
def remove_group_from_customer(customer_id:,
|
375
375
|
group_id:)
|
376
376
|
new_api_call_builder
|
@@ -397,7 +397,7 @@ module Square
|
|
397
397
|
# add to a group.
|
398
398
|
# @param [String] group_id Required parameter: The ID of the customer group
|
399
399
|
# to add the customer to.
|
400
|
-
# @return [
|
400
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
401
401
|
def add_group_to_customer(customer_id:,
|
402
402
|
group_id:)
|
403
403
|
new_api_call_builder
|
@@ -15,7 +15,7 @@ module Square
|
|
15
15
|
# in a single page.
|
16
16
|
# @param [String] location_id Optional parameter: If present, only returns
|
17
17
|
# devices at the target location.
|
18
|
-
# @return [
|
18
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
19
19
|
def list_devices(cursor: nil,
|
20
20
|
sort_order: nil,
|
21
21
|
limit: nil,
|
@@ -52,7 +52,7 @@ module Square
|
|
52
52
|
# @param [DeviceCodeStatus] status Optional parameter: If specified, returns
|
53
53
|
# DeviceCodes with the specified statuses. Returns DeviceCodes of status
|
54
54
|
# `PAIRED` and `UNPAIRED` if empty.
|
55
|
-
# @return [
|
55
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
56
56
|
def list_device_codes(cursor: nil,
|
57
57
|
location_id: nil,
|
58
58
|
product_type: nil,
|
@@ -80,7 +80,7 @@ module Square
|
|
80
80
|
# @param [CreateDeviceCodeRequest] body Required parameter: An object
|
81
81
|
# containing the fields to POST for the request. See the corresponding
|
82
82
|
# object definition for field details.
|
83
|
-
# @return [
|
83
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
84
84
|
def create_device_code(body:)
|
85
85
|
new_api_call_builder
|
86
86
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -101,7 +101,7 @@ module Square
|
|
101
101
|
# Retrieves DeviceCode with the associated ID.
|
102
102
|
# @param [String] id Required parameter: The unique identifier for the
|
103
103
|
# device code.
|
104
|
-
# @return [
|
104
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
105
105
|
def get_device_code(id:)
|
106
106
|
new_api_call_builder
|
107
107
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -121,7 +121,7 @@ module Square
|
|
121
121
|
# Retrieves Device with the associated `device_id`.
|
122
122
|
# @param [String] device_id Required parameter: The unique ID for the
|
123
123
|
# desired `Device`.
|
124
|
-
# @return [
|
124
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
125
125
|
def get_device(device_id:)
|
126
126
|
new_api_call_builder
|
127
127
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -13,7 +13,7 @@ module Square
|
|
13
13
|
# @param [String] location_id Optional parameter: The ID of the location for
|
14
14
|
# which to return a list of disputes. If not specified, the endpoint returns
|
15
15
|
# disputes associated with all locations.
|
16
|
-
# @return [
|
16
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
17
17
|
def list_disputes(cursor: nil,
|
18
18
|
states: nil,
|
19
19
|
location_id: nil)
|
@@ -36,7 +36,7 @@ module Square
|
|
36
36
|
# Returns details about a specific dispute.
|
37
37
|
# @param [String] dispute_id Required parameter: The ID of the dispute you
|
38
38
|
# want more details about.
|
39
|
-
# @return [
|
39
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
40
40
|
def retrieve_dispute(dispute_id:)
|
41
41
|
new_api_call_builder
|
42
42
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -61,7 +61,7 @@ module Square
|
|
61
61
|
# does not have sufficient funds, Square debits the associated bank account.
|
62
62
|
# @param [String] dispute_id Required parameter: The ID of the dispute you
|
63
63
|
# want to accept.
|
64
|
-
# @return [
|
64
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
65
65
|
def accept_dispute(dispute_id:)
|
66
66
|
new_api_call_builder
|
67
67
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -85,7 +85,7 @@ module Square
|
|
85
85
|
# set of results for the original query. For more information, see
|
86
86
|
# [Pagination](https://developer.squareup.com/docs/build-basics/common-api-p
|
87
87
|
# atterns/pagination).
|
88
|
-
# @return [
|
88
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
89
89
|
def list_dispute_evidence(dispute_id:,
|
90
90
|
cursor: nil)
|
91
91
|
new_api_call_builder
|
@@ -113,7 +113,7 @@ module Square
|
|
113
113
|
# @param [CreateDisputeEvidenceFileRequest] request Optional parameter:
|
114
114
|
# Defines the parameters for a `CreateDisputeEvidenceFile` request.
|
115
115
|
# @param [File | UploadIO] image_file Optional parameter: Example:
|
116
|
-
# @return [
|
116
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
117
117
|
def create_dispute_evidence_file(dispute_id:,
|
118
118
|
request: nil,
|
119
119
|
image_file: nil)
|
@@ -142,7 +142,7 @@ module Square
|
|
142
142
|
# @param [CreateDisputeEvidenceTextRequest] body Required parameter: An
|
143
143
|
# object containing the fields to POST for the request. See the
|
144
144
|
# corresponding object definition for field details.
|
145
|
-
# @return [
|
145
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
146
146
|
def create_dispute_evidence_text(dispute_id:,
|
147
147
|
body:)
|
148
148
|
new_api_call_builder
|
@@ -169,7 +169,7 @@ module Square
|
|
169
169
|
# which you want to remove evidence.
|
170
170
|
# @param [String] evidence_id Required parameter: The ID of the evidence you
|
171
171
|
# want to remove.
|
172
|
-
# @return [
|
172
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
173
173
|
def delete_dispute_evidence(dispute_id:,
|
174
174
|
evidence_id:)
|
175
175
|
new_api_call_builder
|
@@ -196,7 +196,7 @@ module Square
|
|
196
196
|
# which you want to retrieve evidence metadata.
|
197
197
|
# @param [String] evidence_id Required parameter: The ID of the evidence to
|
198
198
|
# retrieve.
|
199
|
-
# @return [
|
199
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
200
200
|
def retrieve_dispute_evidence(dispute_id:,
|
201
201
|
evidence_id:)
|
202
202
|
new_api_call_builder
|
@@ -227,7 +227,7 @@ module Square
|
|
227
227
|
# a dispute after submission.
|
228
228
|
# @param [String] dispute_id Required parameter: The ID of the dispute for
|
229
229
|
# which you want to submit evidence.
|
230
|
-
# @return [
|
230
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
231
231
|
def submit_evidence(dispute_id:)
|
232
232
|
new_api_call_builder
|
233
233
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -9,7 +9,7 @@ module Square
|
|
9
9
|
# returned on each page.
|
10
10
|
# @param [String] cursor Optional parameter: The token required to retrieve
|
11
11
|
# the specified page of results.
|
12
|
-
# @return [
|
12
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
13
13
|
def list_employees(location_id: nil,
|
14
14
|
status: nil,
|
15
15
|
limit: nil,
|
@@ -35,7 +35,7 @@ module Square
|
|
35
35
|
# TODO: type endpoint description here
|
36
36
|
# @param [String] id Required parameter: UUID for the employee that was
|
37
37
|
# requested.
|
38
|
-
# @return [
|
38
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
39
39
|
def retrieve_employee(id:)
|
40
40
|
warn 'Endpoint retrieve_employee in EmployeesApi is deprecated'
|
41
41
|
new_api_call_builder
|
@@ -5,7 +5,7 @@ module Square
|
|
5
5
|
# @param [SearchEventsRequest] body Required parameter: An object containing
|
6
6
|
# the fields to POST for the request. See the corresponding object
|
7
7
|
# definition for field details.
|
8
|
-
# @return [
|
8
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
9
9
|
def search_events(body:)
|
10
10
|
new_api_call_builder
|
11
11
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -28,7 +28,7 @@ module Square
|
|
28
28
|
# searchable.
|
29
29
|
# Disabling events for a specific time period prevents them from being
|
30
30
|
# searchable, even if you re-enable them later.
|
31
|
-
# @return [
|
31
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
32
32
|
def disable_events
|
33
33
|
new_api_call_builder
|
34
34
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
@@ -45,7 +45,7 @@ module Square
|
|
45
45
|
|
46
46
|
# Enables events to make them searchable. Only events that occur while in
|
47
47
|
# the enabled state are searchable.
|
48
|
-
# @return [
|
48
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
49
49
|
def enable_events
|
50
50
|
new_api_call_builder
|
51
51
|
.request(new_request_builder(HttpMethodEnum::PUT,
|
@@ -65,7 +65,7 @@ module Square
|
|
65
65
|
# @param [String] api_version Optional parameter: The API version for which
|
66
66
|
# to list event types. Setting this field overrides the default version used
|
67
67
|
# by the application.
|
68
|
-
# @return [
|
68
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
69
69
|
def list_event_types(api_version: nil)
|
70
70
|
new_api_call_builder
|
71
71
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -41,7 +41,7 @@ module Square
|
|
41
41
|
# @param [String] sort_order Optional parameter: The order in which the
|
42
42
|
# endpoint returns the activities, based on `created_at`. - `ASC` - Oldest
|
43
43
|
# to newest. - `DESC` - Newest to oldest (default).
|
44
|
-
# @return [
|
44
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
45
45
|
def list_gift_card_activities(gift_card_id: nil,
|
46
46
|
type: nil,
|
47
47
|
location_id: nil,
|
@@ -78,7 +78,7 @@ module Square
|
|
78
78
|
# @param [CreateGiftCardActivityRequest] body Required parameter: An object
|
79
79
|
# containing the fields to POST for the request. See the corresponding
|
80
80
|
# object definition for field details.
|
81
|
-
# @return [
|
81
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
82
82
|
def create_gift_card_activity(body:)
|
83
83
|
new_api_call_builder
|
84
84
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -25,7 +25,7 @@ module Square
|
|
25
25
|
# @param [String] customer_id Optional parameter: If a customer ID is
|
26
26
|
# provided, the endpoint returns only the gift cards linked to the specified
|
27
27
|
# customer.
|
28
|
-
# @return [
|
28
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
29
29
|
def list_gift_cards(type: nil,
|
30
30
|
state: nil,
|
31
31
|
limit: nil,
|
@@ -61,7 +61,7 @@ module Square
|
|
61
61
|
# @param [CreateGiftCardRequest] body Required parameter: An object
|
62
62
|
# containing the fields to POST for the request. See the corresponding
|
63
63
|
# object definition for field details.
|
64
|
-
# @return [
|
64
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
65
65
|
def create_gift_card(body:)
|
66
66
|
new_api_call_builder
|
67
67
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -83,7 +83,7 @@ module Square
|
|
83
83
|
# @param [RetrieveGiftCardFromGANRequest] body Required parameter: An object
|
84
84
|
# containing the fields to POST for the request. See the corresponding
|
85
85
|
# object definition for field details.
|
86
|
-
# @return [
|
86
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
87
87
|
def retrieve_gift_card_from_gan(body:)
|
88
88
|
new_api_call_builder
|
89
89
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -106,7 +106,7 @@ module Square
|
|
106
106
|
# @param [RetrieveGiftCardFromNonceRequest] body Required parameter: An
|
107
107
|
# object containing the fields to POST for the request. See the
|
108
108
|
# corresponding object definition for field details.
|
109
|
-
# @return [
|
109
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
110
110
|
def retrieve_gift_card_from_nonce(body:)
|
111
111
|
new_api_call_builder
|
112
112
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -131,7 +131,7 @@ module Square
|
|
131
131
|
# @param [LinkCustomerToGiftCardRequest] body Required parameter: An object
|
132
132
|
# containing the fields to POST for the request. See the corresponding
|
133
133
|
# object definition for field details.
|
134
|
-
# @return [
|
134
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
135
135
|
def link_customer_to_gift_card(gift_card_id:,
|
136
136
|
body:)
|
137
137
|
new_api_call_builder
|
@@ -159,7 +159,7 @@ module Square
|
|
159
159
|
# @param [UnlinkCustomerFromGiftCardRequest] body Required parameter: An
|
160
160
|
# object containing the fields to POST for the request. See the
|
161
161
|
# corresponding object definition for field details.
|
162
|
-
# @return [
|
162
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
163
163
|
def unlink_customer_from_gift_card(gift_card_id:,
|
164
164
|
body:)
|
165
165
|
new_api_call_builder
|
@@ -183,7 +183,7 @@ module Square
|
|
183
183
|
# Retrieves a gift card using the gift card ID.
|
184
184
|
# @param [String] id Required parameter: The ID of the gift card to
|
185
185
|
# retrieve.
|
186
|
-
# @return [
|
186
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
187
187
|
def retrieve_gift_card(id:)
|
188
188
|
new_api_call_builder
|
189
189
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -7,7 +7,7 @@ module Square
|
|
7
7
|
# is updated to conform to the standard convention.
|
8
8
|
# @param [String] adjustment_id Required parameter: ID of the
|
9
9
|
# [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
|
10
|
-
# @return [
|
10
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
11
11
|
def deprecated_retrieve_inventory_adjustment(adjustment_id:)
|
12
12
|
warn 'Endpoint deprecated_retrieve_inventory_adjustment in InventoryApi '\
|
13
13
|
'is deprecated'
|
@@ -30,7 +30,7 @@ module Square
|
|
30
30
|
# with the provided `adjustment_id`.
|
31
31
|
# @param [String] adjustment_id Required parameter: ID of the
|
32
32
|
# [InventoryAdjustment](entity:InventoryAdjustment) to retrieve.
|
33
|
-
# @return [
|
33
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
34
34
|
def retrieve_inventory_adjustment(adjustment_id:)
|
35
35
|
new_api_call_builder
|
36
36
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -54,7 +54,7 @@ module Square
|
|
54
54
|
# @param [BatchChangeInventoryRequest] body Required parameter: An object
|
55
55
|
# containing the fields to POST for the request. See the corresponding
|
56
56
|
# object definition for field details.
|
57
|
-
# @return [
|
57
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
58
58
|
def deprecated_batch_change_inventory(body:)
|
59
59
|
warn 'Endpoint deprecated_batch_change_inventory in InventoryApi is depr'\
|
60
60
|
'ecated'
|
@@ -81,7 +81,7 @@ module Square
|
|
81
81
|
# @param [BatchRetrieveInventoryChangesRequest] body Required parameter: An
|
82
82
|
# object containing the fields to POST for the request. See the
|
83
83
|
# corresponding object definition for field details.
|
84
|
-
# @return [
|
84
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
85
85
|
def deprecated_batch_retrieve_inventory_changes(body:)
|
86
86
|
warn 'Endpoint deprecated_batch_retrieve_inventory_changes in InventoryA'\
|
87
87
|
'pi is deprecated'
|
@@ -108,7 +108,7 @@ module Square
|
|
108
108
|
# @param [BatchRetrieveInventoryCountsRequest] body Required parameter: An
|
109
109
|
# object containing the fields to POST for the request. See the
|
110
110
|
# corresponding object definition for field details.
|
111
|
-
# @return [
|
111
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
112
112
|
def deprecated_batch_retrieve_inventory_counts(body:)
|
113
113
|
warn 'Endpoint deprecated_batch_retrieve_inventory_counts in InventoryAp'\
|
114
114
|
'i is deprecated'
|
@@ -135,7 +135,7 @@ module Square
|
|
135
135
|
# @param [BatchChangeInventoryRequest] body Required parameter: An object
|
136
136
|
# containing the fields to POST for the request. See the corresponding
|
137
137
|
# object definition for field details.
|
138
|
-
# @return [
|
138
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
139
139
|
def batch_change_inventory(body:)
|
140
140
|
new_api_call_builder
|
141
141
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -162,7 +162,7 @@ module Square
|
|
162
162
|
# @param [BatchRetrieveInventoryChangesRequest] body Required parameter: An
|
163
163
|
# object containing the fields to POST for the request. See the
|
164
164
|
# corresponding object definition for field details.
|
165
|
-
# @return [
|
165
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
166
166
|
def batch_retrieve_inventory_changes(body:)
|
167
167
|
new_api_call_builder
|
168
168
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -193,7 +193,7 @@ module Square
|
|
193
193
|
# @param [BatchRetrieveInventoryCountsRequest] body Required parameter: An
|
194
194
|
# object containing the fields to POST for the request. See the
|
195
195
|
# corresponding object definition for field details.
|
196
|
-
# @return [
|
196
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
197
197
|
def batch_retrieve_inventory_counts(body:)
|
198
198
|
new_api_call_builder
|
199
199
|
.request(new_request_builder(HttpMethodEnum::POST,
|
@@ -217,7 +217,7 @@ module Square
|
|
217
217
|
# is updated to conform to the standard convention.
|
218
218
|
# @param [String] physical_count_id Required parameter: ID of the
|
219
219
|
# [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
|
220
|
-
# @return [
|
220
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
221
221
|
def deprecated_retrieve_inventory_physical_count(physical_count_id:)
|
222
222
|
warn 'Endpoint deprecated_retrieve_inventory_physical_count in Inventory'\
|
223
223
|
'Api is deprecated'
|
@@ -240,7 +240,7 @@ module Square
|
|
240
240
|
# object with the provided `physical_count_id`.
|
241
241
|
# @param [String] physical_count_id Required parameter: ID of the
|
242
242
|
# [InventoryPhysicalCount](entity:InventoryPhysicalCount) to retrieve.
|
243
|
-
# @return [
|
243
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
244
244
|
def retrieve_inventory_physical_count(physical_count_id:)
|
245
245
|
new_api_call_builder
|
246
246
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -261,7 +261,7 @@ module Square
|
|
261
261
|
# with the provided `transfer_id`.
|
262
262
|
# @param [String] transfer_id Required parameter: ID of the
|
263
263
|
# [InventoryTransfer](entity:InventoryTransfer) to retrieve.
|
264
|
-
# @return [
|
264
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
265
265
|
def retrieve_inventory_transfer(transfer_id:)
|
266
266
|
new_api_call_builder
|
267
267
|
.request(new_request_builder(HttpMethodEnum::GET,
|
@@ -292,7 +292,7 @@ module Square
|
|
292
292
|
# results for the original query. See the
|
293
293
|
# [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
|
294
294
|
# ion) guide for more information.
|
295
|
-
# @return [
|
295
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
296
296
|
def retrieve_inventory_count(catalog_object_id:,
|
297
297
|
location_ids: nil,
|
298
298
|
cursor: nil)
|
@@ -337,7 +337,7 @@ module Square
|
|
337
337
|
# results for the original query. See the
|
338
338
|
# [Pagination](https://developer.squareup.com/docs/working-with-apis/paginat
|
339
339
|
# ion) guide for more information.
|
340
|
-
# @return [
|
340
|
+
# @return [ApiResponse] the complete http response with raw body and status code.
|
341
341
|
def retrieve_inventory_changes(catalog_object_id:,
|
342
342
|
location_ids: nil,
|
343
343
|
cursor: nil)
|