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
@@ -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-03-27"
58
+ header_params['Square-Version'] = "2019-04-10"
59
59
 
60
60
  # form parameters
61
61
  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-03-27"
113
+ header_params['Square-Version'] = "2019-04-10"
114
114
 
115
115
  # form parameters
116
116
  form_params = {}
@@ -177,7 +177,7 @@ module SquareConnect
177
177
  # HTTP header 'Content-Type'
178
178
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
179
179
 
180
- header_params['Square-Version'] = "2019-03-27"
180
+ header_params['Square-Version'] = "2019-04-10"
181
181
 
182
182
  # form parameters
183
183
  form_params = {}
@@ -253,7 +253,7 @@ module SquareConnect
253
253
  # HTTP header 'Content-Type'
254
254
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
255
255
 
256
- header_params['Square-Version'] = "2019-03-27"
256
+ header_params['Square-Version'] = "2019-04-10"
257
257
 
258
258
  # form parameters
259
259
  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-03-27"
329
+ header_params['Square-Version'] = "2019-04-10"
330
330
 
331
331
  # form parameters
332
332
  form_params = {}
@@ -405,7 +405,7 @@ module SquareConnect
405
405
  # HTTP header 'Content-Type'
406
406
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
407
407
 
408
- header_params['Square-Version'] = "2019-03-27"
408
+ header_params['Square-Version'] = "2019-04-10"
409
409
 
410
410
  # form parameters
411
411
  form_params = {}
@@ -464,7 +464,7 @@ module SquareConnect
464
464
  # HTTP header 'Content-Type'
465
465
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
466
466
 
467
- header_params['Square-Version'] = "2019-03-27"
467
+ header_params['Square-Version'] = "2019-04-10"
468
468
 
469
469
  # form parameters
470
470
  form_params = {}
@@ -523,7 +523,7 @@ module SquareConnect
523
523
  # HTTP header 'Content-Type'
524
524
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
525
525
 
526
- header_params['Square-Version'] = "2019-03-27"
526
+ header_params['Square-Version'] = "2019-04-10"
527
527
 
528
528
  # form parameters
529
529
  form_params = {}
@@ -582,7 +582,7 @@ module SquareConnect
582
582
  # HTTP header 'Content-Type'
583
583
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
584
584
 
585
- header_params['Square-Version'] = "2019-03-27"
585
+ header_params['Square-Version'] = "2019-04-10"
586
586
 
587
587
  # form parameters
588
588
  form_params = {}
@@ -641,7 +641,7 @@ module SquareConnect
641
641
  # HTTP header 'Content-Type'
642
642
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
643
643
 
644
- header_params['Square-Version'] = "2019-03-27"
644
+ header_params['Square-Version'] = "2019-04-10"
645
645
 
646
646
  # form parameters
647
647
  form_params = {}
@@ -704,7 +704,7 @@ module SquareConnect
704
704
  # HTTP header 'Content-Type'
705
705
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
706
706
 
707
- header_params['Square-Version'] = "2019-03-27"
707
+ header_params['Square-Version'] = "2019-04-10"
708
708
 
709
709
  # form parameters
710
710
  form_params = {}
@@ -30,7 +30,7 @@ module SquareConnect
30
30
  @config = config
31
31
 
32
32
  # Construct user agent string. Returns slightly different string for JRuby
33
- @user_agent = "Square-Connect-Ruby/2.20190327.1"
33
+ @user_agent = "Square-Connect-Ruby/2.20190410.0"
34
34
 
35
35
  @default_headers = {
36
36
  'Content-Type' => "application/json",
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- #
13
+ # Defines the fields that are included in requests to the BatchRetrieveOrders endpoint.
14
14
  class BatchRetrieveOrdersRequest
15
15
  # The IDs of the orders to retrieve. A maximum of 100 orders can be retrieved per request.
16
16
  attr_accessor :order_ids
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the response body of a request to the [BatchRetrieveOrders](#endpoint-batchretrieveorders) endpoint.
13
+ # Defines the fields that are included in the response body of a request to the BatchRetrieveOrders endpoint.
14
14
  class BatchRetrieveOrdersResponse
15
15
  # The requested orders. This will omit any requested orders that do not exist or are not charged.
16
16
  attr_accessor :orders
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- #
13
+ # Defines the query parameters for calls to the CaptureTransaction endpoint.
14
14
  class CaptureTransactionRequest
15
15
 
16
16
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the response body of a request to the [CaptureTransaction](#endpoint-capturetransaction) endpoint.
13
+ # Defines the fields that are included in the response body of a request to the CaptureTransaction endpoint.
14
14
  class CaptureTransactionResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the parameters that can be included in the body of a request to the [Charge](#endpoint-charge) endpoint.
13
+ # Defines the parameters that can be included in the body of a request to the Charge endpoint.
14
14
  class ChargeRequest
15
15
  # A value you specify that uniquely identifies this transaction among transactions you've created. If you're unsure whether a particular transaction succeeded, you can reattempt it with the same idempotency key without worrying about double-charging the buyer. See [Idempotency](/basics/api101/idempotency) for more information.
16
16
  attr_accessor :idempotency_key
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ChargeResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the parameters that can be included in the body of a request to the [CreateCheckout](#endpoint-createcheckout) endpoint.
13
+ # Defines the parameters that can be included in the body of a request to the CreateCheckout endpoint.
14
14
  class CreateCheckoutRequest
15
15
  # A unique string that identifies this checkout among others you've created. It can be any valid string but must be unique for every order sent to Square Checkout for a given location ID. The idempotency key is used to avoid processing the same order more than once. If you're unsure whether a particular checkout was created successfully, you can reattempt it with the same idempotency key and all the same other parameters without worrying about creating duplicates. We recommend using a random number/string generator native to the language you are working in to generate strings for your idempotency keys. See [Idempotency](/basics/api101/idempotency) for more information.
16
16
  attr_accessor :idempotency_key
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the response body of a request to the [CreateCheckout](#endpoint-createcheckout) endpoint.
13
+ # Defines the fields that are included in the response body of a request to the CreateCheckout endpoint.
14
14
  class CreateCheckoutResponse
15
15
  # The newly created checkout. If the same request was made with the same idempotency_key, this will be the checkout created with the idempotency_key.
16
16
  attr_accessor :checkout
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the request body of a request to the [CreateCustomerCard](#endpoint-createcustomercard) endpoint.
13
+ # Defines the fields that are included in the request body of a request to the CreateCustomerCard endpoint.
14
14
  class CreateCustomerCardRequest
15
15
  # 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](/payments/sqpaymentform/overview) for more information. __Note:__ Card nonces generated by digital wallets (e.g., Apple Pay) cannot be used to create a customer card.
16
16
  attr_accessor :card_nonce
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class CreateCustomerCardResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the body parameters that can be provided in a request to the [CreateCustomer](#endpoint-createcustomer) endpoint.
13
+ # Defines the body parameters that can be provided in a request to the CreateCustomer endpoint.
14
14
  class CreateCustomerRequest
15
15
  # The idempotency key for the request. See the [Idempotency](/basics/api101/idempotency) guide for more information.
16
16
  attr_accessor :idempotency_key
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class CreateCustomerResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the body parameters that can be provided in a request to the [CreateMobileAuthorizationCode](#endpoint-createmobileauthorizationcode) endpoint.
13
+ # Defines the body parameters that can be provided in a request to the CreateMobileAuthorizationCode endpoint.
14
14
  class CreateMobileAuthorizationCodeRequest
15
15
  # The Square location ID the authorization code should be tied to.
16
16
  attr_accessor :location_id
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the response body of a request to the [CreateMobileAuthorizationCode](#endpoint-createmobileauthorizationcode) endpoint.
13
+ # Defines the fields that are included in the response body of a request to the CreateMobileAuthorizationCode endpoint.
14
14
  class CreateMobileAuthorizationCodeResponse
15
15
  # Generated authorization code that connects a mobile application instance to a Square account.
16
16
  attr_accessor :authorization_code
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class CreateOrderResponse
15
15
  # The newly created order.
16
16
  attr_accessor :order
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the body parameters that can be included in a request to the [CreateRefund](#endpoint-createrefund) endpoint.
13
+ # Defines the body parameters that can be included in a request to the CreateRefund endpoint.
14
14
  class CreateRefundRequest
15
15
  # A value you specify that uniquely identifies this refund among refunds you've created for the tender. If you're unsure whether a particular refund succeeded, you can reattempt it with the same idempotency key without worrying about duplicating the refund. See [Idempotency](/basics/api101/idempotency) for more information.
16
16
  attr_accessor :idempotency_key
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class CreateRefundResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Represents a set of [`CustomerQuery`](#type-customerquery) filters used to limit the set of Customers returned by [`SearchCustomers`](#endpoint-seachcustomers).
13
+ # Represents a set of [`CustomerQuery`](#type-customerquery) filters used to limit the set of Customers returned by [`SearchCustomers`](#endpoint-customers-seachcustomers).
14
14
  class CustomerFilter
15
15
  # A filter to select customers based on their creation source.
16
16
  attr_accessor :creation_source
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- #
13
+ # Defines the fields that are included in requests to the DeleteCustomerCard endpoint.
14
14
  class DeleteCustomerCardRequest
15
15
 
16
16
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the response body of a request to the [DeleteCustomerCard](#endpoint-deletecustomercard) endpoint.
13
+ # Defines the fields that are included in the response body of a request to the DeleteCustomerCard endpoint.
14
14
  class DeleteCustomerCardResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- #
13
+ # Defines the fields that are included in a request to the DeleteCustomer endpoint.
14
14
  class DeleteCustomerRequest
15
15
 
16
16
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the fields that are included in the response body of a request to the [DeleteCustomer](#endpoint-deletecustomer) endpoint.
13
+ # Defines the fields that are included in the response body of a request to the DeleteCustomer endpoint.
14
14
  class DeleteCustomerResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the query parameters that can be included in a request to the [ListAdditionalRecipientReceivableRefunds](#endpoint-listadditionalrecipientreceivablerefunds) endpoint.
13
+ # Defines the query parameters that can be included in a request to the ListAdditionalRecipientReceivableRefunds endpoint.
14
14
  class ListAdditionalRecipientReceivableRefundsRequest
15
15
  # 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.
16
16
  attr_accessor :begin_time
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListAdditionalRecipientReceivableRefundsResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the query parameters that can be included in a request to the [ListAdditionalRecipientReceivables](#endpoint-listadditionalrecipientreceivables) endpoint.
13
+ # Defines the query parameters that can be included in a request to the ListAdditionalRecipientReceivables endpoint.
14
14
  class ListAdditionalRecipientReceivablesRequest
15
15
  # 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.
16
16
  attr_accessor :begin_time
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListAdditionalRecipientReceivablesResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the query parameters that can be provided in a request to the [ListCustomers](#endpoint-listcustomers) endpoint.
13
+ # Defines the query parameters that can be provided in a request to the ListCustomers endpoint.
14
14
  class ListCustomersRequest
15
15
  # 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 [Pagination](/basics/api101/pagination) for more information.
16
16
  attr_accessor :cursor
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListCustomersResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListEmployeesResponse
15
15
  # List of employees returned from the request.
16
16
  attr_accessor :employees
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- #
13
+ # Defines the fields that are included in requests to the ListLocations endpoint.
14
14
  class ListLocationsRequest
15
15
 
16
16
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListLocationsResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the query parameters that can be included in a request to the [ListRefunds](#endpoint-listrefunds) endpoint.
13
+ # Defines the query parameters that can be included in a request to the ListRefunds endpoint.
14
14
  class ListRefundsRequest
15
15
  # 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.
16
16
  attr_accessor :begin_time
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListRefundsResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # Defines the query parameters that can be included in a request to the [ListTransactions](#endpoint-listtransactions) endpoint.
13
+ # Defines the query parameters that can be included in a request to the ListTransactions endpoint.
14
14
  class ListTransactionsRequest
15
15
  # 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.
16
16
  attr_accessor :begin_time
@@ -10,7 +10,7 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
10
10
  require 'date'
11
11
 
12
12
  module SquareConnect
13
- # 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).
13
+ # 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).
14
14
  class ListTransactionsResponse
15
15
  # Any errors that occurred during the request.
16
16
  attr_accessor :errors
@@ -12,7 +12,7 @@ require 'date'
12
12
  module SquareConnect
13
13
  # Contains all information related to a single order to process with Square, including line items that specify the products to purchase
14
14
  class Order
15
- # The order's unique ID. This value is only present for Order objects created by the Orders API through the [CreateOrder](#endpoint-createorder) endpoint.
15
+ # 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.
16
16
  attr_accessor :id
17
17
 
18
18
  # The ID of the merchant location this order is associated with.
@@ -21,6 +21,9 @@ module SquareConnect
21
21
  # A client specified identifier to associate an entity in another system with this order.
22
22
  attr_accessor :reference_id
23
23
 
24
+ # The origination details of the order.
25
+ attr_accessor :source
26
+
24
27
  # The line items included in the order.
25
28
  attr_accessor :line_items
26
29
 
@@ -49,6 +52,7 @@ module SquareConnect
49
52
  :'id' => :'id',
50
53
  :'location_id' => :'location_id',
51
54
  :'reference_id' => :'reference_id',
55
+ :'source' => :'source',
52
56
  :'line_items' => :'line_items',
53
57
  :'taxes' => :'taxes',
54
58
  :'discounts' => :'discounts',
@@ -65,6 +69,7 @@ module SquareConnect
65
69
  :'id' => :'String',
66
70
  :'location_id' => :'String',
67
71
  :'reference_id' => :'String',
72
+ :'source' => :'OrderSource',
68
73
  :'line_items' => :'Array<OrderLineItem>',
69
74
  :'taxes' => :'Array<OrderLineItemTax>',
70
75
  :'discounts' => :'Array<OrderLineItemDiscount>',
@@ -95,6 +100,10 @@ module SquareConnect
95
100
  self.reference_id = attributes[:'reference_id']
96
101
  end
97
102
 
103
+ if attributes.has_key?(:'source')
104
+ self.source = attributes[:'source']
105
+ end
106
+
98
107
  if attributes.has_key?(:'line_items')
99
108
  if (value = attributes[:'line_items']).is_a?(Array)
100
109
  self.line_items = value
@@ -194,6 +203,7 @@ module SquareConnect
194
203
  id == o.id &&
195
204
  location_id == o.location_id &&
196
205
  reference_id == o.reference_id &&
206
+ source == o.source &&
197
207
  line_items == o.line_items &&
198
208
  taxes == o.taxes &&
199
209
  discounts == o.discounts &&
@@ -212,7 +222,7 @@ module SquareConnect
212
222
  # Calculates hash code according to all attributes.
213
223
  # @return [Fixnum] Hash code
214
224
  def hash
215
- [id, location_id, reference_id, line_items, taxes, discounts, fulfillments, total_money, total_tax_money, total_discount_money].hash
225
+ [id, location_id, reference_id, source, line_items, taxes, discounts, fulfillments, total_money, total_tax_money, total_discount_money].hash
216
226
  end
217
227
 
218
228
  # Builds the object from hash