square_connect 2.20190313.1.282 → 2.20190327.1.292

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +12 -0
  3. data/README.md +5 -4
  4. data/docs/Address.md +1 -1
  5. data/docs/BatchRetrieveInventoryChangesRequest.md +2 -2
  6. data/docs/Card.md +1 -1
  7. data/docs/CatalogDiscount.md +1 -1
  8. data/docs/CatalogImage.md +14 -0
  9. data/docs/CatalogItem.md +2 -2
  10. data/docs/CatalogItemVariation.md +2 -2
  11. data/docs/CatalogModifierList.md +1 -1
  12. data/docs/CatalogObject.md +3 -1
  13. data/docs/CatalogObjectType.md +1 -0
  14. data/docs/CatalogQuerySortedAttribute.md +1 -1
  15. data/docs/CatalogTax.md +2 -2
  16. data/docs/CreateOrderRequestTax.md +1 -1
  17. data/docs/Customer.md +1 -1
  18. data/docs/CustomerCreationSourceFilter.md +2 -2
  19. data/docs/CustomerSort.md +2 -2
  20. data/docs/CustomersApi.md +5 -5
  21. data/docs/Employee.md +1 -1
  22. data/docs/Error.md +1 -1
  23. data/docs/InventoryAdjustment.md +2 -2
  24. data/docs/InventoryChange.md +1 -1
  25. data/docs/InventoryCount.md +1 -1
  26. data/docs/InventoryPhysicalCount.md +1 -1
  27. data/docs/InventoryTransfer.md +1 -1
  28. data/docs/ItemVariationLocationOverrides.md +2 -2
  29. data/docs/ListAdditionalRecipientReceivableRefundsRequest.md +1 -1
  30. data/docs/ListAdditionalRecipientReceivablesRequest.md +1 -1
  31. data/docs/ListCustomersRequest.md +2 -2
  32. data/docs/ListEmployeesRequest.md +1 -1
  33. data/docs/ListRefundsRequest.md +1 -1
  34. data/docs/ListTransactionsRequest.md +1 -1
  35. data/docs/Location.md +5 -5
  36. data/docs/Money.md +1 -1
  37. data/docs/ObtainTokenRequest.md +6 -6
  38. data/docs/ObtainTokenResponse.md +2 -2
  39. data/docs/OrderFulfillment.md +2 -2
  40. data/docs/OrderFulfillmentPickupDetails.md +1 -1
  41. data/docs/OrderLineItemDiscount.md +2 -2
  42. data/docs/OrderLineItemTax.md +2 -2
  43. data/docs/Refund.md +1 -1
  44. data/docs/RegisterDomainResponse.md +1 -1
  45. data/docs/SearchCatalogObjectsRequest.md +1 -1
  46. data/docs/Shift.md +1 -1
  47. data/docs/ShiftFilter.md +1 -1
  48. data/docs/ShiftSort.md +2 -2
  49. data/docs/ShiftWorkday.md +1 -1
  50. data/docs/SourceApplication.md +1 -1
  51. data/docs/Tender.md +1 -1
  52. data/docs/TenderCardDetails.md +2 -2
  53. data/docs/Transaction.md +1 -1
  54. data/docs/V1Payment.md +1 -1
  55. data/docs/WorkweekConfig.md +1 -1
  56. data/lib/square_connect.rb +1 -0
  57. data/lib/square_connect/api/apple_pay_api.rb +1 -1
  58. data/lib/square_connect/api/catalog_api.rb +11 -11
  59. data/lib/square_connect/api/checkout_api.rb +1 -1
  60. data/lib/square_connect/api/customers_api.rb +14 -14
  61. data/lib/square_connect/api/employees_api.rb +2 -2
  62. data/lib/square_connect/api/inventory_api.rb +7 -7
  63. data/lib/square_connect/api/labor_api.rb +14 -14
  64. data/lib/square_connect/api/locations_api.rb +1 -1
  65. data/lib/square_connect/api/mobile_authorization_api.rb +1 -1
  66. data/lib/square_connect/api/o_auth_api.rb +3 -3
  67. data/lib/square_connect/api/orders_api.rb +2 -2
  68. data/lib/square_connect/api/reporting_api.rb +2 -2
  69. data/lib/square_connect/api/transactions_api.rb +7 -7
  70. data/lib/square_connect/api/v1_employees_api.rb +16 -16
  71. data/lib/square_connect/api/v1_items_api.rb +40 -40
  72. data/lib/square_connect/api/v1_locations_api.rb +2 -2
  73. data/lib/square_connect/api/v1_transactions_api.rb +11 -11
  74. data/lib/square_connect/api_client.rb +1 -1
  75. data/lib/square_connect/models/address.rb +1 -1
  76. data/lib/square_connect/models/batch_retrieve_inventory_changes_request.rb +2 -2
  77. data/lib/square_connect/models/card.rb +1 -1
  78. data/lib/square_connect/models/catalog_discount.rb +1 -1
  79. data/lib/square_connect/models/catalog_image.rb +206 -0
  80. data/lib/square_connect/models/catalog_item.rb +2 -2
  81. data/lib/square_connect/models/catalog_item_variation.rb +2 -2
  82. data/lib/square_connect/models/catalog_modifier_list.rb +1 -1
  83. data/lib/square_connect/models/catalog_object.rb +27 -7
  84. data/lib/square_connect/models/catalog_object_type.rb +1 -0
  85. data/lib/square_connect/models/catalog_query_sorted_attribute.rb +1 -1
  86. data/lib/square_connect/models/catalog_tax.rb +2 -2
  87. data/lib/square_connect/models/create_order_request_tax.rb +1 -1
  88. data/lib/square_connect/models/customer.rb +1 -1
  89. data/lib/square_connect/models/customer_creation_source_filter.rb +2 -2
  90. data/lib/square_connect/models/customer_sort.rb +2 -2
  91. data/lib/square_connect/models/employee.rb +1 -1
  92. data/lib/square_connect/models/error.rb +1 -1
  93. data/lib/square_connect/models/inventory_adjustment.rb +2 -2
  94. data/lib/square_connect/models/inventory_change.rb +1 -1
  95. data/lib/square_connect/models/inventory_count.rb +1 -1
  96. data/lib/square_connect/models/inventory_physical_count.rb +1 -1
  97. data/lib/square_connect/models/inventory_transfer.rb +1 -1
  98. data/lib/square_connect/models/item_variation_location_overrides.rb +2 -2
  99. data/lib/square_connect/models/list_additional_recipient_receivable_refunds_request.rb +1 -1
  100. data/lib/square_connect/models/list_additional_recipient_receivables_request.rb +1 -1
  101. data/lib/square_connect/models/list_customers_request.rb +2 -2
  102. data/lib/square_connect/models/list_employees_request.rb +1 -1
  103. data/lib/square_connect/models/list_refunds_request.rb +1 -1
  104. data/lib/square_connect/models/list_transactions_request.rb +1 -1
  105. data/lib/square_connect/models/location.rb +5 -5
  106. data/lib/square_connect/models/money.rb +1 -1
  107. data/lib/square_connect/models/obtain_token_request.rb +20 -5
  108. data/lib/square_connect/models/obtain_token_response.rb +2 -2
  109. data/lib/square_connect/models/order_fulfillment.rb +2 -2
  110. data/lib/square_connect/models/order_fulfillment_pickup_details.rb +1 -1
  111. data/lib/square_connect/models/order_line_item_discount.rb +2 -2
  112. data/lib/square_connect/models/order_line_item_tax.rb +2 -2
  113. data/lib/square_connect/models/refund.rb +1 -1
  114. data/lib/square_connect/models/register_domain_response.rb +1 -1
  115. data/lib/square_connect/models/search_catalog_objects_request.rb +1 -1
  116. data/lib/square_connect/models/shift.rb +1 -1
  117. data/lib/square_connect/models/shift_filter.rb +1 -1
  118. data/lib/square_connect/models/shift_sort.rb +2 -2
  119. data/lib/square_connect/models/shift_workday.rb +1 -1
  120. data/lib/square_connect/models/source_application.rb +1 -1
  121. data/lib/square_connect/models/tender.rb +1 -1
  122. data/lib/square_connect/models/tender_card_details.rb +2 -2
  123. data/lib/square_connect/models/transaction.rb +1 -1
  124. data/lib/square_connect/models/v1_payment.rb +1 -1
  125. data/lib/square_connect/models/workweek_config.rb +1 -1
  126. data/lib/square_connect/version.rb +1 -1
  127. data/spec/models/catalog_image_spec.rb +51 -0
  128. metadata +6 -2
@@ -18,7 +18,7 @@ module SquareConnect
18
18
  # Fetch shifts for the specified employee.
19
19
  attr_accessor :employee_id
20
20
 
21
- # Fetch a `Shift` instance by `Shift.status`.
21
+ # Fetch a `Shift` instance by `Shift.status`. See [ShiftFilterStatus](#type-shiftfilterstatus) for possible values
22
22
  attr_accessor :status
23
23
 
24
24
  # Fetch `Shift`s that start in the time range - Inclusive.
@@ -12,10 +12,10 @@ require 'date'
12
12
  module SquareConnect
13
13
  # Sets the sort order of search results.
14
14
  class ShiftSort
15
- # The field to sort on.
15
+ # The field to sort on. See [ShiftSortField](#type-shiftsortfield) for possible values
16
16
  attr_accessor :field
17
17
 
18
- # The order in which results are returned. Defaults to DESC.
18
+ # The order in which results are returned. Defaults to DESC. See [SortOrder](#type-sortorder) for possible values
19
19
  attr_accessor :order
20
20
 
21
21
  class EnumAttributeValidator
@@ -15,7 +15,7 @@ module SquareConnect
15
15
  # Dates for fetching the shifts
16
16
  attr_accessor :date_range
17
17
 
18
- # The strategy on which the dates are applied.
18
+ # The strategy on which the dates are applied. See [ShiftWorkdayMatcher](#type-shiftworkdaymatcher) for possible values
19
19
  attr_accessor :match_shifts_by
20
20
 
21
21
  # Location-specific timezones convert workdays to datetime filters. Every location included in the query must have a timezone, or this field must be provided as a fallback. Format: the IANA timezone database identifier for the relevant timezone.
@@ -12,7 +12,7 @@ require 'date'
12
12
  module SquareConnect
13
13
  # Provides information about the application used to generate an inventory change.
14
14
  class SourceApplication
15
- # Read-only [Product](#type-product) type for the application.
15
+ # Read-only [Product](#type-product) type for the application. See [Product](#type-product) for possible values
16
16
  attr_accessor :product
17
17
 
18
18
  # Read-only Square ID assigned to the application. Only used for [Product](#type-product) type `EXTERNAL_API`.
@@ -39,7 +39,7 @@ module SquareConnect
39
39
  # If the tender is associated with a customer or represents a customer's card on file, this is the ID of the associated customer.
40
40
  attr_accessor :customer_id
41
41
 
42
- # The type of tender, such as `CARD` or `CASH`.
42
+ # The type of tender, such as `CARD` or `CASH`. See [TenderType](#type-tendertype) for possible values
43
43
  attr_accessor :type
44
44
 
45
45
  # The details of the card tender. This value is present only if the value of `type` is `CARD`.
@@ -12,13 +12,13 @@ require 'date'
12
12
  module SquareConnect
13
13
  # Represents additional details of a tender with `type` `CARD` or `SQUARE_GIFT_CARD`
14
14
  class TenderCardDetails
15
- # The credit card payment's current state (such as `AUTHORIZED` or `CAPTURED`). See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values.
15
+ # The credit card payment's current state (such as `AUTHORIZED` or `CAPTURED`). See [TenderCardDetailsStatus](#type-tendercarddetailsstatus) for possible values
16
16
  attr_accessor :status
17
17
 
18
18
  # The credit card's non-confidential details.
19
19
  attr_accessor :card
20
20
 
21
- # The method used to enter the card's details for the transaction.
21
+ # The method used to enter the card's details for the transaction. See [TenderCardDetailsEntryMethod](#type-tendercarddetailsentrymethod) for possible values
22
22
  attr_accessor :entry_method
23
23
 
24
24
  class EnumAttributeValidator
@@ -30,7 +30,7 @@ module SquareConnect
30
30
  # If the transaction was created with the [Charge](#endpoint-charge) endpoint, this value is the same as the value provided for the `reference_id` parameter in the request to that endpoint. Otherwise, it is not set.
31
31
  attr_accessor :reference_id
32
32
 
33
- # The Square product that processed the transaction.
33
+ # The Square product that processed the transaction. See [TransactionProduct](#type-transactionproduct) for possible values
34
34
  attr_accessor :product
35
35
 
36
36
  # If the transaction was created in the Square Point of Sale app, this value is the ID generated for the transaction by Square Point of Sale. This ID has no relationship to the transaction's canonical `id`, which is generated by Square's backend servers. This value is generated for bookkeeping purposes, in case the transaction cannot immediately be completed (for example, if the transaction is processed in offline mode). It is not currently possible with the Connect API to perform a transaction lookup by this value.
@@ -75,7 +75,7 @@ module SquareConnect
75
75
  # All of the additive taxes associated with the payment.
76
76
  attr_accessor :additive_tax
77
77
 
78
- # All of the additive taxes associated with the payment.
78
+ # All of the tenders associated with the payment.
79
79
  attr_accessor :tender
80
80
 
81
81
  # All of the refunds applied to the payment. Note that the value of all refunds on a payment can exceed the value of all tenders if a merchant chooses to refund money to a tender after previously accepting returned goods as part of an exchange.
@@ -15,7 +15,7 @@ module SquareConnect
15
15
  # UUID for this object
16
16
  attr_accessor :id
17
17
 
18
- # The day of the week on which a business week cuts over for compensation purposes.
18
+ # The day of the week on which a business week cuts over for compensation purposes. See [Weekday](#type-weekday) for possible values
19
19
  attr_accessor :start_of_week
20
20
 
21
21
  # The local time at which a business week cuts over. Represented as a string in `HH:MM` format (`HH:MM:SS` is also accepted, but seconds are truncated).
@@ -8,5 +8,5 @@ Generated by: https://github.com/swagger-api/swagger-codegen.git
8
8
  =end
9
9
 
10
10
  module SquareConnect
11
- VERSION = "2.20190313.1"
11
+ VERSION = "2.20190327.1"
12
12
  end
@@ -0,0 +1,51 @@
1
+ =begin
2
+ #Square Connect API
3
+
4
+ OpenAPI spec version: 2.0
5
+ Contact: developers@squareup.com
6
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
7
+
8
+ =end
9
+
10
+ require 'spec_helper'
11
+ require 'json'
12
+ require 'date'
13
+
14
+ # Unit tests for SquareConnect::CatalogImage
15
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
16
+ # Please update as you see appropriate
17
+ describe 'CatalogImage' do
18
+ before do
19
+ # run before each test
20
+ @instance = SquareConnect::CatalogImage.new
21
+ end
22
+
23
+ after do
24
+ # run after each test
25
+ end
26
+
27
+ describe 'test an instance of CatalogImage' do
28
+ it 'should create an instact of CatalogImage' do
29
+ expect(@instance).to be_instance_of(SquareConnect::CatalogImage)
30
+ end
31
+ end
32
+ describe 'test attribute "name"' do
33
+ it 'should work' do
34
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
35
+ end
36
+ end
37
+
38
+ describe 'test attribute "url"' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ describe 'test attribute "caption"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ end
51
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: square_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.20190313.1.282
4
+ version: 2.20190327.1.292
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -232,6 +232,7 @@ files:
232
232
  - docs/CatalogDiscount.md
233
233
  - docs/CatalogDiscountType.md
234
234
  - docs/CatalogIdMapping.md
235
+ - docs/CatalogImage.md
235
236
  - docs/CatalogInfoRequest.md
236
237
  - docs/CatalogInfoResponse.md
237
238
  - docs/CatalogInfoResponseLimits.md
@@ -666,6 +667,7 @@ files:
666
667
  - lib/square_connect/models/catalog_discount.rb
667
668
  - lib/square_connect/models/catalog_discount_type.rb
668
669
  - lib/square_connect/models/catalog_id_mapping.rb
670
+ - lib/square_connect/models/catalog_image.rb
669
671
  - lib/square_connect/models/catalog_info_request.rb
670
672
  - lib/square_connect/models/catalog_info_response.rb
671
673
  - lib/square_connect/models/catalog_info_response_limits.rb
@@ -1084,6 +1086,7 @@ files:
1084
1086
  - spec/models/catalog_discount_spec.rb
1085
1087
  - spec/models/catalog_discount_type_spec.rb
1086
1088
  - spec/models/catalog_id_mapping_spec.rb
1089
+ - spec/models/catalog_image_spec.rb
1087
1090
  - spec/models/catalog_info_request_spec.rb
1088
1091
  - spec/models/catalog_info_response_limits_spec.rb
1089
1092
  - spec/models/catalog_info_response_spec.rb
@@ -1794,6 +1797,7 @@ test_files:
1794
1797
  - spec/models/upsert_catalog_object_response_spec.rb
1795
1798
  - spec/models/charge_request_additional_recipient_spec.rb
1796
1799
  - spec/models/retrieve_catalog_object_response_spec.rb
1800
+ - spec/models/catalog_image_spec.rb
1797
1801
  - spec/models/v1_delete_modifier_option_request_spec.rb
1798
1802
  - spec/models/catalog_modifier_spec.rb
1799
1803
  - spec/models/shift_wage_spec.rb