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
@@ -31,10 +31,10 @@ module Ingenico::Connect::SDK
31
31
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
32
32
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
33
33
  # or there was a conflict (HTTP status code 404, 409 or 410)
34
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
35
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
34
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
35
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
36
36
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
37
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
37
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
38
38
  def get(refund_id, context=nil)
39
39
  path_context = {
40
40
  'refundId' => refund_id,
@@ -63,10 +63,10 @@ module Ingenico::Connect::SDK
63
63
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
64
64
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
65
65
  # or there was a conflict (HTTP status code 404, 409 or 410)
66
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
67
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
66
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
67
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
68
68
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
69
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
69
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
70
70
  def approve(refund_id, body, context=nil)
71
71
  path_context = {
72
72
  'refundId' => refund_id,
@@ -95,10 +95,10 @@ module Ingenico::Connect::SDK
95
95
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
96
96
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
97
97
  # or there was a conflict (HTTP status code 404, 409 or 410)
98
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
99
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
98
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
99
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
100
100
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
101
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
101
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
102
102
  def cancel(refund_id, context=nil)
103
103
  path_context = {
104
104
  'refundId' => refund_id,
@@ -127,10 +127,10 @@ module Ingenico::Connect::SDK
127
127
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
128
128
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
129
129
  # or there was a conflict (HTTP status code 404, 409 or 410)
130
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
131
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
130
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
131
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
132
132
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
133
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
133
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
134
134
  def cancelapproval(refund_id, context=nil)
135
135
  path_context = {
136
136
  'refundId' => refund_id,
@@ -31,10 +31,10 @@ module Ingenico::Connect::SDK
31
31
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
32
32
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
33
33
  # or there was a conflict (HTTP status code 404, 409 or 410)
34
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
35
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
34
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
35
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
36
36
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
37
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
37
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
38
38
  def bankaccounts(body, context=nil)
39
39
  uri = instantiate_uri('/{apiVersion}/{merchantId}/riskassessments/bankaccounts', nil)
40
40
  return @communicator.post(
@@ -61,10 +61,10 @@ module Ingenico::Connect::SDK
61
61
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
62
62
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
63
63
  # or there was a conflict (HTTP status code 404, 409 or 410)
64
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
65
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
64
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
65
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
66
66
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
67
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
67
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
68
68
  def cards(body, context=nil)
69
69
  uri = instantiate_uri('/{apiVersion}/{merchantId}/riskassessments/cards', nil)
70
70
  return @communicator.post(
@@ -34,10 +34,10 @@ module Ingenico::Connect::SDK
34
34
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
35
35
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
36
36
  # or there was a conflict (HTTP status code 404, 409 or 410)
37
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
38
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
37
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
38
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
39
39
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
40
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
40
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
41
41
  def convert_amount(query, context=nil)
42
42
  uri = instantiate_uri('/{apiVersion}/{merchantId}/services/convert/amount', nil)
43
43
  return @communicator.get(
@@ -63,10 +63,10 @@ module Ingenico::Connect::SDK
63
63
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
64
64
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
65
65
  # or there was a conflict (HTTP status code 404, 409 or 410)
66
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
67
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
66
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
67
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
68
68
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
69
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
69
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
70
70
  def bankaccount(body, context=nil)
71
71
  uri = instantiate_uri('/{apiVersion}/{merchantId}/services/convert/bankaccount', nil)
72
72
  return @communicator.post(
@@ -93,10 +93,10 @@ module Ingenico::Connect::SDK
93
93
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
94
94
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
95
95
  # or there was a conflict (HTTP status code 404, 409 or 410)
96
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
97
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
96
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
97
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
98
98
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
99
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
99
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
100
100
  def get_iin_details(body, context=nil)
101
101
  uri = instantiate_uri('/{apiVersion}/{merchantId}/services/getIINdetails', nil)
102
102
  return @communicator.post(
@@ -122,10 +122,10 @@ module Ingenico::Connect::SDK
122
122
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
123
123
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
124
124
  # or there was a conflict (HTTP status code 404, 409 or 410)
125
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
126
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
125
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
126
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
127
127
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
128
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
128
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
129
129
  def testconnection(context=nil)
130
130
  uri = instantiate_uri('/{apiVersion}/{merchantId}/services/testconnection', nil)
131
131
  return @communicator.get(
@@ -31,10 +31,10 @@ module Ingenico::Connect::SDK
31
31
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
32
32
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
33
33
  # or there was a conflict (HTTP status code 404, 409 or 410)
34
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
35
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
34
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
35
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
36
36
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
37
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
37
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
38
38
  def create(body, context=nil)
39
39
  uri = instantiate_uri('/{apiVersion}/{merchantId}/sessions', nil)
40
40
  return @communicator.post(
@@ -32,10 +32,10 @@ module Ingenico::Connect::SDK
32
32
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
33
33
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
34
34
  # or there was a conflict (HTTP status code 404, 409 or 410)
35
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
36
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
35
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
36
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
37
37
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
38
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
38
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
39
39
  def create(body, context=nil)
40
40
  uri = instantiate_uri('/{apiVersion}/{merchantId}/tokens', nil)
41
41
  return @communicator.post(
@@ -62,10 +62,10 @@ module Ingenico::Connect::SDK
62
62
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
63
63
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
64
64
  # or there was a conflict (HTTP status code 404, 409 or 410)
65
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
66
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
65
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
66
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
67
67
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
68
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
68
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
69
69
  def get(token_id, context=nil)
70
70
  path_context = {
71
71
  'tokenId' => token_id,
@@ -94,10 +94,10 @@ module Ingenico::Connect::SDK
94
94
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
95
95
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
96
96
  # or there was a conflict (HTTP status code 404, 409 or 410)
97
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
98
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
97
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
98
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
99
99
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
100
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
100
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
101
101
  def update(token_id, body, context=nil)
102
102
  path_context = {
103
103
  'tokenId' => token_id,
@@ -127,10 +127,10 @@ module Ingenico::Connect::SDK
127
127
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
128
128
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
129
129
  # or there was a conflict (HTTP status code 404, 409 or 410)
130
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
131
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
130
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
131
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
132
132
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
133
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
133
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
134
134
  def delete(token_id, query, context=nil)
135
135
  path_context = {
136
136
  'tokenId' => token_id,
@@ -159,10 +159,10 @@ module Ingenico::Connect::SDK
159
159
  # Raises:: {Ingenico::Connect::SDK::IdempotenceException} if an idempotent request caused a conflict (HTTP status code 409)
160
160
  # Raises:: {Ingenico::Connect::SDK::ReferenceException} if an object was attempted to be referenced that doesn't exist or has been removed,
161
161
  # or there was a conflict (HTTP status code 404, 409 or 410)
162
- # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the GlobalCollect platform,
163
- # the GlobalCollect platform was unable to process a message from a downstream partner/acquirer,
162
+ # Raises:: {Ingenico::Connect::SDK::GlobalCollectException} if something went wrong at the Ingenico ePayments platform,
163
+ # the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
164
164
  # or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
165
- # Raises:: {Ingenico::Connect::SDK::ApiException} if the GlobalCollect platform returned any other error
165
+ # Raises:: {Ingenico::Connect::SDK::ApiException} if the Ingenico ePayments platform returned any other error
166
166
  def approvesepadirectdebit(token_id, body, context=nil)
167
167
  path_context = {
168
168
  'tokenId' => token_id,
@@ -5,13 +5,13 @@ module Ingenico::Connect::SDK
5
5
 
6
6
  # Manages metadata about the server using the SDK
7
7
  class MetaDataProvider
8
- @@SDK_VERSION = '1.7.0'
8
+ @@SDK_VERSION = '1.8.0'
9
9
  @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
10
10
  @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
11
11
  'Date', 'Content-Type', 'Authorization'].sort!.freeze
12
12
  @@CHARSET = 'utf-8'
13
13
 
14
- # Stores metadata about the server so it can be sent to the GlobalCollect platform
14
+ # Stores metadata about the server so it can be sent to the Ingenico ePayments platform
15
15
  class ServerMetaInfo < DataObject
16
16
  @platform_identifier = nil
17
17
  @sdk_identifier = nil
@@ -16,113 +16,113 @@ module Ingenico::Connect::SDK::Merchant
16
16
  end
17
17
 
18
18
  # Container for all data-containing modules.
19
- # The data-classes contained within can be serialized and communicated with the GlobalCollect platform.
19
+ # The data-classes contained within can be serialized and communicated with the Ingenico ePayments platform.
20
20
  # These classes generally contain financially relevant data used in processing requests or responses.
21
21
  module Ingenico::Connect::SDK::Domain
22
22
  end
23
23
 
24
24
  # Contains the client used to access the HostedCheckouts service.
25
- # @see https://developer.globalcollect.com/documentation/api/server/#hostedcheckouts
25
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/hostedcheckouts/
26
26
  module Ingenico::Connect::SDK::Merchant::Hostedcheckouts
27
27
  end
28
28
 
29
29
  # Contains data classes that are used in the HostedCheckouts service.
30
- # @see https://developer.globalcollect.com/documentation/api/server/#hostedcheckouts
30
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/hostedcheckouts/
31
31
  module Ingenico::Connect::SDK::Domain::Hostedcheckout
32
32
  end
33
33
 
34
34
  # Contains the client used to access the payment service.
35
- # @see https://developer.globalcollect.com/documentation/api/server/#payments
35
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/
36
36
  module Ingenico::Connect::SDK::Merchant::Payments
37
37
  end
38
38
 
39
39
  # Contains data classes that are used in payment services.
40
- # @see https://developer.globalcollect.com/documentation/api/server/#payments
40
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payments/
41
41
  module Ingenico::Connect::SDK::Domain::Payment
42
42
  end
43
43
 
44
44
  # Contains the client used to access the capture service.
45
- # @see https://developer.globalcollect.com/documentation/api/server/#captures
45
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/captures/
46
46
  module Ingenico::Connect::SDK::Merchant::Captures
47
47
  end
48
48
 
49
49
  # Contains data classes that are used in capture services.
50
- # @see https://developer.globalcollect.com/documentation/api/server/#captures
50
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/captures/
51
51
  module Ingenico::Connect::SDK::Domain::Capture
52
52
  end
53
53
 
54
54
  # Contains the client used to access the payout service.
55
- # @see https://developer.globalcollect.com/documentation/api/server/#payouts
55
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payouts/
56
56
  module Ingenico::Connect::SDK::Merchant::Payouts
57
57
  end
58
58
 
59
59
  # Contains data classes that are used in payout services.
60
- # @see https://developer.globalcollect.com/documentation/api/server/#payouts
60
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payouts/
61
61
  module Ingenico::Connect::SDK::Domain::Payout
62
62
  end
63
63
 
64
64
  # Contains the client used to access the product groups service.
65
- # @see https://developer.globalcollect.com/documentation/api/server/#productgroups
65
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/productgroups/
66
66
  module Ingenico::Connect::SDK::Merchant::Productgroups
67
67
  end
68
68
 
69
69
  # Contains the client used to access the products service.
70
- # @see https://developer.globalcollect.com/documentation/api/server/#products
70
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/products/
71
71
  module Ingenico::Connect::SDK::Merchant::Products
72
72
  end
73
73
 
74
74
  # Contains data classes that are used in payment product and payment product group services.
75
- # @see https://developer.globalcollect.com/documentation/api/server/#products
75
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/products/
76
76
  module Ingenico::Connect::SDK::Domain::Product
77
77
  end
78
78
 
79
79
  # Contains the client used to access the refunds service
80
- # @see https://developer.globalcollect.com/documentation/api/server/#refunds
80
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/refunds/
81
81
  module Ingenico::Connect::SDK::Merchant::Refunds
82
82
  end
83
83
 
84
84
  # Contains data classes that are used in refund requests.
85
- # @see https://developer.globalcollect.com/documentation/api/server/#refunds
85
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/refunds/
86
86
  module Ingenico::Connect::SDK::Domain::Refund
87
87
  end
88
88
 
89
89
  # Contains the client used to access the riskassessments service.
90
- # @see https://developer.globalcollect.com/documentation/api/server/#riskassessments
90
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/riskassessments/
91
91
  module Ingenico::Connect::SDK::Merchant::Riskassessments
92
92
  end
93
93
 
94
94
  # Contains data classes that are used in riskassessment services.
95
- # @see https://developer.globalcollect.com/documentation/api/server/#riskassessments
95
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/riskassessments/
96
96
  module Ingenico::Connect::SDK::Domain::Riskassessments
97
97
  end
98
98
 
99
99
  # Contains the client to access miscellaneous services.
100
- # @see https://developer.globalcollect.com/documentation/api/server/#services
100
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/services/
101
101
  module Ingenico::Connect::SDK::Merchant::Services
102
102
  end
103
103
 
104
104
  # Contains data classes that are used in miscellaneous services.
105
- # @see https://developer.globalcollect.com/documentation/api/server/#services
105
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/services/
106
106
  module Ingenico::Connect::SDK::Domain::Services
107
107
  end
108
108
 
109
109
  # Contains the client used to access the sessions service.
110
- # @see https://developer.globalcollect.com/documentation/api/server/#sessions
110
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/sessions/
111
111
  module Ingenico::Connect::SDK::Merchant::Sessions
112
112
  end
113
113
 
114
114
  # Contains data classes that are used in initiating Sessions.
115
- # @see https://developer.globalcollect.com/documentation/api/server/#sessions
115
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/sessions/
116
116
  module Ingenico::Connect::SDK::Domain::Sessions
117
117
  end
118
118
 
119
119
  # Contains the client used to access the tokens service.
120
- # @see https://developer.globalcollect.com/documentation/api/server/#tokens
120
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/tokens/
121
121
  module Ingenico::Connect::SDK::Merchant::Tokens
122
122
  end
123
123
 
124
124
  # Contains data classes that are used in the tokenization service.
125
- # @see https://developer.globalcollect.com/documentation/api/server/#tokens
125
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/tokens/
126
126
  module Ingenico::Connect::SDK::Domain::Token
127
127
  end
128
128
 
@@ -131,11 +131,11 @@ module Ingenico::Connect::SDK::Domain::Publickey
131
131
  end
132
132
 
133
133
  # Contains the general data classes that are used in multiple different types of requests.
134
- # These classes can be serialized and used in communication with the GlobalCollect platform.
134
+ # These classes can be serialized and used in communication with the Ingenico ePayments platform.
135
135
  module Ingenico::Connect::SDK::Domain::Definitions
136
136
  end
137
137
 
138
- # Contains classes that represent error responses from the GlobalCollect platform.
138
+ # Contains classes that represent error responses from the Ingenico ePayments platform.
139
139
  module Ingenico::Connect::SDK::Domain::Errors
140
140
  end
141
141
 
@@ -1,6 +1,6 @@
1
1
  module Ingenico::Connect::SDK
2
2
 
3
- # Raised when a resource is not found on the GlobalCollect platform.
3
+ # Raised when a resource is not found on the Ingenico ePayments platform.
4
4
  # This error corresponds to a 404 HTTP response.
5
5
  class NotFoundException < RuntimeError
6
6
 
@@ -1,13 +1,13 @@
1
1
  module Ingenico::Connect::SDK
2
2
 
3
- # This error is raised when the request refers to a resource or object that is not found by the GlobalCollect platform.
3
+ # This error is raised when the request refers to a resource or object that is not found by the Ingenico ePayments platform.
4
4
  # The object referred to may not exist or it could have been removed recently.
5
5
  class ReferenceException < ApiException
6
6
 
7
7
  # Create a new ReferenceException.
8
8
  # @see ApiException#initialize
9
9
  def initialize(status_code, response_body, error_id, errors,
10
- message='the GlobalCollect platform returned a reference error response')
10
+ message='the Ingenico ePayments platform returned a reference error response')
11
11
  super(status_code, response_body, error_id, errors, message)
12
12
  end
13
13
  end
@@ -1,33 +1,33 @@
1
1
  module Ingenico::Connect::SDK
2
2
 
3
- # Exception used internally in the SDK to indicate an error response was received from the GlobalCollect platform.
3
+ # Exception used internally in the SDK to indicate an error response was received from the Ingenico ePayments platform.
4
4
  class ResponseException < RuntimeError
5
5
 
6
6
  def initialize(response)
7
- super('the GlobalCollect platform returned an error response')
7
+ super('the Ingenico ePayments platform returned an error response')
8
8
  @response = response
9
9
  end
10
10
 
11
- # {Ingenico::Connect::SDK::Response} object that was returned by the GlobalCollect platform
11
+ # {Ingenico::Connect::SDK::Response} object that was returned by the Ingenico ePayments platform
12
12
  attr_reader :response
13
13
 
14
- # HTTP status code that was returned by the GlobalCollect platform
14
+ # HTTP status code that was returned by the Ingenico ePayments platform
15
15
  def status_code
16
16
  @response.status_code
17
17
  end
18
18
 
19
- # string HTTP message body that was returned by the GlobalCollect platform
19
+ # string HTTP message body that was returned by the Ingenico ePayments platform
20
20
  def body
21
21
  @response.body
22
22
  end
23
23
 
24
- # List of {Ingenico::Connect::SDK::ResponseHeader} that represent the HTTP headers used in the response from the GlobalCollect platform
24
+ # List of {Ingenico::Connect::SDK::ResponseHeader} that represent the HTTP headers used in the response from the Ingenico ePayments platform
25
25
  def headers
26
26
  @response.headers
27
27
  end
28
28
 
29
29
  # Returns the {Ingenico::Connect::SDK::ResponseHeader} that corresponds to the given _header_name_
30
- # used in the HTTP response from the GlobalCollect platform, or *nil* if the header was not present in the response.
30
+ # used in the HTTP response from the Ingenico ePayments platform, or *nil* if the header was not present in the response.
31
31
  def get_header(header_name)
32
32
  @response.get_header(header_name)
33
33
  end