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.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +19 -0
  3. data/README.md +23 -20
  4. data/docs/BatchRetrieveOrdersRequest.md +1 -1
  5. data/docs/BatchRetrieveOrdersResponse.md +1 -1
  6. data/docs/CaptureTransactionRequest.md +1 -1
  7. data/docs/CaptureTransactionResponse.md +1 -1
  8. data/docs/ChargeRequest.md +1 -1
  9. data/docs/ChargeResponse.md +1 -1
  10. data/docs/CreateCheckoutRequest.md +1 -1
  11. data/docs/CreateCheckoutResponse.md +1 -1
  12. data/docs/CreateCustomerCardRequest.md +1 -1
  13. data/docs/CreateCustomerCardResponse.md +1 -1
  14. data/docs/CreateCustomerRequest.md +1 -1
  15. data/docs/CreateCustomerResponse.md +1 -1
  16. data/docs/CreateMobileAuthorizationCodeRequest.md +1 -1
  17. data/docs/CreateMobileAuthorizationCodeResponse.md +1 -1
  18. data/docs/CreateOrderResponse.md +1 -1
  19. data/docs/CreateRefundRequest.md +1 -1
  20. data/docs/CreateRefundResponse.md +1 -1
  21. data/docs/CustomerFilter.md +1 -1
  22. data/docs/CustomersApi.md +1 -1
  23. data/docs/DeleteCustomerCardRequest.md +1 -1
  24. data/docs/DeleteCustomerCardResponse.md +1 -1
  25. data/docs/DeleteCustomerRequest.md +1 -1
  26. data/docs/DeleteCustomerResponse.md +1 -1
  27. data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +1 -1
  28. data/docs/ListAdditionalRecipientReceivableRefundsResponse.md +1 -1
  29. data/docs/ListAdditionalRecipientReceivablesRequest.md +1 -1
  30. data/docs/ListAdditionalRecipientReceivablesResponse.md +1 -1
  31. data/docs/ListCustomersRequest.md +1 -1
  32. data/docs/ListCustomersResponse.md +1 -1
  33. data/docs/ListEmployeesResponse.md +1 -1
  34. data/docs/ListLocationsRequest.md +1 -1
  35. data/docs/ListLocationsResponse.md +1 -1
  36. data/docs/ListRefundsRequest.md +1 -1
  37. data/docs/ListRefundsResponse.md +1 -1
  38. data/docs/ListTransactionsRequest.md +1 -1
  39. data/docs/ListTransactionsResponse.md +1 -1
  40. data/docs/Order.md +2 -1
  41. data/docs/OrderSource.md +12 -0
  42. data/docs/OrdersApi.md +1 -1
  43. data/docs/RegisterDomainRequest.md +1 -1
  44. data/docs/RegisterDomainResponse.md +1 -1
  45. data/docs/RetrieveCustomerRequest.md +1 -1
  46. data/docs/RetrieveCustomerResponse.md +1 -1
  47. data/docs/RetrieveEmployeeResponse.md +1 -1
  48. data/docs/RetrieveTransactionRequest.md +1 -1
  49. data/docs/RetrieveTransactionResponse.md +1 -1
  50. data/docs/SearchCustomersRequest.md +1 -1
  51. data/docs/SearchCustomersResponse.md +1 -1
  52. data/docs/Transaction.md +1 -1
  53. data/docs/TransactionsApi.md +3 -3
  54. data/docs/UpdateCustomerRequest.md +1 -1
  55. data/docs/UpdateCustomerResponse.md +1 -1
  56. data/docs/V1Category.md +1 -0
  57. data/docs/V1Discount.md +1 -0
  58. data/docs/V1Fee.md +1 -0
  59. data/docs/V1Item.md +1 -0
  60. data/docs/V1ModifierList.md +1 -0
  61. data/docs/V1ModifierOption.md +1 -0
  62. data/docs/V1Variation.md +1 -0
  63. data/docs/VoidTransactionRequest.md +1 -1
  64. data/docs/VoidTransactionResponse.md +1 -1
  65. data/lib/square_connect/api/apple_pay_api.rb +1 -1
  66. data/lib/square_connect/api/catalog_api.rb +11 -11
  67. data/lib/square_connect/api/checkout_api.rb +1 -1
  68. data/lib/square_connect/api/customers_api.rb +10 -10
  69. data/lib/square_connect/api/employees_api.rb +2 -2
  70. data/lib/square_connect/api/inventory_api.rb +7 -7
  71. data/lib/square_connect/api/labor_api.rb +14 -14
  72. data/lib/square_connect/api/locations_api.rb +1 -1
  73. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  74. data/lib/square_connect/api/o_auth_api.rb +3 -3
  75. data/lib/square_connect/api/orders_api.rb +4 -4
  76. data/lib/square_connect/api/reporting_api.rb +2 -2
  77. data/lib/square_connect/api/transactions_api.rb +13 -13
  78. data/lib/square_connect/api/v1_employees_api.rb +16 -16
  79. data/lib/square_connect/api/v1_items_api.rb +40 -40
  80. data/lib/square_connect/api/v1_locations_api.rb +2 -2
  81. data/lib/square_connect/api/v1_transactions_api.rb +11 -11
  82. data/lib/square_connect/api_client.rb +1 -1
  83. data/lib/square_connect/models/batch_retrieve_orders_request.rb +1 -1
  84. data/lib/square_connect/models/batch_retrieve_orders_response.rb +1 -1
  85. data/lib/square_connect/models/capture_transaction_request.rb +1 -1
  86. data/lib/square_connect/models/capture_transaction_response.rb +1 -1
  87. data/lib/square_connect/models/charge_request.rb +1 -1
  88. data/lib/square_connect/models/charge_response.rb +1 -1
  89. data/lib/square_connect/models/create_checkout_request.rb +1 -1
  90. data/lib/square_connect/models/create_checkout_response.rb +1 -1
  91. data/lib/square_connect/models/create_customer_card_request.rb +1 -1
  92. data/lib/square_connect/models/create_customer_card_response.rb +1 -1
  93. data/lib/square_connect/models/create_customer_request.rb +1 -1
  94. data/lib/square_connect/models/create_customer_response.rb +1 -1
  95. data/lib/square_connect/models/create_mobile_authorization_code_request.rb +1 -1
  96. data/lib/square_connect/models/create_mobile_authorization_code_response.rb +1 -1
  97. data/lib/square_connect/models/create_order_response.rb +1 -1
  98. data/lib/square_connect/models/create_refund_request.rb +1 -1
  99. data/lib/square_connect/models/create_refund_response.rb +1 -1
  100. data/lib/square_connect/models/customer_filter.rb +1 -1
  101. data/lib/square_connect/models/delete_customer_card_request.rb +1 -1
  102. data/lib/square_connect/models/delete_customer_card_response.rb +1 -1
  103. data/lib/square_connect/models/delete_customer_request.rb +1 -1
  104. data/lib/square_connect/models/delete_customer_response.rb +1 -1
  105. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +1 -1
  106. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_response.rb +1 -1
  107. data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +1 -1
  108. data/lib/square_connect/models/list_additional_recipient_receivables_response.rb +1 -1
  109. data/lib/square_connect/models/list_customers_request.rb +1 -1
  110. data/lib/square_connect/models/list_customers_response.rb +1 -1
  111. data/lib/square_connect/models/list_employees_response.rb +1 -1
  112. data/lib/square_connect/models/list_locations_request.rb +1 -1
  113. data/lib/square_connect/models/list_locations_response.rb +1 -1
  114. data/lib/square_connect/models/list_refunds_request.rb +1 -1
  115. data/lib/square_connect/models/list_refunds_response.rb +1 -1
  116. data/lib/square_connect/models/list_transactions_request.rb +1 -1
  117. data/lib/square_connect/models/list_transactions_response.rb +1 -1
  118. data/lib/square_connect/models/order.rb +12 -2
  119. data/lib/square_connect/models/order_source.rb +186 -0
  120. data/lib/square_connect/models/register_domain_request.rb +1 -1
  121. data/lib/square_connect/models/register_domain_response.rb +1 -1
  122. data/lib/square_connect/models/retrieve_customer_request.rb +1 -1
  123. data/lib/square_connect/models/retrieve_customer_response.rb +1 -1
  124. data/lib/square_connect/models/retrieve_employee_response.rb +1 -1
  125. data/lib/square_connect/models/retrieve_transaction_request.rb +1 -1
  126. data/lib/square_connect/models/retrieve_transaction_response.rb +1 -1
  127. data/lib/square_connect/models/search_customers_request.rb +1 -1
  128. data/lib/square_connect/models/search_customers_response.rb +1 -1
  129. data/lib/square_connect/models/transaction.rb +1 -1
  130. data/lib/square_connect/models/update_customer_request.rb +1 -1
  131. data/lib/square_connect/models/update_customer_response.rb +1 -1
  132. data/lib/square_connect/models/v1_category.rb +14 -4
  133. data/lib/square_connect/models/v1_discount.rb +14 -4
  134. data/lib/square_connect/models/v1_fee.rb +14 -4
  135. data/lib/square_connect/models/v1_item.rb +14 -4
  136. data/lib/square_connect/models/v1_modifier_list.rb +14 -4
  137. data/lib/square_connect/models/v1_modifier_option.rb +14 -4
  138. data/lib/square_connect/models/v1_variation.rb +14 -4
  139. data/lib/square_connect/models/void_transaction_request.rb +1 -1
  140. data/lib/square_connect/models/void_transaction_response.rb +1 -1
  141. data/lib/square_connect/version.rb +1 -1
  142. data/lib/square_connect.rb +1 -0
  143. data/spec/models/order_source_spec.rb +39 -0
  144. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 55251cb61c1c32ec5901e4ea808bb3804558448bdede3d92bffc36ec2c33c10a
4
- data.tar.gz: c6a40b10f08c6536568bec779597f127487f83790f78a29f6e84ea2138cc415d
3
+ metadata.gz: b2450063f72e616ae4939283a138f183d1edd781fbd7c810fbc212101370422e
4
+ data.tar.gz: ecdc9aa1826d901a3a6862135024df8e2c85cbdf5e8ab9ab3b2a097cdf7d769c
5
5
  SHA512:
6
- metadata.gz: eb94fd041a4c647dc8d941838efad8f5a96edb91f5549f020dda10b604349a6cb63677699331c01167e075dee824beb81f17ad2372c75684fab2eae55b03a002
7
- data.tar.gz: 5f2dd118b355caccc119feb04dff476a7d00705d42580992b18b857e81997f6c60c68f3bb1fd75824e46503915a224c2cd9b0983f2557007c534395f960caaab
6
+ metadata.gz: 7179b19c5f3fc30c7340c6cc74b9c4f9c6ede70b2219c2b8585f9b52bc0a565f9e35146f6a9b811433fddfdec9b7082bd3a194eb45b1e5667b89324639ae57aa
7
+ data.tar.gz: fd5f822624a0c63401a9831ce0daf360bcafe3496be19b8e0a393f11caac577f9fc496ca18a15366b2a9458be2b2fbef1b58feb5544df051a5a55be8d1589055
data/CHANGES.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Change Log
2
2
 
3
+ ## Version 2.20190410.0 (2019-04-10)
4
+
5
+ ## New features: Orders API beta
6
+
7
+ * The Connect v2 Orders object now includes an OrderSource field (`source`)
8
+ that encapsulates the origination details of an order.
9
+
10
+ ## Improvement: Connect v2 Catalog IDs in Connect v1 objects
11
+
12
+ * The following Connect v1 data types now include a `v2_id` field that makes it
13
+ easier to link information from Connect v1 endpoints to related Connect v2
14
+ Catalog objects:
15
+ * V1Discount
16
+ * V1Fee
17
+ * V1Item
18
+ * V1ModifierList
19
+ * V1ModifierOption
20
+ * V1Variation
21
+
3
22
  ## Version 2.20190327.1 (2019-03-29)
4
23
 
5
24
  ## Bug Fix: Catalog API
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.20190327.1
13
+ - Package version: 2.20190410.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)
@@ -373,6 +373,7 @@ Class | Method | HTTP request | Description
373
373
  - [SquareConnect::OrderLineItemTax](docs/OrderLineItemTax.md)
374
374
  - [SquareConnect::OrderLineItemTaxScope](docs/OrderLineItemTaxScope.md)
375
375
  - [SquareConnect::OrderLineItemTaxType](docs/OrderLineItemTaxType.md)
376
+ - [SquareConnect::OrderSource](docs/OrderSource.md)
376
377
  - [SquareConnect::Product](docs/Product.md)
377
378
  - [SquareConnect::Refund](docs/Refund.md)
378
379
  - [SquareConnect::RefundStatus](docs/RefundStatus.md)
@@ -616,25 +617,27 @@ Class | Method | HTTP request | Description
616
617
  - **Flow**: accessCode
617
618
  - **Authorization URL**: `https://connect.squareup.com/oauth2/authorize`
618
619
  - **Scopes**:
619
- - MERCHANT_PROFILE_READ: GET endpoints related to a merchant's business and location entities. Almost all Connect API applications need this permission in order to obtain a merchant's location IDs
620
- - PAYMENTS_READ: GET endpoints related to transactions and refunds
621
- - PAYMENTS_WRITE: POST, PUT, and DELETE endpoints related to transactions and refunds. E-commerce applications must request this permission
622
- - CUSTOMERS_READ: GET endpoints related to customer management
623
- - CUSTOMERS_WRITE: POST, PUT, and DELETE endpoints related to customer management
624
- - SETTLEMENTS_READ: GET endpoints related to settlements (deposits)
625
- - BANK_ACCOUNTS_READ: GET endpoints related to a merchant's bank accounts
626
- - ITEMS_READ: GET endpoints related to a merchant's item library
627
- - ITEMS_WRITE: POST, PUT, and DELETE endpoints related to a merchant's item library
628
- - ORDERS_READ: GET endpoints related to a merchant's orders
629
- - ORDERS_WRITE: POST, PUT, and DELETE endpoints related to a merchant's orders
630
- - EMPLOYEES_READ: GET endpoints related to employee management
631
- - EMPLOYEES_WRITE: POST, PUT, and DELETE endpoints related to employee management
632
- - TIMECARDS_READ: GET endpoints related to employee timecards
633
- - TIMECARDS_WRITE: POST, PUT, and DELETE endpoints related to employee timecards
634
- - PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS: Allow third party applications to deduct a portion of each transaction amount.
635
- - PAYMENTS_WRITE_IN_PERSON: POST, PUT, and DELETE endpoints. Grants write access to transaction and refunds information.
636
- - INVENTORY_READ: GET endpoints related to a merchant's inventory
637
- - INVENTORY_WRITE: POST, PUT, and DELETE endpoints related to a merchant's inventory
620
+ - BANK_ACCOUNTS_READ: __HTTP Method__: `GET` Grants read access to bank account information associated with the targeted Square account. For example, to call the Connect v1 ListBankAccounts endpoint.
621
+ - CUSTOMERS_READ: __HTTP Method__: `GET` Grants read access to customer information. For example, to call the ListCustomers endpoint.
622
+ - CUSTOMERS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to customer information. For example, to create and update customer profiles.
623
+ - EMPLOYEES_READ: __HTTP Method__: `GET` Grants read access to employee profile information. For example, to call the Connect v1 Employees API.
624
+ - EMPLOYEES_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee profile information. For example, to create and modify employee profiles.
625
+ - INVENTORY_READ: __HTTP Method__: `GET` Grants read access to inventory information. For example, to call the RetrieveInventoryCount endpoint.
626
+ - INVENTORY_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to inventory information. For example, to call the BatchChangeInventory endpoint.
627
+ - ITEMS_READ: __HTTP Method__: `GET` Grants read access to business and location information. For example, to obtain a location ID for subsequent activity.
628
+ - ITEMS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to product catalog information. For example, to modify or add to a product catalog.
629
+ - MERCHANT_PROFILE_READ: __HTTP Method__: `GET` Grants read access to business and location information. For example, to obtain a location ID for subsequent activity.
630
+ - ORDERS_READ: __HTTP Method__: `GET` Grants read access to order information. For example, to call the BatchRetrieveOrders endpoint.
631
+ - ORDERS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to order information. For example, to call the CreateCheckout endpoint.
632
+ - PAYMENTS_READ: __HTTP Method__: `GET` Grants read access to transaction and refund information. For example, to call the RetrieveTransaction endpoint.
633
+ - PAYMENTS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to transaction and refunds information. For example, to process payments with the Transactions or Checkout API.
634
+ - PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS: __HTTP Method__: `POST`, `PUT`, `DELETE` Allow third party applications to deduct a portion of each transaction amount. __Required__ to use multiparty transaction functionality with the Transactions API.
635
+ - PAYMENTS_WRITE_IN_PERSON: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to transaction and refunds information. For example, to process in-person payments.
636
+ - SETTLEMENTS_READ: __HTTP Method__: `GET` Grants read access to settlement (deposit) information. For example, to call the Connect v1 ListSettlements endpoint.
637
+ - TIMECARDS_READ: __HTTP Method__: `GET` Grants read access to employee timecard information. For example, to call the Connect v1 ListTimecards endpoint.
638
+ - TIMECARDS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee timecard information. For example, to create and modify timecards.
639
+ - TIMECARDS_SETTINGS_READ: __HTTP Method__: `GET` Grants read access to employee timecard settings information. For example, to call the GetBreakType endpoint.
640
+ - TIMECARDS_SETTINGS_WRITE: __HTTP Method__: `POST`, `PUT`, `DELETE` Grants write access to employee timecard settings information. For example, to call the UpdateBreakType endpoint.
638
641
 
639
642
  ### oauth2ClientSecret
640
643
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the fields that are included in requests to the BatchRetrieveOrders 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 [BatchRetrieveOrders](#endpoint-batchretrieveorders) endpoint.
5
+ Defines the fields that are included in the response body of a request to the BatchRetrieveOrders endpoint.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the query parameters for calls to the CaptureTransaction 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 [CaptureTransaction](#endpoint-capturetransaction) endpoint.
5
+ Defines the fields that are included in the response body of a request to the CaptureTransaction 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 parameters that can be included in the body of a request to the [Charge](#endpoint-charge) endpoint.
5
+ Defines the parameters that can be included in the body of a request to the Charge 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 [Charge](#endpoint-charge) endpoint. One of `errors` or `transaction` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the Charge endpoint. One of `errors` or `transaction` is present in a given response (never both).
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 parameters that can be included in the body of a request to the [CreateCheckout](#endpoint-createcheckout) endpoint.
5
+ Defines the parameters that can be included in the body of a request to the CreateCheckout 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 [CreateCheckout](#endpoint-createcheckout) endpoint.
5
+ Defines the fields that are included in the response body of a request to the CreateCheckout 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 request body of a request to the [CreateCustomerCard](#endpoint-createcustomercard) endpoint.
5
+ Defines the fields that are included in the request body of a request to the CreateCustomerCard 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 [CreateCustomerCard](#endpoint-createcustomercard) endpoint. One of `errors` or `card` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the CreateCustomerCard endpoint. One of `errors` or `card` is present in a given response (never both).
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 body parameters that can be provided in a request to the [CreateCustomer](#endpoint-createcustomer) endpoint.
5
+ Defines the body parameters that can be provided in a request to the CreateCustomer 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 [CreateCustomer](#endpoint-createcustomer) endpoint. One of `errors` or `customer` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the CreateCustomer 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
@@ -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 [CreateMobileAuthorizationCode](#endpoint-createmobileauthorizationcode) endpoint.
5
+ Defines the body parameters that can be provided in a request to the CreateMobileAuthorizationCode 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 [CreateMobileAuthorizationCode](#endpoint-createmobileauthorizationcode) endpoint.
5
+ Defines the fields that are included in the response body of a request to the CreateMobileAuthorizationCode 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 [CreateOrder](#endpoint-createorder) endpoint. One of `errors` or `order` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the CreateOrder endpoint. One of `errors` or `order` is present in a given response (never both).
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 body parameters that can be included in a request to the [CreateRefund](#endpoint-createrefund) endpoint.
5
+ Defines the body parameters that can be included in a request to the CreateRefund 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 [CreateRefund](#endpoint-createrefund) endpoint. One of `errors` or `refund` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the CreateRefund endpoint. One of `errors` or `refund` is present in a given response (never both).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Represents a set of [`CustomerQuery`](#type-customerquery) filters used to limit the set of Customers returned by [`SearchCustomers`](#endpoint-seachcustomers).
5
+ Represents a set of [`CustomerQuery`](#type-customerquery) filters used to limit the set of Customers returned by [`SearchCustomers`](#endpoint-customers-seachcustomers).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
data/docs/CustomersApi.md CHANGED
@@ -394,7 +394,7 @@ Name | Type | Description | Notes
394
394
 
395
395
  UpdateCustomer
396
396
 
397
- 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.
397
+ 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.
398
398
 
399
399
  ### Example
400
400
  ```ruby
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the fields that are included in requests to the DeleteCustomerCard 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 [DeleteCustomerCard](#endpoint-deletecustomercard) endpoint.
5
+ Defines the fields that are included in the response body of a request to the DeleteCustomerCard endpoint.
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the fields that are included in a request to the DeleteCustomer 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 [DeleteCustomer](#endpoint-deletecustomer) endpoint.
5
+ Defines the fields that are included in the response body of a request to the DeleteCustomer 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 query parameters that can be included in a request to the [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint.
5
+ Defines the query parameters that can be included in a request to the ListAdditionalRecipientReceivableRefunds 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 [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint. One of `errors` or `additional_recipient_receivable_refunds` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListAdditionalRecipientReceivableRefunds endpoint. One of `errors` or `additional_recipient_receivable_refunds` is present in a given response (never both).
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 query parameters that can be included in a request to the [ListAdditionalRecipientReceivables](#endpoint-listadditionalrecipientreceivables) endpoint.
5
+ Defines the query parameters that can be included in a request to the ListAdditionalRecipientReceivables 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 [ListAdditionalRecipientReceivables](#endpoint-listadditionalrecipientreceivables) endpoint. One of `errors` or `additional_recipient_receivables` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListAdditionalRecipientReceivables endpoint. One of `errors` or `additional_recipient_receivables` is present in a given response (never both).
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 query parameters that can be provided in a request to the [ListCustomers](#endpoint-listcustomers) endpoint.
5
+ Defines the query parameters that can be provided in a request to the ListCustomers 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 [ListCustomers](#endpoint-listcustomers) endpoint. One of `errors` or `customers` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListCustomers endpoint. One of `errors` or `customers` is present in a given response (never both).
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 [ListEmployees](#endpoint-listemployees) endpoint. One of `errors` or `employees` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListEmployees endpoint. One of `errors` or `employees` is present in a given response (never both).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the fields that are included in requests to the ListLocations 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 [ListLocations](#endpoint-listlocations) endpoint. One of `errors` or `locations` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListLocations endpoint. One of `errors` or `locations` is present in a given response (never both).
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 query parameters that can be included in a request to the [ListRefunds](#endpoint-listrefunds) endpoint.
5
+ Defines the query parameters that can be included in a request to the ListRefunds 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 [ListRefunds](#endpoint-listrefunds) endpoint. One of `errors` or `refunds` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListRefunds endpoint. One of `errors` or `refunds` is present in a given response (never both).
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 query parameters that can be included in a request to the [ListTransactions](#endpoint-listtransactions) endpoint.
5
+ Defines the query parameters that can be included in a request to the ListTransactions 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 [ListTransactions](#endpoint-listtransactions) endpoint. One of `errors` or `transactions` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the ListTransactions endpoint. One of `errors` or `transactions` is present in a given response (never both).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
data/docs/Order.md CHANGED
@@ -7,9 +7,10 @@ Contains all information related to a single order to process with Square, inclu
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
9
9
  ------------ | ------------- | ------------- | -------------
10
- **id** | **String** | The order's unique ID. This value is only present for Order objects created by the Orders API through the [CreateOrder](#endpoint-createorder) endpoint. | [optional]
10
+ **id** | **String** | The order's unique ID. This value is only present for Order objects created by the Orders API through the [CreateOrder](#endpoint-orders-createorder) endpoint. | [optional]
11
11
  **location_id** | **String** | The ID of the merchant location this order is associated with. |
12
12
  **reference_id** | **String** | A client specified identifier to associate an entity in another system with this order. | [optional]
13
+ **source** | [**OrderSource**](OrderSource.md) | The origination details of the order. | [optional]
13
14
  **line_items** | [**Array<OrderLineItem>**](OrderLineItem.md) | The line items included in the order. | [optional]
14
15
  **taxes** | [**Array<OrderLineItemTax>**](OrderLineItemTax.md) | A list of taxes applied to this order. On read or retrieve, this list includes both order-level and item-level taxes. When creating an Order, set your order-level taxes in this list. | [optional]
15
16
  **discounts** | [**Array<OrderLineItemDiscount>**](OrderLineItemDiscount.md) | A list of discounts applied to this order. On read or retrieve, this list includes both order-level and item-level discounts. When creating an Order, set your order-level discounts in this list. | [optional]
@@ -0,0 +1,12 @@
1
+ # SquareConnect::OrderSource
2
+
3
+ ### Description
4
+
5
+ Represents the origination details of an order.
6
+
7
+ ## Properties
8
+ Name | Type | Description | Notes
9
+ ------------ | ------------- | ------------- | -------------
10
+ **name** | **String** | The name used to identify the place (physical or digital) that an order originates. If unset, the name defaults to the name of the application that created the order. | [optional]
11
+
12
+
data/docs/OrdersApi.md CHANGED
@@ -68,7 +68,7 @@ Name | Type | Description | Notes
68
68
 
69
69
  CreateOrder
70
70
 
71
- 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).
71
+ 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).
72
72
 
73
73
  ### Example
74
74
  ```ruby
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
- Defines the parameters that can be included in the body of a request to the [RegisterDomain](#endpoint-registerdomain) endpoint.
5
+ Defines the parameters that can be included in the body of a request to the RegisterDomain 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 [RegisterDomain](#endpoint-registerdomain) endpoint. Either `errors` or `status` will be present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the RegisterDomain endpoint. Either `errors` or `status` will be present in a given response (never both).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the fields that are included in requests to the RetrieveCustomer 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 [RetrieveCustomer](#endpoint-retrievecustomer) endpoint. One of `errors` or `customer` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the RetrieveCustomer 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
@@ -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 [RetrieveEmployee](#endpoint-retrieveemployee) endpoint. One of `errors` or `employee` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the RetrieveEmployee endpoint. One of `errors` or `employee` is present in a given response (never both).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Description
4
4
 
5
-
5
+ Defines the request body fields for calls to the RetrieveTransaction 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 [RetrieveTransaction](#endpont-retrievetransaction) endpoint. One of `errors` or `transaction` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the RetrieveTransaction endpoint. One of `errors` or `transaction` is present in a given response (never both).
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 included in the request body for the [SearchCustomers](#endpoint-searchcustomer) endpoint.
5
+ Defines the fields included in the request body for the SearchCustomers 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 [SearchCustomers](#endpoint-searchcustomers) endpoint. One of `errors` or `customers` is present in a given response (never both).
5
+ Defines the fields that are included in the response body of a request to the SearchCustomers endpoint. One of `errors` or `customers` is present in a given response (never both).
6
6
 
7
7
  ## Properties
8
8
  Name | Type | Description | Notes