square_connect 2.0.0 → 2.0.2.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (222) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -0
  3. data/README.md +151 -9
  4. data/Rakefile +8 -0
  5. data/docs/Address.md +26 -0
  6. data/docs/CaptureTransactionRequest.md +11 -0
  7. data/docs/CaptureTransactionResponse.md +12 -0
  8. data/docs/Card.md +18 -0
  9. data/docs/CardBrand.md +20 -0
  10. data/docs/ChargeRequest.md +22 -0
  11. data/docs/ChargeResponse.md +13 -0
  12. data/docs/Checkout.md +20 -0
  13. data/docs/CheckoutApi.md +62 -0
  14. data/docs/Country.md +261 -0
  15. data/docs/CreateCheckoutRequest.md +18 -0
  16. data/docs/CreateCheckoutResponse.md +13 -0
  17. data/docs/CreateCustomerCardRequest.md +14 -0
  18. data/docs/CreateCustomerCardResponse.md +13 -0
  19. data/docs/CreateCustomerRequest.md +20 -0
  20. data/docs/CreateCustomerResponse.md +13 -0
  21. data/docs/CreateOrderRequest.md +13 -0
  22. data/docs/CreateOrderRequestLineItem.md +14 -0
  23. data/docs/CreateOrderRequestOrder.md +13 -0
  24. data/docs/CreateRefundRequest.md +15 -0
  25. data/docs/CreateRefundResponse.md +13 -0
  26. data/docs/Currency.md +191 -0
  27. data/docs/Customer.md +26 -0
  28. data/docs/CustomerApi.md +267 -0
  29. data/docs/CustomerCardApi.md +116 -0
  30. data/docs/CustomerGroupInfo.md +13 -0
  31. data/docs/CustomerPreferences.md +12 -0
  32. data/docs/DeleteCustomerCardRequest.md +11 -0
  33. data/docs/DeleteCustomerCardResponse.md +12 -0
  34. data/docs/DeleteCustomerRequest.md +11 -0
  35. data/docs/DeleteCustomerResponse.md +12 -0
  36. data/docs/Error.md +15 -0
  37. data/docs/ErrorCategory.md +17 -0
  38. data/docs/ErrorCode.md +83 -0
  39. data/docs/ListCustomersRequest.md +12 -0
  40. data/docs/ListCustomersResponse.md +14 -0
  41. data/docs/ListLocationsRequest.md +11 -0
  42. data/docs/ListLocationsResponse.md +13 -0
  43. data/docs/ListRefundsRequest.md +15 -0
  44. data/docs/ListRefundsResponse.md +14 -0
  45. data/docs/ListTransactionsRequest.md +15 -0
  46. data/docs/ListTransactionsResponse.md +14 -0
  47. data/docs/Location.md +16 -0
  48. data/docs/LocationApi.md +56 -0
  49. data/docs/LocationCapability.md +12 -0
  50. data/docs/Money.md +13 -0
  51. data/docs/Order.md +16 -0
  52. data/docs/OrderLineItem.md +16 -0
  53. data/docs/Refund.md +20 -0
  54. data/docs/RefundApi.md +126 -0
  55. data/docs/RefundStatus.md +15 -0
  56. data/docs/RetrieveCustomerRequest.md +11 -0
  57. data/docs/RetrieveCustomerResponse.md +13 -0
  58. data/docs/RetrieveTransactionRequest.md +11 -0
  59. data/docs/RetrieveTransactionResponse.md +13 -0
  60. data/docs/SortOrder.md +13 -0
  61. data/docs/Tender.md +22 -0
  62. data/docs/TenderCardDetails.md +14 -0
  63. data/docs/TenderCardDetailsEntryMethod.md +16 -0
  64. data/docs/TenderCardDetailsStatus.md +15 -0
  65. data/docs/TenderCashDetails.md +13 -0
  66. data/docs/TenderType.md +17 -0
  67. data/docs/Transaction.md +21 -0
  68. data/docs/TransactionApi.md +285 -0
  69. data/docs/TransactionProduct.md +19 -0
  70. data/docs/UpdateCustomerRequest.md +20 -0
  71. data/docs/UpdateCustomerResponse.md +13 -0
  72. data/docs/VoidTransactionRequest.md +11 -0
  73. data/docs/VoidTransactionResponse.md +12 -0
  74. data/lib/square_connect.rb +33 -16
  75. data/lib/square_connect/api/checkout_api.rb +82 -0
  76. data/lib/square_connect/api/customer_api.rb +121 -162
  77. data/lib/square_connect/api/customer_card_api.rb +31 -50
  78. data/lib/square_connect/api/location_api.rb +12 -20
  79. data/lib/square_connect/api/refund_api.rb +70 -90
  80. data/lib/square_connect/api/transaction_api.rb +119 -165
  81. data/lib/square_connect/api_client.rb +64 -17
  82. data/lib/square_connect/api_error.rb +7 -3
  83. data/lib/square_connect/configuration.rb +31 -1
  84. data/lib/square_connect/models/address.rb +149 -78
  85. data/lib/square_connect/models/capture_transaction_request.rb +176 -0
  86. data/lib/square_connect/models/capture_transaction_response.rb +54 -26
  87. data/lib/square_connect/models/card.rb +98 -52
  88. data/lib/square_connect/models/card_brand.rb +12 -133
  89. data/lib/square_connect/models/charge_request.rb +106 -67
  90. data/lib/square_connect/models/charge_response.rb +57 -30
  91. data/lib/square_connect/models/checkout.rb +266 -0
  92. data/lib/square_connect/models/country.rb +253 -133
  93. data/lib/square_connect/models/create_checkout_request.rb +316 -0
  94. data/lib/square_connect/models/create_checkout_response.rb +198 -0
  95. data/lib/square_connect/models/create_customer_card_request.rb +66 -35
  96. data/lib/square_connect/models/create_customer_card_response.rb +58 -31
  97. data/lib/square_connect/models/create_customer_request.rb +79 -59
  98. data/lib/square_connect/models/create_customer_response.rb +58 -31
  99. data/lib/square_connect/models/create_order_request.rb +234 -0
  100. data/lib/square_connect/models/create_order_request_line_item.rb +268 -0
  101. data/lib/square_connect/models/create_order_request_order.rb +219 -0
  102. data/lib/square_connect/models/create_refund_request.rb +79 -39
  103. data/lib/square_connect/models/create_refund_response.rb +57 -30
  104. data/lib/square_connect/models/currency.rb +183 -133
  105. data/lib/square_connect/models/customer.rb +130 -77
  106. data/lib/square_connect/models/customer_group_info.rb +206 -0
  107. data/lib/square_connect/models/customer_preferences.rb +186 -0
  108. data/lib/square_connect/models/delete_customer_card_request.rb +176 -0
  109. data/lib/square_connect/models/delete_customer_card_response.rb +55 -27
  110. data/lib/square_connect/models/delete_customer_request.rb +176 -0
  111. data/lib/square_connect/models/delete_customer_response.rb +55 -27
  112. data/lib/square_connect/models/error.rb +107 -45
  113. data/lib/square_connect/models/error_category.rb +9 -133
  114. data/lib/square_connect/models/error_code.rb +75 -133
  115. data/lib/square_connect/models/list_customers_request.rb +55 -27
  116. data/lib/square_connect/models/list_customers_response.rb +61 -35
  117. data/lib/square_connect/models/list_locations_request.rb +176 -0
  118. data/lib/square_connect/models/list_locations_response.rb +57 -30
  119. data/lib/square_connect/models/list_refunds_request.rb +91 -42
  120. data/lib/square_connect/models/list_refunds_response.rb +59 -33
  121. data/lib/square_connect/models/list_transactions_request.rb +91 -42
  122. data/lib/square_connect/models/list_transactions_response.rb +59 -33
  123. data/lib/square_connect/models/location.rb +86 -41
  124. data/lib/square_connect/models/location_capability.rb +4 -133
  125. data/lib/square_connect/models/money.rb +85 -34
  126. data/lib/square_connect/models/order.rb +228 -0
  127. data/lib/square_connect/models/order_line_item.rb +226 -0
  128. data/lib/square_connect/models/refund.rb +138 -59
  129. data/lib/square_connect/models/refund_status.rb +7 -133
  130. data/lib/square_connect/models/retrieve_customer_request.rb +176 -0
  131. data/lib/square_connect/models/retrieve_customer_response.rb +58 -31
  132. data/lib/square_connect/models/retrieve_transaction_request.rb +176 -0
  133. data/lib/square_connect/models/retrieve_transaction_response.rb +57 -30
  134. data/lib/square_connect/models/sort_order.rb +5 -133
  135. data/lib/square_connect/models/tender.rb +112 -65
  136. data/lib/square_connect/models/tender_card_details.rb +93 -40
  137. data/lib/square_connect/models/tender_card_details_entry_method.rb +8 -133
  138. data/lib/square_connect/models/tender_card_details_status.rb +7 -133
  139. data/lib/square_connect/models/tender_cash_details.rb +58 -31
  140. data/lib/square_connect/models/tender_type.rb +9 -133
  141. data/lib/square_connect/models/transaction.rb +132 -56
  142. data/lib/square_connect/models/transaction_product.rb +11 -133
  143. data/lib/square_connect/models/update_customer_request.rb +79 -59
  144. data/lib/square_connect/models/update_customer_response.rb +58 -31
  145. data/lib/square_connect/models/void_transaction_request.rb +176 -0
  146. data/lib/square_connect/models/void_transaction_response.rb +54 -26
  147. data/lib/square_connect/version.rb +2 -3
  148. data/spec/api/checkout_api_spec.rb +53 -0
  149. data/spec/api/customer_api_spec.rb +121 -0
  150. data/spec/api/customer_card_api_spec.rb +71 -0
  151. data/spec/api/location_api_spec.rb +58 -0
  152. data/spec/api/refund_api_spec.rb +75 -0
  153. data/spec/api/transaction_api_spec.rb +128 -0
  154. data/spec/api_client_spec.rb +226 -0
  155. data/spec/configuration_spec.rb +42 -0
  156. data/spec/models/address_spec.rb +186 -0
  157. data/spec/models/capture_transaction_request_spec.rb +36 -0
  158. data/spec/models/capture_transaction_response_spec.rb +46 -0
  159. data/spec/models/card_brand_spec.rb +36 -0
  160. data/spec/models/card_spec.rb +106 -0
  161. data/spec/models/charge_request_spec.rb +146 -0
  162. data/spec/models/charge_response_spec.rb +56 -0
  163. data/spec/models/checkout_spec.rb +126 -0
  164. data/spec/models/country_spec.rb +36 -0
  165. data/spec/models/create_checkout_request_spec.rb +106 -0
  166. data/spec/models/create_checkout_response_spec.rb +56 -0
  167. data/spec/models/create_customer_card_request_spec.rb +66 -0
  168. data/spec/models/create_customer_card_response_spec.rb +56 -0
  169. data/spec/models/create_customer_request_spec.rb +126 -0
  170. data/spec/models/create_customer_response_spec.rb +56 -0
  171. data/spec/models/create_order_request_line_item_spec.rb +66 -0
  172. data/spec/models/create_order_request_order_spec.rb +56 -0
  173. data/spec/models/create_order_request_spec.rb +56 -0
  174. data/spec/models/create_refund_request_spec.rb +76 -0
  175. data/spec/models/create_refund_response_spec.rb +56 -0
  176. data/spec/models/currency_spec.rb +36 -0
  177. data/spec/models/customer_group_info_spec.rb +56 -0
  178. data/spec/models/customer_preferences_spec.rb +46 -0
  179. data/spec/models/customer_spec.rb +186 -0
  180. data/spec/models/delete_customer_card_request_spec.rb +36 -0
  181. data/spec/models/delete_customer_card_response_spec.rb +46 -0
  182. data/spec/models/delete_customer_request_spec.rb +36 -0
  183. data/spec/models/delete_customer_response_spec.rb +46 -0
  184. data/spec/models/error_category_spec.rb +36 -0
  185. data/spec/models/error_code_spec.rb +36 -0
  186. data/spec/models/error_spec.rb +76 -0
  187. data/spec/models/list_customers_request_spec.rb +46 -0
  188. data/spec/models/list_customers_response_spec.rb +66 -0
  189. data/spec/models/list_locations_request_spec.rb +36 -0
  190. data/spec/models/list_locations_response_spec.rb +56 -0
  191. data/spec/models/list_refunds_request_spec.rb +76 -0
  192. data/spec/models/list_refunds_response_spec.rb +66 -0
  193. data/spec/models/list_transactions_request_spec.rb +76 -0
  194. data/spec/models/list_transactions_response_spec.rb +66 -0
  195. data/spec/models/location_capability_spec.rb +36 -0
  196. data/spec/models/location_spec.rb +86 -0
  197. data/spec/models/money_spec.rb +56 -0
  198. data/spec/models/order_line_item_spec.rb +86 -0
  199. data/spec/models/order_spec.rb +86 -0
  200. data/spec/models/refund_spec.rb +126 -0
  201. data/spec/models/refund_status_spec.rb +36 -0
  202. data/spec/models/retrieve_customer_request_spec.rb +36 -0
  203. data/spec/models/retrieve_customer_response_spec.rb +56 -0
  204. data/spec/models/retrieve_transaction_request_spec.rb +36 -0
  205. data/spec/models/retrieve_transaction_response_spec.rb +56 -0
  206. data/spec/models/sort_order_spec.rb +36 -0
  207. data/spec/models/tender_card_details_entry_method_spec.rb +36 -0
  208. data/spec/models/tender_card_details_spec.rb +66 -0
  209. data/spec/models/tender_card_details_status_spec.rb +36 -0
  210. data/spec/models/tender_cash_details_spec.rb +56 -0
  211. data/spec/models/tender_spec.rb +146 -0
  212. data/spec/models/tender_type_spec.rb +36 -0
  213. data/spec/models/transaction_product_spec.rb +36 -0
  214. data/spec/models/transaction_spec.rb +136 -0
  215. data/spec/models/update_customer_request_spec.rb +126 -0
  216. data/spec/models/update_customer_response_spec.rb +56 -0
  217. data/spec/models/void_transaction_request_spec.rb +36 -0
  218. data/spec/models/void_transaction_response_spec.rb +46 -0
  219. data/spec/spec_helper.rb +115 -0
  220. data/square_connect.gemspec +22 -11
  221. data/travis-ci/accounts.enc +0 -0
  222. metadata +264 -31
@@ -0,0 +1,115 @@
1
+ =begin
2
+ Square Connect API
3
+
4
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+
11
+ =end
12
+
13
+ # load the gem
14
+ require 'square_connect'
15
+
16
+ # The following was generated by the `rspec --init` command. Conventionally, all
17
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
18
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
19
+ # this file to always be loaded, without a need to explicitly require it in any
20
+ # files.
21
+ #
22
+ # Given that it is always loaded, you are encouraged to keep this file as
23
+ # light-weight as possible. Requiring heavyweight dependencies from this file
24
+ # will add to the boot time of your test suite on EVERY test run, even for an
25
+ # individual file that may not need all of that loaded. Instead, consider making
26
+ # a separate helper file that requires the additional dependencies and performs
27
+ # the additional setup, and require it from the spec files that actually need
28
+ # it.
29
+ #
30
+ # The `.rspec` file also contains a few flags that are not defaults but that
31
+ # users commonly want.
32
+ #
33
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
34
+ RSpec.configure do |config|
35
+ # rspec-expectations config goes here. You can use an alternate
36
+ # assertion/expectation library such as wrong or the stdlib/minitest
37
+ # assertions if you prefer.
38
+ config.expect_with :rspec do |expectations|
39
+ # This option will default to `true` in RSpec 4. It makes the `description`
40
+ # and `failure_message` of custom matchers include text for helper methods
41
+ # defined using `chain`, e.g.:
42
+ # be_bigger_than(2).and_smaller_than(4).description
43
+ # # => "be bigger than 2 and smaller than 4"
44
+ # ...rather than:
45
+ # # => "be bigger than 2"
46
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
47
+ end
48
+
49
+ # rspec-mocks config goes here. You can use an alternate test double
50
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
51
+ config.mock_with :rspec do |mocks|
52
+ # Prevents you from mocking or stubbing a method that does not exist on
53
+ # a real object. This is generally recommended, and will default to
54
+ # `true` in RSpec 4.
55
+ mocks.verify_partial_doubles = true
56
+ end
57
+
58
+ # The settings below are suggested to provide a good initial experience
59
+ # with RSpec, but feel free to customize to your heart's content.
60
+ =begin
61
+ # These two settings work together to allow you to limit a spec run
62
+ # to individual examples or groups you care about by tagging them with
63
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
64
+ # get run.
65
+ config.filter_run :focus
66
+ config.run_all_when_everything_filtered = true
67
+
68
+ # Allows RSpec to persist some state between runs in order to support
69
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
70
+ # you configure your source control system to ignore this file.
71
+ config.example_status_persistence_file_path = "spec/examples.txt"
72
+
73
+ # Limits the available syntax to the non-monkey patched syntax that is
74
+ # recommended. For more details, see:
75
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
76
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
77
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
78
+ config.disable_monkey_patching!
79
+
80
+ # This setting enables warnings. It's recommended, but in some cases may
81
+ # be too noisy due to issues in dependencies.
82
+ config.warnings = true
83
+
84
+ # Many RSpec users commonly either run the entire suite or an individual
85
+ # file, and it's useful to allow more verbose output when running an
86
+ # individual spec file.
87
+ if config.files_to_run.one?
88
+ # Use the documentation formatter for detailed output,
89
+ # unless a formatter has already been configured
90
+ # (e.g. via a command-line flag).
91
+ config.default_formatter = 'doc'
92
+ end
93
+
94
+ # Print the 10 slowest examples and example groups at the
95
+ # end of the spec run, to help surface which specs are running
96
+ # particularly slow.
97
+ config.profile_examples = 10
98
+
99
+ # Run specs in random order to surface order dependencies. If you find an
100
+ # order dependency and want to debug it, you can fix the order by providing
101
+ # the seed, which is printed after each run.
102
+ # --seed 1234
103
+ config.order = :random
104
+
105
+ # Seed global randomization in this process using the `--seed` CLI option.
106
+ # Setting this allows you to use `--seed` to deterministically reproduce
107
+ # test failures related to randomization by passing the same `--seed` value
108
+ # as the one that triggered the failure.
109
+ Kernel.srand config.seed
110
+ =end
111
+ end
112
+
113
+ def load_accounts()
114
+ open('./travis-ci/accounts.json') { |f| JSON.load(f) }
115
+ end
@@ -1,25 +1,36 @@
1
1
  # -*- encoding: utf-8 -*-
2
+ #
3
+ =begin
4
+ #Square Connect API
5
+
6
+ OpenAPI spec version: 2.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
2
12
  $:.push File.expand_path("../lib", __FILE__)
3
13
  require "square_connect/version"
4
14
 
5
15
  Gem::Specification.new do |s|
6
16
  s.name = "square_connect"
7
17
  s.version = SquareConnect::VERSION
18
+ s.version = "#{s.version}.#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS']
8
19
  s.platform = Gem::Platform::RUBY
9
20
  s.authors = ["Square, Inc."]
10
- s.email = ["developers@squareup.com"]
11
- s.homepage = "https://github.com/Square/connect-ruby-sdk"
12
- s.summary = "Client library for the Square Connect v2 API"
13
- s.description = "Ruby client library for the Square Connect v2 API"
14
- s.license = "Apache-2.0"
15
-
21
+ s.email = [""]
22
+ s.homepage = "https://github.com/square/connect-ruby-sdk"
23
+ s.summary = "Square Connect API Ruby Gem"
24
+ s.description = "Ruby client library for the Square Connect API"
25
+ s.license = "Apache 2.0"
26
+ s.required_ruby_version = ">= 1.9"
16
27
 
17
- s.add_runtime_dependency 'typhoeus', '~> 0.2', '>= 0.2.1'
18
- s.add_runtime_dependency 'json', '~> 1.4', '>= 1.4.6'
28
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
29
+ s.add_runtime_dependency 'json', '~> 1.8', '>= 1.8.3'
19
30
 
20
- s.add_development_dependency 'rspec', '~> 3.2', '>= 3.2.0'
21
- s.add_development_dependency 'vcr', '~> 2.9', '>= 2.9.3'
22
- s.add_development_dependency 'webmock', '~> 1.6', '>= 1.6.2'
31
+ s.add_development_dependency 'rspec', '~> 3.4', '>= 3.4.0'
32
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
33
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
23
34
  s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
24
35
  s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
25
36
  s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
Binary file
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.0.0
4
+ version: 2.0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Square, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-29 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -16,100 +16,100 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '1.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.2.1
22
+ version: 1.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.2'
29
+ version: '1.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.2.1
32
+ version: 1.0.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '1.4'
39
+ version: '1.8'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 1.4.6
42
+ version: 1.8.3
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '1.4'
49
+ version: '1.8'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 1.4.6
52
+ version: 1.8.3
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: rspec
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '3.2'
59
+ version: '3.4'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 3.2.0
62
+ version: 3.4.0
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '3.2'
69
+ version: '3.4'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 3.2.0
72
+ version: 3.4.0
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: vcr
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '2.9'
79
+ version: '3.0'
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 2.9.3
82
+ version: 3.0.1
83
83
  type: :development
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2.9'
89
+ version: '3.0'
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 2.9.3
92
+ version: 3.0.1
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: webmock
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - "~>"
98
98
  - !ruby/object:Gem::Version
99
- version: '1.6'
99
+ version: '1.24'
100
100
  - - ">="
101
101
  - !ruby/object:Gem::Version
102
- version: 1.6.2
102
+ version: 1.24.3
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '1.6'
109
+ version: '1.24'
110
110
  - - ">="
111
111
  - !ruby/object:Gem::Version
112
- version: 1.6.2
112
+ version: 1.24.3
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: autotest
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -190,18 +190,90 @@ dependencies:
190
190
  - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: 0.2.11
193
- description: Ruby client library for the Square Connect v2 API
193
+ description: Ruby client library for the Square Connect API
194
194
  email:
195
- - developers@squareup.com
195
+ - ''
196
196
  executables: []
197
197
  extensions: []
198
198
  extra_rdoc_files: []
199
199
  files:
200
200
  - CHANGES.md
201
201
  - CONTRIBUTING.md
202
+ - Gemfile
202
203
  - LICENSE.txt
203
204
  - README.md
205
+ - Rakefile
206
+ - docs/Address.md
207
+ - docs/CaptureTransactionRequest.md
208
+ - docs/CaptureTransactionResponse.md
209
+ - docs/Card.md
210
+ - docs/CardBrand.md
211
+ - docs/ChargeRequest.md
212
+ - docs/ChargeResponse.md
213
+ - docs/Checkout.md
214
+ - docs/CheckoutApi.md
215
+ - docs/Country.md
216
+ - docs/CreateCheckoutRequest.md
217
+ - docs/CreateCheckoutResponse.md
218
+ - docs/CreateCustomerCardRequest.md
219
+ - docs/CreateCustomerCardResponse.md
220
+ - docs/CreateCustomerRequest.md
221
+ - docs/CreateCustomerResponse.md
222
+ - docs/CreateOrderRequest.md
223
+ - docs/CreateOrderRequestLineItem.md
224
+ - docs/CreateOrderRequestOrder.md
225
+ - docs/CreateRefundRequest.md
226
+ - docs/CreateRefundResponse.md
227
+ - docs/Currency.md
228
+ - docs/Customer.md
229
+ - docs/CustomerApi.md
230
+ - docs/CustomerCardApi.md
231
+ - docs/CustomerGroupInfo.md
232
+ - docs/CustomerPreferences.md
233
+ - docs/DeleteCustomerCardRequest.md
234
+ - docs/DeleteCustomerCardResponse.md
235
+ - docs/DeleteCustomerRequest.md
236
+ - docs/DeleteCustomerResponse.md
237
+ - docs/Error.md
238
+ - docs/ErrorCategory.md
239
+ - docs/ErrorCode.md
240
+ - docs/ListCustomersRequest.md
241
+ - docs/ListCustomersResponse.md
242
+ - docs/ListLocationsRequest.md
243
+ - docs/ListLocationsResponse.md
244
+ - docs/ListRefundsRequest.md
245
+ - docs/ListRefundsResponse.md
246
+ - docs/ListTransactionsRequest.md
247
+ - docs/ListTransactionsResponse.md
248
+ - docs/Location.md
249
+ - docs/LocationApi.md
250
+ - docs/LocationCapability.md
251
+ - docs/Money.md
252
+ - docs/Order.md
253
+ - docs/OrderLineItem.md
254
+ - docs/Refund.md
255
+ - docs/RefundApi.md
256
+ - docs/RefundStatus.md
257
+ - docs/RetrieveCustomerRequest.md
258
+ - docs/RetrieveCustomerResponse.md
259
+ - docs/RetrieveTransactionRequest.md
260
+ - docs/RetrieveTransactionResponse.md
261
+ - docs/SortOrder.md
262
+ - docs/Tender.md
263
+ - docs/TenderCardDetails.md
264
+ - docs/TenderCardDetailsEntryMethod.md
265
+ - docs/TenderCardDetailsStatus.md
266
+ - docs/TenderCashDetails.md
267
+ - docs/TenderType.md
268
+ - docs/Transaction.md
269
+ - docs/TransactionApi.md
270
+ - docs/TransactionProduct.md
271
+ - docs/UpdateCustomerRequest.md
272
+ - docs/UpdateCustomerResponse.md
273
+ - docs/VoidTransactionRequest.md
274
+ - docs/VoidTransactionResponse.md
204
275
  - lib/square_connect.rb
276
+ - lib/square_connect/api/checkout_api.rb
205
277
  - lib/square_connect/api/customer_api.rb
206
278
  - lib/square_connect/api/customer_card_api.rb
207
279
  - lib/square_connect/api/location_api.rb
@@ -211,27 +283,39 @@ files:
211
283
  - lib/square_connect/api_error.rb
212
284
  - lib/square_connect/configuration.rb
213
285
  - lib/square_connect/models/address.rb
286
+ - lib/square_connect/models/capture_transaction_request.rb
214
287
  - lib/square_connect/models/capture_transaction_response.rb
215
288
  - lib/square_connect/models/card.rb
216
289
  - lib/square_connect/models/card_brand.rb
217
290
  - lib/square_connect/models/charge_request.rb
218
291
  - lib/square_connect/models/charge_response.rb
292
+ - lib/square_connect/models/checkout.rb
219
293
  - lib/square_connect/models/country.rb
294
+ - lib/square_connect/models/create_checkout_request.rb
295
+ - lib/square_connect/models/create_checkout_response.rb
220
296
  - lib/square_connect/models/create_customer_card_request.rb
221
297
  - lib/square_connect/models/create_customer_card_response.rb
222
298
  - lib/square_connect/models/create_customer_request.rb
223
299
  - lib/square_connect/models/create_customer_response.rb
300
+ - lib/square_connect/models/create_order_request.rb
301
+ - lib/square_connect/models/create_order_request_line_item.rb
302
+ - lib/square_connect/models/create_order_request_order.rb
224
303
  - lib/square_connect/models/create_refund_request.rb
225
304
  - lib/square_connect/models/create_refund_response.rb
226
305
  - lib/square_connect/models/currency.rb
227
306
  - lib/square_connect/models/customer.rb
307
+ - lib/square_connect/models/customer_group_info.rb
308
+ - lib/square_connect/models/customer_preferences.rb
309
+ - lib/square_connect/models/delete_customer_card_request.rb
228
310
  - lib/square_connect/models/delete_customer_card_response.rb
311
+ - lib/square_connect/models/delete_customer_request.rb
229
312
  - lib/square_connect/models/delete_customer_response.rb
230
313
  - lib/square_connect/models/error.rb
231
314
  - lib/square_connect/models/error_category.rb
232
315
  - lib/square_connect/models/error_code.rb
233
316
  - lib/square_connect/models/list_customers_request.rb
234
317
  - lib/square_connect/models/list_customers_response.rb
318
+ - lib/square_connect/models/list_locations_request.rb
235
319
  - lib/square_connect/models/list_locations_response.rb
236
320
  - lib/square_connect/models/list_refunds_request.rb
237
321
  - lib/square_connect/models/list_refunds_response.rb
@@ -240,9 +324,13 @@ files:
240
324
  - lib/square_connect/models/location.rb
241
325
  - lib/square_connect/models/location_capability.rb
242
326
  - lib/square_connect/models/money.rb
327
+ - lib/square_connect/models/order.rb
328
+ - lib/square_connect/models/order_line_item.rb
243
329
  - lib/square_connect/models/refund.rb
244
330
  - lib/square_connect/models/refund_status.rb
331
+ - lib/square_connect/models/retrieve_customer_request.rb
245
332
  - lib/square_connect/models/retrieve_customer_response.rb
333
+ - lib/square_connect/models/retrieve_transaction_request.rb
246
334
  - lib/square_connect/models/retrieve_transaction_response.rb
247
335
  - lib/square_connect/models/sort_order.rb
248
336
  - lib/square_connect/models/tender.rb
@@ -255,12 +343,86 @@ files:
255
343
  - lib/square_connect/models/transaction_product.rb
256
344
  - lib/square_connect/models/update_customer_request.rb
257
345
  - lib/square_connect/models/update_customer_response.rb
346
+ - lib/square_connect/models/void_transaction_request.rb
258
347
  - lib/square_connect/models/void_transaction_response.rb
259
348
  - lib/square_connect/version.rb
349
+ - spec/api/checkout_api_spec.rb
350
+ - spec/api/customer_api_spec.rb
351
+ - spec/api/customer_card_api_spec.rb
352
+ - spec/api/location_api_spec.rb
353
+ - spec/api/refund_api_spec.rb
354
+ - spec/api/transaction_api_spec.rb
355
+ - spec/api_client_spec.rb
356
+ - spec/configuration_spec.rb
357
+ - spec/models/address_spec.rb
358
+ - spec/models/capture_transaction_request_spec.rb
359
+ - spec/models/capture_transaction_response_spec.rb
360
+ - spec/models/card_brand_spec.rb
361
+ - spec/models/card_spec.rb
362
+ - spec/models/charge_request_spec.rb
363
+ - spec/models/charge_response_spec.rb
364
+ - spec/models/checkout_spec.rb
365
+ - spec/models/country_spec.rb
366
+ - spec/models/create_checkout_request_spec.rb
367
+ - spec/models/create_checkout_response_spec.rb
368
+ - spec/models/create_customer_card_request_spec.rb
369
+ - spec/models/create_customer_card_response_spec.rb
370
+ - spec/models/create_customer_request_spec.rb
371
+ - spec/models/create_customer_response_spec.rb
372
+ - spec/models/create_order_request_line_item_spec.rb
373
+ - spec/models/create_order_request_order_spec.rb
374
+ - spec/models/create_order_request_spec.rb
375
+ - spec/models/create_refund_request_spec.rb
376
+ - spec/models/create_refund_response_spec.rb
377
+ - spec/models/currency_spec.rb
378
+ - spec/models/customer_group_info_spec.rb
379
+ - spec/models/customer_preferences_spec.rb
380
+ - spec/models/customer_spec.rb
381
+ - spec/models/delete_customer_card_request_spec.rb
382
+ - spec/models/delete_customer_card_response_spec.rb
383
+ - spec/models/delete_customer_request_spec.rb
384
+ - spec/models/delete_customer_response_spec.rb
385
+ - spec/models/error_category_spec.rb
386
+ - spec/models/error_code_spec.rb
387
+ - spec/models/error_spec.rb
388
+ - spec/models/list_customers_request_spec.rb
389
+ - spec/models/list_customers_response_spec.rb
390
+ - spec/models/list_locations_request_spec.rb
391
+ - spec/models/list_locations_response_spec.rb
392
+ - spec/models/list_refunds_request_spec.rb
393
+ - spec/models/list_refunds_response_spec.rb
394
+ - spec/models/list_transactions_request_spec.rb
395
+ - spec/models/list_transactions_response_spec.rb
396
+ - spec/models/location_capability_spec.rb
397
+ - spec/models/location_spec.rb
398
+ - spec/models/money_spec.rb
399
+ - spec/models/order_line_item_spec.rb
400
+ - spec/models/order_spec.rb
401
+ - spec/models/refund_spec.rb
402
+ - spec/models/refund_status_spec.rb
403
+ - spec/models/retrieve_customer_request_spec.rb
404
+ - spec/models/retrieve_customer_response_spec.rb
405
+ - spec/models/retrieve_transaction_request_spec.rb
406
+ - spec/models/retrieve_transaction_response_spec.rb
407
+ - spec/models/sort_order_spec.rb
408
+ - spec/models/tender_card_details_entry_method_spec.rb
409
+ - spec/models/tender_card_details_spec.rb
410
+ - spec/models/tender_card_details_status_spec.rb
411
+ - spec/models/tender_cash_details_spec.rb
412
+ - spec/models/tender_spec.rb
413
+ - spec/models/tender_type_spec.rb
414
+ - spec/models/transaction_product_spec.rb
415
+ - spec/models/transaction_spec.rb
416
+ - spec/models/update_customer_request_spec.rb
417
+ - spec/models/update_customer_response_spec.rb
418
+ - spec/models/void_transaction_request_spec.rb
419
+ - spec/models/void_transaction_response_spec.rb
420
+ - spec/spec_helper.rb
260
421
  - square_connect.gemspec
261
- homepage: https://github.com/Square/connect-ruby-sdk
422
+ - travis-ci/accounts.enc
423
+ homepage: https://github.com/square/connect-ruby-sdk
262
424
  licenses:
263
- - Apache-2.0
425
+ - Apache 2.0
264
426
  metadata: {}
265
427
  post_install_message:
266
428
  rdoc_options: []
@@ -270,7 +432,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
270
432
  requirements:
271
433
  - - ">="
272
434
  - !ruby/object:Gem::Version
273
- version: '0'
435
+ version: '1.9'
274
436
  required_rubygems_version: !ruby/object:Gem::Requirement
275
437
  requirements:
276
438
  - - ">="
@@ -278,9 +440,80 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
440
  version: '0'
279
441
  requirements: []
280
442
  rubyforge_project:
281
- rubygems_version: 2.4.5.1
443
+ rubygems_version: 2.4.5
282
444
  signing_key:
283
445
  specification_version: 4
284
- summary: Client library for the Square Connect v2 API
285
- test_files: []
286
- has_rdoc:
446
+ summary: Square Connect API Ruby Gem
447
+ test_files:
448
+ - spec/api/checkout_api_spec.rb
449
+ - spec/api/customer_api_spec.rb
450
+ - spec/api/customer_card_api_spec.rb
451
+ - spec/api/location_api_spec.rb
452
+ - spec/api/refund_api_spec.rb
453
+ - spec/api/transaction_api_spec.rb
454
+ - spec/api_client_spec.rb
455
+ - spec/configuration_spec.rb
456
+ - spec/models/address_spec.rb
457
+ - spec/models/capture_transaction_request_spec.rb
458
+ - spec/models/capture_transaction_response_spec.rb
459
+ - spec/models/card_brand_spec.rb
460
+ - spec/models/card_spec.rb
461
+ - spec/models/charge_request_spec.rb
462
+ - spec/models/charge_response_spec.rb
463
+ - spec/models/checkout_spec.rb
464
+ - spec/models/country_spec.rb
465
+ - spec/models/create_checkout_request_spec.rb
466
+ - spec/models/create_checkout_response_spec.rb
467
+ - spec/models/create_customer_card_request_spec.rb
468
+ - spec/models/create_customer_card_response_spec.rb
469
+ - spec/models/create_customer_request_spec.rb
470
+ - spec/models/create_customer_response_spec.rb
471
+ - spec/models/create_order_request_line_item_spec.rb
472
+ - spec/models/create_order_request_order_spec.rb
473
+ - spec/models/create_order_request_spec.rb
474
+ - spec/models/create_refund_request_spec.rb
475
+ - spec/models/create_refund_response_spec.rb
476
+ - spec/models/currency_spec.rb
477
+ - spec/models/customer_group_info_spec.rb
478
+ - spec/models/customer_preferences_spec.rb
479
+ - spec/models/customer_spec.rb
480
+ - spec/models/delete_customer_card_request_spec.rb
481
+ - spec/models/delete_customer_card_response_spec.rb
482
+ - spec/models/delete_customer_request_spec.rb
483
+ - spec/models/delete_customer_response_spec.rb
484
+ - spec/models/error_category_spec.rb
485
+ - spec/models/error_code_spec.rb
486
+ - spec/models/error_spec.rb
487
+ - spec/models/list_customers_request_spec.rb
488
+ - spec/models/list_customers_response_spec.rb
489
+ - spec/models/list_locations_request_spec.rb
490
+ - spec/models/list_locations_response_spec.rb
491
+ - spec/models/list_refunds_request_spec.rb
492
+ - spec/models/list_refunds_response_spec.rb
493
+ - spec/models/list_transactions_request_spec.rb
494
+ - spec/models/list_transactions_response_spec.rb
495
+ - spec/models/location_capability_spec.rb
496
+ - spec/models/location_spec.rb
497
+ - spec/models/money_spec.rb
498
+ - spec/models/order_line_item_spec.rb
499
+ - spec/models/order_spec.rb
500
+ - spec/models/refund_spec.rb
501
+ - spec/models/refund_status_spec.rb
502
+ - spec/models/retrieve_customer_request_spec.rb
503
+ - spec/models/retrieve_customer_response_spec.rb
504
+ - spec/models/retrieve_transaction_request_spec.rb
505
+ - spec/models/retrieve_transaction_response_spec.rb
506
+ - spec/models/sort_order_spec.rb
507
+ - spec/models/tender_card_details_entry_method_spec.rb
508
+ - spec/models/tender_card_details_spec.rb
509
+ - spec/models/tender_card_details_status_spec.rb
510
+ - spec/models/tender_cash_details_spec.rb
511
+ - spec/models/tender_spec.rb
512
+ - spec/models/tender_type_spec.rb
513
+ - spec/models/transaction_product_spec.rb
514
+ - spec/models/transaction_spec.rb
515
+ - spec/models/update_customer_request_spec.rb
516
+ - spec/models/update_customer_response_spec.rb
517
+ - spec/models/void_transaction_request_spec.rb
518
+ - spec/models/void_transaction_response_spec.rb
519
+ - spec/spec_helper.rb