square_connect 2.4.0.175 → 2.5.0.180

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES.md +21 -0
  3. data/README.md +11 -1
  4. data/docs/AdditionalRecipient.md +15 -0
  5. data/docs/AdditionalRecipientReceivable.md +17 -0
  6. data/docs/AdditionalRecipientReceivableRefund.md +17 -0
  7. data/docs/CatalogApi.md +1 -1
  8. data/docs/ChargeRequest.md +1 -0
  9. data/docs/ChargeRequestAdditionalRecipient.md +14 -0
  10. data/docs/Checkout.md +1 -0
  11. data/docs/CreateCheckoutRequest.md +1 -0
  12. data/docs/CreateCustomerCardRequest.md +1 -1
  13. data/docs/ErrorCode.md +2 -0
  14. data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +15 -0
  15. data/docs/ListAdditionalRecipientReceivableRefundsResponse.md +14 -0
  16. data/docs/ListAdditionalRecipientReceivablesRequest.md +15 -0
  17. data/docs/ListAdditionalRecipientReceivablesResponse.md +14 -0
  18. data/docs/Refund.md +1 -0
  19. data/docs/ReportingApi.md +134 -0
  20. data/docs/Tender.md +1 -0
  21. data/lib/square_connect.rb +9 -0
  22. data/lib/square_connect/api/catalog_api.rb +2 -2
  23. data/lib/square_connect/api/reporting_api.rb +156 -0
  24. data/lib/square_connect/api_client.rb +1 -1
  25. data/lib/square_connect/models/additional_recipient.rb +287 -0
  26. data/lib/square_connect/models/additional_recipient_receivable.rb +315 -0
  27. data/lib/square_connect/models/additional_recipient_receivable_refund.rb +337 -0
  28. data/lib/square_connect/models/charge_request.rb +16 -4
  29. data/lib/square_connect/models/charge_request_additional_recipient.rb +277 -0
  30. data/lib/square_connect/models/checkout.rb +16 -4
  31. data/lib/square_connect/models/create_checkout_request.rb +16 -4
  32. data/lib/square_connect/models/create_customer_card_request.rb +1 -1
  33. data/lib/square_connect/models/error.rb +2 -2
  34. data/lib/square_connect/models/error_code.rb +2 -0
  35. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +249 -0
  36. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_response.rb +210 -0
  37. data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +249 -0
  38. data/lib/square_connect/models/list_additional_recipient_receivables_response.rb +210 -0
  39. data/lib/square_connect/models/refund.rb +16 -4
  40. data/lib/square_connect/models/tender.rb +16 -4
  41. data/lib/square_connect/version.rb +1 -1
  42. data/spec/api/apple_pay_api_spec.rb +44 -0
  43. data/spec/api/orders_api_spec.rb +58 -0
  44. data/spec/api/reporting_api_spec.rb +88 -0
  45. data/spec/api/transactions_api_spec.rb +4 -4
  46. data/spec/models/additional_recipient_receivable_refund_spec.rb +69 -0
  47. data/spec/models/additional_recipient_receivable_spec.rb +69 -0
  48. data/spec/models/additional_recipient_spec.rb +57 -0
  49. data/spec/models/batch_retrieve_orders_request_spec.rb +39 -0
  50. data/spec/models/batch_retrieve_orders_response_spec.rb +45 -0
  51. data/spec/models/charge_request_additional_recipient_spec.rb +51 -0
  52. data/spec/models/checkout_spec.rb +6 -1
  53. data/spec/models/create_checkout_request_spec.rb +15 -1
  54. data/spec/models/create_order_request_discount_spec.rb +57 -0
  55. data/spec/models/create_order_request_modifier_spec.rb +39 -0
  56. data/spec/models/create_order_request_spec.rb +63 -0
  57. data/spec/models/create_order_request_tax_spec.rb +61 -0
  58. data/spec/models/create_order_response_spec.rb +45 -0
  59. data/spec/models/list_additional_recipient_receivable_refunds_request_spec.rb +61 -0
  60. data/spec/models/list_additional_recipient_receivable_refunds_response_spec.rb +51 -0
  61. data/spec/models/list_additional_recipient_receivables_request_spec.rb +61 -0
  62. data/spec/models/list_additional_recipient_receivables_response_spec.rb +51 -0
  63. data/spec/models/location_status_spec.rb +33 -0
  64. data/spec/models/location_type_spec.rb +33 -0
  65. data/spec/models/order_line_item_discount_scope_spec.rb +33 -0
  66. data/spec/models/order_line_item_discount_spec.rb +83 -0
  67. data/spec/models/order_line_item_discount_type_spec.rb +33 -0
  68. data/spec/models/order_line_item_modifier_spec.rb +57 -0
  69. data/spec/models/order_line_item_tax_spec.rb +67 -0
  70. data/spec/models/order_line_item_tax_type_spec.rb +33 -0
  71. data/spec/models/refund_spec.rb +15 -1
  72. data/spec/models/register_domain_request_spec.rb +39 -0
  73. data/spec/models/register_domain_response_spec.rb +49 -0
  74. data/spec/models/register_domain_response_status_spec.rb +33 -0
  75. data/spec/models/tender_spec.rb +15 -1
  76. metadata +80 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 164bd7dfb404078f9769e7229f4279401d5e347b
4
- data.tar.gz: 7da70e0f767aedd553f09addc9ce86ec1747cf85
2
+ SHA256:
3
+ metadata.gz: 7d89d4a38fcded28d65607829e4477a14ae3c8b0824b5b5b6a2e85dccd6524ce
4
+ data.tar.gz: 9471e8a46238e093a324f54db52a51e15137fcee67ae504486670ba8afc432e3
5
5
  SHA512:
6
- metadata.gz: 974467a3e2712c96ab7d863f2cc4e29988c6bfbf7ec49709fe1e9c708057dd9ad878cd2a0b4cc4310166049d7d88971000f9773588171c4fd2149b09e060a776
7
- data.tar.gz: d28880ee602068f6d4e58658513c3bbec05b92ff346314b0acab60e3c0977ba3c498086533efe8e6b7c3e85a38a3f040a9e5cf72a7da2e0cdfaddfe50258a27b
6
+ metadata.gz: 4f594f03d780d98c7b93d6088c2867d4dbac179900c505a43d33e54427fc59c3033622fcca525000b31701242ba9526d29d7e9230ac7ffe625076abc819a1237
7
+ data.tar.gz: 18bbc3b7cb2a8677b1b6edee6da4117c264dc1460591980556fe699d87817887f0049ece7d4ff5827823f8a28483f6c39ed3539ed3bf029462d5fd08e15405ca
data/CHANGES.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 2.5 (2017-11-02)
4
+
5
+ ### New features: Transaction API and Reporting API
6
+
7
+ The Transaction API now supports the following request objects:
8
+
9
+ * `additional_recipients` — data type representing an additional recipient
10
+ (in other words, a recipient other than the merchant or Square) receiving a
11
+ portion of a tender.
12
+
13
+ The new Reporting API includes two endpoints that let you pull information about distributions you have received as an additional recipient:
14
+
15
+ * `AdditionalRecipientReceivables` — returns a list of receivables (across
16
+ all source locations) representing monies credited to the given location ID by
17
+ another Square account using the `additional_recipients` field in a transaction.
18
+
19
+ * `AdditionalRecipientReceivablesRefunds` — returns a list of refunded
20
+ transactions (across all source locations) related to monies credited to the
21
+ given location ID by another Square account using the `additional_recipients`
22
+ field in a transaction.
23
+
3
24
  ## Version 2.4 (2017-09-27)
4
25
 
5
26
  ### New features: Register Domain for Apple Pay
data/README.md CHANGED
@@ -10,7 +10,7 @@ for the specification and template files we used to generate this.
10
10
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
11
11
 
12
12
  - API version: 2.0
13
- - Package version: 2.4.0
13
+ - Package version: 2.5.0
14
14
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
15
15
 
16
16
  For more information, please visit [https://squareup.com/developers](https://squareup.com/developers)
@@ -97,6 +97,8 @@ Class | Method | HTTP request | Description
97
97
  *SquareConnect::LocationsApi* | [**list_locations**](docs/LocationsApi.md#list_locations) | **GET** /v2/locations | ListLocations
98
98
  *SquareConnect::OrdersApi* | [**batch_retrieve_orders**](docs/OrdersApi.md#batch_retrieve_orders) | **POST** /v2/locations/{location_id}/orders/batch-retrieve | BatchRetrieveOrders
99
99
  *SquareConnect::OrdersApi* | [**create_order**](docs/OrdersApi.md#create_order) | **POST** /v2/locations/{location_id}/orders | CreateOrder
100
+ *SquareConnect::ReportingApi* | [**list_additional_recipient_receivable_refunds**](docs/ReportingApi.md#list_additional_recipient_receivable_refunds) | **GET** /v2/locations/{location_id}/additional-recipient-receivable-refunds | ListAdditionalRecipientReceivableRefunds
101
+ *SquareConnect::ReportingApi* | [**list_additional_recipient_receivables**](docs/ReportingApi.md#list_additional_recipient_receivables) | **GET** /v2/locations/{location_id}/additional-recipient-receivables | ListAdditionalRecipientReceivables
100
102
  *SquareConnect::TransactionsApi* | [**capture_transaction**](docs/TransactionsApi.md#capture_transaction) | **POST** /v2/locations/{location_id}/transactions/{transaction_id}/capture | CaptureTransaction
101
103
  *SquareConnect::TransactionsApi* | [**charge**](docs/TransactionsApi.md#charge) | **POST** /v2/locations/{location_id}/transactions | Charge
102
104
  *SquareConnect::TransactionsApi* | [**create_refund**](docs/TransactionsApi.md#create_refund) | **POST** /v2/locations/{location_id}/transactions/{transaction_id}/refund | CreateRefund
@@ -177,6 +179,9 @@ Class | Method | HTTP request | Description
177
179
 
178
180
  ## Documentation for Models
179
181
 
182
+ - [SquareConnect::AdditionalRecipient](docs/AdditionalRecipient.md)
183
+ - [SquareConnect::AdditionalRecipientReceivable](docs/AdditionalRecipientReceivable.md)
184
+ - [SquareConnect::AdditionalRecipientReceivableRefund](docs/AdditionalRecipientReceivableRefund.md)
180
185
  - [SquareConnect::Address](docs/Address.md)
181
186
  - [SquareConnect::BatchDeleteCatalogObjectsRequest](docs/BatchDeleteCatalogObjectsRequest.md)
182
187
  - [SquareConnect::BatchDeleteCatalogObjectsResponse](docs/BatchDeleteCatalogObjectsResponse.md)
@@ -220,6 +225,7 @@ Class | Method | HTTP request | Description
220
225
  - [SquareConnect::CatalogTax](docs/CatalogTax.md)
221
226
  - [SquareConnect::CatalogV1Id](docs/CatalogV1Id.md)
222
227
  - [SquareConnect::ChargeRequest](docs/ChargeRequest.md)
228
+ - [SquareConnect::ChargeRequestAdditionalRecipient](docs/ChargeRequestAdditionalRecipient.md)
223
229
  - [SquareConnect::ChargeResponse](docs/ChargeResponse.md)
224
230
  - [SquareConnect::Checkout](docs/Checkout.md)
225
231
  - [SquareConnect::Country](docs/Country.md)
@@ -253,6 +259,10 @@ Class | Method | HTTP request | Description
253
259
  - [SquareConnect::ErrorCode](docs/ErrorCode.md)
254
260
  - [SquareConnect::InventoryAlertType](docs/InventoryAlertType.md)
255
261
  - [SquareConnect::ItemVariationLocationOverrides](docs/ItemVariationLocationOverrides.md)
262
+ - [SquareConnect::ListAdditionalRecipientReceivableRefundsRequest](docs/ListAdditionalRecipientReceivableRefundsRequest.md)
263
+ - [SquareConnect::ListAdditionalRecipientReceivableRefundsResponse](docs/ListAdditionalRecipientReceivableRefundsResponse.md)
264
+ - [SquareConnect::ListAdditionalRecipientReceivablesRequest](docs/ListAdditionalRecipientReceivablesRequest.md)
265
+ - [SquareConnect::ListAdditionalRecipientReceivablesResponse](docs/ListAdditionalRecipientReceivablesResponse.md)
256
266
  - [SquareConnect::ListCatalogRequest](docs/ListCatalogRequest.md)
257
267
  - [SquareConnect::ListCatalogResponse](docs/ListCatalogResponse.md)
258
268
  - [SquareConnect::ListCustomersRequest](docs/ListCustomersRequest.md)
@@ -0,0 +1,15 @@
1
+ # SquareConnect::AdditionalRecipient
2
+
3
+ ### Description
4
+
5
+ Represents an additional recipient (other than the merchant) receiving a portion of this tender.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **location_id** | **String** | The location ID for a recipient (other than the merchant) receiving a portion of this tender. |
11
+ **description** | **String** | The description of the additional recipient. |
12
+ **amount_money** | [**Money**](Money.md) | The amount of money distributed to the recipient. |
13
+ **receivable_id** | **String** | The unique ID for this [AdditionalRecipientReceivable](#type-additionalrecipientreceivable), assigned by the server. TODO(botros): add required annotations on this, SETL-7263 | [optional]
14
+
15
+
@@ -0,0 +1,17 @@
1
+ # SquareConnect::AdditionalRecipientReceivable
2
+
3
+ ### Description
4
+
5
+ Represents a monetary distribution of part of a [Transaction](#type-transaction)'s amount for Transactions which included additional recipients. The location of this receivable is that same as the one specified in the [AdditionalRecipient](#type-additionalrecipient).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | The additional recipient receivable's unique ID, issued by Square payments servers. |
11
+ **transaction_id** | **String** | The ID of the transaction that the additional recipient receivable was applied to. |
12
+ **transaction_location_id** | **String** | The ID of the location that created the receivable. This is the location ID on the associated transaction. |
13
+ **amount_money** | [**Money**](Money.md) | The amount of the receivable. This will always be non-negative. |
14
+ **created_at** | **String** | The time when the additional recipient receivable was created, in RFC 3339 format. | [optional]
15
+ **refunds** | [**Array<AdditionalRecipientReceivableRefund>**](AdditionalRecipientReceivableRefund.md) | Any refunds of the receivable that have been applied. | [optional]
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # SquareConnect::AdditionalRecipientReceivableRefund
2
+
3
+ ### Description
4
+
5
+ A refund of an [AdditionalRecipientReceivable](#type-additionalrecipientreceivable). This includes the ID of the additional recipient receivable associated to this object, as well as a reference to the [Refund](#type-refund) that created this receivable refund.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **id** | **String** | The receivable refund's unique ID, issued by Square payments servers. |
11
+ **receivable_id** | **String** | The ID of the receivable that the refund was applied to. |
12
+ **refund_id** | **String** | The ID of the refund that is associated to this receivable refund. |
13
+ **transaction_location_id** | **String** | The ID of the location that created the receivable. This is the location ID on the associated transaction. |
14
+ **amount_money** | [**Money**](Money.md) | The amount of the refund. This will always be non-negative. |
15
+ **created_at** | **String** | The time when the refund was created, in RFC 3339 format. | [optional]
16
+
17
+
@@ -387,7 +387,7 @@ Name | Type | Description | Notes
387
387
 
388
388
  SearchCatalogObjects
389
389
 
390
- Queries the targeted catalog using a variety of query types ([CatalogQuerySortedAttribute](#type-catalogquerysortedattribute), ([CatalogQueryExact](#type-catalogqueryexact), ([CatalogQueryRange](#type-catalogqueryrange), ([CatalogQueryText](#type-catalogquerytext), ([CatalogQueryItemsForTax](#type-catalogqueryitemsfortax), ([CatalogQueryItemsForModifierList](#type-catalogqueryitemsformodifierlist)).
390
+ Queries the targeted catalog using a variety of query types: [CatalogQuerySortedAttribute](#type-catalogquerysortedattribute), [CatalogQueryExact](#type-catalogqueryexact), [CatalogQueryRange](#type-catalogqueryrange), [CatalogQueryText](#type-catalogquerytext), [CatalogQueryItemsForTax](#type-catalogqueryitemsfortax), and [CatalogQueryItemsForModifierList](#type-catalogqueryitemsformodifierlist).
391
391
 
392
392
  ### Example
393
393
  ```ruby
@@ -19,5 +19,6 @@ Name | Type | Description | Notes
19
19
  **shipping_address** | [**Address**](Address.md) | The buyer's shipping address, if available. This value is optional, but this transaction is ineligible for chargeback protection if neither this parameter nor `billing_address` is provided. | [optional]
20
20
  **buyer_email_address** | **String** | The buyer's email address, if available. This value is optional, but this transaction is ineligible for chargeback protection if it is not provided. | [optional]
21
21
  **order_id** | **String** | The ID of the order to associate with this transaction. If you provide this value, the `amount_money` value of your request must __exactly match__ the `total_money` value of the order's `order_amounts` field. | [optional]
22
+ **additional_recipients** | [**Array<AdditionalRecipient>**](AdditionalRecipient.md) | The basic primitive of multi party settlement. The value is optional. The transation facilitated by you can be splited from here. If you provide this value, the `amount_money` value in your additional_recipients must not be more than 90% of the `amount_money` value in you charge's request. The `location_id` must be the valid location of the app owner merchant. This field is currently not supported in sandbox. | [optional]
22
23
 
23
24
 
@@ -0,0 +1,14 @@
1
+ # SquareConnect::ChargeRequestAdditionalRecipient
2
+
3
+ ### Description
4
+
5
+ Represents an additional recipient (other than the merchant) entitled to a portion of the tender. Support is currently limited to USD, CAD and GBP currencies
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **location_id** | **String** | The location ID for a recipient (other than the merchant) receiving a portion of the tender. |
11
+ **description** | **String** | The description of the additional recipient. |
12
+ **amount_money** | [**Money**](Money.md) | The amount of money distributed to the recipient. |
13
+
14
+
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
16
16
  **redirect_url** | **String** | The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. | [optional]
17
17
  **order** | [**Order**](Order.md) | Order to be checked out. | [optional]
18
18
  **created_at** | **String** | The time when the checkout was created, in RFC 3339 format. | [optional]
19
+ **additional_recipients** | [**Array<AdditionalRecipient>**](AdditionalRecipient.md) | Additional recipients (other than the merchant) receiving a portion of this checkout. For example, fees assessed on the purchase by a third party integration. | [optional]
19
20
 
20
21
 
@@ -14,5 +14,6 @@ Name | Type | Description | Notes
14
14
  **pre_populate_buyer_email** | **String** | If provided, the buyer's email is pre-populated on the checkout page as an editable text field. Default: none; only exists if explicitly set. | [optional]
15
15
  **pre_populate_shipping_address** | [**Address**](Address.md) | If provided, the buyer's shipping info is pre-populated on the checkout page as editable text fields. Default: none; only exists if explicitly set. | [optional]
16
16
  **redirect_url** | **String** | The URL to redirect to after checkout is completed with `checkoutId`, Square's `orderId`, `transactionId`, and `referenceId` appended as URL parameters. For example, if the provided redirect_url is `http://www.example.com/order-complete`, a successful transaction redirects the customer to: `http://www.example.com/order-complete?checkoutId=xxxxxx&orderId=xxxxxx&referenceId=xxxxxx&transactionId=xxxxxx` If you do not provide a redirect URL, Square Checkout will display an order confirmation page on your behalf; however Square strongly recommends that you provide a redirect URL so you can verify the transaction results and finalize the order through your existing/normal confirmation workflow. Default: none; only exists if explicitly set. | [optional]
17
+ **additional_recipients** | [**Array<ChargeRequestAdditionalRecipient>**](ChargeRequestAdditionalRecipient.md) | The basic primitive of multi party settlement. The value is optional. The transation facilitated by you can be splited from here. If you provide this value, the `amount_money` value in your additional_recipients must not be more than 90% of the `total_money` calcualted by Square for your order. The `location_id` must be the valid location of the app owner merchant. This field is currently not supported in sandbox. | [optional]
17
18
 
18
19
 
@@ -7,7 +7,7 @@ Defines the fields that are included in the request body of a request to the [Cr
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **card_nonce** | **String** | A card nonce representing the credit card to link to the customer. Card nonces are generated by the `SqPaymentForm` that buyers enter their card information into. See [Embedding the payment form](/articles/adding-payment-form/) for more information. |
10
+ **card_nonce** | **String** | A card nonce representing the credit card to link to the customer. Card nonces are generated by the `SqPaymentForm` that buyers enter their card information into. See [Embedding the payment form](/articles/adding-payment-form/) for more information. __Note:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card. |
11
11
  **billing_address** | [**Address**](Address.md) | Address information for the card on file. Only the `postal_code` field is required for payments in the US and Canada. | [optional]
12
12
  **cardholder_name** | **String** | The cardholder's name. | [optional]
13
13
 
@@ -55,6 +55,7 @@ Name | Type
55
55
  **INVALID_EXPIRATION_YEAR** | string
56
56
  **INVALID_EXPIRATION_DATE** | string
57
57
  **UNSUPPORTED_CARD_BRAND** | string
58
+ **UNSUPPORTED_ENTRY_METHOD** | string
58
59
  **INVALID_CARD** | string
59
60
  **DELAYED_TRANSACTION_EXPIRED** | string
60
61
  **DELAYED_TRANSACTION_CANCELED** | string
@@ -72,6 +73,7 @@ Name | Type
72
73
  **UNEXPECTED_VALUE** | string
73
74
  **SANDBOX_NOT_SUPPORTED** | string
74
75
  **INVALID_EMAIL_ADDRESS** | string
76
+ **INVALID_PHONE_NUMBER** | string
75
77
  **CHECKOUT_EXPIRED** | string
76
78
  **CARD_DECLINED** | string
77
79
  **VERIFY_CVV_FAILURE** | string
@@ -0,0 +1,15 @@
1
+ # SquareConnect::ListAdditionalRecipientReceivableRefundsRequest
2
+
3
+ ### Description
4
+
5
+ Defines the query parameters that can be included in a request to the [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **begin_time** | **String** | The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. | [optional]
11
+ **end_time** | **String** | The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. | [optional]
12
+ **sort_order** | **String** | The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` | [optional]
13
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
14
+
15
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::ListAdditionalRecipientReceivableRefundsResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint. One of `errors` or `additional_recipient_receivable_refunds` is present in a given response (never both).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **receivable_refunds** | [**Array<AdditionalRecipientReceivableRefund>**](AdditionalRecipientReceivableRefund.md) | An array of AdditionalRecipientReceivableRefunds that match your query. | [optional]
12
+ **cursor** | **String** | A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -0,0 +1,15 @@
1
+ # SquareConnect::ListAdditionalRecipientReceivablesRequest
2
+
3
+ ### Description
4
+
5
+ Defines the query parameters that can be included in a request to the [ListAdditionalRecipientReceivables](#endpoint-listadditionalrecipientreceivables) endpoint.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **begin_time** | **String** | The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. | [optional]
11
+ **end_time** | **String** | The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. | [optional]
12
+ **sort_order** | **String** | The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` | [optional]
13
+ **cursor** | **String** | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
14
+
15
+
@@ -0,0 +1,14 @@
1
+ # SquareConnect::ListAdditionalRecipientReceivablesResponse
2
+
3
+ ### Description
4
+
5
+ Defines the fields that are included in the response body of a request to the [ListAdditionalRecipientReceivables](#endpoint-listadditionalrecipientreceivables) endpoint. One of `errors` or `additional_recipient_receivables` is present in a given response (never both).
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **errors** | [**Array<Error>**](Error.md) | Any errors that occurred during the request. | [optional]
11
+ **receivables** | [**Array<AdditionalRecipientReceivable>**](AdditionalRecipientReceivable.md) | An array of AdditionalRecipientReceivables that match your query. | [optional]
12
+ **cursor** | **String** | A pagination cursor for retrieving the next set of results, if any remain. Provide this value as the `cursor` parameter in a subsequent request to this endpoint. See [Paginating results](#paginatingresults) for more information. | [optional]
13
+
14
+
@@ -16,5 +16,6 @@ Name | Type | Description | Notes
16
16
  **amount_money** | [**Money**](Money.md) | The amount of money refunded to the buyer. |
17
17
  **status** | **String** | The current status of the refund (`PENDING`, `APPROVED`, `REJECTED`, or `FAILED`). |
18
18
  **processing_fee_money** | [**Money**](Money.md) | The amount of Square processing fee money refunded to the *merchant*. | [optional]
19
+ **additional_recipients** | [**Array<AdditionalRecipient>**](AdditionalRecipient.md) | Additional recipients (other than the merchant) receiving a portion of this refund. For example, fees assessed on a refund of a purchase by a third party integration. | [optional]
19
20
 
20
21
 
@@ -0,0 +1,134 @@
1
+ # SquareConnect::ReportingApi
2
+
3
+ All URIs are relative to *https://connect.squareup.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_additional_recipient_receivable_refunds**](ReportingApi.md#list_additional_recipient_receivable_refunds) | **GET** /v2/locations/{location_id}/additional-recipient-receivable-refunds | ListAdditionalRecipientReceivableRefunds
8
+ [**list_additional_recipient_receivables**](ReportingApi.md#list_additional_recipient_receivables) | **GET** /v2/locations/{location_id}/additional-recipient-receivables | ListAdditionalRecipientReceivables
9
+
10
+
11
+ # **list_additional_recipient_receivable_refunds**
12
+ > ListAdditionalRecipientReceivableRefundsResponse list_additional_recipient_receivable_refunds(location_id, opts)
13
+
14
+ ListAdditionalRecipientReceivableRefunds
15
+
16
+ Lists Additional Recipient Receivable Refunds for a particular location. Max results per [page](#paginatingresults): 50
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'square_connect'
22
+ # setup authorization
23
+ SquareConnect.configure do |config|
24
+ # Configure OAuth2 access token for authorization: oauth2
25
+ config.access_token = 'YOUR ACCESS TOKEN'
26
+ end
27
+
28
+ api_instance = SquareConnect::ReportingApi.new
29
+
30
+ location_id = "location_id_example" # String | The ID of the location to list AdditionalRecipientReceivableRefunds for.
31
+
32
+ opts = {
33
+ begin_time: "begin_time_example", # String | The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
34
+ end_time: "end_time_example", # String | The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
35
+ sort_order: "sort_order_example", # String | The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`
36
+ cursor: "cursor_example" # String | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
37
+ }
38
+
39
+ begin
40
+ #ListAdditionalRecipientReceivableRefunds
41
+ result = api_instance.list_additional_recipient_receivable_refunds(location_id, opts)
42
+ p result
43
+ rescue SquareConnect::ApiError => e
44
+ puts "Exception when calling ReportingApi->list_additional_recipient_receivable_refunds: #{e}"
45
+ end
46
+ ```
47
+
48
+ ### Parameters
49
+
50
+ Name | Type | Description | Notes
51
+ ------------- | ------------- | ------------- | -------------
52
+ **location_id** | **String**| The ID of the location to list AdditionalRecipientReceivableRefunds for. |
53
+ **begin_time** | **String**| The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. | [optional]
54
+ **end_time** | **String**| The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. | [optional]
55
+ **sort_order** | **String**| The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` | [optional]
56
+ **cursor** | **String**| A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
57
+
58
+ ### Return type
59
+
60
+ [**ListAdditionalRecipientReceivableRefundsResponse**](ListAdditionalRecipientReceivableRefundsResponse.md)
61
+
62
+ ### Authorization
63
+
64
+ [oauth2](../README.md#oauth2)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: application/json
69
+ - **Accept**: application/json
70
+
71
+
72
+
73
+ # **list_additional_recipient_receivables**
74
+ > ListAdditionalRecipientReceivablesResponse list_additional_recipient_receivables(location_id, opts)
75
+
76
+ ListAdditionalRecipientReceivables
77
+
78
+ Lists Additional Recipient Receivables for a particular location. Max results per [page](#paginatingresults): 50
79
+
80
+ ### Example
81
+ ```ruby
82
+ # load the gem
83
+ require 'square_connect'
84
+ # setup authorization
85
+ SquareConnect.configure do |config|
86
+ # Configure OAuth2 access token for authorization: oauth2
87
+ config.access_token = 'YOUR ACCESS TOKEN'
88
+ end
89
+
90
+ api_instance = SquareConnect::ReportingApi.new
91
+
92
+ location_id = "location_id_example" # String | The ID of the location to list AdditionalRecipientReceivables for.
93
+
94
+ opts = {
95
+ begin_time: "begin_time_example", # String | The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year.
96
+ end_time: "end_time_example", # String | The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time.
97
+ sort_order: "sort_order_example", # String | The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC`
98
+ cursor: "cursor_example" # String | A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information.
99
+ }
100
+
101
+ begin
102
+ #ListAdditionalRecipientReceivables
103
+ result = api_instance.list_additional_recipient_receivables(location_id, opts)
104
+ p result
105
+ rescue SquareConnect::ApiError => e
106
+ puts "Exception when calling ReportingApi->list_additional_recipient_receivables: #{e}"
107
+ end
108
+ ```
109
+
110
+ ### Parameters
111
+
112
+ Name | Type | Description | Notes
113
+ ------------- | ------------- | ------------- | -------------
114
+ **location_id** | **String**| The ID of the location to list AdditionalRecipientReceivables for. |
115
+ **begin_time** | **String**| The beginning of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time minus one year. | [optional]
116
+ **end_time** | **String**| The end of the requested reporting period, in RFC 3339 format. See [Date ranges](#dateranges) for details on date inclusivity/exclusivity. Default value: The current time. | [optional]
117
+ **sort_order** | **String**| The order in which results are listed in the response (`ASC` for oldest first, `DESC` for newest first). Default value: `DESC` | [optional]
118
+ **cursor** | **String**| A pagination cursor returned by a previous call to this endpoint. Provide this to retrieve the next set of results for your original query. See [Paginating results](#paginatingresults) for more information. | [optional]
119
+
120
+ ### Return type
121
+
122
+ [**ListAdditionalRecipientReceivablesResponse**](ListAdditionalRecipientReceivablesResponse.md)
123
+
124
+ ### Authorization
125
+
126
+ [oauth2](../README.md#oauth2)
127
+
128
+ ### HTTP request headers
129
+
130
+ - **Content-Type**: application/json
131
+ - **Accept**: application/json
132
+
133
+
134
+
@@ -18,5 +18,6 @@ Name | Type | Description | Notes
18
18
  **type** | **String** | The type of tender, such as `CARD` or `CASH`. |
19
19
  **card_details** | [**TenderCardDetails**](TenderCardDetails.md) | The details of the card tender. This value is present only if the value of `type` is `CARD`. | [optional]
20
20
  **cash_details** | [**TenderCashDetails**](TenderCashDetails.md) | The details of the cash tender. This value is present only if the value of `type` is `CASH`. | [optional]
21
+ **additional_recipients** | [**Array<AdditionalRecipient>**](AdditionalRecipient.md) | Additional recipients (other than the merchant) receiving a portion of this tender. For example, fees assessed on the purchase by a third party integration. | [optional]
21
22
 
22
23
 
@@ -14,6 +14,9 @@ require 'square_connect/version'
14
14
  require 'square_connect/configuration'
15
15
 
16
16
  # Models
17
+ require 'square_connect/models/additional_recipient'
18
+ require 'square_connect/models/additional_recipient_receivable'
19
+ require 'square_connect/models/additional_recipient_receivable_refund'
17
20
  require 'square_connect/models/address'
18
21
  require 'square_connect/models/batch_delete_catalog_objects_request'
19
22
  require 'square_connect/models/batch_delete_catalog_objects_response'
@@ -57,6 +60,7 @@ require 'square_connect/models/catalog_query_text'
57
60
  require 'square_connect/models/catalog_tax'
58
61
  require 'square_connect/models/catalog_v1_id'
59
62
  require 'square_connect/models/charge_request'
63
+ require 'square_connect/models/charge_request_additional_recipient'
60
64
  require 'square_connect/models/charge_response'
61
65
  require 'square_connect/models/checkout'
62
66
  require 'square_connect/models/country'
@@ -90,6 +94,10 @@ require 'square_connect/models/error_category'
90
94
  require 'square_connect/models/error_code'
91
95
  require 'square_connect/models/inventory_alert_type'
92
96
  require 'square_connect/models/item_variation_location_overrides'
97
+ require 'square_connect/models/list_additional_recipient_receivable_refunds_request'
98
+ require 'square_connect/models/list_additional_recipient_receivable_refunds_response'
99
+ require 'square_connect/models/list_additional_recipient_receivables_request'
100
+ require 'square_connect/models/list_additional_recipient_receivables_response'
93
101
  require 'square_connect/models/list_catalog_request'
94
102
  require 'square_connect/models/list_catalog_response'
95
103
  require 'square_connect/models/list_customers_request'
@@ -193,6 +201,7 @@ require 'square_connect/api/checkout_api'
193
201
  require 'square_connect/api/customers_api'
194
202
  require 'square_connect/api/locations_api'
195
203
  require 'square_connect/api/orders_api'
204
+ require 'square_connect/api/reporting_api'
196
205
  require 'square_connect/api/transactions_api'
197
206
  require 'square_connect/api/v1_employees_api'
198
207
  require 'square_connect/api/v1_items_api'