connect-sdk-ruby 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/connect-sdk-ruby.gemspec +3 -3
  4. data/examples/merchant/payments/create_payment_example.rb +14 -10
  5. data/examples/merchant/payouts/create_payout_example.rb +9 -5
  6. data/lib/ingenico/connect/sdk/api_exception.rb +4 -4
  7. data/lib/ingenico/connect/sdk/api_resource.rb +3 -3
  8. data/lib/ingenico/connect/sdk/authenticator.rb +1 -1
  9. data/lib/ingenico/connect/sdk/authorization_exception.rb +2 -2
  10. data/lib/ingenico/connect/sdk/call_context.rb +1 -1
  11. data/lib/ingenico/connect/sdk/client.rb +1 -1
  12. data/lib/ingenico/connect/sdk/communication_exception.rb +1 -1
  13. data/lib/ingenico/connect/sdk/communicator.rb +10 -10
  14. data/lib/ingenico/connect/sdk/communicator_configuration.rb +11 -11
  15. data/lib/ingenico/connect/sdk/declined_payment_exception.rb +3 -3
  16. data/lib/ingenico/connect/sdk/declined_payout_exception.rb +3 -3
  17. data/lib/ingenico/connect/sdk/declined_refund_exception.rb +3 -3
  18. data/lib/ingenico/connect/sdk/declined_transaction_exception.rb +1 -1
  19. data/lib/ingenico/connect/sdk/defaultimpl/default_authenticator.rb +1 -1
  20. data/lib/ingenico/connect/sdk/defaultimpl/default_connection.rb +5 -5
  21. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_direct_debit_payment_method_specific_input.rb +15 -0
  22. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb +2 -2
  23. data/lib/ingenico/connect/sdk/domain/payment/approve_payment_sepa_direct_debit_payment_method_specific_input.rb +2 -2
  24. data/lib/ingenico/connect/sdk/domain/payment/complete_payment_request.rb +11 -0
  25. data/lib/ingenico/connect/sdk/domain/payment/order.rb +2 -0
  26. data/lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb +11 -0
  27. data/lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb +38 -0
  28. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +11 -0
  29. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb +14 -0
  30. data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb +38 -0
  31. data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +14 -0
  32. data/lib/ingenico/connect/sdk/domain/product/abstract_indicator.rb +38 -0
  33. data/lib/ingenico/connect/sdk/domain/product/authentication_indicator.rb +15 -0
  34. data/lib/ingenico/connect/sdk/domain/product/payment_product.rb +11 -0
  35. data/lib/ingenico/connect/sdk/endpoint_configuration.rb +10 -10
  36. data/lib/ingenico/connect/sdk/factory.rb +4 -4
  37. data/lib/ingenico/connect/sdk/global_collect_exception.rb +3 -3
  38. data/lib/ingenico/connect/sdk/idempotence_exception.rb +2 -2
  39. data/lib/ingenico/connect/sdk/merchant/captures/captures_client.rb +3 -3
  40. data/lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb +6 -6
  41. data/lib/ingenico/connect/sdk/merchant/payments/payments_client.rb +38 -38
  42. data/lib/ingenico/connect/sdk/merchant/payouts/payouts_client.rb +16 -16
  43. data/lib/ingenico/connect/sdk/merchant/productgroups/productgroups_client.rb +6 -6
  44. data/lib/ingenico/connect/sdk/merchant/products/products_client.rb +15 -15
  45. data/lib/ingenico/connect/sdk/merchant/refunds/refunds_client.rb +12 -12
  46. data/lib/ingenico/connect/sdk/merchant/riskassessments/riskassessments_client.rb +6 -6
  47. data/lib/ingenico/connect/sdk/merchant/services/services_client.rb +12 -12
  48. data/lib/ingenico/connect/sdk/merchant/sessions/sessions_client.rb +3 -3
  49. data/lib/ingenico/connect/sdk/merchant/tokens/tokens_client.rb +15 -15
  50. data/lib/ingenico/connect/sdk/meta_data_provider.rb +2 -2
  51. data/lib/ingenico/connect/sdk/modules.rb +24 -24
  52. data/lib/ingenico/connect/sdk/not_found_exception.rb +1 -1
  53. data/lib/ingenico/connect/sdk/reference_exception.rb +2 -2
  54. data/lib/ingenico/connect/sdk/response_exception.rb +7 -7
  55. data/lib/ingenico/connect/sdk/session.rb +3 -3
  56. data/lib/ingenico/connect/sdk/validation_exception.rb +3 -3
  57. data/spec/integration/convert_amount_spec.rb +1 -1
  58. data/spec/integration/risk_assessments_spec.rb +1 -1
  59. metadata +11 -6
@@ -2,12 +2,12 @@ require 'uri'
2
2
 
3
3
  module Ingenico::Connect::SDK
4
4
 
5
- # Contains networking and authentication data needed to communicate with the GlobalCollect platform
5
+ # Contains networking and authentication data needed to communicate with the Ingenico ePayments platform
6
6
  class Session
7
7
 
8
8
  # Construct a new Session.
9
9
  # The session object stores the following:
10
- # api_endpoint:: The base url to the GlobalCollect platform, given as a string and converted to a {URI} object
10
+ # api_endpoint:: The base url to the Ingenico ePayments platform, given as a string and converted to a {URI} object
11
11
  # connection:: An instance of the {Ingenico::Connect::SDK::Connection} class used to communicate with
12
12
  # authenticator:: An instance of the {Ingenico::Connect::SDK::Authenticator} class used for authenticating messages sent
13
13
  # meta_data_provider:: An instance of the {Ingenico::Connect::SDK::MetaDataProvider} class containing information relevant for sending requests
@@ -27,7 +27,7 @@ module Ingenico::Connect::SDK
27
27
  @meta_data_provider = meta_data_provider
28
28
  end
29
29
 
30
- # The base URI to the GlobalCollect platform as a {URI} object
30
+ # The base URI to the Ingenico ePayments platform as a {URI} object
31
31
  attr_reader :api_endpoint
32
32
  # An instance of the {Ingenico::Connect::SDK::Connection} class used to communicate with
33
33
  attr_reader :connection
@@ -1,13 +1,13 @@
1
1
  module Ingenico::Connect::SDK
2
2
 
3
- # Raised when the request sent to the GlobalCollect platform returned a HTTP response with status code 400.
4
- # This indicates the request received by the GlobalCollect platform was malformed.
3
+ # Raised when the request sent to the Ingenico ePayments platform returned a HTTP response with status code 400.
4
+ # This indicates the request received by the Ingenico ePayments platform was malformed.
5
5
  class ValidationException < ApiException
6
6
 
7
7
  # Create a new ValidationException
8
8
  # @see ApiException#initialize
9
9
  def initialize(status_code, response_body, error_id, errors,
10
- message='the GlobalCollect platform returned an incorrect request error response')
10
+ message='the Ingenico ePayments platform returned an incorrect request error response')
11
11
  super(status_code, response_body, error_id, errors, message)
12
12
  end
13
13
  end
@@ -9,7 +9,7 @@ describe 'convertAmount with the server' do
9
9
  before(:context){WebMock.allow_net_connect!}
10
10
  after(:context){WebMock.disable_net_connect!}
11
11
 
12
- it 'communicates with the GlobalCollect platform' do
12
+ it 'communicates with the Ingenico ePayments platform' do
13
13
 
14
14
  request = Ingenico::Connect::SDK::Merchant::Services::ConvertAmountParams.new
15
15
  request.amount = 123
@@ -12,7 +12,7 @@ describe 'RiskAssessments' do
12
12
  before(:context){WebMock.allow_net_connect!}
13
13
  after(:context){WebMock.disable_net_connect!}
14
14
 
15
- it 'can let the GlobalCollect platform assess risks' do
15
+ it 'can let the Ingenico ePayments platform assess risks' do
16
16
  bank_account_bban = Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban.new
17
17
  bank_account_bban.country_code = 'DE'
18
18
  bank_account_bban.account_number = '0532013000'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connect-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingenico ePayments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -94,7 +94,7 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '10.4'
97
- description: SDK to communicate with the GlobalCollect platform using the Ingenico
97
+ description: SDK to communicate with the Ingenico ePayments platform using the Ingenico
98
98
  Connect Server API
99
99
  email:
100
100
  - github@epay.ingenico.com
@@ -221,6 +221,7 @@ files:
221
221
  - lib/ingenico/connect/sdk/domain/payment/address_personal.rb
222
222
  - lib/ingenico/connect/sdk/domain/payment/amount_breakdown.rb
223
223
  - lib/ingenico/connect/sdk/domain/payment/approve_payment_card_payment_method_specific_output.rb
224
+ - lib/ingenico/connect/sdk/domain/payment/approve_payment_direct_debit_payment_method_specific_input.rb
224
225
  - lib/ingenico/connect/sdk/domain/payment/approve_payment_mobile_payment_method_specific_output.rb
225
226
  - lib/ingenico/connect/sdk/domain/payment/approve_payment_non_sepa_direct_debit_payment_method_specific_input.rb
226
227
  - lib/ingenico/connect/sdk/domain/payment/approve_payment_payment_method_specific_input.rb
@@ -288,12 +289,14 @@ files:
288
289
  - lib/ingenico/connect/sdk/domain/payment/payment_status_output.rb
289
290
  - lib/ingenico/connect/sdk/domain/payment/personal_information.rb
290
291
  - lib/ingenico/connect/sdk/domain/payment/personal_name.rb
292
+ - lib/ingenico/connect/sdk/domain/payment/protection_eligibility.rb
291
293
  - lib/ingenico/connect/sdk/domain/payment/redirect_data.rb
292
294
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb
293
295
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input_base.rb
294
296
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_output.rb
295
297
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product809_specific_input.rb
296
298
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product816_specific_input.rb
299
+ - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb
297
300
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb
298
301
  - lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb
299
302
  - lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb
@@ -319,9 +322,11 @@ files:
319
322
  - lib/ingenico/connect/sdk/domain/payout/payout_references.rb
320
323
  - lib/ingenico/connect/sdk/domain/payout/payout_response.rb
321
324
  - lib/ingenico/connect/sdk/domain/payout/payout_result.rb
325
+ - lib/ingenico/connect/sdk/domain/product/abstract_indicator.rb
322
326
  - lib/ingenico/connect/sdk/domain/product/account_on_file.rb
323
327
  - lib/ingenico/connect/sdk/domain/product/account_on_file_attribute.rb
324
328
  - lib/ingenico/connect/sdk/domain/product/account_on_file_display_hints.rb
329
+ - lib/ingenico/connect/sdk/domain/product/authentication_indicator.rb
325
330
  - lib/ingenico/connect/sdk/domain/product/boleto_bancario_requiredness_validator.rb
326
331
  - lib/ingenico/connect/sdk/domain/product/directory.rb
327
332
  - lib/ingenico/connect/sdk/domain/product/directory_entry.rb
@@ -535,11 +540,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
535
540
  version: '0'
536
541
  requirements: []
537
542
  rubyforge_project:
538
- rubygems_version: 2.6.12
543
+ rubygems_version: 2.6.13
539
544
  signing_key:
540
545
  specification_version: 4
541
- summary: SDK to communicate with the GlobalCollect platform using the Ingenico Connect
542
- Server API
546
+ summary: SDK to communicate with the Ingenico ePayments platform using the Ingenico
547
+ Connect Server API
543
548
  test_files:
544
549
  - spec/comparable_extension.rb
545
550
  - spec/fixtures/resources/defaultimpl/convertAmount.json