onlinepayments-sdk-ruby 7.4.1 → 8.0.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.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
  3. data/lib/onlinepayments/sdk/domain/airline_flight_leg.rb +7 -0
  4. data/lib/onlinepayments/sdk/domain/airline_passenger.rb +14 -0
  5. data/lib/onlinepayments/sdk/domain/auto_capture.rb +30 -0
  6. data/lib/onlinepayments/sdk/domain/card_bin_details.rb +14 -0
  7. data/lib/onlinepayments/sdk/domain/card_essentials.rb +14 -0
  8. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
  9. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +9 -0
  10. data/lib/onlinepayments/sdk/domain/create_hosted_fields_session_request.rb +11 -0
  11. data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +14 -0
  12. data/lib/onlinepayments/sdk/domain/iin_detail.rb +14 -0
  13. data/lib/onlinepayments/sdk/domain/line_item_detail.rb +0 -7
  14. data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
  15. data/lib/onlinepayments/sdk/domain/order.rb +7 -0
  16. data/lib/onlinepayments/sdk/domain/order_line_details.rb +7 -0
  17. data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
  18. data/lib/onlinepayments/sdk/domain/payment_output.rb +0 -9
  19. data/lib/onlinepayments/sdk/domain/payment_product5412.rb +44 -0
  20. data/lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb +30 -0
  21. data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
  22. data/lib/onlinepayments/sdk/domain/payout_card_payment_method_specific_output.rb +55 -0
  23. data/lib/onlinepayments/sdk/domain/payout_output.rb +27 -0
  24. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +18 -0
  25. data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +9 -0
  26. data/lib/onlinepayments/sdk/domain/redirect_payment_product5301_specific_input.rb +30 -0
  27. data/lib/onlinepayments/sdk/domain/redirect_payment_product5407_specific_input.rb +32 -0
  28. data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
  29. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +4 -0
  30. data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +4 -0
  31. data/onlinepayments-sdk-ruby.gemspec +1 -1
  32. metadata +7 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93b6f25e1127bae1954090272d755ad7029c6a557908bc59110bc78930d1f2ea
4
- data.tar.gz: 75180a9a49109699f4aa10a01e07de49e5fe8f7e9daf942c63ae4f2c024ff734
3
+ metadata.gz: 152118c2725ab0df3bf1676e6ac3b14f1bafe77bc606baa8890419c72ba85667
4
+ data.tar.gz: 6071bc013745c29a83a697010da0722c708bfb28acbb797aecc4d617b6ccd4cb
5
5
  SHA512:
6
- metadata.gz: c3bef9c13d7fed5205c25d22db07d948e3ed39f6a9f430cbbe691adb6823e2a879dc1e65a5b5c1ed25090c9c71adced560292161d4478e8d90b155f6b752e713
7
- data.tar.gz: 71175493cc9a7e9a1d742af3e3ab7b4a7406b9686fc06db08b2feae4b38dd137bee65d1a899c4496e8f07892ecfbebb5ce87f083108cf7aa73d1951c89d2ca96
6
+ metadata.gz: 8139b9ab0ab3b23de850b7303c15830b9b87ba5c440ad3f542f1d6a70b9e817552f50b6c27376ce7e88bb8e2becf2c04f8da45d7e4a9e84715413ffc836a0d71
7
+ data.tar.gz: 703dbe9c166e73ac8bca6b1bf5de4042243961925565d7724d731fd3b70be049e404baa731960fea16b1a980f797d2a56cc67fef04e162bb847cea4dc99192c2
@@ -13,7 +13,7 @@ module OnlinePayments
13
13
  class MetadataProvider
14
14
  private
15
15
 
16
- SDK_VERSION = '7.4.1'.freeze
16
+ SDK_VERSION = '8.0.0'.freeze
17
17
  SERVER_META_INFO_HEADER = 'X-GCS-ServerMetaInfo'.freeze
18
18
  PROHIBITED_HEADERS = [SERVER_META_INFO_HEADER, 'X-GCS-Idempotence-Key', 'Date', 'Content-Type', 'Authorization'].sort!.freeze
19
19
  CHARSET = 'utf-8'.freeze
@@ -19,6 +19,7 @@ module OnlinePayments
19
19
  # @attr [String] fare
20
20
  # @attr [String] fare_basis
21
21
  # @attr [Integer] fee
22
+ # @attr [String] flight_code
22
23
  # @attr [String] flight_number
23
24
  # @attr [Integer] leg_fare
24
25
  # @attr [Integer] number
@@ -55,6 +56,8 @@ module OnlinePayments
55
56
 
56
57
  attr_accessor :fee
57
58
 
59
+ attr_accessor :flight_code
60
+
58
61
  attr_accessor :flight_number
59
62
 
60
63
  attr_accessor :leg_fare
@@ -86,6 +89,7 @@ module OnlinePayments
86
89
  hash['fare'] = @fare unless @fare.nil?
87
90
  hash['fareBasis'] = @fare_basis unless @fare_basis.nil?
88
91
  hash['fee'] = @fee unless @fee.nil?
92
+ hash['flightCode'] = @flight_code unless @flight_code.nil?
89
93
  hash['flightNumber'] = @flight_number unless @flight_number.nil?
90
94
  hash['legFare'] = @leg_fare unless @leg_fare.nil?
91
95
  hash['number'] = @number unless @number.nil?
@@ -137,6 +141,9 @@ module OnlinePayments
137
141
  if hash.has_key? 'fee'
138
142
  @fee = hash['fee']
139
143
  end
144
+ if hash.has_key? 'flightCode'
145
+ @flight_code = hash['flightCode']
146
+ end
140
147
  if hash.has_key? 'flightNumber'
141
148
  @flight_number = hash['flightNumber']
142
149
  end
@@ -7,6 +7,8 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [String] airline_loyalty_status
10
+ # @attr [String] country_code
11
+ # @attr [String] date_of_birth
10
12
  # @attr [String] first_name
11
13
  # @attr [String] passenger_type
12
14
  # @attr [String] surname
@@ -16,6 +18,10 @@ module OnlinePayments
16
18
 
17
19
  attr_accessor :airline_loyalty_status
18
20
 
21
+ attr_accessor :country_code
22
+
23
+ attr_accessor :date_of_birth
24
+
19
25
  attr_accessor :first_name
20
26
 
21
27
  attr_accessor :passenger_type
@@ -31,6 +37,8 @@ module OnlinePayments
31
37
  def to_h
32
38
  hash = super
33
39
  hash['airlineLoyaltyStatus'] = @airline_loyalty_status unless @airline_loyalty_status.nil?
40
+ hash['countryCode'] = @country_code unless @country_code.nil?
41
+ hash['dateOfBirth'] = @date_of_birth unless @date_of_birth.nil?
34
42
  hash['firstName'] = @first_name unless @first_name.nil?
35
43
  hash['passengerType'] = @passenger_type unless @passenger_type.nil?
36
44
  hash['surname'] = @surname unless @surname.nil?
@@ -44,6 +52,12 @@ module OnlinePayments
44
52
  if hash.has_key? 'airlineLoyaltyStatus'
45
53
  @airline_loyalty_status = hash['airlineLoyaltyStatus']
46
54
  end
55
+ if hash.has_key? 'countryCode'
56
+ @country_code = hash['countryCode']
57
+ end
58
+ if hash.has_key? 'dateOfBirth'
59
+ @date_of_birth = hash['dateOfBirth']
60
+ end
47
61
  if hash.has_key? 'firstName'
48
62
  @first_name = hash['firstName']
49
63
  end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [Integer] delay_in_minutes
10
+ class AutoCapture < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :delay_in_minutes
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['delayInMinutes'] = @delay_in_minutes unless @delay_in_minutes.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'delayInMinutes'
24
+ @delay_in_minutes = hash['delayInMinutes']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -20,6 +20,8 @@ module OnlinePayments
20
20
  # @attr [String] country_code
21
21
  # @attr [String] issuer_code
22
22
  # @attr [String] issuer_name
23
+ # @attr [String] issuer_principal_member_code
24
+ # @attr [String] issuer_principal_member_name
23
25
  # @attr [String] issuer_region_code
24
26
  # @attr [String] issuing_country_code
25
27
  # @attr [Integer] pan_length_max
@@ -52,6 +54,10 @@ module OnlinePayments
52
54
 
53
55
  attr_accessor :issuer_name
54
56
 
57
+ attr_accessor :issuer_principal_member_code
58
+
59
+ attr_accessor :issuer_principal_member_name
60
+
55
61
  attr_accessor :issuer_region_code
56
62
 
57
63
  attr_accessor :issuing_country_code
@@ -79,6 +85,8 @@ module OnlinePayments
79
85
  hash['countryCode'] = @country_code unless @country_code.nil?
80
86
  hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
81
87
  hash['issuerName'] = @issuer_name unless @issuer_name.nil?
88
+ hash['issuerPrincipalMemberCode'] = @issuer_principal_member_code unless @issuer_principal_member_code.nil?
89
+ hash['issuerPrincipalMemberName'] = @issuer_principal_member_name unless @issuer_principal_member_name.nil?
82
90
  hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
83
91
  hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
84
92
  hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
@@ -126,6 +134,12 @@ module OnlinePayments
126
134
  if hash.has_key? 'issuerName'
127
135
  @issuer_name = hash['issuerName']
128
136
  end
137
+ if hash.has_key? 'issuerPrincipalMemberCode'
138
+ @issuer_principal_member_code = hash['issuerPrincipalMemberCode']
139
+ end
140
+ if hash.has_key? 'issuerPrincipalMemberName'
141
+ @issuer_principal_member_name = hash['issuerPrincipalMemberName']
142
+ end
129
143
  if hash.has_key? 'issuerRegionCode'
130
144
  @issuer_region_code = hash['issuerRegionCode']
131
145
  end
@@ -23,6 +23,8 @@ module OnlinePayments
23
23
  # @attr [String] expiry_date
24
24
  # @attr [String] issuer_code
25
25
  # @attr [String] issuer_name
26
+ # @attr [String] issuer_principal_member_code
27
+ # @attr [String] issuer_principal_member_name
26
28
  # @attr [String] issuer_region_code
27
29
  # @attr [String] issuing_country_code
28
30
  # @attr [Integer] pan_length_max
@@ -61,6 +63,10 @@ module OnlinePayments
61
63
 
62
64
  attr_accessor :issuer_name
63
65
 
66
+ attr_accessor :issuer_principal_member_code
67
+
68
+ attr_accessor :issuer_principal_member_name
69
+
64
70
  attr_accessor :issuer_region_code
65
71
 
66
72
  attr_accessor :issuing_country_code
@@ -91,6 +97,8 @@ module OnlinePayments
91
97
  hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
92
98
  hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
93
99
  hash['issuerName'] = @issuer_name unless @issuer_name.nil?
100
+ hash['issuerPrincipalMemberCode'] = @issuer_principal_member_code unless @issuer_principal_member_code.nil?
101
+ hash['issuerPrincipalMemberName'] = @issuer_principal_member_name unless @issuer_principal_member_name.nil?
94
102
  hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
95
103
  hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
96
104
  hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
@@ -147,6 +155,12 @@ module OnlinePayments
147
155
  if hash.has_key? 'issuerName'
148
156
  @issuer_name = hash['issuerName']
149
157
  end
158
+ if hash.has_key? 'issuerPrincipalMemberCode'
159
+ @issuer_principal_member_code = hash['issuerPrincipalMemberCode']
160
+ end
161
+ if hash.has_key? 'issuerPrincipalMemberName'
162
+ @issuer_principal_member_name = hash['issuerPrincipalMemberName']
163
+ end
150
164
  if hash.has_key? 'issuerRegionCode'
151
165
  @issuer_region_code = hash['issuerRegionCode']
152
166
  end
@@ -1,6 +1,7 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
+ require 'onlinepayments/sdk/domain/auto_capture'
4
5
  require 'onlinepayments/sdk/domain/card'
5
6
  require 'onlinepayments/sdk/domain/card_recurrence_details'
6
7
  require 'onlinepayments/sdk/domain/currency_conversion_input'
@@ -20,6 +21,7 @@ module OnlinePayments
20
21
  module Domain
21
22
  # @attr [true/false] allow_dynamic_linking
22
23
  # @attr [String] authorization_mode
24
+ # @attr [OnlinePayments::SDK::Domain::AutoCapture] auto_capture
23
25
  # @attr [OnlinePayments::SDK::Domain::Card] card
24
26
  # @attr [String] card_on_file_recurring_expiration
25
27
  # @attr [String] card_on_file_recurring_frequency
@@ -52,6 +54,8 @@ module OnlinePayments
52
54
 
53
55
  attr_accessor :authorization_mode
54
56
 
57
+ attr_accessor :auto_capture
58
+
55
59
  attr_accessor :card
56
60
 
57
61
  attr_accessor :card_on_file_recurring_expiration
@@ -110,6 +114,7 @@ module OnlinePayments
110
114
  hash = super
111
115
  hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
112
116
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
117
+ hash['autoCapture'] = @auto_capture.to_h unless @auto_capture.nil?
113
118
  hash['card'] = @card.to_h unless @card.nil?
114
119
  hash['cardOnFileRecurringExpiration'] = @card_on_file_recurring_expiration unless @card_on_file_recurring_expiration.nil?
115
120
  hash['cardOnFileRecurringFrequency'] = @card_on_file_recurring_frequency unless @card_on_file_recurring_frequency.nil?
@@ -147,6 +152,10 @@ module OnlinePayments
147
152
  if hash.has_key? 'authorizationMode'
148
153
  @authorization_mode = hash['authorizationMode']
149
154
  end
155
+ if hash.has_key? 'autoCapture'
156
+ raise TypeError, "value '%s' is not a Hash" % [hash['autoCapture']] unless hash['autoCapture'].is_a? Hash
157
+ @auto_capture = OnlinePayments::SDK::Domain::AutoCapture.new_from_hash(hash['autoCapture'])
158
+ end
150
159
  if hash.has_key? 'card'
151
160
  raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
152
161
  @card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card'])
@@ -1,6 +1,7 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
+ require 'onlinepayments/sdk/domain/auto_capture'
4
5
  require 'onlinepayments/sdk/domain/card_recurrence_details'
5
6
  require 'onlinepayments/sdk/domain/currency_conversion_specific_input'
6
7
  require 'onlinepayments/sdk/domain/data_object'
@@ -19,6 +20,7 @@ module OnlinePayments
19
20
  module Domain
20
21
  # @attr [true/false] allow_dynamic_linking
21
22
  # @attr [String] authorization_mode
23
+ # @attr [OnlinePayments::SDK::Domain::AutoCapture] auto_capture
22
24
  # @attr [OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput] currency_conversion_specific_input
23
25
  # @attr [String] initial_scheme_transaction_id
24
26
  # @attr [OnlinePayments::SDK::Domain::MarketPlace] market_place
@@ -43,6 +45,8 @@ module OnlinePayments
43
45
 
44
46
  attr_accessor :authorization_mode
45
47
 
48
+ attr_accessor :auto_capture
49
+
46
50
  attr_accessor :currency_conversion_specific_input
47
51
 
48
52
  attr_accessor :initial_scheme_transaction_id
@@ -84,6 +88,7 @@ module OnlinePayments
84
88
  hash = super
85
89
  hash['allowDynamicLinking'] = @allow_dynamic_linking unless @allow_dynamic_linking.nil?
86
90
  hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
91
+ hash['autoCapture'] = @auto_capture.to_h unless @auto_capture.nil?
87
92
  hash['currencyConversionSpecificInput'] = @currency_conversion_specific_input.to_h unless @currency_conversion_specific_input.nil?
88
93
  hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
89
94
  hash['marketPlace'] = @market_place.to_h unless @market_place.nil?
@@ -113,6 +118,10 @@ module OnlinePayments
113
118
  if hash.has_key? 'authorizationMode'
114
119
  @authorization_mode = hash['authorizationMode']
115
120
  end
121
+ if hash.has_key? 'autoCapture'
122
+ raise TypeError, "value '%s' is not a Hash" % [hash['autoCapture']] unless hash['autoCapture'].is_a? Hash
123
+ @auto_capture = OnlinePayments::SDK::Domain::AutoCapture.new_from_hash(hash['autoCapture'])
124
+ end
116
125
  if hash.has_key? 'currencyConversionSpecificInput'
117
126
  raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversionSpecificInput']] unless hash['currencyConversionSpecificInput'].is_a? Hash
118
127
  @currency_conversion_specific_input = OnlinePayments::SDK::Domain::CurrencyConversionSpecificInput.new_from_hash(hash['currencyConversionSpecificInput'])
@@ -7,14 +7,18 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [String] locale
10
+ # @attr [Array<String>] tokens
10
11
  class CreateHostedFieldsSessionRequest < OnlinePayments::SDK::Domain::DataObject
11
12
 
12
13
  attr_accessor :locale
13
14
 
15
+ attr_accessor :tokens
16
+
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
17
20
  hash['locale'] = @locale unless @locale.nil?
21
+ hash['tokens'] = @tokens unless @tokens.nil?
18
22
  hash
19
23
  end
20
24
 
@@ -23,6 +27,13 @@ module OnlinePayments
23
27
  if hash.has_key? 'locale'
24
28
  @locale = hash['locale']
25
29
  end
30
+ if hash.has_key? 'tokens'
31
+ raise TypeError, "value '%s' is not an Array" % [hash['tokens']] unless hash['tokens'].is_a? Array
32
+ @tokens = []
33
+ hash['tokens'].each do |e|
34
+ @tokens << e
35
+ end
36
+ end
26
37
  end
27
38
  end
28
39
  end
@@ -23,6 +23,8 @@ module OnlinePayments
23
23
  # @attr [true/false] is_allowed_in_context
24
24
  # @attr [String] issuer_code
25
25
  # @attr [String] issuer_name
26
+ # @attr [String] issuer_principal_member_code
27
+ # @attr [String] issuer_principal_member_name
26
28
  # @attr [String] issuer_region_code
27
29
  # @attr [String] issuing_country_code
28
30
  # @attr [Integer] pan_length_max
@@ -60,6 +62,10 @@ module OnlinePayments
60
62
 
61
63
  attr_accessor :issuer_name
62
64
 
65
+ attr_accessor :issuer_principal_member_code
66
+
67
+ attr_accessor :issuer_principal_member_name
68
+
63
69
  attr_accessor :issuer_region_code
64
70
 
65
71
  attr_accessor :issuing_country_code
@@ -91,6 +97,8 @@ module OnlinePayments
91
97
  hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
92
98
  hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
93
99
  hash['issuerName'] = @issuer_name unless @issuer_name.nil?
100
+ hash['issuerPrincipalMemberCode'] = @issuer_principal_member_code unless @issuer_principal_member_code.nil?
101
+ hash['issuerPrincipalMemberName'] = @issuer_principal_member_name unless @issuer_principal_member_name.nil?
94
102
  hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
95
103
  hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
96
104
  hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
@@ -149,6 +157,12 @@ module OnlinePayments
149
157
  if hash.has_key? 'issuerName'
150
158
  @issuer_name = hash['issuerName']
151
159
  end
160
+ if hash.has_key? 'issuerPrincipalMemberCode'
161
+ @issuer_principal_member_code = hash['issuerPrincipalMemberCode']
162
+ end
163
+ if hash.has_key? 'issuerPrincipalMemberName'
164
+ @issuer_principal_member_name = hash['issuerPrincipalMemberName']
165
+ end
152
166
  if hash.has_key? 'issuerRegionCode'
153
167
  @issuer_region_code = hash['issuerRegionCode']
154
168
  end
@@ -21,6 +21,8 @@ module OnlinePayments
21
21
  # @attr [true/false] is_allowed_in_context
22
22
  # @attr [String] issuer_code
23
23
  # @attr [String] issuer_name
24
+ # @attr [String] issuer_principal_member_code
25
+ # @attr [String] issuer_principal_member_name
24
26
  # @attr [String] issuer_region_code
25
27
  # @attr [String] issuing_country_code
26
28
  # @attr [Integer] pan_length_max
@@ -56,6 +58,10 @@ module OnlinePayments
56
58
 
57
59
  attr_accessor :issuer_name
58
60
 
61
+ attr_accessor :issuer_principal_member_code
62
+
63
+ attr_accessor :issuer_principal_member_name
64
+
59
65
  attr_accessor :issuer_region_code
60
66
 
61
67
  attr_accessor :issuing_country_code
@@ -86,6 +92,8 @@ module OnlinePayments
86
92
  hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
87
93
  hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
88
94
  hash['issuerName'] = @issuer_name unless @issuer_name.nil?
95
+ hash['issuerPrincipalMemberCode'] = @issuer_principal_member_code unless @issuer_principal_member_code.nil?
96
+ hash['issuerPrincipalMemberName'] = @issuer_principal_member_name unless @issuer_principal_member_name.nil?
89
97
  hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
90
98
  hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
91
99
  hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
@@ -137,6 +145,12 @@ module OnlinePayments
137
145
  if hash.has_key? 'issuerName'
138
146
  @issuer_name = hash['issuerName']
139
147
  end
148
+ if hash.has_key? 'issuerPrincipalMemberCode'
149
+ @issuer_principal_member_code = hash['issuerPrincipalMemberCode']
150
+ end
151
+ if hash.has_key? 'issuerPrincipalMemberName'
152
+ @issuer_principal_member_name = hash['issuerPrincipalMemberName']
153
+ end
140
154
  if hash.has_key? 'issuerRegionCode'
141
155
  @issuer_region_code = hash['issuerRegionCode']
142
156
  end
@@ -9,7 +9,6 @@ module OnlinePayments
9
9
  # @attr [Integer] discount_amount
10
10
  # @attr [String] line_item_id
11
11
  # @attr [Integer] quantity
12
- # @attr [Integer] tax_amount
13
12
  class LineItemDetail < OnlinePayments::SDK::Domain::DataObject
14
13
 
15
14
  attr_accessor :discount_amount
@@ -18,15 +17,12 @@ module OnlinePayments
18
17
 
19
18
  attr_accessor :quantity
20
19
 
21
- attr_accessor :tax_amount
22
-
23
20
  # @return (Hash)
24
21
  def to_h
25
22
  hash = super
26
23
  hash['discountAmount'] = @discount_amount unless @discount_amount.nil?
27
24
  hash['lineItemId'] = @line_item_id unless @line_item_id.nil?
28
25
  hash['quantity'] = @quantity unless @quantity.nil?
29
- hash['taxAmount'] = @tax_amount unless @tax_amount.nil?
30
26
  hash
31
27
  end
32
28
 
@@ -41,9 +37,6 @@ module OnlinePayments
41
37
  if hash.has_key? 'quantity'
42
38
  @quantity = hash['quantity']
43
39
  end
44
- if hash.has_key? 'taxAmount'
45
- @tax_amount = hash['taxAmount']
46
- end
47
40
  end
48
41
  end
49
42
  end
@@ -8,17 +8,21 @@ module OnlinePayments
8
8
  module Domain
9
9
  # @attr [String] merchant_reference
10
10
  # @attr [String] operation_group_reference
11
+ # @attr [String] structured_creditor_reference
11
12
  class OperationPaymentReferences < OnlinePayments::SDK::Domain::DataObject
12
13
 
13
14
  attr_accessor :merchant_reference
14
15
 
15
16
  attr_accessor :operation_group_reference
16
17
 
18
+ attr_accessor :structured_creditor_reference
19
+
17
20
  # @return (Hash)
18
21
  def to_h
19
22
  hash = super
20
23
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
21
24
  hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
25
+ hash['structuredCreditorReference'] = @structured_creditor_reference unless @structured_creditor_reference.nil?
22
26
  hash
23
27
  end
24
28
 
@@ -30,6 +34,9 @@ module OnlinePayments
30
34
  if hash.has_key? 'operationGroupReference'
31
35
  @operation_group_reference = hash['operationGroupReference']
32
36
  end
37
+ if hash.has_key? 'structuredCreditorReference'
38
+ @structured_creditor_reference = hash['structuredCreditorReference']
39
+ end
33
40
  end
34
41
  end
35
42
  end
@@ -22,6 +22,7 @@ module OnlinePayments
22
22
  # @attr [OnlinePayments::SDK::Domain::Shipping] shipping
23
23
  # @attr [OnlinePayments::SDK::Domain::ShoppingCart] shopping_cart
24
24
  # @attr [OnlinePayments::SDK::Domain::SurchargeSpecificInput] surcharge_specific_input
25
+ # @attr [float] tax_percentage
25
26
  # @attr [Integer] total_tax_amount
26
27
  class Order < OnlinePayments::SDK::Domain::DataObject
27
28
 
@@ -41,6 +42,8 @@ module OnlinePayments
41
42
 
42
43
  attr_accessor :surcharge_specific_input
43
44
 
45
+ attr_accessor :tax_percentage
46
+
44
47
  attr_accessor :total_tax_amount
45
48
 
46
49
  # @return (Hash)
@@ -54,6 +57,7 @@ module OnlinePayments
54
57
  hash['shipping'] = @shipping.to_h unless @shipping.nil?
55
58
  hash['shoppingCart'] = @shopping_cart.to_h unless @shopping_cart.nil?
56
59
  hash['surchargeSpecificInput'] = @surcharge_specific_input.to_h unless @surcharge_specific_input.nil?
60
+ hash['taxPercentage'] = @tax_percentage unless @tax_percentage.nil?
57
61
  hash['totalTaxAmount'] = @total_tax_amount unless @total_tax_amount.nil?
58
62
  hash
59
63
  end
@@ -92,6 +96,9 @@ module OnlinePayments
92
96
  raise TypeError, "value '%s' is not a Hash" % [hash['surchargeSpecificInput']] unless hash['surchargeSpecificInput'].is_a? Hash
93
97
  @surcharge_specific_input = OnlinePayments::SDK::Domain::SurchargeSpecificInput.new_from_hash(hash['surchargeSpecificInput'])
94
98
  end
99
+ if hash.has_key? 'taxPercentage'
100
+ @tax_percentage = hash['taxPercentage']
101
+ end
95
102
  if hash.has_key? 'totalTaxAmount'
96
103
  @total_tax_amount = hash['totalTaxAmount']
97
104
  end
@@ -14,6 +14,7 @@ module OnlinePayments
14
14
  # @attr [String] product_type
15
15
  # @attr [Integer] quantity
16
16
  # @attr [Integer] tax_amount
17
+ # @attr [float] tax_percentage
17
18
  # @attr [String] unit
18
19
  class OrderLineDetails < OnlinePayments::SDK::Domain::DataObject
19
20
 
@@ -33,6 +34,8 @@ module OnlinePayments
33
34
 
34
35
  attr_accessor :tax_amount
35
36
 
37
+ attr_accessor :tax_percentage
38
+
36
39
  attr_accessor :unit
37
40
 
38
41
  # @return (Hash)
@@ -46,6 +49,7 @@ module OnlinePayments
46
49
  hash['productType'] = @product_type unless @product_type.nil?
47
50
  hash['quantity'] = @quantity unless @quantity.nil?
48
51
  hash['taxAmount'] = @tax_amount unless @tax_amount.nil?
52
+ hash['taxPercentage'] = @tax_percentage unless @tax_percentage.nil?
49
53
  hash['unit'] = @unit unless @unit.nil?
50
54
  hash
51
55
  end
@@ -76,6 +80,9 @@ module OnlinePayments
76
80
  if hash.has_key? 'taxAmount'
77
81
  @tax_amount = hash['taxAmount']
78
82
  end
83
+ if hash.has_key? 'taxPercentage'
84
+ @tax_percentage = hash['taxPercentage']
85
+ end
79
86
  if hash.has_key? 'unit'
80
87
  @unit = hash['unit']
81
88
  end
@@ -10,6 +10,7 @@ module OnlinePayments
10
10
  # @attr [String] merchant_parameters
11
11
  # @attr [String] merchant_reference
12
12
  # @attr [String] operation_group_reference
13
+ # @attr [String] structured_creditor_reference
13
14
  class OrderReferences < OnlinePayments::SDK::Domain::DataObject
14
15
 
15
16
  attr_accessor :descriptor
@@ -20,6 +21,8 @@ module OnlinePayments
20
21
 
21
22
  attr_accessor :operation_group_reference
22
23
 
24
+ attr_accessor :structured_creditor_reference
25
+
23
26
  # @return (Hash)
24
27
  def to_h
25
28
  hash = super
@@ -27,6 +30,7 @@ module OnlinePayments
27
30
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
28
31
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
29
32
  hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
33
+ hash['structuredCreditorReference'] = @structured_creditor_reference unless @structured_creditor_reference.nil?
30
34
  hash
31
35
  end
32
36
 
@@ -44,6 +48,9 @@ module OnlinePayments
44
48
  if hash.has_key? 'operationGroupReference'
45
49
  @operation_group_reference = hash['operationGroupReference']
46
50
  end
51
+ if hash.has_key? 'structuredCreditorReference'
52
+ @structured_creditor_reference = hash['structuredCreditorReference']
53
+ end
47
54
  end
48
55
  end
49
56
  end
@@ -12,7 +12,6 @@ require 'onlinepayments/sdk/domain/mobile_payment_method_specific_output'
12
12
  require 'onlinepayments/sdk/domain/payment_references'
13
13
  require 'onlinepayments/sdk/domain/redirect_payment_method_specific_output'
14
14
  require 'onlinepayments/sdk/domain/sepa_direct_debit_payment_method_specific_output'
15
- require 'onlinepayments/sdk/domain/shopping_cart_output'
16
15
  require 'onlinepayments/sdk/domain/surcharge_specific_output'
17
16
 
18
17
  module OnlinePayments
@@ -30,7 +29,6 @@ module OnlinePayments
30
29
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentMethodSpecificOutput] redirect_payment_method_specific_output
31
30
  # @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
32
31
  # @attr [OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput] sepa_direct_debit_payment_method_specific_output
33
- # @attr [OnlinePayments::SDK::Domain::ShoppingCartOutput] shopping_cart_output
34
32
  # @attr [OnlinePayments::SDK::Domain::SurchargeSpecificOutput] surcharge_specific_output
35
33
  # @attr [DateTime] transaction_date
36
34
  class PaymentOutput < OnlinePayments::SDK::Domain::DataObject
@@ -60,8 +58,6 @@ module OnlinePayments
60
58
 
61
59
  attr_accessor :sepa_direct_debit_payment_method_specific_output
62
60
 
63
- attr_accessor :shopping_cart_output
64
-
65
61
  attr_accessor :surcharge_specific_output
66
62
 
67
63
  attr_accessor :transaction_date
@@ -81,7 +77,6 @@ module OnlinePayments
81
77
  hash['redirectPaymentMethodSpecificOutput'] = @redirect_payment_method_specific_output.to_h unless @redirect_payment_method_specific_output.nil?
82
78
  hash['references'] = @references.to_h unless @references.nil?
83
79
  hash['sepaDirectDebitPaymentMethodSpecificOutput'] = @sepa_direct_debit_payment_method_specific_output.to_h unless @sepa_direct_debit_payment_method_specific_output.nil?
84
- hash['shoppingCartOutput'] = @shopping_cart_output.to_h unless @shopping_cart_output.nil?
85
80
  hash['surchargeSpecificOutput'] = @surcharge_specific_output.to_h unless @surcharge_specific_output.nil?
86
81
  hash['transactionDate'] = @transaction_date.iso8601(3) unless @transaction_date.nil?
87
82
  hash
@@ -134,10 +129,6 @@ module OnlinePayments
134
129
  raise TypeError, "value '%s' is not a Hash" % [hash['sepaDirectDebitPaymentMethodSpecificOutput']] unless hash['sepaDirectDebitPaymentMethodSpecificOutput'].is_a? Hash
135
130
  @sepa_direct_debit_payment_method_specific_output = OnlinePayments::SDK::Domain::SepaDirectDebitPaymentMethodSpecificOutput.new_from_hash(hash['sepaDirectDebitPaymentMethodSpecificOutput'])
136
131
  end
137
- if hash.has_key? 'shoppingCartOutput'
138
- raise TypeError, "value '%s' is not a Hash" % [hash['shoppingCartOutput']] unless hash['shoppingCartOutput'].is_a? Hash
139
- @shopping_cart_output = OnlinePayments::SDK::Domain::ShoppingCartOutput.new_from_hash(hash['shoppingCartOutput'])
140
- end
141
132
  if hash.has_key? 'surchargeSpecificOutput'
142
133
  raise TypeError, "value '%s' is not a Hash" % [hash['surchargeSpecificOutput']] unless hash['surchargeSpecificOutput'].is_a? Hash
143
134
  @surcharge_specific_output = OnlinePayments::SDK::Domain::SurchargeSpecificOutput.new_from_hash(hash['surchargeSpecificOutput'])
@@ -0,0 +1,44 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [String] app_url
10
+ # @attr [String] polling_url
11
+ # @attr [String] qr_code
12
+ class PaymentProduct5412 < OnlinePayments::SDK::Domain::DataObject
13
+
14
+ attr_accessor :app_url
15
+
16
+ attr_accessor :polling_url
17
+
18
+ attr_accessor :qr_code
19
+
20
+ # @return (Hash)
21
+ def to_h
22
+ hash = super
23
+ hash['appUrl'] = @app_url unless @app_url.nil?
24
+ hash['pollingUrl'] = @polling_url unless @polling_url.nil?
25
+ hash['qrCode'] = @qr_code unless @qr_code.nil?
26
+ hash
27
+ end
28
+
29
+ def from_hash(hash)
30
+ super
31
+ if hash.has_key? 'appUrl'
32
+ @app_url = hash['appUrl']
33
+ end
34
+ if hash.has_key? 'pollingUrl'
35
+ @polling_url = hash['pollingUrl']
36
+ end
37
+ if hash.has_key? 'qrCode'
38
+ @qr_code = hash['qrCode']
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [Integer] delay_in_minutes
10
+ class PaymentProduct5704AutoCapture < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :delay_in_minutes
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['delayInMinutes'] = @delay_in_minutes unless @delay_in_minutes.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'delayInMinutes'
24
+ @delay_in_minutes = hash['delayInMinutes']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -9,6 +9,7 @@ module OnlinePayments
9
9
  # @attr [String] merchant_parameters
10
10
  # @attr [String] merchant_reference
11
11
  # @attr [String] operation_group_reference
12
+ # @attr [String] structured_creditor_reference
12
13
  class PaymentReferences < OnlinePayments::SDK::Domain::DataObject
13
14
 
14
15
  attr_accessor :merchant_parameters
@@ -17,12 +18,15 @@ module OnlinePayments
17
18
 
18
19
  attr_accessor :operation_group_reference
19
20
 
21
+ attr_accessor :structured_creditor_reference
22
+
20
23
  # @return (Hash)
21
24
  def to_h
22
25
  hash = super
23
26
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
24
27
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
25
28
  hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
29
+ hash['structuredCreditorReference'] = @structured_creditor_reference unless @structured_creditor_reference.nil?
26
30
  hash
27
31
  end
28
32
 
@@ -37,6 +41,9 @@ module OnlinePayments
37
41
  if hash.has_key? 'operationGroupReference'
38
42
  @operation_group_reference = hash['operationGroupReference']
39
43
  end
44
+ if hash.has_key? 'structuredCreditorReference'
45
+ @structured_creditor_reference = hash['structuredCreditorReference']
46
+ end
40
47
  end
41
48
  end
42
49
  end
@@ -0,0 +1,55 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/acceptance'
5
+ require 'onlinepayments/sdk/domain/card_essentials'
6
+ require 'onlinepayments/sdk/domain/data_object'
7
+
8
+ module OnlinePayments
9
+ module SDK
10
+ module Domain
11
+ # @attr [OnlinePayments::SDK::Domain::Acceptance] acceptance
12
+ # @attr [String] authorisation_code
13
+ # @attr [OnlinePayments::SDK::Domain::CardEssentials] card
14
+ # @attr [Integer] payment_product_id
15
+ class PayoutCardPaymentMethodSpecificOutput < OnlinePayments::SDK::Domain::DataObject
16
+
17
+ attr_accessor :acceptance
18
+
19
+ attr_accessor :authorisation_code
20
+
21
+ attr_accessor :card
22
+
23
+ attr_accessor :payment_product_id
24
+
25
+ # @return (Hash)
26
+ def to_h
27
+ hash = super
28
+ hash['acceptance'] = @acceptance.to_h unless @acceptance.nil?
29
+ hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
30
+ hash['card'] = @card.to_h unless @card.nil?
31
+ hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
32
+ hash
33
+ end
34
+
35
+ def from_hash(hash)
36
+ super
37
+ if hash.has_key? 'acceptance'
38
+ raise TypeError, "value '%s' is not a Hash" % [hash['acceptance']] unless hash['acceptance'].is_a? Hash
39
+ @acceptance = OnlinePayments::SDK::Domain::Acceptance.new_from_hash(hash['acceptance'])
40
+ end
41
+ if hash.has_key? 'authorisationCode'
42
+ @authorisation_code = hash['authorisationCode']
43
+ end
44
+ if hash.has_key? 'card'
45
+ raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
46
+ @card = OnlinePayments::SDK::Domain::CardEssentials.new_from_hash(hash['card'])
47
+ end
48
+ if hash.has_key? 'paymentProductId'
49
+ @payment_product_id = hash['paymentProductId']
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
@@ -1,25 +1,41 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
+ require 'date'
5
+
4
6
  require 'onlinepayments/sdk/domain/amount_of_money'
5
7
  require 'onlinepayments/sdk/domain/data_object'
8
+ require 'onlinepayments/sdk/domain/payment_references'
9
+ require 'onlinepayments/sdk/domain/payout_card_payment_method_specific_output'
6
10
 
7
11
  module OnlinePayments
8
12
  module SDK
9
13
  module Domain
10
14
  # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
15
+ # @attr [OnlinePayments::SDK::Domain::PayoutCardPaymentMethodSpecificOutput] payout_card_payment_method_specific_output
11
16
  # @attr [String] payout_reason
17
+ # @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
18
+ # @attr [DateTime] transaction_date
12
19
  class PayoutOutput < OnlinePayments::SDK::Domain::DataObject
13
20
 
14
21
  attr_accessor :amount_of_money
15
22
 
23
+ attr_accessor :payout_card_payment_method_specific_output
24
+
16
25
  attr_accessor :payout_reason
17
26
 
27
+ attr_accessor :references
28
+
29
+ attr_accessor :transaction_date
30
+
18
31
  # @return (Hash)
19
32
  def to_h
20
33
  hash = super
21
34
  hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
35
+ hash['payoutCardPaymentMethodSpecificOutput'] = @payout_card_payment_method_specific_output.to_h unless @payout_card_payment_method_specific_output.nil?
22
36
  hash['payoutReason'] = @payout_reason unless @payout_reason.nil?
37
+ hash['references'] = @references.to_h unless @references.nil?
38
+ hash['transactionDate'] = @transaction_date.iso8601(3) unless @transaction_date.nil?
23
39
  hash
24
40
  end
25
41
 
@@ -29,9 +45,20 @@ module OnlinePayments
29
45
  raise TypeError, "value '%s' is not a Hash" % [hash['amountOfMoney']] unless hash['amountOfMoney'].is_a? Hash
30
46
  @amount_of_money = OnlinePayments::SDK::Domain::AmountOfMoney.new_from_hash(hash['amountOfMoney'])
31
47
  end
48
+ if hash.has_key? 'payoutCardPaymentMethodSpecificOutput'
49
+ raise TypeError, "value '%s' is not a Hash" % [hash['payoutCardPaymentMethodSpecificOutput']] unless hash['payoutCardPaymentMethodSpecificOutput'].is_a? Hash
50
+ @payout_card_payment_method_specific_output = OnlinePayments::SDK::Domain::PayoutCardPaymentMethodSpecificOutput.new_from_hash(hash['payoutCardPaymentMethodSpecificOutput'])
51
+ end
32
52
  if hash.has_key? 'payoutReason'
33
53
  @payout_reason = hash['payoutReason']
34
54
  end
55
+ if hash.has_key? 'references'
56
+ raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
57
+ @references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
58
+ end
59
+ if hash.has_key? 'transactionDate'
60
+ @transaction_date = DateTime.parse(hash['transactionDate'])
61
+ end
35
62
  end
36
63
  end
37
64
  end
@@ -13,9 +13,11 @@ require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
13
13
  require 'onlinepayments/sdk/domain/redirect_payment_product3307_specific_input'
14
14
  require 'onlinepayments/sdk/domain/redirect_payment_product5001_specific_input'
15
15
  require 'onlinepayments/sdk/domain/redirect_payment_product5300_specific_input'
16
+ require 'onlinepayments/sdk/domain/redirect_payment_product5301_specific_input'
16
17
  require 'onlinepayments/sdk/domain/redirect_payment_product5402_specific_input'
17
18
  require 'onlinepayments/sdk/domain/redirect_payment_product5403_specific_input'
18
19
  require 'onlinepayments/sdk/domain/redirect_payment_product5406_specific_input'
20
+ require 'onlinepayments/sdk/domain/redirect_payment_product5407_specific_input'
19
21
  require 'onlinepayments/sdk/domain/redirect_payment_product5408_specific_input'
20
22
  require 'onlinepayments/sdk/domain/redirect_payment_product5410_specific_input'
21
23
  require 'onlinepayments/sdk/domain/redirect_payment_product5412_specific_input'
@@ -39,9 +41,11 @@ module OnlinePayments
39
41
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput] payment_product3307_specific_input
40
42
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput] payment_product5001_specific_input
41
43
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput] payment_product5300_specific_input
44
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput] payment_product5301_specific_input
42
45
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput] payment_product5402_specific_input
43
46
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5403SpecificInput] payment_product5403_specific_input
44
47
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput] payment_product5406_specific_input
48
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput] payment_product5407_specific_input
45
49
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput] payment_product5408_specific_input
46
50
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5410SpecificInput] payment_product5410_specific_input
47
51
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5412SpecificInput] payment_product5412_specific_input
@@ -79,12 +83,16 @@ module OnlinePayments
79
83
 
80
84
  attr_accessor :payment_product5300_specific_input
81
85
 
86
+ attr_accessor :payment_product5301_specific_input
87
+
82
88
  attr_accessor :payment_product5402_specific_input
83
89
 
84
90
  attr_accessor :payment_product5403_specific_input
85
91
 
86
92
  attr_accessor :payment_product5406_specific_input
87
93
 
94
+ attr_accessor :payment_product5407_specific_input
95
+
88
96
  attr_accessor :payment_product5408_specific_input
89
97
 
90
98
  attr_accessor :payment_product5410_specific_input
@@ -122,9 +130,11 @@ module OnlinePayments
122
130
  hash['paymentProduct3307SpecificInput'] = @payment_product3307_specific_input.to_h unless @payment_product3307_specific_input.nil?
123
131
  hash['paymentProduct5001SpecificInput'] = @payment_product5001_specific_input.to_h unless @payment_product5001_specific_input.nil?
124
132
  hash['paymentProduct5300SpecificInput'] = @payment_product5300_specific_input.to_h unless @payment_product5300_specific_input.nil?
133
+ hash['paymentProduct5301SpecificInput'] = @payment_product5301_specific_input.to_h unless @payment_product5301_specific_input.nil?
125
134
  hash['paymentProduct5402SpecificInput'] = @payment_product5402_specific_input.to_h unless @payment_product5402_specific_input.nil?
126
135
  hash['paymentProduct5403SpecificInput'] = @payment_product5403_specific_input.to_h unless @payment_product5403_specific_input.nil?
127
136
  hash['paymentProduct5406SpecificInput'] = @payment_product5406_specific_input.to_h unless @payment_product5406_specific_input.nil?
137
+ hash['paymentProduct5407SpecificInput'] = @payment_product5407_specific_input.to_h unless @payment_product5407_specific_input.nil?
128
138
  hash['paymentProduct5408SpecificInput'] = @payment_product5408_specific_input.to_h unless @payment_product5408_specific_input.nil?
129
139
  hash['paymentProduct5410SpecificInput'] = @payment_product5410_specific_input.to_h unless @payment_product5410_specific_input.nil?
130
140
  hash['paymentProduct5412SpecificInput'] = @payment_product5412_specific_input.to_h unless @payment_product5412_specific_input.nil?
@@ -188,6 +198,10 @@ module OnlinePayments
188
198
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5300SpecificInput']] unless hash['paymentProduct5300SpecificInput'].is_a? Hash
189
199
  @payment_product5300_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput.new_from_hash(hash['paymentProduct5300SpecificInput'])
190
200
  end
201
+ if hash.has_key? 'paymentProduct5301SpecificInput'
202
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5301SpecificInput']] unless hash['paymentProduct5301SpecificInput'].is_a? Hash
203
+ @payment_product5301_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5301SpecificInput.new_from_hash(hash['paymentProduct5301SpecificInput'])
204
+ end
191
205
  if hash.has_key? 'paymentProduct5402SpecificInput'
192
206
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5402SpecificInput']] unless hash['paymentProduct5402SpecificInput'].is_a? Hash
193
207
  @payment_product5402_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput.new_from_hash(hash['paymentProduct5402SpecificInput'])
@@ -200,6 +214,10 @@ module OnlinePayments
200
214
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5406SpecificInput']] unless hash['paymentProduct5406SpecificInput'].is_a? Hash
201
215
  @payment_product5406_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5406SpecificInput.new_from_hash(hash['paymentProduct5406SpecificInput'])
202
216
  end
217
+ if hash.has_key? 'paymentProduct5407SpecificInput'
218
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407SpecificInput']] unless hash['paymentProduct5407SpecificInput'].is_a? Hash
219
+ @payment_product5407_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5407SpecificInput.new_from_hash(hash['paymentProduct5407SpecificInput'])
220
+ end
203
221
  if hash.has_key? 'paymentProduct5408SpecificInput'
204
222
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5408SpecificInput']] unless hash['paymentProduct5408SpecificInput'].is_a? Hash
205
223
  @payment_product5408_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5408SpecificInput.new_from_hash(hash['paymentProduct5408SpecificInput'])
@@ -1,6 +1,8 @@
1
1
  #
2
2
  # This file was automatically generated.
3
3
  #
4
+ require 'date'
5
+
4
6
  require 'onlinepayments/sdk/domain/data_object'
5
7
 
6
8
  module OnlinePayments
@@ -14,6 +16,7 @@ module OnlinePayments
14
16
  # @attr [String] second_installment_payment_date
15
17
  # @attr [Integer] session_duration
16
18
  # @attr [String] title
19
+ # @attr [DateTime] transaction_expiration_date_time
17
20
  class RedirectPaymentProduct5300SpecificInput < OnlinePayments::SDK::Domain::DataObject
18
21
 
19
22
  attr_accessor :birth_city
@@ -32,6 +35,8 @@ module OnlinePayments
32
35
 
33
36
  attr_accessor :title
34
37
 
38
+ attr_accessor :transaction_expiration_date_time
39
+
35
40
  # @return (Hash)
36
41
  def to_h
37
42
  hash = super
@@ -43,6 +48,7 @@ module OnlinePayments
43
48
  hash['secondInstallmentPaymentDate'] = @second_installment_payment_date unless @second_installment_payment_date.nil?
44
49
  hash['sessionDuration'] = @session_duration unless @session_duration.nil?
45
50
  hash['title'] = @title unless @title.nil?
51
+ hash['transactionExpirationDateTime'] = @transaction_expiration_date_time.iso8601(3) unless @transaction_expiration_date_time.nil?
46
52
  hash
47
53
  end
48
54
 
@@ -72,6 +78,9 @@ module OnlinePayments
72
78
  if hash.has_key? 'title'
73
79
  @title = hash['title']
74
80
  end
81
+ if hash.has_key? 'transactionExpirationDateTime'
82
+ @transaction_expiration_date_time = DateTime.parse(hash['transactionExpirationDateTime'])
83
+ end
75
84
  end
76
85
  end
77
86
  end
@@ -0,0 +1,30 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+
6
+ module OnlinePayments
7
+ module SDK
8
+ module Domain
9
+ # @attr [String] payment_method_type
10
+ class RedirectPaymentProduct5301SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :payment_method_type
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['paymentMethodType'] = @payment_method_type unless @payment_method_type.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'paymentMethodType'
24
+ @payment_method_type = hash['paymentMethodType']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,32 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+ require 'onlinepayments/sdk/domain/payment_product5704_auto_capture'
6
+
7
+ module OnlinePayments
8
+ module SDK
9
+ module Domain
10
+ # @attr [OnlinePayments::SDK::Domain::PaymentProduct5704AutoCapture] payment_product5704_auto_capture
11
+ class RedirectPaymentProduct5407SpecificInput < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :payment_product5704_auto_capture
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['paymentProduct5704AutoCapture'] = @payment_product5704_auto_capture.to_h unless @payment_product5704_auto_capture.nil?
19
+ hash
20
+ end
21
+
22
+ def from_hash(hash)
23
+ super
24
+ if hash.has_key? 'paymentProduct5704AutoCapture'
25
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5704AutoCapture']] unless hash['paymentProduct5704AutoCapture'].is_a? Hash
26
+ @payment_product5704_auto_capture = OnlinePayments::SDK::Domain::PaymentProduct5704AutoCapture.new_from_hash(hash['paymentProduct5704AutoCapture'])
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -7,6 +7,7 @@ require 'onlinepayments/sdk/domain/payment_product350'
7
7
  require 'onlinepayments/sdk/domain/payment_product5001'
8
8
  require 'onlinepayments/sdk/domain/payment_product5404'
9
9
  require 'onlinepayments/sdk/domain/payment_product5407'
10
+ require 'onlinepayments/sdk/domain/payment_product5412'
10
11
  require 'onlinepayments/sdk/domain/payment_product840'
11
12
  require 'onlinepayments/sdk/domain/pending_authentication'
12
13
 
@@ -18,6 +19,7 @@ module OnlinePayments
18
19
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5001] payment_product5001
19
20
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5404] payment_product5404
20
21
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct5407] payment_product5407
22
+ # @attr [OnlinePayments::SDK::Domain::PaymentProduct5412] payment_product5412
21
23
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct840] payment_product840
22
24
  # @attr [OnlinePayments::SDK::Domain::PendingAuthentication] pending_authentication
23
25
  class ShowFormData < OnlinePayments::SDK::Domain::DataObject
@@ -32,6 +34,8 @@ module OnlinePayments
32
34
 
33
35
  attr_accessor :payment_product5407
34
36
 
37
+ attr_accessor :payment_product5412
38
+
35
39
  attr_accessor :payment_product840
36
40
 
37
41
  attr_accessor :pending_authentication
@@ -44,6 +48,7 @@ module OnlinePayments
44
48
  hash['paymentProduct5001'] = @payment_product5001.to_h unless @payment_product5001.nil?
45
49
  hash['paymentProduct5404'] = @payment_product5404.to_h unless @payment_product5404.nil?
46
50
  hash['paymentProduct5407'] = @payment_product5407.to_h unless @payment_product5407.nil?
51
+ hash['paymentProduct5412'] = @payment_product5412.to_h unless @payment_product5412.nil?
47
52
  hash['paymentProduct840'] = @payment_product840.to_h unless @payment_product840.nil?
48
53
  hash['pendingAuthentication'] = @pending_authentication.to_h unless @pending_authentication.nil?
49
54
  hash
@@ -71,6 +76,10 @@ module OnlinePayments
71
76
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5407']] unless hash['paymentProduct5407'].is_a? Hash
72
77
  @payment_product5407 = OnlinePayments::SDK::Domain::PaymentProduct5407.new_from_hash(hash['paymentProduct5407'])
73
78
  end
79
+ if hash.has_key? 'paymentProduct5412'
80
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5412']] unless hash['paymentProduct5412'].is_a? Hash
81
+ @payment_product5412 = OnlinePayments::SDK::Domain::PaymentProduct5412.new_from_hash(hash['paymentProduct5412'])
82
+ end
74
83
  if hash.has_key? 'paymentProduct840'
75
84
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct840']] unless hash['paymentProduct840'].is_a? Hash
76
85
  @payment_product840 = OnlinePayments::SDK::Domain::PaymentProduct840.new_from_hash(hash['paymentProduct840'])
@@ -16,6 +16,7 @@ module OnlinePayments
16
16
  # @attr [Integer] amount
17
17
  # @attr [true/false] is_recurring
18
18
  # @attr [Array<String>] hide
19
+ # @attr [String] operation_type
19
20
  class GetPaymentProductParams < OnlinePayments::SDK::Communication::ParamRequest
20
21
 
21
22
  attr_accessor :country_code
@@ -30,6 +31,8 @@ module OnlinePayments
30
31
 
31
32
  attr_accessor :hide
32
33
 
34
+ attr_accessor :operation_type
35
+
33
36
  # Adds the parameter _value_ to the _hide_ Array
34
37
  #
35
38
  # @param value [String]
@@ -51,6 +54,7 @@ module OnlinePayments
51
54
  unless @hide.nil?
52
55
  @hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
53
56
  end
57
+ result << OnlinePayments::SDK::Communication::RequestParam.new('operationType', @operation_type) unless @operation_type.nil?
54
58
  result
55
59
  end
56
60
  end
@@ -16,6 +16,7 @@ module OnlinePayments
16
16
  # @attr [Integer] amount
17
17
  # @attr [true/false] is_recurring
18
18
  # @attr [Array<String>] hide
19
+ # @attr [String] operation_type
19
20
  class GetPaymentProductsParams < OnlinePayments::SDK::Communication::ParamRequest
20
21
 
21
22
  attr_accessor :country_code
@@ -30,6 +31,8 @@ module OnlinePayments
30
31
 
31
32
  attr_accessor :hide
32
33
 
34
+ attr_accessor :operation_type
35
+
33
36
  # Adds the parameter _value_ to the _hide_ Array
34
37
  #
35
38
  # @param value [String]
@@ -51,6 +54,7 @@ module OnlinePayments
51
54
  unless @hide.nil?
52
55
  @hide.each {|e| result << OnlinePayments::SDK::Communication::RequestParam.new('hide', e)}
53
56
  end
57
+ result << OnlinePayments::SDK::Communication::RequestParam.new('operationType', @operation_type) unless @operation_type.nil?
54
58
  result
55
59
  end
56
60
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'onlinepayments-sdk-ruby'
3
- spec.version = '7.4.1'
3
+ spec.version = '8.0.0'
4
4
  spec.authors = ['Worldline Direct support team']
5
5
  spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
6
6
  spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlinepayments-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.4.1
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Worldline Direct support team
@@ -195,6 +195,7 @@ files:
195
195
  - lib/onlinepayments/sdk/domain/api_error.rb
196
196
  - lib/onlinepayments/sdk/domain/apple_pay_line_item.rb
197
197
  - lib/onlinepayments/sdk/domain/apple_pay_recurring_payment_request.rb
198
+ - lib/onlinepayments/sdk/domain/auto_capture.rb
198
199
  - lib/onlinepayments/sdk/domain/bank_account_iban.rb
199
200
  - lib/onlinepayments/sdk/domain/batch_metadata.rb
200
201
  - lib/onlinepayments/sdk/domain/browser_data.rb
@@ -376,7 +377,9 @@ files:
376
377
  - lib/onlinepayments/sdk/domain/payment_product5402_specific_output.rb
377
378
  - lib/onlinepayments/sdk/domain/payment_product5404.rb
378
379
  - lib/onlinepayments/sdk/domain/payment_product5407.rb
380
+ - lib/onlinepayments/sdk/domain/payment_product5412.rb
379
381
  - lib/onlinepayments/sdk/domain/payment_product5500_specific_output.rb
382
+ - lib/onlinepayments/sdk/domain/payment_product5704_auto_capture.rb
380
383
  - lib/onlinepayments/sdk/domain/payment_product771_specific_output.rb
381
384
  - lib/onlinepayments/sdk/domain/payment_product840.rb
382
385
  - lib/onlinepayments/sdk/domain/payment_product840_customer_account.rb
@@ -398,6 +401,7 @@ files:
398
401
  - lib/onlinepayments/sdk/domain/payment_references.rb
399
402
  - lib/onlinepayments/sdk/domain/payment_response.rb
400
403
  - lib/onlinepayments/sdk/domain/payment_status_output.rb
404
+ - lib/onlinepayments/sdk/domain/payout_card_payment_method_specific_output.rb
401
405
  - lib/onlinepayments/sdk/domain/payout_error_response.rb
402
406
  - lib/onlinepayments/sdk/domain/payout_output.rb
403
407
  - lib/onlinepayments/sdk/domain/payout_response.rb
@@ -430,9 +434,11 @@ files:
430
434
  - lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb
431
435
  - lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb
432
436
  - lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb
437
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5301_specific_input.rb
433
438
  - lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb
434
439
  - lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb
435
440
  - lib/onlinepayments/sdk/domain/redirect_payment_product5406_specific_input.rb
441
+ - lib/onlinepayments/sdk/domain/redirect_payment_product5407_specific_input.rb
436
442
  - lib/onlinepayments/sdk/domain/redirect_payment_product5408_specific_input.rb
437
443
  - lib/onlinepayments/sdk/domain/redirect_payment_product5410_specific_input.rb
438
444
  - lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb