onlinepayments-sdk-ruby 5.0.0 → 6.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
  3. data/lib/onlinepayments/sdk/domain/account_on_file.rb +1 -1
  4. data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +9 -0
  5. data/lib/onlinepayments/sdk/domain/card_essentials.rb +100 -0
  6. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
  7. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +18 -0
  8. data/lib/onlinepayments/sdk/domain/click_to_pay.rb +30 -0
  9. data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +7 -0
  10. data/lib/onlinepayments/sdk/domain/feedbacks.rb +12 -0
  11. data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +93 -0
  12. data/lib/onlinepayments/sdk/domain/iin_detail.rb +100 -0
  13. data/lib/onlinepayments/sdk/domain/merchant_action.rb +9 -0
  14. data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +23 -0
  15. data/lib/onlinepayments/sdk/domain/network_token_data.rb +65 -0
  16. data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
  17. data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
  18. data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +1 -0
  19. data/lib/onlinepayments/sdk/domain/payment_link_response.rb +7 -0
  20. data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +30 -0
  21. data/lib/onlinepayments/sdk/domain/payment_product5001.rb +37 -0
  22. data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +9 -0
  23. data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
  24. data/lib/onlinepayments/sdk/domain/product320_recurring.rb +30 -0
  25. data/lib/onlinepayments/sdk/domain/reattempt_instructions.rb +46 -0
  26. data/lib/onlinepayments/sdk/domain/reattempt_instructions_conditions.rb +37 -0
  27. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +27 -0
  28. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +9 -0
  29. data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +37 -0
  30. data/lib/onlinepayments/sdk/domain/redirect_payment_product5001_specific_input.rb +7 -0
  31. data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +3 -5
  32. data/lib/onlinepayments/sdk/domain/redirect_payment_product5402_specific_input.rb +30 -0
  33. data/lib/onlinepayments/sdk/domain/redirect_payment_product5403_specific_input.rb +30 -0
  34. data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +1 -0
  35. data/lib/onlinepayments/sdk/domain/refund_request.rb +7 -0
  36. data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +30 -0
  37. data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
  38. data/lib/onlinepayments/sdk/domain/show_instructions_data.rb +30 -0
  39. data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +7 -0
  40. data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +3 -2
  41. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +1 -0
  42. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +1 -0
  43. data/onlinepayments-sdk-ruby.gemspec +1 -1
  44. metadata +14 -2
@@ -1,39 +1,139 @@
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
7
9
  module SDK
8
10
  module Domain
11
+ # @attr [true/false] card_corporate_indicator
12
+ # @attr [Date] card_effective_date
13
+ # @attr [true/false] card_effective_date_indicator
14
+ # @attr [String] card_pan_type
15
+ # @attr [String] card_product_code
16
+ # @attr [String] card_product_usage_label
17
+ # @attr [String] card_scheme
9
18
  # @attr [String] card_type
19
+ # @attr [String] country_code
10
20
  # @attr [true/false] is_allowed_in_context
21
+ # @attr [String] issuer_code
22
+ # @attr [String] issuer_name
23
+ # @attr [String] issuing_country_code
24
+ # @attr [Integer] pan_length_max
25
+ # @attr [Integer] pan_length_min
26
+ # @attr [true/false] pan_luhn_check
11
27
  # @attr [Integer] payment_product_id
12
28
  class IINDetail < OnlinePayments::SDK::Domain::DataObject
13
29
 
30
+ attr_accessor :card_corporate_indicator
31
+
32
+ attr_accessor :card_effective_date
33
+
34
+ attr_accessor :card_effective_date_indicator
35
+
36
+ attr_accessor :card_pan_type
37
+
38
+ attr_accessor :card_product_code
39
+
40
+ attr_accessor :card_product_usage_label
41
+
42
+ attr_accessor :card_scheme
43
+
14
44
  attr_accessor :card_type
15
45
 
46
+ attr_accessor :country_code
47
+
16
48
  attr_accessor :is_allowed_in_context
17
49
 
50
+ attr_accessor :issuer_code
51
+
52
+ attr_accessor :issuer_name
53
+
54
+ attr_accessor :issuing_country_code
55
+
56
+ attr_accessor :pan_length_max
57
+
58
+ attr_accessor :pan_length_min
59
+
60
+ attr_accessor :pan_luhn_check
61
+
18
62
  attr_accessor :payment_product_id
19
63
 
20
64
  # @return (Hash)
21
65
  def to_h
22
66
  hash = super
67
+ hash['cardCorporateIndicator'] = @card_corporate_indicator unless @card_corporate_indicator.nil?
68
+ hash['cardEffectiveDate'] = @card_effective_date.iso8601 unless @card_effective_date.nil?
69
+ hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
70
+ hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
71
+ hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
72
+ hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
73
+ hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
23
74
  hash['cardType'] = @card_type unless @card_type.nil?
75
+ hash['countryCode'] = @country_code unless @country_code.nil?
24
76
  hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
77
+ hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
78
+ hash['issuerName'] = @issuer_name unless @issuer_name.nil?
79
+ hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
80
+ hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
81
+ hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
82
+ hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
25
83
  hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
26
84
  hash
27
85
  end
28
86
 
29
87
  def from_hash(hash)
30
88
  super
89
+ if hash.has_key? 'cardCorporateIndicator'
90
+ @card_corporate_indicator = hash['cardCorporateIndicator']
91
+ end
92
+ if hash.has_key? 'cardEffectiveDate'
93
+ @card_effective_date = Date.parse(hash['cardEffectiveDate'])
94
+ end
95
+ if hash.has_key? 'cardEffectiveDateIndicator'
96
+ @card_effective_date_indicator = hash['cardEffectiveDateIndicator']
97
+ end
98
+ if hash.has_key? 'cardPanType'
99
+ @card_pan_type = hash['cardPanType']
100
+ end
101
+ if hash.has_key? 'cardProductCode'
102
+ @card_product_code = hash['cardProductCode']
103
+ end
104
+ if hash.has_key? 'cardProductUsageLabel'
105
+ @card_product_usage_label = hash['cardProductUsageLabel']
106
+ end
107
+ if hash.has_key? 'cardScheme'
108
+ @card_scheme = hash['cardScheme']
109
+ end
31
110
  if hash.has_key? 'cardType'
32
111
  @card_type = hash['cardType']
33
112
  end
113
+ if hash.has_key? 'countryCode'
114
+ @country_code = hash['countryCode']
115
+ end
34
116
  if hash.has_key? 'isAllowedInContext'
35
117
  @is_allowed_in_context = hash['isAllowedInContext']
36
118
  end
119
+ if hash.has_key? 'issuerCode'
120
+ @issuer_code = hash['issuerCode']
121
+ end
122
+ if hash.has_key? 'issuerName'
123
+ @issuer_name = hash['issuerName']
124
+ end
125
+ if hash.has_key? 'issuingCountryCode'
126
+ @issuing_country_code = hash['issuingCountryCode']
127
+ end
128
+ if hash.has_key? 'panLengthMax'
129
+ @pan_length_max = hash['panLengthMax']
130
+ end
131
+ if hash.has_key? 'panLengthMin'
132
+ @pan_length_min = hash['panLengthMin']
133
+ end
134
+ if hash.has_key? 'panLuhnCheck'
135
+ @pan_luhn_check = hash['panLuhnCheck']
136
+ end
37
137
  if hash.has_key? 'paymentProductId'
38
138
  @payment_product_id = hash['paymentProductId']
39
139
  end
@@ -5,6 +5,7 @@ require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/mobile_three_d_secure_challenge_parameters'
6
6
  require 'onlinepayments/sdk/domain/redirect_data'
7
7
  require 'onlinepayments/sdk/domain/show_form_data'
8
+ require 'onlinepayments/sdk/domain/show_instructions_data'
8
9
 
9
10
  module OnlinePayments
10
11
  module SDK
@@ -13,6 +14,7 @@ module OnlinePayments
13
14
  # @attr [OnlinePayments::SDK::Domain::MobileThreeDSecureChallengeParameters] mobile_three_d_secure_challenge_parameters
14
15
  # @attr [OnlinePayments::SDK::Domain::RedirectData] redirect_data
15
16
  # @attr [OnlinePayments::SDK::Domain::ShowFormData] show_form_data
17
+ # @attr [OnlinePayments::SDK::Domain::ShowInstructionsData] show_instructions_data
16
18
  class MerchantAction < OnlinePayments::SDK::Domain::DataObject
17
19
 
18
20
  attr_accessor :action_type
@@ -23,6 +25,8 @@ module OnlinePayments
23
25
 
24
26
  attr_accessor :show_form_data
25
27
 
28
+ attr_accessor :show_instructions_data
29
+
26
30
  # @return (Hash)
27
31
  def to_h
28
32
  hash = super
@@ -30,6 +34,7 @@ module OnlinePayments
30
34
  hash['mobileThreeDSecureChallengeParameters'] = @mobile_three_d_secure_challenge_parameters.to_h unless @mobile_three_d_secure_challenge_parameters.nil?
31
35
  hash['redirectData'] = @redirect_data.to_h unless @redirect_data.nil?
32
36
  hash['showFormData'] = @show_form_data.to_h unless @show_form_data.nil?
37
+ hash['showInstructionsData'] = @show_instructions_data.to_h unless @show_instructions_data.nil?
33
38
  hash
34
39
  end
35
40
 
@@ -50,6 +55,10 @@ module OnlinePayments
50
55
  raise TypeError, "value '%s' is not a Hash" % [hash['showFormData']] unless hash['showFormData'].is_a? Hash
51
56
  @show_form_data = OnlinePayments::SDK::Domain::ShowFormData.new_from_hash(hash['showFormData'])
52
57
  end
58
+ if hash.has_key? 'showInstructionsData'
59
+ raise TypeError, "value '%s' is not a Hash" % [hash['showInstructionsData']] unless hash['showInstructionsData'].is_a? Hash
60
+ @show_instructions_data = OnlinePayments::SDK::Domain::ShowInstructionsData.new_from_hash(hash['showInstructionsData'])
61
+ end
53
62
  end
54
63
  end
55
64
  end
@@ -3,28 +3,51 @@
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/g_pay_three_d_secure'
6
+ require 'onlinepayments/sdk/domain/product320_recurring'
6
7
 
7
8
  module OnlinePayments
8
9
  module SDK
9
10
  module Domain
11
+ # @attr [true/false] is_recurring
12
+ # @attr [OnlinePayments::SDK::Domain::Product320Recurring] recurring
10
13
  # @attr [OnlinePayments::SDK::Domain::GPayThreeDSecure] three_d_secure
14
+ # @attr [true/false] tokenize
11
15
  class MobilePaymentProduct320SpecificInput < OnlinePayments::SDK::Domain::DataObject
12
16
 
17
+ attr_accessor :is_recurring
18
+
19
+ attr_accessor :recurring
20
+
13
21
  attr_accessor :three_d_secure
14
22
 
23
+ attr_accessor :tokenize
24
+
15
25
  # @return (Hash)
16
26
  def to_h
17
27
  hash = super
28
+ hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
29
+ hash['recurring'] = @recurring.to_h unless @recurring.nil?
18
30
  hash['threeDSecure'] = @three_d_secure.to_h unless @three_d_secure.nil?
31
+ hash['tokenize'] = @tokenize unless @tokenize.nil?
19
32
  hash
20
33
  end
21
34
 
22
35
  def from_hash(hash)
23
36
  super
37
+ if hash.has_key? 'isRecurring'
38
+ @is_recurring = hash['isRecurring']
39
+ end
40
+ if hash.has_key? 'recurring'
41
+ raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
42
+ @recurring = OnlinePayments::SDK::Domain::Product320Recurring.new_from_hash(hash['recurring'])
43
+ end
24
44
  if hash.has_key? 'threeDSecure'
25
45
  raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecure']] unless hash['threeDSecure'].is_a? Hash
26
46
  @three_d_secure = OnlinePayments::SDK::Domain::GPayThreeDSecure.new_from_hash(hash['threeDSecure'])
27
47
  end
48
+ if hash.has_key? 'tokenize'
49
+ @tokenize = hash['tokenize']
50
+ end
28
51
  end
29
52
  end
30
53
  end
@@ -0,0 +1,65 @@
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] cardholder_name
10
+ # @attr [String] cryptogram
11
+ # @attr [Integer] eci
12
+ # @attr [String] network_token
13
+ # @attr [String] scheme_token_requestor_id
14
+ # @attr [String] token_expiry_date
15
+ class NetworkTokenData < OnlinePayments::SDK::Domain::DataObject
16
+
17
+ attr_accessor :cardholder_name
18
+
19
+ attr_accessor :cryptogram
20
+
21
+ attr_accessor :eci
22
+
23
+ attr_accessor :network_token
24
+
25
+ attr_accessor :scheme_token_requestor_id
26
+
27
+ attr_accessor :token_expiry_date
28
+
29
+ # @return (Hash)
30
+ def to_h
31
+ hash = super
32
+ hash['cardholderName'] = @cardholder_name unless @cardholder_name.nil?
33
+ hash['cryptogram'] = @cryptogram unless @cryptogram.nil?
34
+ hash['eci'] = @eci unless @eci.nil?
35
+ hash['networkToken'] = @network_token unless @network_token.nil?
36
+ hash['schemeTokenRequestorId'] = @scheme_token_requestor_id unless @scheme_token_requestor_id.nil?
37
+ hash['tokenExpiryDate'] = @token_expiry_date unless @token_expiry_date.nil?
38
+ hash
39
+ end
40
+
41
+ def from_hash(hash)
42
+ super
43
+ if hash.has_key? 'cardholderName'
44
+ @cardholder_name = hash['cardholderName']
45
+ end
46
+ if hash.has_key? 'cryptogram'
47
+ @cryptogram = hash['cryptogram']
48
+ end
49
+ if hash.has_key? 'eci'
50
+ @eci = hash['eci']
51
+ end
52
+ if hash.has_key? 'networkToken'
53
+ @network_token = hash['networkToken']
54
+ end
55
+ if hash.has_key? 'schemeTokenRequestorId'
56
+ @scheme_token_requestor_id = hash['schemeTokenRequestorId']
57
+ end
58
+ if hash.has_key? 'tokenExpiryDate'
59
+ @token_expiry_date = hash['tokenExpiryDate']
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
65
+ end
@@ -7,14 +7,18 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [String] merchant_reference
10
+ # @attr [String] operation_group_reference
10
11
  class OperationPaymentReferences < OnlinePayments::SDK::Domain::DataObject
11
12
 
12
13
  attr_accessor :merchant_reference
13
14
 
15
+ attr_accessor :operation_group_reference
16
+
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
17
20
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
21
+ hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
18
22
  hash
19
23
  end
20
24
 
@@ -23,6 +27,9 @@ module OnlinePayments
23
27
  if hash.has_key? 'merchantReference'
24
28
  @merchant_reference = hash['merchantReference']
25
29
  end
30
+ if hash.has_key? 'operationGroupReference'
31
+ @operation_group_reference = hash['operationGroupReference']
32
+ end
26
33
  end
27
34
  end
28
35
  end
@@ -9,6 +9,7 @@ module OnlinePayments
9
9
  # @attr [String] descriptor
10
10
  # @attr [String] merchant_parameters
11
11
  # @attr [String] merchant_reference
12
+ # @attr [String] operation_group_reference
12
13
  class OrderReferences < OnlinePayments::SDK::Domain::DataObject
13
14
 
14
15
  attr_accessor :descriptor
@@ -17,12 +18,15 @@ module OnlinePayments
17
18
 
18
19
  attr_accessor :merchant_reference
19
20
 
21
+ attr_accessor :operation_group_reference
22
+
20
23
  # @return (Hash)
21
24
  def to_h
22
25
  hash = super
23
26
  hash['descriptor'] = @descriptor unless @descriptor.nil?
24
27
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
25
28
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
29
+ hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
26
30
  hash
27
31
  end
28
32
 
@@ -37,6 +41,9 @@ module OnlinePayments
37
41
  if hash.has_key? 'merchantReference'
38
42
  @merchant_reference = hash['merchantReference']
39
43
  end
44
+ if hash.has_key? 'operationGroupReference'
45
+ @operation_group_reference = hash['operationGroupReference']
46
+ end
40
47
  end
41
48
  end
42
49
  end
@@ -11,6 +11,7 @@ module OnlinePayments
11
11
  # @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount
12
12
  # @attr [String] merchant_reference
13
13
  # @attr [OnlinePayments::SDK::Domain::SurchargeForPaymentLink] surcharge_specific_input
14
+ # @deprecated An object containing the details of the related payment input. All properties in paymentLinkOrder are deprecated. Use corresponding values as noted below: | Property | Replacement | | - | - | | merchantReference | references/merchantReference | | amount | order/amountOfMoney | | surchargeSpecificInput | order/surchargeSpecificInput |
14
15
  class PaymentLinkOrderInput < OnlinePayments::SDK::Domain::DataObject
15
16
 
16
17
  attr_accessor :amount
@@ -11,6 +11,7 @@ module OnlinePayments
11
11
  module SDK
12
12
  module Domain
13
13
  # @attr [DateTime] expiration_date
14
+ # @attr [true/false] is_reusable_link
14
15
  # @attr [String] payment_id
15
16
  # @attr [Array<OnlinePayments::SDK::Domain::PaymentLinkEvent>] payment_link_events
16
17
  # @attr [String] payment_link_id
@@ -22,6 +23,8 @@ module OnlinePayments
22
23
 
23
24
  attr_accessor :expiration_date
24
25
 
26
+ attr_accessor :is_reusable_link
27
+
25
28
  attr_accessor :payment_id
26
29
 
27
30
  attr_accessor :payment_link_events
@@ -40,6 +43,7 @@ module OnlinePayments
40
43
  def to_h
41
44
  hash = super
42
45
  hash['expirationDate'] = @expiration_date.iso8601(3) unless @expiration_date.nil?
46
+ hash['isReusableLink'] = @is_reusable_link unless @is_reusable_link.nil?
43
47
  hash['paymentId'] = @payment_id unless @payment_id.nil?
44
48
  hash['paymentLinkEvents'] = @payment_link_events.collect{|val| val.to_h} unless @payment_link_events.nil?
45
49
  hash['paymentLinkId'] = @payment_link_id unless @payment_link_id.nil?
@@ -55,6 +59,9 @@ module OnlinePayments
55
59
  if hash.has_key? 'expirationDate'
56
60
  @expiration_date = DateTime.parse(hash['expirationDate'])
57
61
  end
62
+ if hash.has_key? 'isReusableLink'
63
+ @is_reusable_link = hash['isReusableLink']
64
+ end
58
65
  if hash.has_key? 'paymentId'
59
66
  @payment_id = hash['paymentId']
60
67
  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] banking_app_label
10
+ class PaymentProduct3204SpecificOutput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :banking_app_label
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['bankingAppLabel'] = @banking_app_label unless @banking_app_label.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'bankingAppLabel'
24
+ @banking_app_label = hash['bankingAppLabel']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,37 @@
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] message
10
+ # @attr [String] polling_url
11
+ class PaymentProduct5001 < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :message
14
+
15
+ attr_accessor :polling_url
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['message'] = @message unless @message.nil?
21
+ hash['pollingUrl'] = @polling_url unless @polling_url.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'message'
28
+ @message = hash['message']
29
+ end
30
+ if hash.has_key? 'pollingUrl'
31
+ @polling_url = hash['pollingUrl']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -2,6 +2,7 @@
2
2
  # This file was automatically generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/address'
5
+ require 'onlinepayments/sdk/domain/address_personal'
5
6
  require 'onlinepayments/sdk/domain/data_object'
6
7
  require 'onlinepayments/sdk/domain/payment_product840_customer_account'
7
8
  require 'onlinepayments/sdk/domain/protection_eligibility'
@@ -10,6 +11,7 @@ module OnlinePayments
10
11
  module SDK
11
12
  module Domain
12
13
  # @attr [OnlinePayments::SDK::Domain::Address] billing_address
14
+ # @attr [OnlinePayments::SDK::Domain::AddressPersonal] billing_personal_address
13
15
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount] customer_account
14
16
  # @attr [OnlinePayments::SDK::Domain::Address] customer_address
15
17
  # @attr [OnlinePayments::SDK::Domain::ProtectionEligibility] protection_eligibility
@@ -17,6 +19,8 @@ module OnlinePayments
17
19
 
18
20
  attr_accessor :billing_address
19
21
 
22
+ attr_accessor :billing_personal_address
23
+
20
24
  attr_accessor :customer_account
21
25
 
22
26
  attr_accessor :customer_address
@@ -27,6 +31,7 @@ module OnlinePayments
27
31
  def to_h
28
32
  hash = super
29
33
  hash['billingAddress'] = @billing_address.to_h unless @billing_address.nil?
34
+ hash['billingPersonalAddress'] = @billing_personal_address.to_h unless @billing_personal_address.nil?
30
35
  hash['customerAccount'] = @customer_account.to_h unless @customer_account.nil?
31
36
  hash['customerAddress'] = @customer_address.to_h unless @customer_address.nil?
32
37
  hash['protectionEligibility'] = @protection_eligibility.to_h unless @protection_eligibility.nil?
@@ -39,6 +44,10 @@ module OnlinePayments
39
44
  raise TypeError, "value '%s' is not a Hash" % [hash['billingAddress']] unless hash['billingAddress'].is_a? Hash
40
45
  @billing_address = OnlinePayments::SDK::Domain::Address.new_from_hash(hash['billingAddress'])
41
46
  end
47
+ if hash.has_key? 'billingPersonalAddress'
48
+ raise TypeError, "value '%s' is not a Hash" % [hash['billingPersonalAddress']] unless hash['billingPersonalAddress'].is_a? Hash
49
+ @billing_personal_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['billingPersonalAddress'])
50
+ end
42
51
  if hash.has_key? 'customerAccount'
43
52
  raise TypeError, "value '%s' is not a Hash" % [hash['customerAccount']] unless hash['customerAccount'].is_a? Hash
44
53
  @customer_account = OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount.new_from_hash(hash['customerAccount'])
@@ -8,17 +8,21 @@ module OnlinePayments
8
8
  module Domain
9
9
  # @attr [String] merchant_parameters
10
10
  # @attr [String] merchant_reference
11
+ # @attr [String] operation_group_reference
11
12
  class PaymentReferences < OnlinePayments::SDK::Domain::DataObject
12
13
 
13
14
  attr_accessor :merchant_parameters
14
15
 
15
16
  attr_accessor :merchant_reference
16
17
 
18
+ attr_accessor :operation_group_reference
19
+
17
20
  # @return (Hash)
18
21
  def to_h
19
22
  hash = super
20
23
  hash['merchantParameters'] = @merchant_parameters unless @merchant_parameters.nil?
21
24
  hash['merchantReference'] = @merchant_reference unless @merchant_reference.nil?
25
+ hash['operationGroupReference'] = @operation_group_reference unless @operation_group_reference.nil?
22
26
  hash
23
27
  end
24
28
 
@@ -30,6 +34,9 @@ module OnlinePayments
30
34
  if hash.has_key? 'merchantReference'
31
35
  @merchant_reference = hash['merchantReference']
32
36
  end
37
+ if hash.has_key? 'operationGroupReference'
38
+ @operation_group_reference = hash['operationGroupReference']
39
+ end
33
40
  end
34
41
  end
35
42
  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] recurring_payment_sequence_indicator
10
+ class Product320Recurring < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :recurring_payment_sequence_indicator
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['recurringPaymentSequenceIndicator'] = @recurring_payment_sequence_indicator unless @recurring_payment_sequence_indicator.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'recurringPaymentSequenceIndicator'
24
+ @recurring_payment_sequence_indicator = hash['recurringPaymentSequenceIndicator']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,46 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'onlinepayments/sdk/domain/data_object'
5
+ require 'onlinepayments/sdk/domain/reattempt_instructions_conditions'
6
+
7
+ module OnlinePayments
8
+ module SDK
9
+ module Domain
10
+ # @attr [OnlinePayments::SDK::Domain::ReattemptInstructionsConditions] conditions
11
+ # @attr [Integer] frozen_period
12
+ # @attr [String] indicator
13
+ class ReattemptInstructions < OnlinePayments::SDK::Domain::DataObject
14
+
15
+ attr_accessor :conditions
16
+
17
+ attr_accessor :frozen_period
18
+
19
+ attr_accessor :indicator
20
+
21
+ # @return (Hash)
22
+ def to_h
23
+ hash = super
24
+ hash['conditions'] = @conditions.to_h unless @conditions.nil?
25
+ hash['frozenPeriod'] = @frozen_period unless @frozen_period.nil?
26
+ hash['indicator'] = @indicator unless @indicator.nil?
27
+ hash
28
+ end
29
+
30
+ def from_hash(hash)
31
+ super
32
+ if hash.has_key? 'conditions'
33
+ raise TypeError, "value '%s' is not a Hash" % [hash['conditions']] unless hash['conditions'].is_a? Hash
34
+ @conditions = OnlinePayments::SDK::Domain::ReattemptInstructionsConditions.new_from_hash(hash['conditions'])
35
+ end
36
+ if hash.has_key? 'frozenPeriod'
37
+ @frozen_period = hash['frozenPeriod']
38
+ end
39
+ if hash.has_key? 'indicator'
40
+ @indicator = hash['indicator']
41
+ end
42
+ end
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,37 @@
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] max_attempts
10
+ # @attr [Integer] max_delay
11
+ class ReattemptInstructionsConditions < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :max_attempts
14
+
15
+ attr_accessor :max_delay
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['maxAttempts'] = @max_attempts unless @max_attempts.nil?
21
+ hash['maxDelay'] = @max_delay unless @max_delay.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'maxAttempts'
28
+ @max_attempts = hash['maxAttempts']
29
+ end
30
+ if hash.has_key? 'maxDelay'
31
+ @max_delay = hash['maxDelay']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end