onlinepayments-sdk-ruby 5.1.0 → 6.1.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.
- checksums.yaml +4 -4
- data/lib/onlinepayments/sdk/communication/metadata_provider.rb +1 -1
- data/lib/onlinepayments/sdk/domain/account_on_file.rb +1 -1
- data/lib/onlinepayments/sdk/domain/cancel_payment_request.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_bin_details.rb +151 -0
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +121 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/click_to_pay.rb +30 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +114 -0
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +121 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_method_specific_input.rb +9 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product302_specific_input.rb +23 -0
- data/lib/onlinepayments/sdk/domain/mobile_payment_product320_specific_input.rb +23 -0
- data/lib/onlinepayments/sdk/domain/network_token_data.rb +65 -0
- data/lib/onlinepayments/sdk/domain/operation_payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/order_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/payment_link_order_input.rb +1 -0
- data/lib/onlinepayments/sdk/domain/payment_product3204_specific_output.rb +30 -0
- data/lib/onlinepayments/sdk/domain/payment_product5001.rb +37 -0
- data/lib/onlinepayments/sdk/domain/payment_product840_specific_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/payment_references.rb +7 -0
- data/lib/onlinepayments/sdk/domain/product302_recurring.rb +30 -0
- data/lib/onlinepayments/sdk/domain/product320_recurring.rb +30 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_method_specific_output.rb +9 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product3204_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/redirect_payment_product809_specific_input.rb +1 -0
- data/lib/onlinepayments/sdk/domain/refund_request.rb +7 -0
- data/lib/onlinepayments/sdk/domain/revoke_mandate_request.rb +30 -0
- data/lib/onlinepayments/sdk/domain/show_form_data.rb +9 -0
- data/lib/onlinepayments/sdk/domain/subsequent_payment_product5001_specific_input.rb +7 -0
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +9 -0
- data/lib/onlinepayments/sdk/merchant/mandates/mandates_client.rb +3 -2
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_group_params.rb +1 -0
- data/lib/onlinepayments/sdk/merchant/productgroups/get_product_groups_params.rb +1 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +10 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 680e38219f9057b00d82ae4a602d5422716f134fbdcfcba9fd2078e7bcdfc3b3
|
|
4
|
+
data.tar.gz: 6b4e4e141662c93ec78685ac0048ddf89009e7afef2ab0ee1fb4e78d0846e1b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 58a1d45a89a7ea261f777d4295f2f7d8b30c1e4a34abc7d94ba448c3e64e3009313295c37f897a59784a8332fc98874fce69b59265355bfcc54ecc910e9c2827
|
|
7
|
+
data.tar.gz: 3278e83ecd87d0ee711a35616c221e17a1124d950c67c8698e3f53e58b502db76a8126e5b3628beea51d07f77c15a8014b833dfda891b6b934a980f764885e88
|
|
@@ -13,7 +13,7 @@ module OnlinePayments
|
|
|
13
13
|
class MetadataProvider
|
|
14
14
|
private
|
|
15
15
|
|
|
16
|
-
SDK_VERSION = '
|
|
16
|
+
SDK_VERSION = '6.1.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
|
|
@@ -10,7 +10,7 @@ module OnlinePayments
|
|
|
10
10
|
module Domain
|
|
11
11
|
# @attr [Array<OnlinePayments::SDK::Domain::AccountOnFileAttribute>] attributes
|
|
12
12
|
# @attr [OnlinePayments::SDK::Domain::AccountOnFileDisplayHints] display_hints
|
|
13
|
-
# @attr [
|
|
13
|
+
# @attr [String] id
|
|
14
14
|
# @attr [Integer] payment_product_id
|
|
15
15
|
class AccountOnFile < OnlinePayments::SDK::Domain::DataObject
|
|
16
16
|
|
|
@@ -3,23 +3,28 @@
|
|
|
3
3
|
#
|
|
4
4
|
require 'onlinepayments/sdk/domain/amount_of_money'
|
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
|
6
|
+
require 'onlinepayments/sdk/domain/operation_payment_references'
|
|
6
7
|
|
|
7
8
|
module OnlinePayments
|
|
8
9
|
module SDK
|
|
9
10
|
module Domain
|
|
10
11
|
# @attr [OnlinePayments::SDK::Domain::AmountOfMoney] amount_of_money
|
|
11
12
|
# @attr [true/false] is_final
|
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::OperationPaymentReferences] operation_references
|
|
12
14
|
class CancelPaymentRequest < OnlinePayments::SDK::Domain::DataObject
|
|
13
15
|
|
|
14
16
|
attr_accessor :amount_of_money
|
|
15
17
|
|
|
16
18
|
attr_accessor :is_final
|
|
17
19
|
|
|
20
|
+
attr_accessor :operation_references
|
|
21
|
+
|
|
18
22
|
# @return (Hash)
|
|
19
23
|
def to_h
|
|
20
24
|
hash = super
|
|
21
25
|
hash['amountOfMoney'] = @amount_of_money.to_h unless @amount_of_money.nil?
|
|
22
26
|
hash['isFinal'] = @is_final unless @is_final.nil?
|
|
27
|
+
hash['operationReferences'] = @operation_references.to_h unless @operation_references.nil?
|
|
23
28
|
hash
|
|
24
29
|
end
|
|
25
30
|
|
|
@@ -32,6 +37,10 @@ module OnlinePayments
|
|
|
32
37
|
if hash.has_key? 'isFinal'
|
|
33
38
|
@is_final = hash['isFinal']
|
|
34
39
|
end
|
|
40
|
+
if hash.has_key? 'operationReferences'
|
|
41
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['operationReferences']] unless hash['operationReferences'].is_a? Hash
|
|
42
|
+
@operation_references = OnlinePayments::SDK::Domain::OperationPaymentReferences.new_from_hash(hash['operationReferences'])
|
|
43
|
+
end
|
|
35
44
|
end
|
|
36
45
|
end
|
|
37
46
|
end
|
|
@@ -0,0 +1,151 @@
|
|
|
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 [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_name
|
|
17
|
+
# @attr [String] card_product_usage_label
|
|
18
|
+
# @attr [String] card_scheme
|
|
19
|
+
# @attr [String] card_type
|
|
20
|
+
# @attr [String] country_code
|
|
21
|
+
# @attr [String] issuer_code
|
|
22
|
+
# @attr [String] issuer_name
|
|
23
|
+
# @attr [String] issuer_region_code
|
|
24
|
+
# @attr [String] issuing_country_code
|
|
25
|
+
# @attr [Integer] pan_length_max
|
|
26
|
+
# @attr [Integer] pan_length_min
|
|
27
|
+
# @attr [true/false] pan_luhn_check
|
|
28
|
+
# @attr [true/false] virtual_card_indicator
|
|
29
|
+
class CardBinDetails < OnlinePayments::SDK::Domain::DataObject
|
|
30
|
+
|
|
31
|
+
attr_accessor :card_corporate_indicator
|
|
32
|
+
|
|
33
|
+
attr_accessor :card_effective_date
|
|
34
|
+
|
|
35
|
+
attr_accessor :card_effective_date_indicator
|
|
36
|
+
|
|
37
|
+
attr_accessor :card_pan_type
|
|
38
|
+
|
|
39
|
+
attr_accessor :card_product_code
|
|
40
|
+
|
|
41
|
+
attr_accessor :card_product_name
|
|
42
|
+
|
|
43
|
+
attr_accessor :card_product_usage_label
|
|
44
|
+
|
|
45
|
+
attr_accessor :card_scheme
|
|
46
|
+
|
|
47
|
+
attr_accessor :card_type
|
|
48
|
+
|
|
49
|
+
attr_accessor :country_code
|
|
50
|
+
|
|
51
|
+
attr_accessor :issuer_code
|
|
52
|
+
|
|
53
|
+
attr_accessor :issuer_name
|
|
54
|
+
|
|
55
|
+
attr_accessor :issuer_region_code
|
|
56
|
+
|
|
57
|
+
attr_accessor :issuing_country_code
|
|
58
|
+
|
|
59
|
+
attr_accessor :pan_length_max
|
|
60
|
+
|
|
61
|
+
attr_accessor :pan_length_min
|
|
62
|
+
|
|
63
|
+
attr_accessor :pan_luhn_check
|
|
64
|
+
|
|
65
|
+
attr_accessor :virtual_card_indicator
|
|
66
|
+
|
|
67
|
+
# @return (Hash)
|
|
68
|
+
def to_h
|
|
69
|
+
hash = super
|
|
70
|
+
hash['cardCorporateIndicator'] = @card_corporate_indicator unless @card_corporate_indicator.nil?
|
|
71
|
+
hash['cardEffectiveDate'] = @card_effective_date.iso8601 unless @card_effective_date.nil?
|
|
72
|
+
hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
|
|
73
|
+
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
|
74
|
+
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
|
75
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
|
76
|
+
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
|
77
|
+
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
|
78
|
+
hash['cardType'] = @card_type unless @card_type.nil?
|
|
79
|
+
hash['countryCode'] = @country_code unless @country_code.nil?
|
|
80
|
+
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
|
81
|
+
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
|
82
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
|
83
|
+
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
|
84
|
+
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
|
85
|
+
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
|
86
|
+
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
|
87
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
|
88
|
+
hash
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
def from_hash(hash)
|
|
92
|
+
super
|
|
93
|
+
if hash.has_key? 'cardCorporateIndicator'
|
|
94
|
+
@card_corporate_indicator = hash['cardCorporateIndicator']
|
|
95
|
+
end
|
|
96
|
+
if hash.has_key? 'cardEffectiveDate'
|
|
97
|
+
@card_effective_date = Date.parse(hash['cardEffectiveDate'])
|
|
98
|
+
end
|
|
99
|
+
if hash.has_key? 'cardEffectiveDateIndicator'
|
|
100
|
+
@card_effective_date_indicator = hash['cardEffectiveDateIndicator']
|
|
101
|
+
end
|
|
102
|
+
if hash.has_key? 'cardPanType'
|
|
103
|
+
@card_pan_type = hash['cardPanType']
|
|
104
|
+
end
|
|
105
|
+
if hash.has_key? 'cardProductCode'
|
|
106
|
+
@card_product_code = hash['cardProductCode']
|
|
107
|
+
end
|
|
108
|
+
if hash.has_key? 'cardProductName'
|
|
109
|
+
@card_product_name = hash['cardProductName']
|
|
110
|
+
end
|
|
111
|
+
if hash.has_key? 'cardProductUsageLabel'
|
|
112
|
+
@card_product_usage_label = hash['cardProductUsageLabel']
|
|
113
|
+
end
|
|
114
|
+
if hash.has_key? 'cardScheme'
|
|
115
|
+
@card_scheme = hash['cardScheme']
|
|
116
|
+
end
|
|
117
|
+
if hash.has_key? 'cardType'
|
|
118
|
+
@card_type = hash['cardType']
|
|
119
|
+
end
|
|
120
|
+
if hash.has_key? 'countryCode'
|
|
121
|
+
@country_code = hash['countryCode']
|
|
122
|
+
end
|
|
123
|
+
if hash.has_key? 'issuerCode'
|
|
124
|
+
@issuer_code = hash['issuerCode']
|
|
125
|
+
end
|
|
126
|
+
if hash.has_key? 'issuerName'
|
|
127
|
+
@issuer_name = hash['issuerName']
|
|
128
|
+
end
|
|
129
|
+
if hash.has_key? 'issuerRegionCode'
|
|
130
|
+
@issuer_region_code = hash['issuerRegionCode']
|
|
131
|
+
end
|
|
132
|
+
if hash.has_key? 'issuingCountryCode'
|
|
133
|
+
@issuing_country_code = hash['issuingCountryCode']
|
|
134
|
+
end
|
|
135
|
+
if hash.has_key? 'panLengthMax'
|
|
136
|
+
@pan_length_max = hash['panLengthMax']
|
|
137
|
+
end
|
|
138
|
+
if hash.has_key? 'panLengthMin'
|
|
139
|
+
@pan_length_min = hash['panLengthMin']
|
|
140
|
+
end
|
|
141
|
+
if hash.has_key? 'panLuhnCheck'
|
|
142
|
+
@pan_luhn_check = hash['panLuhnCheck']
|
|
143
|
+
end
|
|
144
|
+
if hash.has_key? 'virtualCardIndicator'
|
|
145
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
@@ -1,32 +1,102 @@
|
|
|
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
|
|
9
11
|
# @attr [String] bin
|
|
12
|
+
# @attr [true/false] card_corporate_indicator
|
|
13
|
+
# @attr [Date] card_effective_date
|
|
14
|
+
# @attr [true/false] card_effective_date_indicator
|
|
10
15
|
# @attr [String] card_number
|
|
16
|
+
# @attr [String] card_pan_type
|
|
17
|
+
# @attr [String] card_product_code
|
|
18
|
+
# @attr [String] card_product_name
|
|
19
|
+
# @attr [String] card_product_usage_label
|
|
20
|
+
# @attr [String] card_scheme
|
|
21
|
+
# @attr [String] card_type
|
|
11
22
|
# @attr [String] country_code
|
|
12
23
|
# @attr [String] expiry_date
|
|
24
|
+
# @attr [String] issuer_code
|
|
25
|
+
# @attr [String] issuer_name
|
|
26
|
+
# @attr [String] issuer_region_code
|
|
27
|
+
# @attr [String] issuing_country_code
|
|
28
|
+
# @attr [Integer] pan_length_max
|
|
29
|
+
# @attr [Integer] pan_length_min
|
|
30
|
+
# @attr [true/false] pan_luhn_check
|
|
31
|
+
# @attr [true/false] virtual_card_indicator
|
|
13
32
|
class CardEssentials < OnlinePayments::SDK::Domain::DataObject
|
|
14
33
|
|
|
15
34
|
attr_accessor :bin
|
|
16
35
|
|
|
36
|
+
attr_accessor :card_corporate_indicator
|
|
37
|
+
|
|
38
|
+
attr_accessor :card_effective_date
|
|
39
|
+
|
|
40
|
+
attr_accessor :card_effective_date_indicator
|
|
41
|
+
|
|
17
42
|
attr_accessor :card_number
|
|
18
43
|
|
|
44
|
+
attr_accessor :card_pan_type
|
|
45
|
+
|
|
46
|
+
attr_accessor :card_product_code
|
|
47
|
+
|
|
48
|
+
attr_accessor :card_product_name
|
|
49
|
+
|
|
50
|
+
attr_accessor :card_product_usage_label
|
|
51
|
+
|
|
52
|
+
attr_accessor :card_scheme
|
|
53
|
+
|
|
54
|
+
attr_accessor :card_type
|
|
55
|
+
|
|
19
56
|
attr_accessor :country_code
|
|
20
57
|
|
|
21
58
|
attr_accessor :expiry_date
|
|
22
59
|
|
|
60
|
+
attr_accessor :issuer_code
|
|
61
|
+
|
|
62
|
+
attr_accessor :issuer_name
|
|
63
|
+
|
|
64
|
+
attr_accessor :issuer_region_code
|
|
65
|
+
|
|
66
|
+
attr_accessor :issuing_country_code
|
|
67
|
+
|
|
68
|
+
attr_accessor :pan_length_max
|
|
69
|
+
|
|
70
|
+
attr_accessor :pan_length_min
|
|
71
|
+
|
|
72
|
+
attr_accessor :pan_luhn_check
|
|
73
|
+
|
|
74
|
+
attr_accessor :virtual_card_indicator
|
|
75
|
+
|
|
23
76
|
# @return (Hash)
|
|
24
77
|
def to_h
|
|
25
78
|
hash = super
|
|
26
79
|
hash['bin'] = @bin unless @bin.nil?
|
|
80
|
+
hash['cardCorporateIndicator'] = @card_corporate_indicator unless @card_corporate_indicator.nil?
|
|
81
|
+
hash['cardEffectiveDate'] = @card_effective_date.iso8601 unless @card_effective_date.nil?
|
|
82
|
+
hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
|
|
27
83
|
hash['cardNumber'] = @card_number unless @card_number.nil?
|
|
84
|
+
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
|
85
|
+
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
|
86
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
|
87
|
+
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
|
88
|
+
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
|
89
|
+
hash['cardType'] = @card_type unless @card_type.nil?
|
|
28
90
|
hash['countryCode'] = @country_code unless @country_code.nil?
|
|
29
91
|
hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
|
|
92
|
+
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
|
93
|
+
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
|
94
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
|
95
|
+
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
|
96
|
+
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
|
97
|
+
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
|
98
|
+
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
|
99
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
|
30
100
|
hash
|
|
31
101
|
end
|
|
32
102
|
|
|
@@ -35,15 +105,66 @@ module OnlinePayments
|
|
|
35
105
|
if hash.has_key? 'bin'
|
|
36
106
|
@bin = hash['bin']
|
|
37
107
|
end
|
|
108
|
+
if hash.has_key? 'cardCorporateIndicator'
|
|
109
|
+
@card_corporate_indicator = hash['cardCorporateIndicator']
|
|
110
|
+
end
|
|
111
|
+
if hash.has_key? 'cardEffectiveDate'
|
|
112
|
+
@card_effective_date = Date.parse(hash['cardEffectiveDate'])
|
|
113
|
+
end
|
|
114
|
+
if hash.has_key? 'cardEffectiveDateIndicator'
|
|
115
|
+
@card_effective_date_indicator = hash['cardEffectiveDateIndicator']
|
|
116
|
+
end
|
|
38
117
|
if hash.has_key? 'cardNumber'
|
|
39
118
|
@card_number = hash['cardNumber']
|
|
40
119
|
end
|
|
120
|
+
if hash.has_key? 'cardPanType'
|
|
121
|
+
@card_pan_type = hash['cardPanType']
|
|
122
|
+
end
|
|
123
|
+
if hash.has_key? 'cardProductCode'
|
|
124
|
+
@card_product_code = hash['cardProductCode']
|
|
125
|
+
end
|
|
126
|
+
if hash.has_key? 'cardProductName'
|
|
127
|
+
@card_product_name = hash['cardProductName']
|
|
128
|
+
end
|
|
129
|
+
if hash.has_key? 'cardProductUsageLabel'
|
|
130
|
+
@card_product_usage_label = hash['cardProductUsageLabel']
|
|
131
|
+
end
|
|
132
|
+
if hash.has_key? 'cardScheme'
|
|
133
|
+
@card_scheme = hash['cardScheme']
|
|
134
|
+
end
|
|
135
|
+
if hash.has_key? 'cardType'
|
|
136
|
+
@card_type = hash['cardType']
|
|
137
|
+
end
|
|
41
138
|
if hash.has_key? 'countryCode'
|
|
42
139
|
@country_code = hash['countryCode']
|
|
43
140
|
end
|
|
44
141
|
if hash.has_key? 'expiryDate'
|
|
45
142
|
@expiry_date = hash['expiryDate']
|
|
46
143
|
end
|
|
144
|
+
if hash.has_key? 'issuerCode'
|
|
145
|
+
@issuer_code = hash['issuerCode']
|
|
146
|
+
end
|
|
147
|
+
if hash.has_key? 'issuerName'
|
|
148
|
+
@issuer_name = hash['issuerName']
|
|
149
|
+
end
|
|
150
|
+
if hash.has_key? 'issuerRegionCode'
|
|
151
|
+
@issuer_region_code = hash['issuerRegionCode']
|
|
152
|
+
end
|
|
153
|
+
if hash.has_key? 'issuingCountryCode'
|
|
154
|
+
@issuing_country_code = hash['issuingCountryCode']
|
|
155
|
+
end
|
|
156
|
+
if hash.has_key? 'panLengthMax'
|
|
157
|
+
@pan_length_max = hash['panLengthMax']
|
|
158
|
+
end
|
|
159
|
+
if hash.has_key? 'panLengthMin'
|
|
160
|
+
@pan_length_min = hash['panLengthMin']
|
|
161
|
+
end
|
|
162
|
+
if hash.has_key? 'panLuhnCheck'
|
|
163
|
+
@pan_luhn_check = hash['panLuhnCheck']
|
|
164
|
+
end
|
|
165
|
+
if hash.has_key? 'virtualCardIndicator'
|
|
166
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
|
167
|
+
end
|
|
47
168
|
end
|
|
48
169
|
end
|
|
49
170
|
end
|
|
@@ -6,6 +6,7 @@ require 'onlinepayments/sdk/domain/card_recurrence_details'
|
|
|
6
6
|
require 'onlinepayments/sdk/domain/currency_conversion_input'
|
|
7
7
|
require 'onlinepayments/sdk/domain/data_object'
|
|
8
8
|
require 'onlinepayments/sdk/domain/multiple_payment_information'
|
|
9
|
+
require 'onlinepayments/sdk/domain/network_token_data'
|
|
9
10
|
require 'onlinepayments/sdk/domain/payment_product130_specific_input'
|
|
10
11
|
require 'onlinepayments/sdk/domain/payment_product3012_specific_input'
|
|
11
12
|
require 'onlinepayments/sdk/domain/payment_product3208_specific_input'
|
|
@@ -25,6 +26,7 @@ module OnlinePayments
|
|
|
25
26
|
# @attr [String] initial_scheme_transaction_id
|
|
26
27
|
# @attr [true/false] is_recurring
|
|
27
28
|
# @attr [OnlinePayments::SDK::Domain::MultiplePaymentInformation] multiple_payment_information
|
|
29
|
+
# @attr [OnlinePayments::SDK::Domain::NetworkTokenData] network_token_data
|
|
28
30
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
|
|
29
31
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3012SpecificInput] payment_product3012_specific_input
|
|
30
32
|
# @attr [OnlinePayments::SDK::Domain::PaymentProduct3208SpecificInput] payment_product3208_specific_input
|
|
@@ -62,6 +64,8 @@ module OnlinePayments
|
|
|
62
64
|
|
|
63
65
|
attr_accessor :multiple_payment_information
|
|
64
66
|
|
|
67
|
+
attr_accessor :network_token_data
|
|
68
|
+
|
|
65
69
|
attr_accessor :payment_product130_specific_input
|
|
66
70
|
|
|
67
71
|
attr_accessor :payment_product3012_specific_input
|
|
@@ -106,6 +110,7 @@ module OnlinePayments
|
|
|
106
110
|
hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
|
|
107
111
|
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
|
108
112
|
hash['multiplePaymentInformation'] = @multiple_payment_information.to_h unless @multiple_payment_information.nil?
|
|
113
|
+
hash['networkTokenData'] = @network_token_data.to_h unless @network_token_data.nil?
|
|
109
114
|
hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h unless @payment_product130_specific_input.nil?
|
|
110
115
|
hash['paymentProduct3012SpecificInput'] = @payment_product3012_specific_input.to_h unless @payment_product3012_specific_input.nil?
|
|
111
116
|
hash['paymentProduct3208SpecificInput'] = @payment_product3208_specific_input.to_h unless @payment_product3208_specific_input.nil?
|
|
@@ -159,6 +164,10 @@ module OnlinePayments
|
|
|
159
164
|
raise TypeError, "value '%s' is not a Hash" % [hash['multiplePaymentInformation']] unless hash['multiplePaymentInformation'].is_a? Hash
|
|
160
165
|
@multiple_payment_information = OnlinePayments::SDK::Domain::MultiplePaymentInformation.new_from_hash(hash['multiplePaymentInformation'])
|
|
161
166
|
end
|
|
167
|
+
if hash.has_key? 'networkTokenData'
|
|
168
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['networkTokenData']] unless hash['networkTokenData'].is_a? Hash
|
|
169
|
+
@network_token_data = OnlinePayments::SDK::Domain::NetworkTokenData.new_from_hash(hash['networkTokenData'])
|
|
170
|
+
end
|
|
162
171
|
if hash.has_key? 'paymentProduct130SpecificInput'
|
|
163
172
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct130SpecificInput']] unless hash['paymentProduct130SpecificInput'].is_a? Hash
|
|
164
173
|
@payment_product130_specific_input = OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput.new_from_hash(hash['paymentProduct130SpecificInput'])
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
require 'onlinepayments/sdk/domain/acquirer_information'
|
|
5
5
|
require 'onlinepayments/sdk/domain/card_essentials'
|
|
6
6
|
require 'onlinepayments/sdk/domain/card_fraud_results'
|
|
7
|
+
require 'onlinepayments/sdk/domain/click_to_pay'
|
|
7
8
|
require 'onlinepayments/sdk/domain/currency_conversion'
|
|
8
9
|
require 'onlinepayments/sdk/domain/data_object'
|
|
9
10
|
require 'onlinepayments/sdk/domain/external_token_linked'
|
|
@@ -19,6 +20,7 @@ module OnlinePayments
|
|
|
19
20
|
# @attr [Integer] authenticated_amount
|
|
20
21
|
# @attr [String] authorisation_code
|
|
21
22
|
# @attr [OnlinePayments::SDK::Domain::CardEssentials] card
|
|
23
|
+
# @attr [OnlinePayments::SDK::Domain::ClickToPay] click_to_pay
|
|
22
24
|
# @attr [OnlinePayments::SDK::Domain::CurrencyConversion] currency_conversion
|
|
23
25
|
# @attr [OnlinePayments::SDK::Domain::ExternalTokenLinked] external_token_linked
|
|
24
26
|
# @attr [OnlinePayments::SDK::Domain::CardFraudResults] fraud_results
|
|
@@ -42,6 +44,8 @@ module OnlinePayments
|
|
|
42
44
|
|
|
43
45
|
attr_accessor :card
|
|
44
46
|
|
|
47
|
+
attr_accessor :click_to_pay
|
|
48
|
+
|
|
45
49
|
attr_accessor :currency_conversion
|
|
46
50
|
|
|
47
51
|
attr_accessor :external_token_linked
|
|
@@ -75,6 +79,7 @@ module OnlinePayments
|
|
|
75
79
|
hash['authenticatedAmount'] = @authenticated_amount unless @authenticated_amount.nil?
|
|
76
80
|
hash['authorisationCode'] = @authorisation_code unless @authorisation_code.nil?
|
|
77
81
|
hash['card'] = @card.to_h unless @card.nil?
|
|
82
|
+
hash['clickToPay'] = @click_to_pay.to_h unless @click_to_pay.nil?
|
|
78
83
|
hash['currencyConversion'] = @currency_conversion.to_h unless @currency_conversion.nil?
|
|
79
84
|
hash['externalTokenLinked'] = @external_token_linked.to_h unless @external_token_linked.nil?
|
|
80
85
|
hash['fraudResults'] = @fraud_results.to_h unless @fraud_results.nil?
|
|
@@ -107,6 +112,10 @@ module OnlinePayments
|
|
|
107
112
|
raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
|
|
108
113
|
@card = OnlinePayments::SDK::Domain::CardEssentials.new_from_hash(hash['card'])
|
|
109
114
|
end
|
|
115
|
+
if hash.has_key? 'clickToPay'
|
|
116
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['clickToPay']] unless hash['clickToPay'].is_a? Hash
|
|
117
|
+
@click_to_pay = OnlinePayments::SDK::Domain::ClickToPay.new_from_hash(hash['clickToPay'])
|
|
118
|
+
end
|
|
110
119
|
if hash.has_key? 'currencyConversion'
|
|
111
120
|
raise TypeError, "value '%s' is not a Hash" % [hash['currencyConversion']] unless hash['currencyConversion'].is_a? Hash
|
|
112
121
|
@currency_conversion = OnlinePayments::SDK::Domain::CurrencyConversion.new_from_hash(hash['currencyConversion'])
|
|
@@ -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 [true/false] is_click_to_pay_payment
|
|
10
|
+
class ClickToPay < OnlinePayments::SDK::Domain::DataObject
|
|
11
|
+
|
|
12
|
+
attr_accessor :is_click_to_pay_payment
|
|
13
|
+
|
|
14
|
+
# @return (Hash)
|
|
15
|
+
def to_h
|
|
16
|
+
hash = super
|
|
17
|
+
hash['IsClickToPayPayment'] = @is_click_to_pay_payment unless @is_click_to_pay_payment.nil?
|
|
18
|
+
hash
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def from_hash(hash)
|
|
22
|
+
super
|
|
23
|
+
if hash.has_key? 'IsClickToPayPayment'
|
|
24
|
+
@is_click_to_pay_payment = hash['IsClickToPayPayment']
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -1,19 +1,53 @@
|
|
|
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
|
require 'onlinepayments/sdk/domain/iin_detail'
|
|
6
8
|
|
|
7
9
|
module OnlinePayments
|
|
8
10
|
module SDK
|
|
9
11
|
module Domain
|
|
12
|
+
# @attr [true/false] card_corporate_indicator
|
|
13
|
+
# @attr [Date] card_effective_date
|
|
14
|
+
# @attr [true/false] card_effective_date_indicator
|
|
15
|
+
# @attr [String] card_pan_type
|
|
16
|
+
# @attr [String] card_product_code
|
|
17
|
+
# @attr [String] card_product_name
|
|
18
|
+
# @attr [String] card_product_usage_label
|
|
19
|
+
# @attr [String] card_scheme
|
|
10
20
|
# @attr [String] card_type
|
|
11
21
|
# @attr [Array<OnlinePayments::SDK::Domain::IINDetail>] co_brands
|
|
12
22
|
# @attr [String] country_code
|
|
13
23
|
# @attr [true/false] is_allowed_in_context
|
|
24
|
+
# @attr [String] issuer_code
|
|
25
|
+
# @attr [String] issuer_name
|
|
26
|
+
# @attr [String] issuer_region_code
|
|
27
|
+
# @attr [String] issuing_country_code
|
|
28
|
+
# @attr [Integer] pan_length_max
|
|
29
|
+
# @attr [Integer] pan_length_min
|
|
30
|
+
# @attr [true/false] pan_luhn_check
|
|
14
31
|
# @attr [Integer] payment_product_id
|
|
32
|
+
# @attr [true/false] virtual_card_indicator
|
|
15
33
|
class GetIINDetailsResponse < OnlinePayments::SDK::Domain::DataObject
|
|
16
34
|
|
|
35
|
+
attr_accessor :card_corporate_indicator
|
|
36
|
+
|
|
37
|
+
attr_accessor :card_effective_date
|
|
38
|
+
|
|
39
|
+
attr_accessor :card_effective_date_indicator
|
|
40
|
+
|
|
41
|
+
attr_accessor :card_pan_type
|
|
42
|
+
|
|
43
|
+
attr_accessor :card_product_code
|
|
44
|
+
|
|
45
|
+
attr_accessor :card_product_name
|
|
46
|
+
|
|
47
|
+
attr_accessor :card_product_usage_label
|
|
48
|
+
|
|
49
|
+
attr_accessor :card_scheme
|
|
50
|
+
|
|
17
51
|
attr_accessor :card_type
|
|
18
52
|
|
|
19
53
|
attr_accessor :co_brands
|
|
@@ -22,21 +56,77 @@ module OnlinePayments
|
|
|
22
56
|
|
|
23
57
|
attr_accessor :is_allowed_in_context
|
|
24
58
|
|
|
59
|
+
attr_accessor :issuer_code
|
|
60
|
+
|
|
61
|
+
attr_accessor :issuer_name
|
|
62
|
+
|
|
63
|
+
attr_accessor :issuer_region_code
|
|
64
|
+
|
|
65
|
+
attr_accessor :issuing_country_code
|
|
66
|
+
|
|
67
|
+
attr_accessor :pan_length_max
|
|
68
|
+
|
|
69
|
+
attr_accessor :pan_length_min
|
|
70
|
+
|
|
71
|
+
attr_accessor :pan_luhn_check
|
|
72
|
+
|
|
25
73
|
attr_accessor :payment_product_id
|
|
26
74
|
|
|
75
|
+
attr_accessor :virtual_card_indicator
|
|
76
|
+
|
|
27
77
|
# @return (Hash)
|
|
28
78
|
def to_h
|
|
29
79
|
hash = super
|
|
80
|
+
hash['cardCorporateIndicator'] = @card_corporate_indicator unless @card_corporate_indicator.nil?
|
|
81
|
+
hash['cardEffectiveDate'] = @card_effective_date.iso8601 unless @card_effective_date.nil?
|
|
82
|
+
hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
|
|
83
|
+
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
|
84
|
+
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
|
85
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
|
86
|
+
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
|
87
|
+
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
|
30
88
|
hash['cardType'] = @card_type unless @card_type.nil?
|
|
31
89
|
hash['coBrands'] = @co_brands.collect{|val| val.to_h} unless @co_brands.nil?
|
|
32
90
|
hash['countryCode'] = @country_code unless @country_code.nil?
|
|
33
91
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
|
92
|
+
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
|
93
|
+
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
|
94
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
|
95
|
+
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
|
96
|
+
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
|
97
|
+
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
|
98
|
+
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
|
34
99
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
|
100
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
|
35
101
|
hash
|
|
36
102
|
end
|
|
37
103
|
|
|
38
104
|
def from_hash(hash)
|
|
39
105
|
super
|
|
106
|
+
if hash.has_key? 'cardCorporateIndicator'
|
|
107
|
+
@card_corporate_indicator = hash['cardCorporateIndicator']
|
|
108
|
+
end
|
|
109
|
+
if hash.has_key? 'cardEffectiveDate'
|
|
110
|
+
@card_effective_date = Date.parse(hash['cardEffectiveDate'])
|
|
111
|
+
end
|
|
112
|
+
if hash.has_key? 'cardEffectiveDateIndicator'
|
|
113
|
+
@card_effective_date_indicator = hash['cardEffectiveDateIndicator']
|
|
114
|
+
end
|
|
115
|
+
if hash.has_key? 'cardPanType'
|
|
116
|
+
@card_pan_type = hash['cardPanType']
|
|
117
|
+
end
|
|
118
|
+
if hash.has_key? 'cardProductCode'
|
|
119
|
+
@card_product_code = hash['cardProductCode']
|
|
120
|
+
end
|
|
121
|
+
if hash.has_key? 'cardProductName'
|
|
122
|
+
@card_product_name = hash['cardProductName']
|
|
123
|
+
end
|
|
124
|
+
if hash.has_key? 'cardProductUsageLabel'
|
|
125
|
+
@card_product_usage_label = hash['cardProductUsageLabel']
|
|
126
|
+
end
|
|
127
|
+
if hash.has_key? 'cardScheme'
|
|
128
|
+
@card_scheme = hash['cardScheme']
|
|
129
|
+
end
|
|
40
130
|
if hash.has_key? 'cardType'
|
|
41
131
|
@card_type = hash['cardType']
|
|
42
132
|
end
|
|
@@ -53,9 +143,33 @@ module OnlinePayments
|
|
|
53
143
|
if hash.has_key? 'isAllowedInContext'
|
|
54
144
|
@is_allowed_in_context = hash['isAllowedInContext']
|
|
55
145
|
end
|
|
146
|
+
if hash.has_key? 'issuerCode'
|
|
147
|
+
@issuer_code = hash['issuerCode']
|
|
148
|
+
end
|
|
149
|
+
if hash.has_key? 'issuerName'
|
|
150
|
+
@issuer_name = hash['issuerName']
|
|
151
|
+
end
|
|
152
|
+
if hash.has_key? 'issuerRegionCode'
|
|
153
|
+
@issuer_region_code = hash['issuerRegionCode']
|
|
154
|
+
end
|
|
155
|
+
if hash.has_key? 'issuingCountryCode'
|
|
156
|
+
@issuing_country_code = hash['issuingCountryCode']
|
|
157
|
+
end
|
|
158
|
+
if hash.has_key? 'panLengthMax'
|
|
159
|
+
@pan_length_max = hash['panLengthMax']
|
|
160
|
+
end
|
|
161
|
+
if hash.has_key? 'panLengthMin'
|
|
162
|
+
@pan_length_min = hash['panLengthMin']
|
|
163
|
+
end
|
|
164
|
+
if hash.has_key? 'panLuhnCheck'
|
|
165
|
+
@pan_luhn_check = hash['panLuhnCheck']
|
|
166
|
+
end
|
|
56
167
|
if hash.has_key? 'paymentProductId'
|
|
57
168
|
@payment_product_id = hash['paymentProductId']
|
|
58
169
|
end
|
|
170
|
+
if hash.has_key? 'virtualCardIndicator'
|
|
171
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
|
172
|
+
end
|
|
59
173
|
end
|
|
60
174
|
end
|
|
61
175
|
end
|