connect-sdk-ruby 1.12.0 → 1.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/connect-sdk-ruby.gemspec +1 -1
  3. data/examples/merchant/mandates/block_mandate_example.rb +22 -0
  4. data/examples/merchant/mandates/create_mandate_example.rb +66 -0
  5. data/examples/merchant/mandates/get_mandate_example.rb +22 -0
  6. data/examples/merchant/mandates/revoke_mandate_example.rb +22 -0
  7. data/examples/merchant/mandates/unblock_mandate_example.rb +22 -0
  8. data/examples/merchant/products/get_customer_details_example.rb +1 -1
  9. data/lib/ingenico/connect/sdk/domain/definitions/redirect_data_base.rb +38 -0
  10. data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +22 -0
  11. data/lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb +7 -0
  12. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb +70 -0
  13. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb +15 -0
  14. data/lib/ingenico/connect/sdk/domain/mandates/create_mandate_response.rb +46 -0
  15. data/lib/ingenico/connect/sdk/domain/mandates/get_mandate_response.rb +35 -0
  16. data/lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb +59 -0
  17. data/lib/ingenico/connect/sdk/domain/mandates/mandate_contact_details.rb +38 -0
  18. data/lib/ingenico/connect/sdk/domain/mandates/mandate_customer.rb +75 -0
  19. data/lib/ingenico/connect/sdk/domain/mandates/mandate_merchant_action.rb +42 -0
  20. data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_information.rb +42 -0
  21. data/lib/ingenico/connect/sdk/domain/mandates/mandate_personal_name.rb +38 -0
  22. data/lib/ingenico/connect/sdk/domain/mandates/mandate_redirect_data.rb +15 -0
  23. data/lib/ingenico/connect/sdk/domain/mandates/mandate_response.rb +63 -0
  24. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb +2 -9
  25. data/lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input_base.rb +31 -0
  26. data/lib/ingenico/connect/sdk/domain/payment/order.rb +11 -0
  27. data/lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb +31 -0
  28. data/lib/ingenico/connect/sdk/domain/payment/redirect_data.rb +2 -25
  29. data/lib/ingenico/connect/sdk/domain/payment/seller.rb +91 -0
  30. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb +2 -2
  31. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb +35 -0
  32. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb +11 -0
  33. data/lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb +42 -0
  34. data/lib/ingenico/connect/sdk/merchant/mandates/mandates_client.rb +221 -0
  35. data/lib/ingenico/connect/sdk/merchant/merchant_client.rb +9 -0
  36. data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
  37. data/lib/ingenico/connect/sdk/modules.rb +10 -0
  38. metadata +26 -2
@@ -5,6 +5,7 @@
5
5
  require 'ingenico/connect/sdk/api_resource'
6
6
  require 'ingenico/connect/sdk/merchant/captures/captures_client'
7
7
  require 'ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client'
8
+ require 'ingenico/connect/sdk/merchant/mandates/mandates_client'
8
9
  require 'ingenico/connect/sdk/merchant/payments/payments_client'
9
10
  require 'ingenico/connect/sdk/merchant/payouts/payouts_client'
10
11
  require 'ingenico/connect/sdk/merchant/productgroups/productgroups_client'
@@ -67,6 +68,14 @@ module Ingenico::Connect::SDK
67
68
  Ingenico::Connect::SDK::Merchant::Productgroups::ProductgroupsClient.new(self, nil)
68
69
  end
69
70
 
71
+ # Resource /{{merchantId}}/mandates
72
+ #
73
+ # Create, get and update mandates
74
+ # Returns:: {Ingenico::Connect::SDK::Merchant::Mandates::MandatesClient}
75
+ def mandates
76
+ Ingenico::Connect::SDK::Merchant::Mandates::MandatesClient.new(self, nil)
77
+ end
78
+
70
79
  # Resource /{{merchantId}}/refunds
71
80
  #
72
81
  # Create, cancel and approve refunds
@@ -5,7 +5,7 @@ module Ingenico::Connect::SDK
5
5
 
6
6
  # Manages metadata about the server using the SDK
7
7
  class MetaDataProvider
8
- @@SDK_VERSION = '1.12.0'
8
+ @@SDK_VERSION = '1.13.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
@@ -51,6 +51,16 @@ end
51
51
  module Ingenico::Connect::SDK::Domain::Capture
52
52
  end
53
53
 
54
+ # Contains the client used to access the mandate service.
55
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/mandates/
56
+ module Ingenico::Connect::SDK::Merchant::Mandates
57
+ end
58
+
59
+ # Contains data classes that are used in mandate services.
60
+ # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/mandates/
61
+ module Ingenico::Connect::SDK::Domain::Mandates
62
+ end
63
+
54
64
  # Contains the client used to access the payout service.
55
65
  # @see https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/ruby/payouts/
56
66
  module Ingenico::Connect::SDK::Merchant::Payouts
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.12.0
4
+ version: 1.13.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-10-31 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -125,6 +125,11 @@ files:
125
125
  - examples/merchant/example_configuration.yml
126
126
  - examples/merchant/hostedcheckouts/create_hosted_checkout_example.rb
127
127
  - examples/merchant/hostedcheckouts/get_hosted_checkout_example.rb
128
+ - examples/merchant/mandates/block_mandate_example.rb
129
+ - examples/merchant/mandates/create_mandate_example.rb
130
+ - examples/merchant/mandates/get_mandate_example.rb
131
+ - examples/merchant/mandates/revoke_mandate_example.rb
132
+ - examples/merchant/mandates/unblock_mandate_example.rb
128
133
  - examples/merchant/payments/approve_payment_example.rb
129
134
  - examples/merchant/payments/cancel_approval_payment_example.rb
130
135
  - examples/merchant/payments/cancel_payment_example.rb
@@ -220,6 +225,7 @@ files:
220
225
  - lib/ingenico/connect/sdk/domain/definitions/order_status_output.rb
221
226
  - lib/ingenico/connect/sdk/domain/definitions/payment_product_filter.rb
222
227
  - lib/ingenico/connect/sdk/domain/definitions/personal_name_base.rb
228
+ - lib/ingenico/connect/sdk/domain/definitions/redirect_data_base.rb
223
229
  - lib/ingenico/connect/sdk/domain/definitions/result_do_risk_assessment.rb
224
230
  - lib/ingenico/connect/sdk/domain/definitions/retail_decisions_cc_fraud_check_output.rb
225
231
  - lib/ingenico/connect/sdk/domain/definitions/validation_bank_account_check.rb
@@ -233,6 +239,18 @@ files:
233
239
  - lib/ingenico/connect/sdk/domain/hostedcheckout/get_hosted_checkout_response.rb
234
240
  - lib/ingenico/connect/sdk/domain/hostedcheckout/hosted_checkout_specific_input.rb
235
241
  - lib/ingenico/connect/sdk/domain/hostedcheckout/payment_product_filters_hosted_checkout.rb
242
+ - lib/ingenico/connect/sdk/domain/mandates/create_mandate_base.rb
243
+ - lib/ingenico/connect/sdk/domain/mandates/create_mandate_request.rb
244
+ - lib/ingenico/connect/sdk/domain/mandates/create_mandate_response.rb
245
+ - lib/ingenico/connect/sdk/domain/mandates/get_mandate_response.rb
246
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_address.rb
247
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_contact_details.rb
248
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_customer.rb
249
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_merchant_action.rb
250
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_personal_information.rb
251
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_personal_name.rb
252
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_redirect_data.rb
253
+ - lib/ingenico/connect/sdk/domain/mandates/mandate_response.rb
236
254
  - lib/ingenico/connect/sdk/domain/metadata/shopping_cart_extension.rb
237
255
  - lib/ingenico/connect/sdk/domain/payment/abstract_payment_method_specific_output.rb
238
256
  - lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb
@@ -271,6 +289,7 @@ files:
271
289
  - lib/ingenico/connect/sdk/domain/payment/customer.rb
272
290
  - lib/ingenico/connect/sdk/domain/payment/decrypted_payment_data.rb
273
291
  - lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input.rb
292
+ - lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_input_base.rb
274
293
  - lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_method_specific_output.rb
275
294
  - lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_input.rb
276
295
  - lib/ingenico/connect/sdk/domain/payment/e_invoice_payment_product9000_specific_output.rb
@@ -304,6 +323,7 @@ files:
304
323
  - lib/ingenico/connect/sdk/domain/payment/payment_creation_references.rb
305
324
  - lib/ingenico/connect/sdk/domain/payment/payment_error_response.rb
306
325
  - lib/ingenico/connect/sdk/domain/payment/payment_output.rb
326
+ - lib/ingenico/connect/sdk/domain/payment/payment_product771_specific_output.rb
307
327
  - lib/ingenico/connect/sdk/domain/payment/payment_product836_specific_output.rb
308
328
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_customer_account.rb
309
329
  - lib/ingenico/connect/sdk/domain/payment/payment_product840_specific_output.rb
@@ -329,8 +349,11 @@ files:
329
349
  - lib/ingenico/connect/sdk/domain/payment/refund_output.rb
330
350
  - lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_customer_account.rb
331
351
  - lib/ingenico/connect/sdk/domain/payment/refund_payment_product840_specific_output.rb
352
+ - lib/ingenico/connect/sdk/domain/payment/seller.rb
332
353
  - lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input.rb
354
+ - lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_input_base.rb
333
355
  - lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_method_specific_output.rb
356
+ - lib/ingenico/connect/sdk/domain/payment/sepa_direct_debit_payment_product771_specific_input.rb
334
357
  - lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb
335
358
  - lib/ingenico/connect/sdk/domain/payment/third_party_status_response.rb
336
359
  - lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb
@@ -456,6 +479,7 @@ files:
456
479
  - lib/ingenico/connect/sdk/marshaller_syntax_exception.rb
457
480
  - lib/ingenico/connect/sdk/merchant/captures/captures_client.rb
458
481
  - lib/ingenico/connect/sdk/merchant/hostedcheckouts/hostedcheckouts_client.rb
482
+ - lib/ingenico/connect/sdk/merchant/mandates/mandates_client.rb
459
483
  - lib/ingenico/connect/sdk/merchant/merchant_client.rb
460
484
  - lib/ingenico/connect/sdk/merchant/payments/find_payments_params.rb
461
485
  - lib/ingenico/connect/sdk/merchant/payments/payments_client.rb