connect-sdk-ruby 1.33.0 → 1.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/connect-sdk-ruby.gemspec +1 -1
- data/examples/merchant/payments/create_payment_example.rb +64 -18
- data/examples/merchant/riskassessments/risk_assessment_cards_example.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/definitions/airline_data.rb +2 -0
- data/lib/ingenico/connect/sdk/domain/definitions/company_information.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/definitions/customer_base.rb +2 -0
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields.rb +24 -0
- data/lib/ingenico/connect/sdk/domain/definitions/fraud_fields_shipping_details.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/create_hosted_checkout_request.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/hostedcheckout/created_payment_output.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/payment/abstract_card_payment_method_specific_input.rb +24 -0
- data/lib/ingenico/connect/sdk/domain/payment/abstract_sepa_direct_debit_payment_product771_specific_input.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/payment/abstract_three_d_secure.rb +74 -0
- data/lib/ingenico/connect/sdk/domain/payment/additional_order_input.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/payment/browser_data.rb +73 -0
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input.rb +15 -0
- data/lib/ingenico/connect/sdk/domain/payment/card_payment_method_specific_input_base.rb +20 -0
- data/lib/ingenico/connect/sdk/domain/payment/card_recurrence_details.rb +45 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_method_specific_input.rb +2 -0
- data/lib/ingenico/connect/sdk/domain/payment/cash_payment_product1503_specific_input.rb +3 -0
- data/lib/ingenico/connect/sdk/domain/payment/complete_payment_request.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/payment/contact_details.rb +14 -0
- data/lib/ingenico/connect/sdk/domain/payment/create_payment_request.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/payment/customer.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/payment/customer_account.rb +120 -0
- data/lib/ingenico/connect/sdk/domain/payment/customer_account_authentication.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/payment/customer_approve_payment.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/customer_device.rb +84 -0
- data/lib/ingenico/connect/sdk/domain/payment/customer_payment_activity.rb +45 -0
- data/lib/ingenico/connect/sdk/domain/payment/device_render_options.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data.rb +21 -0
- data/lib/ingenico/connect/sdk/domain/payment/gift_card_purchase.rb +42 -0
- data/lib/ingenico/connect/sdk/domain/payment/level3_summary_data.rb +4 -4
- data/lib/ingenico/connect/sdk/domain/payment/merchant.rb +49 -0
- data/lib/ingenico/connect/sdk/domain/payment/merchant_action.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/payment/mobile_three_d_secure_challenge_parameters.rb +52 -0
- data/lib/ingenico/connect/sdk/domain/payment/order.rb +3 -1
- data/lib/ingenico/connect/sdk/domain/payment/order_approve_payment.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/payment/order_type_information.rb +7 -0
- data/lib/ingenico/connect/sdk/domain/payment/payment_account_on_file.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_method_specific_input.rb +13 -0
- data/lib/ingenico/connect/sdk/domain/payment/redirect_payment_product840_specific_input.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/payment/redirection_data.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_input.rb +84 -0
- data/lib/ingenico/connect/sdk/domain/payment/sdk_data_output.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/payment/shipping.rb +53 -0
- data/lib/ingenico/connect/sdk/domain/payment/shopping_cart.rb +32 -0
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure.rb +46 -0
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_base.rb +15 -0
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_data.rb +45 -0
- data/lib/ingenico/connect/sdk/domain/payment/three_d_secure_results.rb +43 -0
- data/lib/ingenico/connect/sdk/domain/payout/create_payout_request.rb +6 -6
- data/lib/ingenico/connect/sdk/domain/product/value_mapping_element.rb +1 -1
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_account_risk_assessment.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_device_risk_assessment.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/customer_risk_assessment.rb +38 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/merchant_risk_assessment.rb +31 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/order_risk_assessment.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/risk_assessment.rb +11 -0
- data/lib/ingenico/connect/sdk/domain/riskassessments/shipping_risk_assessment.rb +49 -0
- data/lib/ingenico/connect/sdk/meta_data_provider.rb +1 -1
- metadata +25 -2
@@ -0,0 +1,31 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/data_object'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Payment
|
10
|
+
|
11
|
+
class SdkDataOutput < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :sdk_transaction_id
|
15
|
+
|
16
|
+
def to_h
|
17
|
+
hash = super
|
18
|
+
add_to_hash(hash, 'sdkTransactionId', @sdk_transaction_id)
|
19
|
+
hash
|
20
|
+
end
|
21
|
+
|
22
|
+
def from_hash(hash)
|
23
|
+
super
|
24
|
+
if hash.has_key?('sdkTransactionId')
|
25
|
+
@sdk_transaction_id = hash['sdkTransactionId']
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/address_personal'
|
6
7
|
|
7
8
|
module Ingenico::Connect::SDK
|
8
9
|
module Domain
|
@@ -10,20 +11,72 @@ module Ingenico::Connect::SDK
|
|
10
11
|
|
11
12
|
class Shipping < Ingenico::Connect::SDK::DataObject
|
12
13
|
|
14
|
+
# {Ingenico::Connect::SDK::Domain::Payment::AddressPersonal}
|
15
|
+
attr_accessor :address
|
16
|
+
|
17
|
+
# String
|
18
|
+
attr_accessor :address_indicator
|
19
|
+
|
20
|
+
# String
|
21
|
+
attr_accessor :comments
|
22
|
+
|
13
23
|
# String
|
14
24
|
attr_accessor :email_address
|
15
25
|
|
26
|
+
# String
|
27
|
+
attr_accessor :first_usage_date
|
28
|
+
|
29
|
+
# true/false
|
30
|
+
attr_accessor :is_first_usage
|
31
|
+
|
32
|
+
# String
|
33
|
+
attr_accessor :tracking_number
|
34
|
+
|
35
|
+
# String
|
36
|
+
attr_accessor :type
|
37
|
+
|
16
38
|
def to_h
|
17
39
|
hash = super
|
40
|
+
add_to_hash(hash, 'address', @address)
|
41
|
+
add_to_hash(hash, 'addressIndicator', @address_indicator)
|
42
|
+
add_to_hash(hash, 'comments', @comments)
|
18
43
|
add_to_hash(hash, 'emailAddress', @email_address)
|
44
|
+
add_to_hash(hash, 'firstUsageDate', @first_usage_date)
|
45
|
+
add_to_hash(hash, 'isFirstUsage', @is_first_usage)
|
46
|
+
add_to_hash(hash, 'trackingNumber', @tracking_number)
|
47
|
+
add_to_hash(hash, 'type', @type)
|
19
48
|
hash
|
20
49
|
end
|
21
50
|
|
22
51
|
def from_hash(hash)
|
23
52
|
super
|
53
|
+
if hash.has_key?('address')
|
54
|
+
if !(hash['address'].is_a? Hash)
|
55
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['address']]
|
56
|
+
end
|
57
|
+
@address = Ingenico::Connect::SDK::Domain::Payment::AddressPersonal.new_from_hash(hash['address'])
|
58
|
+
end
|
59
|
+
if hash.has_key?('addressIndicator')
|
60
|
+
@address_indicator = hash['addressIndicator']
|
61
|
+
end
|
62
|
+
if hash.has_key?('comments')
|
63
|
+
@comments = hash['comments']
|
64
|
+
end
|
24
65
|
if hash.has_key?('emailAddress')
|
25
66
|
@email_address = hash['emailAddress']
|
26
67
|
end
|
68
|
+
if hash.has_key?('firstUsageDate')
|
69
|
+
@first_usage_date = hash['firstUsageDate']
|
70
|
+
end
|
71
|
+
if hash.has_key?('isFirstUsage')
|
72
|
+
@is_first_usage = hash['isFirstUsage']
|
73
|
+
end
|
74
|
+
if hash.has_key?('trackingNumber')
|
75
|
+
@tracking_number = hash['trackingNumber']
|
76
|
+
end
|
77
|
+
if hash.has_key?('type')
|
78
|
+
@type = hash['type']
|
79
|
+
end
|
27
80
|
end
|
28
81
|
end
|
29
82
|
end
|
@@ -4,6 +4,7 @@
|
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
6
|
require 'ingenico/connect/sdk/domain/payment/amount_breakdown'
|
7
|
+
require 'ingenico/connect/sdk/domain/payment/gift_card_purchase'
|
7
8
|
require 'ingenico/connect/sdk/domain/payment/line_item'
|
8
9
|
|
9
10
|
module Ingenico::Connect::SDK
|
@@ -15,13 +16,29 @@ module Ingenico::Connect::SDK
|
|
15
16
|
# Array of {Ingenico::Connect::SDK::Domain::Payment::AmountBreakdown}
|
16
17
|
attr_accessor :amount_breakdown
|
17
18
|
|
19
|
+
# {Ingenico::Connect::SDK::Domain::Payment::GiftCardPurchase}
|
20
|
+
attr_accessor :gift_card_purchase
|
21
|
+
|
22
|
+
# true/false
|
23
|
+
attr_accessor :is_pre_order
|
24
|
+
|
18
25
|
# Array of {Ingenico::Connect::SDK::Domain::Payment::LineItem}
|
19
26
|
attr_accessor :items
|
20
27
|
|
28
|
+
# String
|
29
|
+
attr_accessor :pre_order_item_availability_date
|
30
|
+
|
31
|
+
# true/false
|
32
|
+
attr_accessor :re_order_indicator
|
33
|
+
|
21
34
|
def to_h
|
22
35
|
hash = super
|
23
36
|
add_to_hash(hash, 'amountBreakdown', @amount_breakdown)
|
37
|
+
add_to_hash(hash, 'giftCardPurchase', @gift_card_purchase)
|
38
|
+
add_to_hash(hash, 'isPreOrder', @is_pre_order)
|
24
39
|
add_to_hash(hash, 'items', @items)
|
40
|
+
add_to_hash(hash, 'preOrderItemAvailabilityDate', @pre_order_item_availability_date)
|
41
|
+
add_to_hash(hash, 'reOrderIndicator', @re_order_indicator)
|
25
42
|
hash
|
26
43
|
end
|
27
44
|
|
@@ -36,6 +53,15 @@ module Ingenico::Connect::SDK
|
|
36
53
|
@amount_breakdown << Ingenico::Connect::SDK::Domain::Payment::AmountBreakdown.new_from_hash(e)
|
37
54
|
end
|
38
55
|
end
|
56
|
+
if hash.has_key?('giftCardPurchase')
|
57
|
+
if !(hash['giftCardPurchase'].is_a? Hash)
|
58
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['giftCardPurchase']]
|
59
|
+
end
|
60
|
+
@gift_card_purchase = Ingenico::Connect::SDK::Domain::Payment::GiftCardPurchase.new_from_hash(hash['giftCardPurchase'])
|
61
|
+
end
|
62
|
+
if hash.has_key?('isPreOrder')
|
63
|
+
@is_pre_order = hash['isPreOrder']
|
64
|
+
end
|
39
65
|
if hash.has_key?('items')
|
40
66
|
if !(hash['items'].is_a? Array)
|
41
67
|
raise TypeError, "value '%s' is not an Array" % [hash['items']]
|
@@ -45,6 +71,12 @@ module Ingenico::Connect::SDK
|
|
45
71
|
@items << Ingenico::Connect::SDK::Domain::Payment::LineItem.new_from_hash(e)
|
46
72
|
end
|
47
73
|
end
|
74
|
+
if hash.has_key?('preOrderItemAvailabilityDate')
|
75
|
+
@pre_order_item_availability_date = hash['preOrderItemAvailabilityDate']
|
76
|
+
end
|
77
|
+
if hash.has_key?('reOrderIndicator')
|
78
|
+
@re_order_indicator = hash['reOrderIndicator']
|
79
|
+
end
|
48
80
|
end
|
49
81
|
end
|
50
82
|
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/domain/payment/abstract_three_d_secure'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/external_cardholder_authentication_data'
|
7
|
+
require 'ingenico/connect/sdk/domain/payment/redirection_data'
|
8
|
+
|
9
|
+
module Ingenico::Connect::SDK
|
10
|
+
module Domain
|
11
|
+
module Payment
|
12
|
+
|
13
|
+
class ThreeDSecure < Ingenico::Connect::SDK::Domain::Payment::AbstractThreeDSecure
|
14
|
+
|
15
|
+
# {Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData}
|
16
|
+
attr_accessor :external_cardholder_authentication_data
|
17
|
+
|
18
|
+
# {Ingenico::Connect::SDK::Domain::Payment::RedirectionData}
|
19
|
+
attr_accessor :redirection_data
|
20
|
+
|
21
|
+
def to_h
|
22
|
+
hash = super
|
23
|
+
add_to_hash(hash, 'externalCardholderAuthenticationData', @external_cardholder_authentication_data)
|
24
|
+
add_to_hash(hash, 'redirectionData', @redirection_data)
|
25
|
+
hash
|
26
|
+
end
|
27
|
+
|
28
|
+
def from_hash(hash)
|
29
|
+
super
|
30
|
+
if hash.has_key?('externalCardholderAuthenticationData')
|
31
|
+
if !(hash['externalCardholderAuthenticationData'].is_a? Hash)
|
32
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['externalCardholderAuthenticationData']]
|
33
|
+
end
|
34
|
+
@external_cardholder_authentication_data = Ingenico::Connect::SDK::Domain::Payment::ExternalCardholderAuthenticationData.new_from_hash(hash['externalCardholderAuthenticationData'])
|
35
|
+
end
|
36
|
+
if hash.has_key?('redirectionData')
|
37
|
+
if !(hash['redirectionData'].is_a? Hash)
|
38
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['redirectionData']]
|
39
|
+
end
|
40
|
+
@redirection_data = Ingenico::Connect::SDK::Domain::Payment::RedirectionData.new_from_hash(hash['redirectionData'])
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/domain/payment/abstract_three_d_secure'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Payment
|
10
|
+
|
11
|
+
class ThreeDSecureBase < Ingenico::Connect::SDK::Domain::Payment::AbstractThreeDSecure
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/data_object'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Payment
|
10
|
+
|
11
|
+
class ThreeDSecureData < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# String
|
14
|
+
attr_accessor :acs_transaction_id
|
15
|
+
|
16
|
+
# String
|
17
|
+
attr_accessor :method
|
18
|
+
|
19
|
+
# String
|
20
|
+
attr_accessor :utc_timestamp
|
21
|
+
|
22
|
+
def to_h
|
23
|
+
hash = super
|
24
|
+
add_to_hash(hash, 'acsTransactionId', @acs_transaction_id)
|
25
|
+
add_to_hash(hash, 'method', @method)
|
26
|
+
add_to_hash(hash, 'utcTimestamp', @utc_timestamp)
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
|
30
|
+
def from_hash(hash)
|
31
|
+
super
|
32
|
+
if hash.has_key?('acsTransactionId')
|
33
|
+
@acs_transaction_id = hash['acsTransactionId']
|
34
|
+
end
|
35
|
+
if hash.has_key?('method')
|
36
|
+
@method = hash['method']
|
37
|
+
end
|
38
|
+
if hash.has_key?('utcTimestamp')
|
39
|
+
@utc_timestamp = hash['utcTimestamp']
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -3,6 +3,8 @@
|
|
3
3
|
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
4
|
#
|
5
5
|
require 'ingenico/connect/sdk/data_object'
|
6
|
+
require 'ingenico/connect/sdk/domain/payment/sdk_data_output'
|
7
|
+
require 'ingenico/connect/sdk/domain/payment/three_d_secure_data'
|
6
8
|
|
7
9
|
module Ingenico::Connect::SDK
|
8
10
|
module Domain
|
@@ -13,16 +15,36 @@ module Ingenico::Connect::SDK
|
|
13
15
|
# String
|
14
16
|
attr_accessor :cavv
|
15
17
|
|
18
|
+
# String
|
19
|
+
attr_accessor :directory_server_transaction_id
|
20
|
+
|
16
21
|
# String
|
17
22
|
attr_accessor :eci
|
18
23
|
|
24
|
+
# {Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput}
|
25
|
+
attr_accessor :sdk_data
|
26
|
+
|
27
|
+
# {Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData}
|
28
|
+
attr_accessor :three_d_secure_data
|
29
|
+
|
30
|
+
# String
|
31
|
+
attr_accessor :three_d_secure_version
|
32
|
+
|
33
|
+
# String
|
34
|
+
attr_accessor :three_d_server_transaction_id
|
35
|
+
|
19
36
|
# String
|
20
37
|
attr_accessor :xid
|
21
38
|
|
22
39
|
def to_h
|
23
40
|
hash = super
|
24
41
|
add_to_hash(hash, 'cavv', @cavv)
|
42
|
+
add_to_hash(hash, 'directoryServerTransactionId', @directory_server_transaction_id)
|
25
43
|
add_to_hash(hash, 'eci', @eci)
|
44
|
+
add_to_hash(hash, 'sdkData', @sdk_data)
|
45
|
+
add_to_hash(hash, 'threeDSecureData', @three_d_secure_data)
|
46
|
+
add_to_hash(hash, 'threeDSecureVersion', @three_d_secure_version)
|
47
|
+
add_to_hash(hash, 'threeDServerTransactionId', @three_d_server_transaction_id)
|
26
48
|
add_to_hash(hash, 'xid', @xid)
|
27
49
|
hash
|
28
50
|
end
|
@@ -32,9 +54,30 @@ module Ingenico::Connect::SDK
|
|
32
54
|
if hash.has_key?('cavv')
|
33
55
|
@cavv = hash['cavv']
|
34
56
|
end
|
57
|
+
if hash.has_key?('directoryServerTransactionId')
|
58
|
+
@directory_server_transaction_id = hash['directoryServerTransactionId']
|
59
|
+
end
|
35
60
|
if hash.has_key?('eci')
|
36
61
|
@eci = hash['eci']
|
37
62
|
end
|
63
|
+
if hash.has_key?('sdkData')
|
64
|
+
if !(hash['sdkData'].is_a? Hash)
|
65
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['sdkData']]
|
66
|
+
end
|
67
|
+
@sdk_data = Ingenico::Connect::SDK::Domain::Payment::SdkDataOutput.new_from_hash(hash['sdkData'])
|
68
|
+
end
|
69
|
+
if hash.has_key?('threeDSecureData')
|
70
|
+
if !(hash['threeDSecureData'].is_a? Hash)
|
71
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['threeDSecureData']]
|
72
|
+
end
|
73
|
+
@three_d_secure_data = Ingenico::Connect::SDK::Domain::Payment::ThreeDSecureData.new_from_hash(hash['threeDSecureData'])
|
74
|
+
end
|
75
|
+
if hash.has_key?('threeDSecureVersion')
|
76
|
+
@three_d_secure_version = hash['threeDSecureVersion']
|
77
|
+
end
|
78
|
+
if hash.has_key?('threeDServerTransactionId')
|
79
|
+
@three_d_server_transaction_id = hash['threeDServerTransactionId']
|
80
|
+
end
|
38
81
|
if hash.has_key?('xid')
|
39
82
|
@xid = hash['xid']
|
40
83
|
end
|
@@ -22,12 +22,12 @@ module Ingenico::Connect::SDK
|
|
22
22
|
|
23
23
|
# {Ingenico::Connect::SDK::Domain::Definitions::BankAccountBban}
|
24
24
|
#
|
25
|
-
# Deprecated;
|
25
|
+
# Deprecated; Moved to BankTransferPayoutMethodSpecificInput
|
26
26
|
attr_accessor :bank_account_bban
|
27
27
|
|
28
28
|
# {Ingenico::Connect::SDK::Domain::Definitions::BankAccountIban}
|
29
29
|
#
|
30
|
-
# Deprecated;
|
30
|
+
# Deprecated; Moved to BankTransferPayoutMethodSpecificInput
|
31
31
|
attr_accessor :bank_account_iban
|
32
32
|
|
33
33
|
# {Ingenico::Connect::SDK::Domain::Payout::BankTransferPayoutMethodSpecificInput}
|
@@ -38,17 +38,17 @@ module Ingenico::Connect::SDK
|
|
38
38
|
|
39
39
|
# {Ingenico::Connect::SDK::Domain::Payout::PayoutCustomer}
|
40
40
|
#
|
41
|
-
# Deprecated;
|
41
|
+
# Deprecated; Moved to BankTransferPayoutMethodSpecificInput
|
42
42
|
attr_accessor :customer
|
43
43
|
|
44
44
|
# String
|
45
45
|
#
|
46
|
-
# Deprecated;
|
46
|
+
# Deprecated; Moved to BankTransferPayoutMethodSpecificInput
|
47
47
|
attr_accessor :payout_date
|
48
48
|
|
49
49
|
# String
|
50
50
|
#
|
51
|
-
# Deprecated;
|
51
|
+
# Deprecated; Moved to BankTransferPayoutMethodSpecificInput
|
52
52
|
attr_accessor :payout_text
|
53
53
|
|
54
54
|
# {Ingenico::Connect::SDK::Domain::Payout::PayoutReferences}
|
@@ -56,7 +56,7 @@ module Ingenico::Connect::SDK
|
|
56
56
|
|
57
57
|
# String
|
58
58
|
#
|
59
|
-
# Deprecated;
|
59
|
+
# Deprecated; Moved to BankTransferPayoutMethodSpecificInput
|
60
60
|
attr_accessor :swift_code
|
61
61
|
|
62
62
|
def to_h
|
@@ -0,0 +1,38 @@
|
|
1
|
+
#
|
2
|
+
# This class was auto-generated from the API references found at
|
3
|
+
# https://epayments-api.developer-ingenico.com/s2sapi/v1/
|
4
|
+
#
|
5
|
+
require 'ingenico/connect/sdk/data_object'
|
6
|
+
|
7
|
+
module Ingenico::Connect::SDK
|
8
|
+
module Domain
|
9
|
+
module Riskassessments
|
10
|
+
|
11
|
+
class CustomerAccountRiskAssessment < Ingenico::Connect::SDK::DataObject
|
12
|
+
|
13
|
+
# true/false
|
14
|
+
attr_accessor :has_forgotten_password
|
15
|
+
|
16
|
+
# true/false
|
17
|
+
attr_accessor :has_password
|
18
|
+
|
19
|
+
def to_h
|
20
|
+
hash = super
|
21
|
+
add_to_hash(hash, 'hasForgottenPassword', @has_forgotten_password)
|
22
|
+
add_to_hash(hash, 'hasPassword', @has_password)
|
23
|
+
hash
|
24
|
+
end
|
25
|
+
|
26
|
+
def from_hash(hash)
|
27
|
+
super
|
28
|
+
if hash.has_key?('hasForgottenPassword')
|
29
|
+
@has_forgotten_password = hash['hasForgottenPassword']
|
30
|
+
end
|
31
|
+
if hash.has_key?('hasPassword')
|
32
|
+
@has_password = hash['hasPassword']
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|