onlinepayments-sdk-ruby 7.4.0 → 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 +9 -8
  32. metadata +37 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e90e097a2209e03eb110dee5fcf3a4d0e8a35ebdf6d62ff55f1e21184da490a0
4
- data.tar.gz: 58874383b41e894a6c40ac7be9555a822f9a2c0a697288deee0447e334d65a0c
3
+ metadata.gz: 152118c2725ab0df3bf1676e6ac3b14f1bafe77bc606baa8890419c72ba85667
4
+ data.tar.gz: 6071bc013745c29a83a697010da0722c708bfb28acbb797aecc4d617b6ccd4cb
5
5
  SHA512:
6
- metadata.gz: 73bb16d9c7bae92abb3f4b852fe64de34f6737cf512d99377f4f5cc69d07b86fc66048bf12a60c2c1a3740fb61080f56fa1e1bee37838b2a4b8933d99abd7786
7
- data.tar.gz: f0ea73149ae5ddab4657907274f04e8f4e1dbafec8da8fd18567c4cefafc1339247df60643900852c45731b4eac0d3f2e1222209af95e67552a43d139150a9a8
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.0'.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'])