onlinepayments-sdk-ruby 6.0.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/card_bin_details.rb +151 -0
- data/lib/onlinepayments/sdk/domain/card_essentials.rb +21 -0
- data/lib/onlinepayments/sdk/domain/get_iin_details_response.rb +21 -0
- data/lib/onlinepayments/sdk/domain/iin_detail.rb +21 -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/product302_recurring.rb +30 -0
- data/lib/onlinepayments/sdk/domain/token_card_data.rb +9 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +4 -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 = '6.
|
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
|
@@ -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
|
@@ -15,6 +15,7 @@ module OnlinePayments
|
|
15
15
|
# @attr [String] card_number
|
16
16
|
# @attr [String] card_pan_type
|
17
17
|
# @attr [String] card_product_code
|
18
|
+
# @attr [String] card_product_name
|
18
19
|
# @attr [String] card_product_usage_label
|
19
20
|
# @attr [String] card_scheme
|
20
21
|
# @attr [String] card_type
|
@@ -22,10 +23,12 @@ module OnlinePayments
|
|
22
23
|
# @attr [String] expiry_date
|
23
24
|
# @attr [String] issuer_code
|
24
25
|
# @attr [String] issuer_name
|
26
|
+
# @attr [String] issuer_region_code
|
25
27
|
# @attr [String] issuing_country_code
|
26
28
|
# @attr [Integer] pan_length_max
|
27
29
|
# @attr [Integer] pan_length_min
|
28
30
|
# @attr [true/false] pan_luhn_check
|
31
|
+
# @attr [true/false] virtual_card_indicator
|
29
32
|
class CardEssentials < OnlinePayments::SDK::Domain::DataObject
|
30
33
|
|
31
34
|
attr_accessor :bin
|
@@ -42,6 +45,8 @@ module OnlinePayments
|
|
42
45
|
|
43
46
|
attr_accessor :card_product_code
|
44
47
|
|
48
|
+
attr_accessor :card_product_name
|
49
|
+
|
45
50
|
attr_accessor :card_product_usage_label
|
46
51
|
|
47
52
|
attr_accessor :card_scheme
|
@@ -56,6 +61,8 @@ module OnlinePayments
|
|
56
61
|
|
57
62
|
attr_accessor :issuer_name
|
58
63
|
|
64
|
+
attr_accessor :issuer_region_code
|
65
|
+
|
59
66
|
attr_accessor :issuing_country_code
|
60
67
|
|
61
68
|
attr_accessor :pan_length_max
|
@@ -64,6 +71,8 @@ module OnlinePayments
|
|
64
71
|
|
65
72
|
attr_accessor :pan_luhn_check
|
66
73
|
|
74
|
+
attr_accessor :virtual_card_indicator
|
75
|
+
|
67
76
|
# @return (Hash)
|
68
77
|
def to_h
|
69
78
|
hash = super
|
@@ -74,6 +83,7 @@ module OnlinePayments
|
|
74
83
|
hash['cardNumber'] = @card_number unless @card_number.nil?
|
75
84
|
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
76
85
|
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
86
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
77
87
|
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
78
88
|
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
79
89
|
hash['cardType'] = @card_type unless @card_type.nil?
|
@@ -81,10 +91,12 @@ module OnlinePayments
|
|
81
91
|
hash['expiryDate'] = @expiry_date unless @expiry_date.nil?
|
82
92
|
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
83
93
|
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
94
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
84
95
|
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
85
96
|
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
86
97
|
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
87
98
|
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
99
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
88
100
|
hash
|
89
101
|
end
|
90
102
|
|
@@ -111,6 +123,9 @@ module OnlinePayments
|
|
111
123
|
if hash.has_key? 'cardProductCode'
|
112
124
|
@card_product_code = hash['cardProductCode']
|
113
125
|
end
|
126
|
+
if hash.has_key? 'cardProductName'
|
127
|
+
@card_product_name = hash['cardProductName']
|
128
|
+
end
|
114
129
|
if hash.has_key? 'cardProductUsageLabel'
|
115
130
|
@card_product_usage_label = hash['cardProductUsageLabel']
|
116
131
|
end
|
@@ -132,6 +147,9 @@ module OnlinePayments
|
|
132
147
|
if hash.has_key? 'issuerName'
|
133
148
|
@issuer_name = hash['issuerName']
|
134
149
|
end
|
150
|
+
if hash.has_key? 'issuerRegionCode'
|
151
|
+
@issuer_region_code = hash['issuerRegionCode']
|
152
|
+
end
|
135
153
|
if hash.has_key? 'issuingCountryCode'
|
136
154
|
@issuing_country_code = hash['issuingCountryCode']
|
137
155
|
end
|
@@ -144,6 +162,9 @@ module OnlinePayments
|
|
144
162
|
if hash.has_key? 'panLuhnCheck'
|
145
163
|
@pan_luhn_check = hash['panLuhnCheck']
|
146
164
|
end
|
165
|
+
if hash.has_key? 'virtualCardIndicator'
|
166
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
167
|
+
end
|
147
168
|
end
|
148
169
|
end
|
149
170
|
end
|
@@ -14,6 +14,7 @@ module OnlinePayments
|
|
14
14
|
# @attr [true/false] card_effective_date_indicator
|
15
15
|
# @attr [String] card_pan_type
|
16
16
|
# @attr [String] card_product_code
|
17
|
+
# @attr [String] card_product_name
|
17
18
|
# @attr [String] card_product_usage_label
|
18
19
|
# @attr [String] card_scheme
|
19
20
|
# @attr [String] card_type
|
@@ -22,11 +23,13 @@ module OnlinePayments
|
|
22
23
|
# @attr [true/false] is_allowed_in_context
|
23
24
|
# @attr [String] issuer_code
|
24
25
|
# @attr [String] issuer_name
|
26
|
+
# @attr [String] issuer_region_code
|
25
27
|
# @attr [String] issuing_country_code
|
26
28
|
# @attr [Integer] pan_length_max
|
27
29
|
# @attr [Integer] pan_length_min
|
28
30
|
# @attr [true/false] pan_luhn_check
|
29
31
|
# @attr [Integer] payment_product_id
|
32
|
+
# @attr [true/false] virtual_card_indicator
|
30
33
|
class GetIINDetailsResponse < OnlinePayments::SDK::Domain::DataObject
|
31
34
|
|
32
35
|
attr_accessor :card_corporate_indicator
|
@@ -39,6 +42,8 @@ module OnlinePayments
|
|
39
42
|
|
40
43
|
attr_accessor :card_product_code
|
41
44
|
|
45
|
+
attr_accessor :card_product_name
|
46
|
+
|
42
47
|
attr_accessor :card_product_usage_label
|
43
48
|
|
44
49
|
attr_accessor :card_scheme
|
@@ -55,6 +60,8 @@ module OnlinePayments
|
|
55
60
|
|
56
61
|
attr_accessor :issuer_name
|
57
62
|
|
63
|
+
attr_accessor :issuer_region_code
|
64
|
+
|
58
65
|
attr_accessor :issuing_country_code
|
59
66
|
|
60
67
|
attr_accessor :pan_length_max
|
@@ -65,6 +72,8 @@ module OnlinePayments
|
|
65
72
|
|
66
73
|
attr_accessor :payment_product_id
|
67
74
|
|
75
|
+
attr_accessor :virtual_card_indicator
|
76
|
+
|
68
77
|
# @return (Hash)
|
69
78
|
def to_h
|
70
79
|
hash = super
|
@@ -73,6 +82,7 @@ module OnlinePayments
|
|
73
82
|
hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
|
74
83
|
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
75
84
|
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
85
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
76
86
|
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
77
87
|
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
78
88
|
hash['cardType'] = @card_type unless @card_type.nil?
|
@@ -81,11 +91,13 @@ module OnlinePayments
|
|
81
91
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
82
92
|
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
83
93
|
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
94
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
84
95
|
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
85
96
|
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
86
97
|
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
87
98
|
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
88
99
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
100
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
89
101
|
hash
|
90
102
|
end
|
91
103
|
|
@@ -106,6 +118,9 @@ module OnlinePayments
|
|
106
118
|
if hash.has_key? 'cardProductCode'
|
107
119
|
@card_product_code = hash['cardProductCode']
|
108
120
|
end
|
121
|
+
if hash.has_key? 'cardProductName'
|
122
|
+
@card_product_name = hash['cardProductName']
|
123
|
+
end
|
109
124
|
if hash.has_key? 'cardProductUsageLabel'
|
110
125
|
@card_product_usage_label = hash['cardProductUsageLabel']
|
111
126
|
end
|
@@ -134,6 +149,9 @@ module OnlinePayments
|
|
134
149
|
if hash.has_key? 'issuerName'
|
135
150
|
@issuer_name = hash['issuerName']
|
136
151
|
end
|
152
|
+
if hash.has_key? 'issuerRegionCode'
|
153
|
+
@issuer_region_code = hash['issuerRegionCode']
|
154
|
+
end
|
137
155
|
if hash.has_key? 'issuingCountryCode'
|
138
156
|
@issuing_country_code = hash['issuingCountryCode']
|
139
157
|
end
|
@@ -149,6 +167,9 @@ module OnlinePayments
|
|
149
167
|
if hash.has_key? 'paymentProductId'
|
150
168
|
@payment_product_id = hash['paymentProductId']
|
151
169
|
end
|
170
|
+
if hash.has_key? 'virtualCardIndicator'
|
171
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
172
|
+
end
|
152
173
|
end
|
153
174
|
end
|
154
175
|
end
|
@@ -13,6 +13,7 @@ module OnlinePayments
|
|
13
13
|
# @attr [true/false] card_effective_date_indicator
|
14
14
|
# @attr [String] card_pan_type
|
15
15
|
# @attr [String] card_product_code
|
16
|
+
# @attr [String] card_product_name
|
16
17
|
# @attr [String] card_product_usage_label
|
17
18
|
# @attr [String] card_scheme
|
18
19
|
# @attr [String] card_type
|
@@ -20,11 +21,13 @@ module OnlinePayments
|
|
20
21
|
# @attr [true/false] is_allowed_in_context
|
21
22
|
# @attr [String] issuer_code
|
22
23
|
# @attr [String] issuer_name
|
24
|
+
# @attr [String] issuer_region_code
|
23
25
|
# @attr [String] issuing_country_code
|
24
26
|
# @attr [Integer] pan_length_max
|
25
27
|
# @attr [Integer] pan_length_min
|
26
28
|
# @attr [true/false] pan_luhn_check
|
27
29
|
# @attr [Integer] payment_product_id
|
30
|
+
# @attr [true/false] virtual_card_indicator
|
28
31
|
class IINDetail < OnlinePayments::SDK::Domain::DataObject
|
29
32
|
|
30
33
|
attr_accessor :card_corporate_indicator
|
@@ -37,6 +40,8 @@ module OnlinePayments
|
|
37
40
|
|
38
41
|
attr_accessor :card_product_code
|
39
42
|
|
43
|
+
attr_accessor :card_product_name
|
44
|
+
|
40
45
|
attr_accessor :card_product_usage_label
|
41
46
|
|
42
47
|
attr_accessor :card_scheme
|
@@ -51,6 +56,8 @@ module OnlinePayments
|
|
51
56
|
|
52
57
|
attr_accessor :issuer_name
|
53
58
|
|
59
|
+
attr_accessor :issuer_region_code
|
60
|
+
|
54
61
|
attr_accessor :issuing_country_code
|
55
62
|
|
56
63
|
attr_accessor :pan_length_max
|
@@ -61,6 +68,8 @@ module OnlinePayments
|
|
61
68
|
|
62
69
|
attr_accessor :payment_product_id
|
63
70
|
|
71
|
+
attr_accessor :virtual_card_indicator
|
72
|
+
|
64
73
|
# @return (Hash)
|
65
74
|
def to_h
|
66
75
|
hash = super
|
@@ -69,6 +78,7 @@ module OnlinePayments
|
|
69
78
|
hash['cardEffectiveDateIndicator'] = @card_effective_date_indicator unless @card_effective_date_indicator.nil?
|
70
79
|
hash['cardPanType'] = @card_pan_type unless @card_pan_type.nil?
|
71
80
|
hash['cardProductCode'] = @card_product_code unless @card_product_code.nil?
|
81
|
+
hash['cardProductName'] = @card_product_name unless @card_product_name.nil?
|
72
82
|
hash['cardProductUsageLabel'] = @card_product_usage_label unless @card_product_usage_label.nil?
|
73
83
|
hash['cardScheme'] = @card_scheme unless @card_scheme.nil?
|
74
84
|
hash['cardType'] = @card_type unless @card_type.nil?
|
@@ -76,11 +86,13 @@ module OnlinePayments
|
|
76
86
|
hash['isAllowedInContext'] = @is_allowed_in_context unless @is_allowed_in_context.nil?
|
77
87
|
hash['issuerCode'] = @issuer_code unless @issuer_code.nil?
|
78
88
|
hash['issuerName'] = @issuer_name unless @issuer_name.nil?
|
89
|
+
hash['issuerRegionCode'] = @issuer_region_code unless @issuer_region_code.nil?
|
79
90
|
hash['issuingCountryCode'] = @issuing_country_code unless @issuing_country_code.nil?
|
80
91
|
hash['panLengthMax'] = @pan_length_max unless @pan_length_max.nil?
|
81
92
|
hash['panLengthMin'] = @pan_length_min unless @pan_length_min.nil?
|
82
93
|
hash['panLuhnCheck'] = @pan_luhn_check unless @pan_luhn_check.nil?
|
83
94
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
95
|
+
hash['virtualCardIndicator'] = @virtual_card_indicator unless @virtual_card_indicator.nil?
|
84
96
|
hash
|
85
97
|
end
|
86
98
|
|
@@ -101,6 +113,9 @@ module OnlinePayments
|
|
101
113
|
if hash.has_key? 'cardProductCode'
|
102
114
|
@card_product_code = hash['cardProductCode']
|
103
115
|
end
|
116
|
+
if hash.has_key? 'cardProductName'
|
117
|
+
@card_product_name = hash['cardProductName']
|
118
|
+
end
|
104
119
|
if hash.has_key? 'cardProductUsageLabel'
|
105
120
|
@card_product_usage_label = hash['cardProductUsageLabel']
|
106
121
|
end
|
@@ -122,6 +137,9 @@ module OnlinePayments
|
|
122
137
|
if hash.has_key? 'issuerName'
|
123
138
|
@issuer_name = hash['issuerName']
|
124
139
|
end
|
140
|
+
if hash.has_key? 'issuerRegionCode'
|
141
|
+
@issuer_region_code = hash['issuerRegionCode']
|
142
|
+
end
|
125
143
|
if hash.has_key? 'issuingCountryCode'
|
126
144
|
@issuing_country_code = hash['issuingCountryCode']
|
127
145
|
end
|
@@ -137,6 +155,9 @@ module OnlinePayments
|
|
137
155
|
if hash.has_key? 'paymentProductId'
|
138
156
|
@payment_product_id = hash['paymentProductId']
|
139
157
|
end
|
158
|
+
if hash.has_key? 'virtualCardIndicator'
|
159
|
+
@virtual_card_indicator = hash['virtualCardIndicator']
|
160
|
+
end
|
140
161
|
end
|
141
162
|
end
|
142
163
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/data_object'
|
5
5
|
require 'onlinepayments/sdk/domain/decrypted_payment_data'
|
6
|
+
require 'onlinepayments/sdk/domain/mobile_payment_product302_specific_input'
|
6
7
|
require 'onlinepayments/sdk/domain/mobile_payment_product320_specific_input'
|
7
8
|
|
8
9
|
module OnlinePayments
|
@@ -12,6 +13,7 @@ module OnlinePayments
|
|
12
13
|
# @attr [OnlinePayments::SDK::Domain::DecryptedPaymentData] decrypted_payment_data
|
13
14
|
# @attr [String] encrypted_payment_data
|
14
15
|
# @attr [String] ephemeral_key
|
16
|
+
# @attr [OnlinePayments::SDK::Domain::MobilePaymentProduct302SpecificInput] payment_product302_specific_input
|
15
17
|
# @attr [OnlinePayments::SDK::Domain::MobilePaymentProduct320SpecificInput] payment_product320_specific_input
|
16
18
|
# @attr [Integer] payment_product_id
|
17
19
|
# @attr [String] public_key_hash
|
@@ -26,6 +28,8 @@ module OnlinePayments
|
|
26
28
|
|
27
29
|
attr_accessor :ephemeral_key
|
28
30
|
|
31
|
+
attr_accessor :payment_product302_specific_input
|
32
|
+
|
29
33
|
attr_accessor :payment_product320_specific_input
|
30
34
|
|
31
35
|
attr_accessor :payment_product_id
|
@@ -41,6 +45,7 @@ module OnlinePayments
|
|
41
45
|
hash['decryptedPaymentData'] = @decrypted_payment_data.to_h unless @decrypted_payment_data.nil?
|
42
46
|
hash['encryptedPaymentData'] = @encrypted_payment_data unless @encrypted_payment_data.nil?
|
43
47
|
hash['ephemeralKey'] = @ephemeral_key unless @ephemeral_key.nil?
|
48
|
+
hash['paymentProduct302SpecificInput'] = @payment_product302_specific_input.to_h unless @payment_product302_specific_input.nil?
|
44
49
|
hash['paymentProduct320SpecificInput'] = @payment_product320_specific_input.to_h unless @payment_product320_specific_input.nil?
|
45
50
|
hash['paymentProductId'] = @payment_product_id unless @payment_product_id.nil?
|
46
51
|
hash['publicKeyHash'] = @public_key_hash unless @public_key_hash.nil?
|
@@ -63,6 +68,10 @@ module OnlinePayments
|
|
63
68
|
if hash.has_key? 'ephemeralKey'
|
64
69
|
@ephemeral_key = hash['ephemeralKey']
|
65
70
|
end
|
71
|
+
if hash.has_key? 'paymentProduct302SpecificInput'
|
72
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct302SpecificInput']] unless hash['paymentProduct302SpecificInput'].is_a? Hash
|
73
|
+
@payment_product302_specific_input = OnlinePayments::SDK::Domain::MobilePaymentProduct302SpecificInput.new_from_hash(hash['paymentProduct302SpecificInput'])
|
74
|
+
end
|
66
75
|
if hash.has_key? 'paymentProduct320SpecificInput'
|
67
76
|
raise TypeError, "value '%s' is not a Hash" % [hash['paymentProduct320SpecificInput']] unless hash['paymentProduct320SpecificInput'].is_a? Hash
|
68
77
|
@payment_product320_specific_input = OnlinePayments::SDK::Domain::MobilePaymentProduct320SpecificInput.new_from_hash(hash['paymentProduct320SpecificInput'])
|
@@ -3,19 +3,32 @@
|
|
3
3
|
#
|
4
4
|
require 'onlinepayments/sdk/domain/apple_pay_recurring_payment_request'
|
5
5
|
require 'onlinepayments/sdk/domain/data_object'
|
6
|
+
require 'onlinepayments/sdk/domain/product302_recurring'
|
6
7
|
|
7
8
|
module OnlinePayments
|
8
9
|
module SDK
|
9
10
|
module Domain
|
10
11
|
# @attr [OnlinePayments::SDK::Domain::ApplePayRecurringPaymentRequest] apple_pay_recurring_payment_request
|
12
|
+
# @attr [true/false] is_recurring
|
13
|
+
# @attr [OnlinePayments::SDK::Domain::Product302Recurring] recurring
|
14
|
+
# @attr [true/false] tokenize
|
11
15
|
class MobilePaymentProduct302SpecificInput < OnlinePayments::SDK::Domain::DataObject
|
12
16
|
|
13
17
|
attr_accessor :apple_pay_recurring_payment_request
|
14
18
|
|
19
|
+
attr_accessor :is_recurring
|
20
|
+
|
21
|
+
attr_accessor :recurring
|
22
|
+
|
23
|
+
attr_accessor :tokenize
|
24
|
+
|
15
25
|
# @return (Hash)
|
16
26
|
def to_h
|
17
27
|
hash = super
|
18
28
|
hash['applePayRecurringPaymentRequest'] = @apple_pay_recurring_payment_request.to_h unless @apple_pay_recurring_payment_request.nil?
|
29
|
+
hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
|
30
|
+
hash['recurring'] = @recurring.to_h unless @recurring.nil?
|
31
|
+
hash['tokenize'] = @tokenize unless @tokenize.nil?
|
19
32
|
hash
|
20
33
|
end
|
21
34
|
|
@@ -25,6 +38,16 @@ module OnlinePayments
|
|
25
38
|
raise TypeError, "value '%s' is not a Hash" % [hash['applePayRecurringPaymentRequest']] unless hash['applePayRecurringPaymentRequest'].is_a? Hash
|
26
39
|
@apple_pay_recurring_payment_request = OnlinePayments::SDK::Domain::ApplePayRecurringPaymentRequest.new_from_hash(hash['applePayRecurringPaymentRequest'])
|
27
40
|
end
|
41
|
+
if hash.has_key? 'isRecurring'
|
42
|
+
@is_recurring = hash['isRecurring']
|
43
|
+
end
|
44
|
+
if hash.has_key? 'recurring'
|
45
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['recurring']] unless hash['recurring'].is_a? Hash
|
46
|
+
@recurring = OnlinePayments::SDK::Domain::Product302Recurring.new_from_hash(hash['recurring'])
|
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,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 Product302Recurring < 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
|
@@ -1,16 +1,20 @@
|
|
1
1
|
#
|
2
2
|
# This file was automatically generated.
|
3
3
|
#
|
4
|
+
require 'onlinepayments/sdk/domain/card_bin_details'
|
4
5
|
require 'onlinepayments/sdk/domain/card_without_cvv'
|
5
6
|
require 'onlinepayments/sdk/domain/data_object'
|
6
7
|
|
7
8
|
module OnlinePayments
|
8
9
|
module SDK
|
9
10
|
module Domain
|
11
|
+
# @attr [OnlinePayments::SDK::Domain::CardBinDetails] card_bin_details
|
10
12
|
# @attr [OnlinePayments::SDK::Domain::CardWithoutCvv] card_without_cvv
|
11
13
|
# @attr [String] cobrand_selection_indicator
|
12
14
|
class TokenCardData < OnlinePayments::SDK::Domain::DataObject
|
13
15
|
|
16
|
+
attr_accessor :card_bin_details
|
17
|
+
|
14
18
|
attr_accessor :card_without_cvv
|
15
19
|
|
16
20
|
attr_accessor :cobrand_selection_indicator
|
@@ -18,6 +22,7 @@ module OnlinePayments
|
|
18
22
|
# @return (Hash)
|
19
23
|
def to_h
|
20
24
|
hash = super
|
25
|
+
hash['cardBinDetails'] = @card_bin_details.to_h unless @card_bin_details.nil?
|
21
26
|
hash['cardWithoutCvv'] = @card_without_cvv.to_h unless @card_without_cvv.nil?
|
22
27
|
hash['cobrandSelectionIndicator'] = @cobrand_selection_indicator unless @cobrand_selection_indicator.nil?
|
23
28
|
hash
|
@@ -25,6 +30,10 @@ module OnlinePayments
|
|
25
30
|
|
26
31
|
def from_hash(hash)
|
27
32
|
super
|
33
|
+
if hash.has_key? 'cardBinDetails'
|
34
|
+
raise TypeError, "value '%s' is not a Hash" % [hash['cardBinDetails']] unless hash['cardBinDetails'].is_a? Hash
|
35
|
+
@card_bin_details = OnlinePayments::SDK::Domain::CardBinDetails.new_from_hash(hash['cardBinDetails'])
|
36
|
+
end
|
28
37
|
if hash.has_key? 'cardWithoutCvv'
|
29
38
|
raise TypeError, "value '%s' is not a Hash" % [hash['cardWithoutCvv']] unless hash['cardWithoutCvv'].is_a? Hash
|
30
39
|
@card_without_cvv = OnlinePayments::SDK::Domain::CardWithoutCvv.new_from_hash(hash['cardWithoutCvv'])
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
3
|
-
spec.version = '6.
|
3
|
+
spec.version = '6.1.0'
|
4
4
|
spec.authors = ['Worldline Direct support team']
|
5
5
|
spec.email = ['82139942+worldline-direct-support-team@users.noreply.github.com']
|
6
6
|
spec.summary = %q{SDK to communicate with the Online Payments platform using the Online Payments Server API}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onlinepayments-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Worldline Direct support team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|
@@ -200,6 +200,7 @@ files:
|
|
200
200
|
- lib/onlinepayments/sdk/domain/capture_status_output.rb
|
201
201
|
- lib/onlinepayments/sdk/domain/captures_response.rb
|
202
202
|
- lib/onlinepayments/sdk/domain/card.rb
|
203
|
+
- lib/onlinepayments/sdk/domain/card_bin_details.rb
|
203
204
|
- lib/onlinepayments/sdk/domain/card_essentials.rb
|
204
205
|
- lib/onlinepayments/sdk/domain/card_fraud_results.rb
|
205
206
|
- lib/onlinepayments/sdk/domain/card_info.rb
|
@@ -372,6 +373,7 @@ files:
|
|
372
373
|
- lib/onlinepayments/sdk/domain/personal_information_token.rb
|
373
374
|
- lib/onlinepayments/sdk/domain/personal_name.rb
|
374
375
|
- lib/onlinepayments/sdk/domain/personal_name_token.rb
|
376
|
+
- lib/onlinepayments/sdk/domain/product302_recurring.rb
|
375
377
|
- lib/onlinepayments/sdk/domain/product320_recurring.rb
|
376
378
|
- lib/onlinepayments/sdk/domain/product_directory.rb
|
377
379
|
- lib/onlinepayments/sdk/domain/protection_eligibility.rb
|