connect-sdk-ruby 2.31.0 → 2.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f9cc67b441796020e9aa26d52bdd4d27e4151ad7ee0011929f623e10eb83ab5
4
- data.tar.gz: f67e1575cafad14f2ffebae9544d76bd0e2c5ced65f9ba0ba0903ad56d231abd
3
+ metadata.gz: 35442d99778068f63dfda48425c23a85923529039e1fb12ced75686f022b2cf3
4
+ data.tar.gz: ed46f2bce9bcf3c9a7bb0cf1f2ce07be3553bb5bd21d40bfbb5df5db2597c91f
5
5
  SHA512:
6
- metadata.gz: 8347f98939d41bab6d3b17023f81ec5813d0cb272ab938dae81541de458a5ec5210e0bd83a085b432e2d30692c81cab220f43eca8042b433e37da08591cfa302
7
- data.tar.gz: af0b2d7c03d66496bc3335c1bc7785f59a2b3054fe8459f53d93372884af9ed29d12dfdc5dcd0697692d7c6705575020cba08443bd51ab7368b1a815bf717db4
6
+ metadata.gz: 4d72cccf7f6ed6f8fc9be3107fb137f3c6d235892d09d4d27817a7497b77184761671885f5ade9f816cc77ab53f0c6436a3f706eb409291413e11dafad26966b
7
+ data.tar.gz: de104226f9de11922e64ccba1e0cd5fc6df1379aee007e4384efb4b4fa1ff2a9bed6b7ff320ecd7c1ca9f699780a7c1c45916b85f0a5417095e4cc90ef2ed366
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'connect-sdk-ruby'
3
- spec.version = '2.31.0'
3
+ spec.version = '2.32.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}
@@ -12,11 +12,13 @@ module Ingenico::Connect::SDK
12
12
  # @attr [Ingenico::Connect::SDK::Domain::Definitions::Address] address
13
13
  # @attr [String] channel_code
14
14
  # @attr [String] description
15
+ # @attr [String] external_reference_id
15
16
  # @attr [String] geocode
16
17
  # @attr [String] id
17
18
  # @attr [String] invoice_number
18
19
  # @attr [String] mcc
19
20
  # @attr [String] name
21
+ # @attr [String] phone_number
20
22
  # @attr [String] type
21
23
  class Seller < Ingenico::Connect::SDK::DataObject
22
24
 
@@ -26,6 +28,8 @@ module Ingenico::Connect::SDK
26
28
 
27
29
  attr_accessor :description
28
30
 
31
+ attr_accessor :external_reference_id
32
+
29
33
  attr_accessor :geocode
30
34
 
31
35
  attr_accessor :id
@@ -36,6 +40,8 @@ module Ingenico::Connect::SDK
36
40
 
37
41
  attr_accessor :name
38
42
 
43
+ attr_accessor :phone_number
44
+
39
45
  attr_accessor :type
40
46
 
41
47
  # @return (Hash)
@@ -44,11 +50,13 @@ module Ingenico::Connect::SDK
44
50
  hash['address'] = @address.to_h unless @address.nil?
45
51
  hash['channelCode'] = @channel_code unless @channel_code.nil?
46
52
  hash['description'] = @description unless @description.nil?
53
+ hash['externalReferenceId'] = @external_reference_id unless @external_reference_id.nil?
47
54
  hash['geocode'] = @geocode unless @geocode.nil?
48
55
  hash['id'] = @id unless @id.nil?
49
56
  hash['invoiceNumber'] = @invoice_number unless @invoice_number.nil?
50
57
  hash['mcc'] = @mcc unless @mcc.nil?
51
58
  hash['name'] = @name unless @name.nil?
59
+ hash['phoneNumber'] = @phone_number unless @phone_number.nil?
52
60
  hash['type'] = @type unless @type.nil?
53
61
  hash
54
62
  end
@@ -65,6 +73,9 @@ module Ingenico::Connect::SDK
65
73
  if hash.has_key? 'description'
66
74
  @description = hash['description']
67
75
  end
76
+ if hash.has_key? 'externalReferenceId'
77
+ @external_reference_id = hash['externalReferenceId']
78
+ end
68
79
  if hash.has_key? 'geocode'
69
80
  @geocode = hash['geocode']
70
81
  end
@@ -80,6 +91,9 @@ module Ingenico::Connect::SDK
80
91
  if hash.has_key? 'name'
81
92
  @name = hash['name']
82
93
  end
94
+ if hash.has_key? 'phoneNumber'
95
+ @phone_number = hash['phoneNumber']
96
+ end
83
97
  if hash.has_key? 'type'
84
98
  @type = hash['type']
85
99
  end
@@ -37,6 +37,7 @@ module Ingenico::Connect::SDK
37
37
  # @attr [Ingenico::Connect::SDK::Domain::Product::PaymentProduct320SpecificData] payment_product320_specific_data
38
38
  # @attr [Ingenico::Connect::SDK::Domain::Product::PaymentProduct863SpecificData] payment_product863_specific_data
39
39
  # @attr [String] payment_product_group
40
+ # @attr [true/false] supports_mandates
40
41
  # @attr [true/false] uses_redirection_to3rd_party
41
42
  class PaymentProduct < Ingenico::Connect::SDK::DataObject
42
43
 
@@ -84,6 +85,8 @@ module Ingenico::Connect::SDK
84
85
 
85
86
  attr_accessor :payment_product_group
86
87
 
88
+ attr_accessor :supports_mandates
89
+
87
90
  attr_accessor :uses_redirection_to3rd_party
88
91
 
89
92
  # @return (Hash)
@@ -111,6 +114,7 @@ module Ingenico::Connect::SDK
111
114
  hash['paymentProduct320SpecificData'] = @payment_product320_specific_data.to_h unless @payment_product320_specific_data.nil?
112
115
  hash['paymentProduct863SpecificData'] = @payment_product863_specific_data.to_h unless @payment_product863_specific_data.nil?
113
116
  hash['paymentProductGroup'] = @payment_product_group unless @payment_product_group.nil?
117
+ hash['supportsMandates'] = @supports_mandates unless @supports_mandates.nil?
114
118
  hash['usesRedirectionTo3rdParty'] = @uses_redirection_to3rd_party unless @uses_redirection_to3rd_party.nil?
115
119
  hash
116
120
  end
@@ -196,6 +200,9 @@ module Ingenico::Connect::SDK
196
200
  if hash.has_key? 'paymentProductGroup'
197
201
  @payment_product_group = hash['paymentProductGroup']
198
202
  end
203
+ if hash.has_key? 'supportsMandates'
204
+ @supports_mandates = hash['supportsMandates']
205
+ end
199
206
  if hash.has_key? 'usesRedirectionTo3rdParty'
200
207
  @uses_redirection_to3rd_party = hash['usesRedirectionTo3rdParty']
201
208
  end
@@ -7,7 +7,7 @@ module Ingenico::Connect::SDK
7
7
  #
8
8
  # @attr_reader [Array<Ingenico::Connect::SDK::RequestHeader>] meta_data_headers List of headers that should be used in all requests.
9
9
  class MetaDataProvider
10
- @@SDK_VERSION = '2.31.0'
10
+ @@SDK_VERSION = '2.32.0'
11
11
  @@SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'
12
12
  @@PROHIBITED_HEADERS = [@@SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key',
13
13
  '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: 2.31.0
4
+ version: 2.32.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: 2022-05-31 00:00:00.000000000 Z
11
+ date: 2022-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient