onlinepayments-sdk-ruby 6.3.1 → 7.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 (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/onlinepayments/sdk/authentication/v1hmac_authenticator.rb +2 -1
  4. data/lib/onlinepayments/sdk/client.rb +1 -1
  5. data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
  6. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
  7. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_base.rb +9 -0
  8. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input_for_hosted_checkout.rb +7 -0
  9. data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +16 -0
  10. data/lib/onlinepayments/sdk/domain/create_payment_link_request.rb +7 -0
  11. data/lib/onlinepayments/sdk/domain/create_payment_request.rb +7 -0
  12. data/lib/onlinepayments/sdk/domain/created_token_response.rb +9 -0
  13. data/lib/onlinepayments/sdk/domain/credit_card_specific_input_hosted_tokenization.rb +3 -3
  14. data/lib/onlinepayments/sdk/domain/{credit_card_validation_rules_hosted_tokenization.rb → credit_card_validation_rules.rb} +1 -1
  15. data/lib/onlinepayments/sdk/domain/crm_token.rb +37 -0
  16. data/lib/onlinepayments/sdk/domain/g_pay_three_d_secure.rb +7 -0
  17. data/lib/onlinepayments/sdk/domain/hosted_checkout_specific_input.rb +16 -0
  18. data/lib/onlinepayments/sdk/domain/market_place.rb +37 -0
  19. data/lib/onlinepayments/sdk/domain/network_token_essentials.rb +65 -0
  20. data/lib/onlinepayments/sdk/domain/network_token_linked.rb +44 -0
  21. data/lib/onlinepayments/sdk/domain/omnichannel_payout_specific_input.rb +7 -0
  22. data/lib/onlinepayments/sdk/domain/omnichannel_subsequent_specific_input.rb +30 -0
  23. data/lib/onlinepayments/sdk/domain/payment_link_response.rb +7 -0
  24. data/lib/onlinepayments/sdk/domain/payment_product350.rb +37 -0
  25. data/lib/onlinepayments/sdk/domain/payment_product5001.rb +1 -0
  26. data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +15 -0
  27. data/lib/onlinepayments/sdk/domain/payment_response.rb +9 -0
  28. data/lib/onlinepayments/sdk/domain/pending_authentication.rb +30 -0
  29. data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_input.rb +18 -0
  30. data/lib/onlinepayments/sdk/domain/redirect_payment_product11_specific_input.rb +32 -0
  31. data/lib/onlinepayments/sdk/domain/redirect_payment_product3307_specific_input.rb +13 -0
  32. data/lib/onlinepayments/sdk/domain/redirect_payment_product5300_specific_input.rb +7 -0
  33. data/lib/onlinepayments/sdk/domain/redirect_payment_product5412_specific_input.rb +7 -0
  34. data/lib/onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input.rb +32 -0
  35. data/lib/onlinepayments/sdk/domain/refund_redirect_payment_product900_specific_input.rb +30 -0
  36. data/lib/onlinepayments/sdk/domain/refund_request.rb +9 -0
  37. data/lib/onlinepayments/sdk/domain/session_details.rb +37 -0
  38. data/lib/onlinepayments/sdk/domain/show_form_data.rb +18 -0
  39. data/lib/onlinepayments/sdk/domain/split_payment_product_filter.rb +34 -0
  40. data/lib/onlinepayments/sdk/domain/split_payment_product_filters_hosted_checkout.rb +40 -0
  41. data/lib/onlinepayments/sdk/domain/subsequent_card_payment_method_specific_input.rb +9 -0
  42. data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +0 -7
  43. data/lib/onlinepayments/sdk/domain/subsequent_payment_request.rb +9 -0
  44. data/lib/onlinepayments/sdk/domain/token_response.rb +18 -0
  45. data/lib/onlinepayments/sdk/merchant/merchant_client.rb +2 -2
  46. data/lib/onlinepayments/sdk/merchant/paymentlinks/payment_links_client.rb +0 -29
  47. data/lib/onlinepayments/sdk/merchant/payouts/payouts_client.rb +19 -19
  48. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +6 -6
  49. data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +6 -6
  50. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb +4 -4
  51. data/lib/onlinepayments/sdk/merchant/products/get_payment_product_params.rb +6 -6
  52. data/lib/onlinepayments/sdk/merchant/products/get_payment_products_params.rb +6 -6
  53. data/lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb +2 -2
  54. data/lib/onlinepayments/sdk/merchant/tokens/tokens_client.rb +24 -24
  55. data/onlinepayments-sdk-ruby.gemspec +1 -1
  56. metadata +17 -4
  57. data/lib/onlinepayments/sdk/merchant/paymentlinks/get_payment_links_in_bulk_params.rb +0 -28
@@ -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] expiry_date
10
+ # @attr [String] masked_token
11
+ # @attr [String] token_state
12
+ class NetworkTokenLinked < OnlinePayments::SDK::Domain::DataObject
13
+
14
+ attr_accessor :expiry_date
15
+
16
+ attr_accessor :masked_token
17
+
18
+ attr_accessor :token_state
19
+
20
+ # @return (Hash)
21
+ def to_h
22
+ hash = super
23
+ hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
24
+ hash['maskedToken'] = @masked_token unless @masked_token.nil?
25
+ hash['tokenState'] = @token_state unless @token_state.nil?
26
+ hash
27
+ end
28
+
29
+ def from_hash(hash)
30
+ super
31
+ if hash.has_key? 'expiryDate'
32
+ @expiry_date = hash['expiryDate']
33
+ end
34
+ if hash.has_key? 'maskedToken'
35
+ @masked_token = hash['maskedToken']
36
+ end
37
+ if hash.has_key? 'tokenState'
38
+ @token_state = hash['tokenState']
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -6,20 +6,27 @@ require 'onlinepayments/sdk/domain/data_object'
6
6
  module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
+ # @attr [String] operator_id
9
10
  # @attr [String] payment_id
10
11
  class OmnichannelPayoutSpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
13
+ attr_accessor :operator_id
14
+
12
15
  attr_accessor :payment_id
13
16
 
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
20
+ hash['operatorId'] = @operator_id unless @operator_id.nil?
17
21
  hash['paymentId'] = @payment_id unless @payment_id.nil?
18
22
  hash
19
23
  end
20
24
 
21
25
  def from_hash(hash)
22
26
  super
27
+ if hash.has_key? 'operatorId'
28
+ @operator_id = hash['operatorId']
29
+ end
23
30
  if hash.has_key? 'paymentId'
24
31
  @payment_id = hash['paymentId']
25
32
  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] operator_id
10
+ class OmnichannelSubsequentSpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :operator_id
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['operatorId'] = @operator_id unless @operator_id.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'operatorId'
24
+ @operator_id = hash['operatorId']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -16,6 +16,7 @@ module OnlinePayments
16
16
  # @attr [Array<OnlinePayments::SDK::Domain::PaymentLinkEvent>] payment_link_events
17
17
  # @attr [String] payment_link_id
18
18
  # @attr [OnlinePayments::SDK::Domain::PaymentLinkOrderOutput] payment_link_order
19
+ # @attr [String] qr_code_base64
19
20
  # @attr [String] recipient_name
20
21
  # @attr [String] redirection_url
21
22
  # @attr [String] status
@@ -33,6 +34,8 @@ module OnlinePayments
33
34
 
34
35
  attr_accessor :payment_link_order
35
36
 
37
+ attr_accessor :qr_code_base64
38
+
36
39
  attr_accessor :recipient_name
37
40
 
38
41
  attr_accessor :redirection_url
@@ -48,6 +51,7 @@ module OnlinePayments
48
51
  hash['paymentLinkEvents'] = @payment_link_events.collect{|val| val.to_h} unless @payment_link_events.nil?
49
52
  hash['paymentLinkId'] = @payment_link_id unless @payment_link_id.nil?
50
53
  hash['paymentLinkOrder'] = @payment_link_order.to_h unless @payment_link_order.nil?
54
+ hash['qrCodeBase64'] = @qr_code_base64 unless @qr_code_base64.nil?
51
55
  hash['recipientName'] = @recipient_name unless @recipient_name.nil?
52
56
  hash['redirectionUrl'] = @redirection_url unless @redirection_url.nil?
53
57
  hash['status'] = @status unless @status.nil?
@@ -79,6 +83,9 @@ module OnlinePayments
79
83
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentLinkOrder']] unless hash['paymentLinkOrder'].is_a? Hash
80
84
  @payment_link_order = OnlinePayments::SDK::Domain::PaymentLinkOrderOutput.new_from_hash(hash['paymentLinkOrder'])
81
85
  end
86
+ if hash.has_key? 'qrCodeBase64'
87
+ @qr_code_base64 = hash['qrCodeBase64']
88
+ end
82
89
  if hash.has_key? 'recipientName'
83
90
  @recipient_name = hash['recipientName']
84
91
  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] app_switch_link
10
+ # @attr [String] payment_request_token
11
+ class PaymentProduct350 < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :app_switch_link
14
+
15
+ attr_accessor :payment_request_token
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['appSwitchLink'] = @app_switch_link unless @app_switch_link.nil?
21
+ hash['paymentRequestToken'] = @payment_request_token unless @payment_request_token.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'appSwitchLink'
28
+ @app_switch_link = hash['appSwitchLink']
29
+ end
30
+ if hash.has_key? 'paymentRequestToken'
31
+ @payment_request_token = hash['paymentRequestToken']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
@@ -8,6 +8,7 @@ module OnlinePayments
8
8
  module Domain
9
9
  # @attr [String] message
10
10
  # @attr [String] polling_url
11
+ # @deprecated Deprecated by pendingAuthentication. Contains the third party data for payment product 5001 (Bizum)
11
12
  class PaymentProduct5001 < OnlinePayments::SDK::Domain::DataObject
12
13
 
13
14
  attr_accessor :message
@@ -14,7 +14,9 @@ module OnlinePayments
14
14
  # @attr [OnlinePayments::SDK::Domain::AddressPersonal] billing_personal_address
15
15
  # @attr [OnlinePayments::SDK::Domain::PaymentProduct840CustomerAccount] customer_account
16
16
  # @attr [OnlinePayments::SDK::Domain::Address] customer_address
17
+ # @attr [String] pay_pal_transaction_id
17
18
  # @attr [OnlinePayments::SDK::Domain::ProtectionEligibility] protection_eligibility
19
+ # @attr [OnlinePayments::SDK::Domain::AddressPersonal] shipping_address
18
20
  class PaymentProduct840SpecificOutput < OnlinePayments::SDK::Domain::DataObject
19
21
 
20
22
  attr_accessor :billing_address
@@ -25,8 +27,12 @@ module OnlinePayments
25
27
 
26
28
  attr_accessor :customer_address
27
29
 
30
+ attr_accessor :pay_pal_transaction_id
31
+
28
32
  attr_accessor :protection_eligibility
29
33
 
34
+ attr_accessor :shipping_address
35
+
30
36
  # @return (Hash)
31
37
  def to_h
32
38
  hash = super
@@ -34,7 +40,9 @@ module OnlinePayments
34
40
  hash['billingPersonalAddress'] = @billing_personal_address.to_h unless @billing_personal_address.nil?
35
41
  hash['customerAccount'] = @customer_account.to_h unless @customer_account.nil?
36
42
  hash['customerAddress'] = @customer_address.to_h unless @customer_address.nil?
43
+ hash['payPalTransactionId'] = @pay_pal_transaction_id unless @pay_pal_transaction_id.nil?
37
44
  hash['protectionEligibility'] = @protection_eligibility.to_h unless @protection_eligibility.nil?
45
+ hash['shippingAddress'] = @shipping_address.to_h unless @shipping_address.nil?
38
46
  hash
39
47
  end
40
48
 
@@ -56,10 +64,17 @@ module OnlinePayments
56
64
  raise TypeError, "value '%s' is not a Hash" % [hash['customerAddress']] unless hash['customerAddress'].is_a? Hash
57
65
  @customer_address = OnlinePayments::SDK::Domain::Address.new_from_hash(hash['customerAddress'])
58
66
  end
67
+ if hash.has_key? 'payPalTransactionId'
68
+ @pay_pal_transaction_id = hash['payPalTransactionId']
69
+ end
59
70
  if hash.has_key? 'protectionEligibility'
60
71
  raise TypeError, "value '%s' is not a Hash" % [hash['protectionEligibility']] unless hash['protectionEligibility'].is_a? Hash
61
72
  @protection_eligibility = OnlinePayments::SDK::Domain::ProtectionEligibility.new_from_hash(hash['protectionEligibility'])
62
73
  end
74
+ if hash.has_key? 'shippingAddress'
75
+ raise TypeError, "value '%s' is not a Hash" % [hash['shippingAddress']] unless hash['shippingAddress'].is_a? Hash
76
+ @shipping_address = OnlinePayments::SDK::Domain::AddressPersonal.new_from_hash(hash['shippingAddress'])
77
+ end
63
78
  end
64
79
  end
65
80
  end
@@ -5,6 +5,7 @@ require 'onlinepayments/sdk/domain/data_object'
5
5
  require 'onlinepayments/sdk/domain/hosted_checkout_specific_output'
6
6
  require 'onlinepayments/sdk/domain/payment_output'
7
7
  require 'onlinepayments/sdk/domain/payment_status_output'
8
+ require 'onlinepayments/sdk/domain/session_details'
8
9
 
9
10
  module OnlinePayments
10
11
  module SDK
@@ -12,6 +13,7 @@ module OnlinePayments
12
13
  # @attr [OnlinePayments::SDK::Domain::HostedCheckoutSpecificOutput] hosted_checkout_specific_output
13
14
  # @attr [String] id
14
15
  # @attr [OnlinePayments::SDK::Domain::PaymentOutput] payment_output
16
+ # @attr [OnlinePayments::SDK::Domain::SessionDetails] session_details
15
17
  # @attr [String] status
16
18
  # @attr [OnlinePayments::SDK::Domain::PaymentStatusOutput] status_output
17
19
  class PaymentResponse < OnlinePayments::SDK::Domain::DataObject
@@ -22,6 +24,8 @@ module OnlinePayments
22
24
 
23
25
  attr_accessor :payment_output
24
26
 
27
+ attr_accessor :session_details
28
+
25
29
  attr_accessor :status
26
30
 
27
31
  attr_accessor :status_output
@@ -32,6 +36,7 @@ module OnlinePayments
32
36
  hash['hostedCheckoutSpecificOutput'] = @hosted_checkout_specific_output.to_h unless @hosted_checkout_specific_output.nil?
33
37
  hash['id'] = @id unless @id.nil?
34
38
  hash['paymentOutput'] = @payment_output.to_h unless @payment_output.nil?
39
+ hash['sessionDetails'] = @session_details.to_h unless @session_details.nil?
35
40
  hash['status'] = @status unless @status.nil?
36
41
  hash['statusOutput'] = @status_output.to_h unless @status_output.nil?
37
42
  hash
@@ -50,6 +55,10 @@ module OnlinePayments
50
55
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentOutput']] unless hash['paymentOutput'].is_a? Hash
51
56
  @payment_output = OnlinePayments::SDK::Domain::PaymentOutput.new_from_hash(hash['paymentOutput'])
52
57
  end
58
+ if hash.has_key? 'sessionDetails'
59
+ raise TypeError, "value '%s' is not a Hash" % [hash['sessionDetails']] unless hash['sessionDetails'].is_a? Hash
60
+ @session_details = OnlinePayments::SDK::Domain::SessionDetails.new_from_hash(hash['sessionDetails'])
61
+ end
53
62
  if hash.has_key? 'status'
54
63
  @status = hash['status']
55
64
  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] polling_url
10
+ class PendingAuthentication < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :polling_url
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['pollingUrl'] = @polling_url unless @polling_url.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'pollingUrl'
24
+ @polling_url = hash['pollingUrl']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -2,10 +2,12 @@
2
2
  # This file was automatically generated.
3
3
  #
4
4
  require 'onlinepayments/sdk/domain/data_object'
5
+ require 'onlinepayments/sdk/domain/redirect_payment_product11_specific_input'
5
6
  require 'onlinepayments/sdk/domain/redirect_payment_product3203_specific_input'
6
7
  require 'onlinepayments/sdk/domain/redirect_payment_product3204_specific_input'
7
8
  require 'onlinepayments/sdk/domain/redirect_payment_product3302_specific_input'
8
9
  require 'onlinepayments/sdk/domain/redirect_payment_product3306_specific_input'
10
+ require 'onlinepayments/sdk/domain/redirect_payment_product3307_specific_input'
9
11
  require 'onlinepayments/sdk/domain/redirect_payment_product5001_specific_input'
10
12
  require 'onlinepayments/sdk/domain/redirect_payment_product5300_specific_input'
11
13
  require 'onlinepayments/sdk/domain/redirect_payment_product5402_specific_input'
@@ -22,10 +24,12 @@ module OnlinePayments
22
24
  module SDK
23
25
  module Domain
24
26
  # @attr [String] payment_option
27
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput] payment_product11_specific_input
25
28
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput] payment_product3203_specific_input
26
29
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3204SpecificInput] payment_product3204_specific_input
27
30
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3302SpecificInput] payment_product3302_specific_input
28
31
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput] payment_product3306_specific_input
32
+ # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput] payment_product3307_specific_input
29
33
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput] payment_product5001_specific_input
30
34
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5300SpecificInput] payment_product5300_specific_input
31
35
  # @attr [OnlinePayments::SDK::Domain::RedirectPaymentProduct5402SpecificInput] payment_product5402_specific_input
@@ -45,6 +49,8 @@ module OnlinePayments
45
49
 
46
50
  attr_accessor :payment_option
47
51
 
52
+ attr_accessor :payment_product11_specific_input
53
+
48
54
  attr_accessor :payment_product3203_specific_input
49
55
 
50
56
  attr_accessor :payment_product3204_specific_input
@@ -53,6 +59,8 @@ module OnlinePayments
53
59
 
54
60
  attr_accessor :payment_product3306_specific_input
55
61
 
62
+ attr_accessor :payment_product3307_specific_input
63
+
56
64
  attr_accessor :payment_product5001_specific_input
57
65
 
58
66
  attr_accessor :payment_product5300_specific_input
@@ -87,10 +95,12 @@ module OnlinePayments
87
95
  def to_h
88
96
  hash = super
89
97
  hash['paymentOption'] = @payment_option unless @payment_option.nil?
98
+ hash['paymentProduct11SpecificInput'] = @payment_product11_specific_input.to_h unless @payment_product11_specific_input.nil?
90
99
  hash['paymentProduct3203SpecificInput'] = @payment_product3203_specific_input.to_h unless @payment_product3203_specific_input.nil?
91
100
  hash['paymentProduct3204SpecificInput'] = @payment_product3204_specific_input.to_h unless @payment_product3204_specific_input.nil?
92
101
  hash['paymentProduct3302SpecificInput'] = @payment_product3302_specific_input.to_h unless @payment_product3302_specific_input.nil?
93
102
  hash['paymentProduct3306SpecificInput'] = @payment_product3306_specific_input.to_h unless @payment_product3306_specific_input.nil?
103
+ hash['paymentProduct3307SpecificInput'] = @payment_product3307_specific_input.to_h unless @payment_product3307_specific_input.nil?
94
104
  hash['paymentProduct5001SpecificInput'] = @payment_product5001_specific_input.to_h unless @payment_product5001_specific_input.nil?
95
105
  hash['paymentProduct5300SpecificInput'] = @payment_product5300_specific_input.to_h unless @payment_product5300_specific_input.nil?
96
106
  hash['paymentProduct5402SpecificInput'] = @payment_product5402_specific_input.to_h unless @payment_product5402_specific_input.nil?
@@ -114,6 +124,10 @@ module OnlinePayments
114
124
  if hash.has_key? 'paymentOption'
115
125
  @payment_option = hash['paymentOption']
116
126
  end
127
+ if hash.has_key? 'paymentProduct11SpecificInput'
128
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct11SpecificInput']] unless hash['paymentProduct11SpecificInput'].is_a? Hash
129
+ @payment_product11_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct11SpecificInput.new_from_hash(hash['paymentProduct11SpecificInput'])
130
+ end
117
131
  if hash.has_key? 'paymentProduct3203SpecificInput'
118
132
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3203SpecificInput']] unless hash['paymentProduct3203SpecificInput'].is_a? Hash
119
133
  @payment_product3203_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3203SpecificInput.new_from_hash(hash['paymentProduct3203SpecificInput'])
@@ -130,6 +144,10 @@ module OnlinePayments
130
144
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3306SpecificInput']] unless hash['paymentProduct3306SpecificInput'].is_a? Hash
131
145
  @payment_product3306_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3306SpecificInput.new_from_hash(hash['paymentProduct3306SpecificInput'])
132
146
  end
147
+ if hash.has_key? 'paymentProduct3307SpecificInput'
148
+ raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct3307SpecificInput']] unless hash['paymentProduct3307SpecificInput'].is_a? Hash
149
+ @payment_product3307_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct3307SpecificInput.new_from_hash(hash['paymentProduct3307SpecificInput'])
150
+ end
133
151
  if hash.has_key? 'paymentProduct5001SpecificInput'
134
152
  raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct5001SpecificInput']] unless hash['paymentProduct5001SpecificInput'].is_a? Hash
135
153
  @payment_product5001_specific_input = OnlinePayments::SDK::Domain::RedirectPaymentProduct5001SpecificInput.new_from_hash(hash['paymentProduct5001SpecificInput'])
@@ -0,0 +1,32 @@
1
+ #
2
+ # This file was automatically generated.
3
+ #
4
+ require 'date'
5
+
6
+ require 'onlinepayments/sdk/domain/data_object'
7
+
8
+ module OnlinePayments
9
+ module SDK
10
+ module Domain
11
+ # @attr [Date] first_installment_payment_date
12
+ class RedirectPaymentProduct11SpecificInput < OnlinePayments::SDK::Domain::DataObject
13
+
14
+ attr_accessor :first_installment_payment_date
15
+
16
+ # @return (Hash)
17
+ def to_h
18
+ hash = super
19
+ hash['firstInstallmentPaymentDate'] = @first_installment_payment_date.iso8601 unless @first_installment_payment_date.nil?
20
+ hash
21
+ end
22
+
23
+ def from_hash(hash)
24
+ super
25
+ if hash.has_key? 'firstInstallmentPaymentDate'
26
+ @first_installment_payment_date = Date.parse(hash['firstInstallmentPaymentDate'])
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,13 @@
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
+ class RedirectPaymentProduct3307SpecificInput < OnlinePayments::SDK::Domain::DataObject
10
+ end
11
+ end
12
+ end
13
+ end
@@ -13,6 +13,7 @@ module OnlinePayments
13
13
  # @attr [String] loyalty_card_number
14
14
  # @attr [String] second_installment_payment_date
15
15
  # @attr [Integer] session_duration
16
+ # @attr [String] title
16
17
  class RedirectPaymentProduct5300SpecificInput < OnlinePayments::SDK::Domain::DataObject
17
18
 
18
19
  attr_accessor :birth_city
@@ -29,6 +30,8 @@ module OnlinePayments
29
30
 
30
31
  attr_accessor :session_duration
31
32
 
33
+ attr_accessor :title
34
+
32
35
  # @return (Hash)
33
36
  def to_h
34
37
  hash = super
@@ -39,6 +42,7 @@ module OnlinePayments
39
42
  hash['loyaltyCardNumber'] = @loyalty_card_number unless @loyalty_card_number.nil?
40
43
  hash['secondInstallmentPaymentDate'] = @second_installment_payment_date unless @second_installment_payment_date.nil?
41
44
  hash['sessionDuration'] = @session_duration unless @session_duration.nil?
45
+ hash['title'] = @title unless @title.nil?
42
46
  hash
43
47
  end
44
48
 
@@ -65,6 +69,9 @@ module OnlinePayments
65
69
  if hash.has_key? 'sessionDuration'
66
70
  @session_duration = hash['sessionDuration']
67
71
  end
72
+ if hash.has_key? 'title'
73
+ @title = hash['title']
74
+ end
68
75
  end
69
76
  end
70
77
  end
@@ -7,14 +7,18 @@ module OnlinePayments
7
7
  module SDK
8
8
  module Domain
9
9
  # @attr [true/false] adjustable_amount
10
+ # @attr [String] beneficiary_id
10
11
  class RedirectPaymentProduct5412SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
12
 
12
13
  attr_accessor :adjustable_amount
13
14
 
15
+ attr_accessor :beneficiary_id
16
+
14
17
  # @return (Hash)
15
18
  def to_h
16
19
  hash = super
17
20
  hash['adjustableAmount'] = @adjustable_amount unless @adjustable_amount.nil?
21
+ hash['beneficiaryId'] = @beneficiary_id unless @beneficiary_id.nil?
18
22
  hash
19
23
  end
20
24
 
@@ -23,6 +27,9 @@ module OnlinePayments
23
27
  if hash.has_key? 'adjustableAmount'
24
28
  @adjustable_amount = hash['adjustableAmount']
25
29
  end
30
+ if hash.has_key? 'beneficiaryId'
31
+ @beneficiary_id = hash['beneficiaryId']
32
+ end
26
33
  end
27
34
  end
28
35
  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/refund_redirect_payment_product900_specific_input'
6
+
7
+ module OnlinePayments
8
+ module SDK
9
+ module Domain
10
+ # @attr [OnlinePayments::SDK::Domain::RefundRedirectPaymentProduct900SpecificInput] refund_redirect_payment_product900_specific_input
11
+ class RefundRedirectPaymentMethodSpecificInput < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :refund_redirect_payment_product900_specific_input
14
+
15
+ # @return (Hash)
16
+ def to_h
17
+ hash = super
18
+ hash['refundRedirectPaymentProduct900SpecificInput'] = @refund_redirect_payment_product900_specific_input.to_h unless @refund_redirect_payment_product900_specific_input.nil?
19
+ hash
20
+ end
21
+
22
+ def from_hash(hash)
23
+ super
24
+ if hash.has_key? 'refundRedirectPaymentProduct900SpecificInput'
25
+ raise TypeError, "value '%s' is not a Hash" % [hash['refundRedirectPaymentProduct900SpecificInput']] unless hash['refundRedirectPaymentProduct900SpecificInput'].is_a? Hash
26
+ @refund_redirect_payment_product900_specific_input = OnlinePayments::SDK::Domain::RefundRedirectPaymentProduct900SpecificInput.new_from_hash(hash['refundRedirectPaymentProduct900SpecificInput'])
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
32
+ 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] refund_reason
10
+ class RefundRedirectPaymentProduct900SpecificInput < OnlinePayments::SDK::Domain::DataObject
11
+
12
+ attr_accessor :refund_reason
13
+
14
+ # @return (Hash)
15
+ def to_h
16
+ hash = super
17
+ hash['refundReason'] = @refund_reason unless @refund_reason.nil?
18
+ hash
19
+ end
20
+
21
+ def from_hash(hash)
22
+ super
23
+ if hash.has_key? 'refundReason'
24
+ @refund_reason = hash['refundReason']
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
30
+ end
@@ -6,6 +6,7 @@ require 'onlinepayments/sdk/domain/data_object'
6
6
  require 'onlinepayments/sdk/domain/omnichannel_refund_specific_input'
7
7
  require 'onlinepayments/sdk/domain/operation_payment_references'
8
8
  require 'onlinepayments/sdk/domain/payment_references'
9
+ require 'onlinepayments/sdk/domain/refund_redirect_payment_method_specific_input'
9
10
 
10
11
  module OnlinePayments
11
12
  module SDK
@@ -16,6 +17,7 @@ module OnlinePayments
16
17
  # @attr [OnlinePayments::SDK::Domain::OperationPaymentReferences] operation_references
17
18
  # @attr [String] reason
18
19
  # @attr [OnlinePayments::SDK::Domain::PaymentReferences] references
20
+ # @attr [OnlinePayments::SDK::Domain::RefundRedirectPaymentMethodSpecificInput] refund_redirect_payment_method_specific_input
19
21
  class RefundRequest < OnlinePayments::SDK::Domain::DataObject
20
22
 
21
23
  attr_accessor :amount_of_money
@@ -30,6 +32,8 @@ module OnlinePayments
30
32
 
31
33
  attr_accessor :references
32
34
 
35
+ attr_accessor :refund_redirect_payment_method_specific_input
36
+
33
37
  # @return (Hash)
34
38
  def to_h
35
39
  hash = super
@@ -39,6 +43,7 @@ module OnlinePayments
39
43
  hash['operationReferences'] = @operation_references.to_h unless @operation_references.nil?
40
44
  hash['reason'] = @reason unless @reason.nil?
41
45
  hash['references'] = @references.to_h unless @references.nil?
46
+ hash['refundRedirectPaymentMethodSpecificInput'] = @refund_redirect_payment_method_specific_input.to_h unless @refund_redirect_payment_method_specific_input.nil?
42
47
  hash
43
48
  end
44
49
 
@@ -66,6 +71,10 @@ module OnlinePayments
66
71
  raise TypeError, "value '%s' is not a Hash" % [hash['references']] unless hash['references'].is_a? Hash
67
72
  @references = OnlinePayments::SDK::Domain::PaymentReferences.new_from_hash(hash['references'])
68
73
  end
74
+ if hash.has_key? 'refundRedirectPaymentMethodSpecificInput'
75
+ raise TypeError, "value '%s' is not a Hash" % [hash['refundRedirectPaymentMethodSpecificInput']] unless hash['refundRedirectPaymentMethodSpecificInput'].is_a? Hash
76
+ @refund_redirect_payment_method_specific_input = OnlinePayments::SDK::Domain::RefundRedirectPaymentMethodSpecificInput.new_from_hash(hash['refundRedirectPaymentMethodSpecificInput'])
77
+ end
69
78
  end
70
79
  end
71
80
  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] id
10
+ # @attr [String] type
11
+ class SessionDetails < OnlinePayments::SDK::Domain::DataObject
12
+
13
+ attr_accessor :id
14
+
15
+ attr_accessor :type
16
+
17
+ # @return (Hash)
18
+ def to_h
19
+ hash = super
20
+ hash['id'] = @id unless @id.nil?
21
+ hash['type'] = @type unless @type.nil?
22
+ hash
23
+ end
24
+
25
+ def from_hash(hash)
26
+ super
27
+ if hash.has_key? 'id'
28
+ @id = hash['id']
29
+ end
30
+ if hash.has_key? 'type'
31
+ @type = hash['type']
32
+ end
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end