connect-sdk-ruby 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1abe70eaaa4ac1e61b2ce2e587502be22dedf77a
4
- data.tar.gz: 85a46a7e57fdc34776c370bb03c7f414c448806d
3
+ metadata.gz: fba1ca29f08349f337b79df7f19d649718b59ee8
4
+ data.tar.gz: 5155d61de5a0243435a1f650d87911444c20c804
5
5
  SHA512:
6
- metadata.gz: 47f4321bd49e3fc669628bd28577d0ff194986a5842821d5aa9eb0c29d891d1aa3c8de41657dd769ba6454b004a20f842faa1c7abcb6d0d8c63859cdc13f3ea6
7
- data.tar.gz: 77b74154a76f5675db68a02ad7bae2f40fd5717c3f06ffb868e3c5aa172821a73fe0975222367075ff0c2a79c16d84e3653848e65b11644df93df83a5b66a5f6
6
+ metadata.gz: 3ff49a4365777f40328f756f788419123bcfdcb8a47c165bc77447664227d7b8f0b9506313b9739f6769b183b4236fdcd447cab41cef3df648bba8b59879cea2
7
+ data.tar.gz: 1c064f78ad84bba6ddf51022f193f35b1e8aea2c8ff0de3457cdadc305357532923bc31cc4cb601984d5a8b61f55218d0386fcb82ac167343dadb697acd47ef7
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '1.13.0'
3
+ spec.version = '1.14.0'
4
4
  spec.authors = ['Ingenico ePayments']
5
5
  spec.email = ['github@epay.ingenico.com']
6
6
  spec.summary = %q{SDK to communicate with the Ingenico ePayments platform using the Ingenico Connect Server API}
@@ -0,0 +1,15 @@
1
+ #
2
+ # This class was auto-generated from the API references found at
3
+ # https://epayments-api.developer-ingenico.com/s2sapi/v1/
4
+ #
5
+ require 'ingenico/connect/sdk/domain/payment/refund_method_specific_output'
6
+
7
+ module Ingenico::Connect::SDK
8
+ module Domain
9
+ module Payment
10
+
11
+ class RefundEInvoiceMethodSpecificOutput < Ingenico::Connect::SDK::Domain::Payment::RefundMethodSpecificOutput
12
+ end
13
+ end
14
+ end
15
+ end
@@ -5,6 +5,7 @@
5
5
  require 'ingenico/connect/sdk/domain/payment/order_output'
6
6
  require 'ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output'
7
7
  require 'ingenico/connect/sdk/domain/payment/refund_card_method_specific_output'
8
+ require 'ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output'
8
9
  require 'ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output'
9
10
  require 'ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output'
10
11
 
@@ -23,6 +24,9 @@ module Ingenico::Connect::SDK
23
24
  # {Ingenico::Connect::SDK::Domain::Payment::RefundCardMethodSpecificOutput}
24
25
  attr_accessor :card_refund_method_specific_output
25
26
 
27
+ # {Ingenico::Connect::SDK::Domain::Payment::RefundEInvoiceMethodSpecificOutput}
28
+ attr_accessor :e_invoice_refund_method_specific_output
29
+
26
30
  # {Ingenico::Connect::SDK::Domain::Payment::RefundEWalletMethodSpecificOutput}
27
31
  attr_accessor :e_wallet_refund_method_specific_output
28
32
 
@@ -37,6 +41,7 @@ module Ingenico::Connect::SDK
37
41
  add_to_hash(hash, 'amountPaid', @amount_paid)
38
42
  add_to_hash(hash, 'bankRefundMethodSpecificOutput', @bank_refund_method_specific_output)
39
43
  add_to_hash(hash, 'cardRefundMethodSpecificOutput', @card_refund_method_specific_output)
44
+ add_to_hash(hash, 'eInvoiceRefundMethodSpecificOutput', @e_invoice_refund_method_specific_output)
40
45
  add_to_hash(hash, 'eWalletRefundMethodSpecificOutput', @e_wallet_refund_method_specific_output)
41
46
  add_to_hash(hash, 'mobileRefundMethodSpecificOutput', @mobile_refund_method_specific_output)
42
47
  add_to_hash(hash, 'paymentMethod', @payment_method)
@@ -60,6 +65,12 @@ module Ingenico::Connect::SDK
60
65
  end
61
66
  @card_refund_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::RefundCardMethodSpecificOutput.new_from_hash(hash['cardRefundMethodSpecificOutput'])
62
67
  end
68
+ if hash.has_key?('eInvoiceRefundMethodSpecificOutput')
69
+ if !(hash['eInvoiceRefundMethodSpecificOutput'].is_a? Hash)
70
+ raise TypeError, "value '%s' is not a Hash" % [hash['eInvoiceRefundMethodSpecificOutput']]
71
+ end
72
+ @e_invoice_refund_method_specific_output = Ingenico::Connect::SDK::Domain::Payment::RefundEInvoiceMethodSpecificOutput.new_from_hash(hash['eInvoiceRefundMethodSpecificOutput'])
73
+ end
63
74
  if hash.has_key?('eWalletRefundMethodSpecificOutput')
64
75
  if !(hash['eWalletRefundMethodSpecificOutput'].is_a? Hash)
65
76
  raise TypeError, "value '%s' is not a Hash" % [hash['eWalletRefundMethodSpecificOutput']]
@@ -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.13.0'
8
+ @@SDK_VERSION = '1.14.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
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.13.0
4
+ version: 1.14.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-11-09 00:00:00.000000000 Z
11
+ date: 2017-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient
@@ -343,6 +343,7 @@ files:
343
343
  - lib/ingenico/connect/sdk/domain/payment/redirect_payment_product882_specific_input.rb
344
344
  - lib/ingenico/connect/sdk/domain/payment/refund_bank_method_specific_output.rb
345
345
  - lib/ingenico/connect/sdk/domain/payment/refund_card_method_specific_output.rb
346
+ - lib/ingenico/connect/sdk/domain/payment/refund_e_invoice_method_specific_output.rb
346
347
  - lib/ingenico/connect/sdk/domain/payment/refund_e_wallet_method_specific_output.rb
347
348
  - lib/ingenico/connect/sdk/domain/payment/refund_method_specific_output.rb
348
349
  - lib/ingenico/connect/sdk/domain/payment/refund_mobile_method_specific_output.rb