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
data/docs/Transaction.md
CHANGED
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**created_at** | **String** | The time when the transaction was created, in RFC 3339 format. | [optional]
|
13
13
|
**tenders** | [**Array<Tender>**](Tender.md) | The tenders used to pay in the transaction. | [optional]
|
14
14
|
**refunds** | [**Array<Refund>**](Refund.md) | Refunds that have been applied to any tender in the transaction. | [optional]
|
15
|
-
**reference_id** | **String** | If the transaction was created with the [Charge](#endpoint-charge) endpoint, this value is the same as the value provided for the `reference_id` parameter in the request to that endpoint. Otherwise, it is not set. | [optional]
|
15
|
+
**reference_id** | **String** | If the transaction was created with the [Charge](#endpoint-transactions-charge) endpoint, this value is the same as the value provided for the `reference_id` parameter in the request to that endpoint. Otherwise, it is not set. | [optional]
|
16
16
|
**product** | **String** | The Square product that processed the transaction. See [TransactionProduct](#type-transactionproduct) for possible values | [optional]
|
17
17
|
**client_id** | **String** | If the transaction was created in the Square Point of Sale app, this value is the ID generated for the transaction by Square Point of Sale. This ID has no relationship to the transaction's canonical `id`, which is generated by Square's backend servers. This value is generated for bookkeeping purposes, in case the transaction cannot immediately be completed (for example, if the transaction is processed in offline mode). It is not currently possible with the Connect API to perform a transaction lookup by this value. | [optional]
|
18
18
|
**shipping_address** | [**Address**](Address.md) | The shipping address provided in the request, if any. | [optional]
|
data/docs/TransactionsApi.md
CHANGED
@@ -18,7 +18,7 @@ Method | HTTP request | Description
|
|
18
18
|
|
19
19
|
CaptureTransaction
|
20
20
|
|
21
|
-
Captures a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/payments/transactions/overview#delayed-capture) for more information.
|
21
|
+
Captures a transaction that was created with the [Charge](#endpoint-transactions-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/payments/transactions/overview#delayed-capture) for more information.
|
22
22
|
|
23
23
|
### Example
|
24
24
|
```ruby
|
@@ -73,7 +73,7 @@ Name | Type | Description | Notes
|
|
73
73
|
|
74
74
|
Charge
|
75
75
|
|
76
|
-
Charges a card represented by a card nonce or a customer's card on file. Your request to this endpoint must include _either_: - A value for the `card_nonce` parameter (to charge a card nonce generated with the `SqPaymentForm`) - Values for the `customer_card_id` and `customer_id` parameters (to charge a customer's card on file) In order for an eCommerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - `buyer_email_address` - At least one of `billing_address` or `shipping_address` When this response is returned, the amount of Square's processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-retrievetransaction). See the `processing_fee_money` field of each [Tender included](#type-tender) in the transaction.
|
76
|
+
Charges a card represented by a card nonce or a customer's card on file. Your request to this endpoint must include _either_: - A value for the `card_nonce` parameter (to charge a card nonce generated with the `SqPaymentForm`) - Values for the `customer_card_id` and `customer_id` parameters (to charge a customer's card on file) In order for an eCommerce payment to potentially qualify for [Square chargeback protection](https://squareup.com/help/article/5394), you _must_ provide values for the following parameters in your request: - `buyer_email_address` - At least one of `billing_address` or `shipping_address` When this response is returned, the amount of Square's processing fee might not yet be calculated. To obtain the processing fee, wait about ten seconds and call [RetrieveTransaction](#endpoint-transactions-retrievetransaction). See the `processing_fee_money` field of each [Tender included](#type-tender) in the transaction.
|
77
77
|
|
78
78
|
### Example
|
79
79
|
```ruby
|
@@ -365,7 +365,7 @@ Name | Type | Description | Notes
|
|
365
365
|
|
366
366
|
VoidTransaction
|
367
367
|
|
368
|
-
Cancels a transaction that was created with the [Charge](#endpoint-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/payments/transactions/overview#delayed-capture) for more information.
|
368
|
+
Cancels a transaction that was created with the [Charge](#endpoint-transactions-charge) endpoint with a `delay_capture` value of `true`. See [Delayed capture transactions](/payments/transactions/overview#delayed-capture) for more information.
|
369
369
|
|
370
370
|
### Example
|
371
371
|
```ruby
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
### Description
|
4
4
|
|
5
|
-
Defines the body parameters that can be provided in a request to the
|
5
|
+
Defines the body parameters that can be provided in a request to the UpdateCustomer endpoint.
|
6
6
|
|
7
7
|
## Properties
|
8
8
|
Name | Type | Description | Notes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
### Description
|
4
4
|
|
5
|
-
Defines the fields that are included in the response body of a request to the
|
5
|
+
Defines the fields that are included in the response body of a request to the UpdateCustomer endpoint. One of `errors` or `customer` is present in a given response (never both).
|
6
6
|
|
7
7
|
## Properties
|
8
8
|
Name | Type | Description | Notes
|
data/docs/V1Category.md
CHANGED
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
|
|
9
9
|
------------ | ------------- | ------------- | -------------
|
10
10
|
**id** | **String** | The category's unique ID. | [optional]
|
11
11
|
**name** | **String** | The category's name. | [optional]
|
12
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
12
13
|
|
13
14
|
|
data/docs/V1Discount.md
CHANGED
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
|
|
14
14
|
**discount_type** | **String** | Indicates whether the discount is a FIXED value or entered at the time of sale. See [V1DiscountDiscountType](#type-v1discountdiscounttype) for possible values | [optional]
|
15
15
|
**pin_required** | **BOOLEAN** | Indicates whether a mobile staff member needs to enter their PIN to apply the discount to a payment. | [optional]
|
16
16
|
**color** | **String** | The color of the discount's display label in Square Register, if not the default color. The default color is 9da2a6. See [V1DiscountColor](#type-v1discountcolor) for possible values | [optional]
|
17
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
17
18
|
|
18
19
|
|
data/docs/V1Fee.md
CHANGED
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
|
|
16
16
|
**enabled** | **BOOLEAN** | If true, the fee is applied to all appropriate items. If false, the fee is not applied at all. | [optional]
|
17
17
|
**inclusion_type** | **String** | Whether the fee is ADDITIVE or INCLUSIVE. See [V1FeeInclusionType](#type-v1feeinclusiontype) for possible values | [optional]
|
18
18
|
**type** | **String** | In countries with multiple classifications for sales taxes, indicates which classification the fee falls under. Currently relevant only to Canadian merchants. See [V1FeeType](#type-v1feetype) for possible values | [optional]
|
19
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
19
20
|
|
20
21
|
|
data/docs/V1Item.md
CHANGED
@@ -23,5 +23,6 @@ Name | Type | Description | Notes
|
|
23
23
|
**taxable** | **BOOLEAN** | Deprecated. This field is not used. | [optional]
|
24
24
|
**category_id** | **String** | The ID of the item's category, if any. | [optional]
|
25
25
|
**available_for_pickup** | **BOOLEAN** | If true, the item can be added to pickup orders from the merchant's online store. Default value: false | [optional]
|
26
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
26
27
|
|
27
28
|
|
data/docs/V1ModifierList.md
CHANGED
@@ -11,5 +11,6 @@ Name | Type | Description | Notes
|
|
11
11
|
**name** | **String** | The modifier list's name. | [optional]
|
12
12
|
**selection_type** | **String** | Indicates whether MULTIPLE options or a SINGLE option from the modifier list can be applied to a single item. See [V1ModifierListSelectionType](#type-v1modifierlistselectiontype) for possible values | [optional]
|
13
13
|
**modifier_options** | [**Array<V1ModifierOption>**](V1ModifierOption.md) | The options included in the modifier list. | [optional]
|
14
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
14
15
|
|
15
16
|
|
data/docs/V1ModifierOption.md
CHANGED
@@ -13,5 +13,6 @@ Name | Type | Description | Notes
|
|
13
13
|
**on_by_default** | **BOOLEAN** | If true, the modifier option is the default option in a modifier list for which selection_type is SINGLE. | [optional]
|
14
14
|
**ordinal** | **Integer** | Indicates the modifier option's list position when displayed in Square Register and the merchant dashboard. If more than one modifier option in the same modifier list has the same ordinal value, those options are displayed in alphabetical order. | [optional]
|
15
15
|
**modifier_list_id** | **String** | The ID of the modifier list the option belongs to. | [optional]
|
16
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
16
17
|
|
17
18
|
|
data/docs/V1Variation.md
CHANGED
@@ -18,5 +18,6 @@ Name | Type | Description | Notes
|
|
18
18
|
**inventory_alert_type** | **String** | Indicates whether the item variation displays an alert when its inventory quantity is less than or equal to its inventory_alert_threshold. See [V1VariationInventoryAlertType](#type-v1variationinventoryalerttype) for possible values | [optional]
|
19
19
|
**inventory_alert_threshold** | **Integer** | If the inventory quantity for the variation is less than or equal to this value and inventory_alert_type is LOW_QUANTITY, the variation displays an alert in the merchant dashboard. | [optional]
|
20
20
|
**user_data** | **String** | Arbitrary metadata associated with the variation. Cannot exceed 255 characters. | [optional]
|
21
|
+
**v2_id** | **String** | The ID of the CatalogObject in the Connect v2 API. Objects that are shared across multiple locations share the same v2 ID. | [optional]
|
21
22
|
|
22
23
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
### Description
|
4
4
|
|
5
|
-
Defines the fields that are included in the response body of a request to the
|
5
|
+
Defines the fields that are included in the response body of a request to the VoidTransaction endpoint.
|
6
6
|
|
7
7
|
## Properties
|
8
8
|
Name | Type | Description | Notes
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -106,7 +106,7 @@ module SquareConnect
|
|
106
106
|
# HTTP header 'Content-Type'
|
107
107
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
108
108
|
|
109
|
-
header_params['Square-Version'] = "2019-
|
109
|
+
header_params['Square-Version'] = "2019-04-10"
|
110
110
|
|
111
111
|
# form parameters
|
112
112
|
form_params = {}
|
@@ -161,7 +161,7 @@ module SquareConnect
|
|
161
161
|
# HTTP header 'Content-Type'
|
162
162
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
163
163
|
|
164
|
-
header_params['Square-Version'] = "2019-
|
164
|
+
header_params['Square-Version'] = "2019-04-10"
|
165
165
|
|
166
166
|
# form parameters
|
167
167
|
form_params = {}
|
@@ -212,7 +212,7 @@ module SquareConnect
|
|
212
212
|
# HTTP header 'Content-Type'
|
213
213
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
214
214
|
|
215
|
-
header_params['Square-Version'] = "2019-
|
215
|
+
header_params['Square-Version'] = "2019-04-10"
|
216
216
|
|
217
217
|
# form parameters
|
218
218
|
form_params = {}
|
@@ -267,7 +267,7 @@ module SquareConnect
|
|
267
267
|
# HTTP header 'Content-Type'
|
268
268
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
269
269
|
|
270
|
-
header_params['Square-Version'] = "2019-
|
270
|
+
header_params['Square-Version'] = "2019-04-10"
|
271
271
|
|
272
272
|
# form parameters
|
273
273
|
form_params = {}
|
@@ -324,7 +324,7 @@ module SquareConnect
|
|
324
324
|
# HTTP header 'Content-Type'
|
325
325
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
326
326
|
|
327
|
-
header_params['Square-Version'] = "2019-
|
327
|
+
header_params['Square-Version'] = "2019-04-10"
|
328
328
|
|
329
329
|
# form parameters
|
330
330
|
form_params = {}
|
@@ -382,7 +382,7 @@ module SquareConnect
|
|
382
382
|
# HTTP header 'Content-Type'
|
383
383
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
384
384
|
|
385
|
-
header_params['Square-Version'] = "2019-
|
385
|
+
header_params['Square-Version'] = "2019-04-10"
|
386
386
|
|
387
387
|
# form parameters
|
388
388
|
form_params = {}
|
@@ -437,7 +437,7 @@ module SquareConnect
|
|
437
437
|
# HTTP header 'Content-Type'
|
438
438
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
439
439
|
|
440
|
-
header_params['Square-Version'] = "2019-
|
440
|
+
header_params['Square-Version'] = "2019-04-10"
|
441
441
|
|
442
442
|
# form parameters
|
443
443
|
form_params = {}
|
@@ -492,7 +492,7 @@ module SquareConnect
|
|
492
492
|
# HTTP header 'Content-Type'
|
493
493
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
494
494
|
|
495
|
-
header_params['Square-Version'] = "2019-
|
495
|
+
header_params['Square-Version'] = "2019-04-10"
|
496
496
|
|
497
497
|
# form parameters
|
498
498
|
form_params = {}
|
@@ -547,7 +547,7 @@ module SquareConnect
|
|
547
547
|
# HTTP header 'Content-Type'
|
548
548
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
549
549
|
|
550
|
-
header_params['Square-Version'] = "2019-
|
550
|
+
header_params['Square-Version'] = "2019-04-10"
|
551
551
|
|
552
552
|
# form parameters
|
553
553
|
form_params = {}
|
@@ -602,7 +602,7 @@ module SquareConnect
|
|
602
602
|
# HTTP header 'Content-Type'
|
603
603
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
604
604
|
|
605
|
-
header_params['Square-Version'] = "2019-
|
605
|
+
header_params['Square-Version'] = "2019-04-10"
|
606
606
|
|
607
607
|
# form parameters
|
608
608
|
form_params = {}
|
@@ -55,7 +55,7 @@ module SquareConnect
|
|
55
55
|
# HTTP header 'Content-Type'
|
56
56
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
57
|
|
58
|
-
header_params['Square-Version'] = "2019-
|
58
|
+
header_params['Square-Version'] = "2019-04-10"
|
59
59
|
|
60
60
|
# form parameters
|
61
61
|
form_params = {}
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -110,7 +110,7 @@ module SquareConnect
|
|
110
110
|
# HTTP header 'Content-Type'
|
111
111
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
112
112
|
|
113
|
-
header_params['Square-Version'] = "2019-
|
113
|
+
header_params['Square-Version'] = "2019-04-10"
|
114
114
|
|
115
115
|
# form parameters
|
116
116
|
form_params = {}
|
@@ -165,7 +165,7 @@ module SquareConnect
|
|
165
165
|
# HTTP header 'Content-Type'
|
166
166
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
167
167
|
|
168
|
-
header_params['Square-Version'] = "2019-
|
168
|
+
header_params['Square-Version'] = "2019-04-10"
|
169
169
|
|
170
170
|
# form parameters
|
171
171
|
form_params = {}
|
@@ -224,7 +224,7 @@ module SquareConnect
|
|
224
224
|
# HTTP header 'Content-Type'
|
225
225
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
226
226
|
|
227
|
-
header_params['Square-Version'] = "2019-
|
227
|
+
header_params['Square-Version'] = "2019-04-10"
|
228
228
|
|
229
229
|
# form parameters
|
230
230
|
form_params = {}
|
@@ -290,7 +290,7 @@ module SquareConnect
|
|
290
290
|
# HTTP header 'Content-Type'
|
291
291
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
292
292
|
|
293
|
-
header_params['Square-Version'] = "2019-
|
293
|
+
header_params['Square-Version'] = "2019-04-10"
|
294
294
|
|
295
295
|
# form parameters
|
296
296
|
form_params = {}
|
@@ -345,7 +345,7 @@ module SquareConnect
|
|
345
345
|
# HTTP header 'Content-Type'
|
346
346
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
347
347
|
|
348
|
-
header_params['Square-Version'] = "2019-
|
348
|
+
header_params['Square-Version'] = "2019-04-10"
|
349
349
|
|
350
350
|
# form parameters
|
351
351
|
form_params = {}
|
@@ -400,7 +400,7 @@ module SquareConnect
|
|
400
400
|
# HTTP header 'Content-Type'
|
401
401
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
402
402
|
|
403
|
-
header_params['Square-Version'] = "2019-
|
403
|
+
header_params['Square-Version'] = "2019-04-10"
|
404
404
|
|
405
405
|
# form parameters
|
406
406
|
form_params = {}
|
@@ -422,7 +422,7 @@ module SquareConnect
|
|
422
422
|
end
|
423
423
|
|
424
424
|
# UpdateCustomer
|
425
|
-
# Updates the details of an existing customer. When two profiles are merged into a single profile, that profile is assigned a new `customer_id`. You must use the new `customer_id` to update merged profiles. You cannot edit a customer's cards on file with this endpoint. To make changes to a card on file, you must delete the existing card on file with the [DeleteCustomerCard](#endpoint-deletecustomercard) endpoint, then create a new one with the [CreateCustomerCard](#endpoint-createcustomercard) endpoint.
|
425
|
+
# Updates the details of an existing customer. When two profiles are merged into a single profile, that profile is assigned a new `customer_id`. You must use the new `customer_id` to update merged profiles. You cannot edit a customer's cards on file with this endpoint. To make changes to a card on file, you must delete the existing card on file with the [DeleteCustomerCard](#endpoint-customers-deletecustomercard) endpoint, then create a new one with the [CreateCustomerCard](#endpoint-customers-createcustomercard) endpoint.
|
426
426
|
# @param customer_id The ID of the customer to update.
|
427
427
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
428
428
|
# @param [Hash] opts the optional parameters
|
@@ -433,7 +433,7 @@ module SquareConnect
|
|
433
433
|
end
|
434
434
|
|
435
435
|
# UpdateCustomer
|
436
|
-
# Updates the details of an existing customer. When two profiles are merged into a single profile, that profile is assigned a new `customer_id`. You must use the new `customer_id` to update merged profiles. You cannot edit a customer's cards on file with this endpoint. To make changes to a card on file, you must delete the existing card on file with the [DeleteCustomerCard](#endpoint-deletecustomercard) endpoint, then create a new one with the [CreateCustomerCard](#endpoint-createcustomercard) endpoint.
|
436
|
+
# Updates the details of an existing customer. When two profiles are merged into a single profile, that profile is assigned a new `customer_id`. You must use the new `customer_id` to update merged profiles. You cannot edit a customer's cards on file with this endpoint. To make changes to a card on file, you must delete the existing card on file with the [DeleteCustomerCard](#endpoint-customers-deletecustomercard) endpoint, then create a new one with the [CreateCustomerCard](#endpoint-customers-createcustomercard) endpoint.
|
437
437
|
# @param customer_id The ID of the customer to update.
|
438
438
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
439
439
|
# @param [Hash] opts the optional parameters
|
@@ -459,7 +459,7 @@ module SquareConnect
|
|
459
459
|
# HTTP header 'Content-Type'
|
460
460
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
461
461
|
|
462
|
-
header_params['Square-Version'] = "2019-
|
462
|
+
header_params['Square-Version'] = "2019-04-10"
|
463
463
|
|
464
464
|
# form parameters
|
465
465
|
form_params = {}
|
@@ -62,7 +62,7 @@ module SquareConnect
|
|
62
62
|
# HTTP header 'Content-Type'
|
63
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
64
64
|
|
65
|
-
header_params['Square-Version'] = "2019-
|
65
|
+
header_params['Square-Version'] = "2019-04-10"
|
66
66
|
|
67
67
|
# form parameters
|
68
68
|
form_params = {}
|
@@ -117,7 +117,7 @@ module SquareConnect
|
|
117
117
|
# HTTP header 'Content-Type'
|
118
118
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
119
119
|
|
120
|
-
header_params['Square-Version'] = "2019-
|
120
|
+
header_params['Square-Version'] = "2019-04-10"
|
121
121
|
|
122
122
|
# form parameters
|
123
123
|
form_params = {}
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -106,7 +106,7 @@ module SquareConnect
|
|
106
106
|
# HTTP header 'Content-Type'
|
107
107
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
108
108
|
|
109
|
-
header_params['Square-Version'] = "2019-
|
109
|
+
header_params['Square-Version'] = "2019-04-10"
|
110
110
|
|
111
111
|
# form parameters
|
112
112
|
form_params = {}
|
@@ -161,7 +161,7 @@ module SquareConnect
|
|
161
161
|
# HTTP header 'Content-Type'
|
162
162
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
163
163
|
|
164
|
-
header_params['Square-Version'] = "2019-
|
164
|
+
header_params['Square-Version'] = "2019-04-10"
|
165
165
|
|
166
166
|
# form parameters
|
167
167
|
form_params = {}
|
@@ -216,7 +216,7 @@ module SquareConnect
|
|
216
216
|
# HTTP header 'Content-Type'
|
217
217
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
218
218
|
|
219
|
-
header_params['Square-Version'] = "2019-
|
219
|
+
header_params['Square-Version'] = "2019-04-10"
|
220
220
|
|
221
221
|
# form parameters
|
222
222
|
form_params = {}
|
@@ -277,7 +277,7 @@ module SquareConnect
|
|
277
277
|
# HTTP header 'Content-Type'
|
278
278
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
279
279
|
|
280
|
-
header_params['Square-Version'] = "2019-
|
280
|
+
header_params['Square-Version'] = "2019-04-10"
|
281
281
|
|
282
282
|
# form parameters
|
283
283
|
form_params = {}
|
@@ -338,7 +338,7 @@ module SquareConnect
|
|
338
338
|
# HTTP header 'Content-Type'
|
339
339
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
340
340
|
|
341
|
-
header_params['Square-Version'] = "2019-
|
341
|
+
header_params['Square-Version'] = "2019-04-10"
|
342
342
|
|
343
343
|
# form parameters
|
344
344
|
form_params = {}
|
@@ -393,7 +393,7 @@ module SquareConnect
|
|
393
393
|
# HTTP header 'Content-Type'
|
394
394
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
395
395
|
|
396
|
-
header_params['Square-Version'] = "2019-
|
396
|
+
header_params['Square-Version'] = "2019-04-10"
|
397
397
|
|
398
398
|
# form parameters
|
399
399
|
form_params = {}
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -106,7 +106,7 @@ module SquareConnect
|
|
106
106
|
# HTTP header 'Content-Type'
|
107
107
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
108
108
|
|
109
|
-
header_params['Square-Version'] = "2019-
|
109
|
+
header_params['Square-Version'] = "2019-04-10"
|
110
110
|
|
111
111
|
# form parameters
|
112
112
|
form_params = {}
|
@@ -161,7 +161,7 @@ module SquareConnect
|
|
161
161
|
# HTTP header 'Content-Type'
|
162
162
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
163
163
|
|
164
|
-
header_params['Square-Version'] = "2019-
|
164
|
+
header_params['Square-Version'] = "2019-04-10"
|
165
165
|
|
166
166
|
# form parameters
|
167
167
|
form_params = {}
|
@@ -216,7 +216,7 @@ module SquareConnect
|
|
216
216
|
# HTTP header 'Content-Type'
|
217
217
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
218
218
|
|
219
|
-
header_params['Square-Version'] = "2019-
|
219
|
+
header_params['Square-Version'] = "2019-04-10"
|
220
220
|
|
221
221
|
# form parameters
|
222
222
|
form_params = {}
|
@@ -271,7 +271,7 @@ module SquareConnect
|
|
271
271
|
# HTTP header 'Content-Type'
|
272
272
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
273
273
|
|
274
|
-
header_params['Square-Version'] = "2019-
|
274
|
+
header_params['Square-Version'] = "2019-04-10"
|
275
275
|
|
276
276
|
# form parameters
|
277
277
|
form_params = {}
|
@@ -326,7 +326,7 @@ module SquareConnect
|
|
326
326
|
# HTTP header 'Content-Type'
|
327
327
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
328
328
|
|
329
|
-
header_params['Square-Version'] = "2019-
|
329
|
+
header_params['Square-Version'] = "2019-04-10"
|
330
330
|
|
331
331
|
# form parameters
|
332
332
|
form_params = {}
|
@@ -381,7 +381,7 @@ module SquareConnect
|
|
381
381
|
# HTTP header 'Content-Type'
|
382
382
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
383
383
|
|
384
|
-
header_params['Square-Version'] = "2019-
|
384
|
+
header_params['Square-Version'] = "2019-04-10"
|
385
385
|
|
386
386
|
# form parameters
|
387
387
|
form_params = {}
|
@@ -441,7 +441,7 @@ module SquareConnect
|
|
441
441
|
# HTTP header 'Content-Type'
|
442
442
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
443
443
|
|
444
|
-
header_params['Square-Version'] = "2019-
|
444
|
+
header_params['Square-Version'] = "2019-04-10"
|
445
445
|
|
446
446
|
# form parameters
|
447
447
|
form_params = {}
|
@@ -501,7 +501,7 @@ module SquareConnect
|
|
501
501
|
# HTTP header 'Content-Type'
|
502
502
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
503
503
|
|
504
|
-
header_params['Square-Version'] = "2019-
|
504
|
+
header_params['Square-Version'] = "2019-04-10"
|
505
505
|
|
506
506
|
# form parameters
|
507
507
|
form_params = {}
|
@@ -558,7 +558,7 @@ module SquareConnect
|
|
558
558
|
# HTTP header 'Content-Type'
|
559
559
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
560
560
|
|
561
|
-
header_params['Square-Version'] = "2019-
|
561
|
+
header_params['Square-Version'] = "2019-04-10"
|
562
562
|
|
563
563
|
# form parameters
|
564
564
|
form_params = {}
|
@@ -613,7 +613,7 @@ module SquareConnect
|
|
613
613
|
# HTTP header 'Content-Type'
|
614
614
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
615
615
|
|
616
|
-
header_params['Square-Version'] = "2019-
|
616
|
+
header_params['Square-Version'] = "2019-04-10"
|
617
617
|
|
618
618
|
# form parameters
|
619
619
|
form_params = {}
|
@@ -672,7 +672,7 @@ module SquareConnect
|
|
672
672
|
# HTTP header 'Content-Type'
|
673
673
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
674
674
|
|
675
|
-
header_params['Square-Version'] = "2019-
|
675
|
+
header_params['Square-Version'] = "2019-04-10"
|
676
676
|
|
677
677
|
# form parameters
|
678
678
|
form_params = {}
|
@@ -731,7 +731,7 @@ module SquareConnect
|
|
731
731
|
# HTTP header 'Content-Type'
|
732
732
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
733
733
|
|
734
|
-
header_params['Square-Version'] = "2019-
|
734
|
+
header_params['Square-Version'] = "2019-04-10"
|
735
735
|
|
736
736
|
# form parameters
|
737
737
|
form_params = {}
|
@@ -790,7 +790,7 @@ module SquareConnect
|
|
790
790
|
# HTTP header 'Content-Type'
|
791
791
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
792
792
|
|
793
|
-
header_params['Square-Version'] = "2019-
|
793
|
+
header_params['Square-Version'] = "2019-04-10"
|
794
794
|
|
795
795
|
# form parameters
|
796
796
|
form_params = {}
|
@@ -47,7 +47,7 @@ module SquareConnect
|
|
47
47
|
# HTTP header 'Content-Type'
|
48
48
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
49
49
|
|
50
|
-
header_params['Square-Version'] = "2019-
|
50
|
+
header_params['Square-Version'] = "2019-04-10"
|
51
51
|
|
52
52
|
# form parameters
|
53
53
|
form_params = {}
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -51,7 +51,7 @@ module SquareConnect
|
|
51
51
|
# HTTP header 'Content-Type'
|
52
52
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
53
53
|
|
54
|
-
header_params['Square-Version'] = "2019-
|
54
|
+
header_params['Square-Version'] = "2019-04-10"
|
55
55
|
|
56
56
|
# form parameters
|
57
57
|
form_params = {}
|
@@ -110,7 +110,7 @@ module SquareConnect
|
|
110
110
|
# HTTP header 'Content-Type'
|
111
111
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
112
112
|
|
113
|
-
header_params['Square-Version'] = "2019-
|
113
|
+
header_params['Square-Version'] = "2019-04-10"
|
114
114
|
|
115
115
|
# form parameters
|
116
116
|
form_params = {}
|
@@ -165,7 +165,7 @@ module SquareConnect
|
|
165
165
|
# HTTP header 'Content-Type'
|
166
166
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
167
167
|
|
168
|
-
header_params['Square-Version'] = "2019-
|
168
|
+
header_params['Square-Version'] = "2019-04-10"
|
169
169
|
|
170
170
|
# form parameters
|
171
171
|
form_params = {}
|
@@ -55,7 +55,7 @@ module SquareConnect
|
|
55
55
|
# HTTP header 'Content-Type'
|
56
56
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
57
57
|
|
58
|
-
header_params['Square-Version'] = "2019-
|
58
|
+
header_params['Square-Version'] = "2019-04-10"
|
59
59
|
|
60
60
|
# form parameters
|
61
61
|
form_params = {}
|
@@ -77,7 +77,7 @@ module SquareConnect
|
|
77
77
|
end
|
78
78
|
|
79
79
|
# CreateOrder
|
80
|
-
# Creates an [Order](#type-order) that can then be referenced as `order_id` in a request to the [Charge](#endpoint-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase. To associate a created order with a request to the Charge endpoint, provide the order's `id` in the `order_id` field of your request. You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details. To learn more about the Orders API, see the [Orders API Overview](/products/orders/overview).
|
80
|
+
# Creates an [Order](#type-order) that can then be referenced as `order_id` in a request to the [Charge](#endpoint-transactions-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase. To associate a created order with a request to the Charge endpoint, provide the order's `id` in the `order_id` field of your request. You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details. To learn more about the Orders API, see the [Orders API Overview](/products/orders/overview).
|
81
81
|
# @param location_id The ID of the business location to associate the order with.
|
82
82
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
83
83
|
# @param [Hash] opts the optional parameters
|
@@ -88,7 +88,7 @@ module SquareConnect
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# CreateOrder
|
91
|
-
# Creates an [Order](#type-order) that can then be referenced as `order_id` in a request to the [Charge](#endpoint-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase. To associate a created order with a request to the Charge endpoint, provide the order's `id` in the `order_id` field of your request. You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details. To learn more about the Orders API, see the [Orders API Overview](/products/orders/overview).
|
91
|
+
# Creates an [Order](#type-order) that can then be referenced as `order_id` in a request to the [Charge](#endpoint-transactions-charge) endpoint. Orders specify products for purchase, along with discounts, taxes, and other settings to apply to the purchase. To associate a created order with a request to the Charge endpoint, provide the order's `id` in the `order_id` field of your request. You cannot modify an order after you create it. If you need to modify an order, instead create a new order with modified details. To learn more about the Orders API, see the [Orders API Overview](/products/orders/overview).
|
92
92
|
# @param location_id The ID of the business location to associate the order with.
|
93
93
|
# @param body An object containing the fields to POST for the request. See the corresponding object definition for field details.
|
94
94
|
# @param [Hash] opts the optional parameters
|
@@ -114,7 +114,7 @@ module SquareConnect
|
|
114
114
|
# HTTP header 'Content-Type'
|
115
115
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
116
116
|
|
117
|
-
header_params['Square-Version'] = "2019-
|
117
|
+
header_params['Square-Version'] = "2019-04-10"
|
118
118
|
|
119
119
|
# form parameters
|
120
120
|
form_params = {}
|