onlinepayments-sdk-ruby 4.3.0 → 4.5.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93a7c40947afa8704af74d7082c018870c346bf21c02bd485a5c70ddad1e7906
|
4
|
+
data.tar.gz: 6e17f943e4c50bc97d687a5397fd3b25c32469801ad5b9a03f3f24311b74b4b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88af096114e0386146dc027ab632d8d3da491739d6b4e54209c119b213f2c440d7c05884f471b4fdf9db66a17926d24c5cb39a96deef34e27f4227691163a80a
|
7
|
+
data.tar.gz: 12f54ad875a739a866f4f7e0cd5a5297957bbd14984002f228c3d29d5c625a368fd6db1dd1570f4b88948efcf0c78b77e0dd9a5a0373f48188686ee9b76a7f38
|
@@ -11,6 +11,7 @@ module OnlinePayments::SDK
|
|
11
11
|
# @attr [String] agent_numeric_code
|
12
12
|
# @attr [String] code
|
13
13
|
# @attr [String] flight_date
|
14
|
+
# @attr [String] flight_indicator
|
14
15
|
# @attr [Array<OnlinePayments::SDK::Domain::AirlineFlightLeg>] flight_legs
|
15
16
|
# @attr [String] invoice_number
|
16
17
|
# @attr [true/false] is_e_ticket
|
@@ -25,6 +26,7 @@ module OnlinePayments::SDK
|
|
25
26
|
# @attr [String] pnr
|
26
27
|
# @attr [String] point_of_sale
|
27
28
|
# @attr [String] pos_city_code
|
29
|
+
# @attr [String] ticket_currency
|
28
30
|
# @attr [String] ticket_delivery_method
|
29
31
|
# @attr [String] ticket_number
|
30
32
|
# @attr [Integer] total_fare
|
@@ -35,6 +37,7 @@ module OnlinePayments::SDK
|
|
35
37
|
attr_accessor :agent_numeric_code
|
36
38
|
attr_accessor :code
|
37
39
|
attr_accessor :flight_date
|
40
|
+
attr_accessor :flight_indicator
|
38
41
|
attr_accessor :flight_legs
|
39
42
|
attr_accessor :invoice_number
|
40
43
|
attr_accessor :is_e_ticket
|
@@ -49,6 +52,7 @@ module OnlinePayments::SDK
|
|
49
52
|
attr_accessor :pnr
|
50
53
|
attr_accessor :point_of_sale
|
51
54
|
attr_accessor :pos_city_code
|
55
|
+
attr_accessor :ticket_currency
|
52
56
|
attr_accessor :ticket_delivery_method
|
53
57
|
attr_accessor :ticket_number
|
54
58
|
attr_accessor :total_fare
|
@@ -62,6 +66,7 @@ module OnlinePayments::SDK
|
|
62
66
|
hash['agentNumericCode'] = @agent_numeric_code unless @agent_numeric_code.nil?
|
63
67
|
hash['code'] = @code unless @code.nil?
|
64
68
|
hash['flightDate'] = @flight_date unless @flight_date.nil?
|
69
|
+
hash['flightIndicator'] = @flight_indicator unless @flight_indicator.nil?
|
65
70
|
hash['flightLegs'] = @flight_legs.collect(&:to_h) if @flight_legs
|
66
71
|
hash['invoiceNumber'] = @invoice_number unless @invoice_number.nil?
|
67
72
|
hash['isETicket'] = @is_e_ticket unless @is_e_ticket.nil?
|
@@ -76,6 +81,7 @@ module OnlinePayments::SDK
|
|
76
81
|
hash['pnr'] = @pnr unless @pnr.nil?
|
77
82
|
hash['pointOfSale'] = @point_of_sale unless @point_of_sale.nil?
|
78
83
|
hash['posCityCode'] = @pos_city_code unless @pos_city_code.nil?
|
84
|
+
hash['ticketCurrency'] = @ticket_currency unless @ticket_currency.nil?
|
79
85
|
hash['ticketDeliveryMethod'] = @ticket_delivery_method unless @ticket_delivery_method.nil?
|
80
86
|
hash['ticketNumber'] = @ticket_number unless @ticket_number.nil?
|
81
87
|
hash['totalFare'] = @total_fare unless @total_fare.nil?
|
@@ -90,6 +96,7 @@ module OnlinePayments::SDK
|
|
90
96
|
@agent_numeric_code = hash['agentNumericCode'] if hash.key? 'agentNumericCode'
|
91
97
|
@code = hash['code'] if hash.key? 'code'
|
92
98
|
@flight_date = hash['flightDate'] if hash.key? 'flightDate'
|
99
|
+
@flight_indicator = hash['flightIndicator'] if hash.key? 'flightIndicator'
|
93
100
|
if hash.key? 'flightLegs'
|
94
101
|
raise TypeError, "value '%s' is not an Array" % [hash['flightLegs']] unless hash['flightLegs'].is_a? Array
|
95
102
|
@flight_legs = []
|
@@ -116,6 +123,7 @@ module OnlinePayments::SDK
|
|
116
123
|
@pnr = hash['pnr'] if hash.key? 'pnr'
|
117
124
|
@point_of_sale = hash['pointOfSale'] if hash.key? 'pointOfSale'
|
118
125
|
@pos_city_code = hash['posCityCode'] if hash.key? 'posCityCode'
|
126
|
+
@ticket_currency = hash['ticketCurrency'] if hash.key? 'ticketCurrency'
|
119
127
|
@ticket_delivery_method = hash['ticketDeliveryMethod'] if hash.key? 'ticketDeliveryMethod'
|
120
128
|
@ticket_number = hash['ticketNumber'] if hash.key? 'ticketNumber'
|
121
129
|
@total_fare = hash['totalFare'] if hash.key? 'totalFare'
|
@@ -6,12 +6,16 @@ require 'onlinepayments/sdk/data_object'
|
|
6
6
|
module OnlinePayments::SDK
|
7
7
|
module Domain
|
8
8
|
|
9
|
+
# @attr [String] airline_loyalty_status
|
9
10
|
# @attr [String] first_name
|
11
|
+
# @attr [String] passenger_type
|
10
12
|
# @attr [String] surname
|
11
13
|
# @attr [String] surname_prefix
|
12
14
|
# @attr [String] title
|
13
15
|
class AirlinePassenger < OnlinePayments::SDK::DataObject
|
16
|
+
attr_accessor :airline_loyalty_status
|
14
17
|
attr_accessor :first_name
|
18
|
+
attr_accessor :passenger_type
|
15
19
|
attr_accessor :surname
|
16
20
|
attr_accessor :surname_prefix
|
17
21
|
attr_accessor :title
|
@@ -19,7 +23,9 @@ module OnlinePayments::SDK
|
|
19
23
|
# @return (Hash)
|
20
24
|
def to_h
|
21
25
|
hash = super
|
26
|
+
hash['airlineLoyaltyStatus'] = @airline_loyalty_status unless @airline_loyalty_status.nil?
|
22
27
|
hash['firstName'] = @first_name unless @first_name.nil?
|
28
|
+
hash['passengerType'] = @passenger_type unless @passenger_type.nil?
|
23
29
|
hash['surname'] = @surname unless @surname.nil?
|
24
30
|
hash['surnamePrefix'] = @surname_prefix unless @surname_prefix.nil?
|
25
31
|
hash['title'] = @title unless @title.nil?
|
@@ -28,7 +34,9 @@ module OnlinePayments::SDK
|
|
28
34
|
|
29
35
|
def from_hash(hash)
|
30
36
|
super
|
37
|
+
@airline_loyalty_status = hash['airlineLoyaltyStatus'] if hash.key? 'airlineLoyaltyStatus'
|
31
38
|
@first_name = hash['firstName'] if hash.key? 'firstName'
|
39
|
+
@passenger_type = hash['passengerType'] if hash.key? 'passengerType'
|
32
40
|
@surname = hash['surname'] if hash.key? 'surname'
|
33
41
|
@surname_prefix = hash['surnamePrefix'] if hash.key? 'surnamePrefix'
|
34
42
|
@title = hash['title'] if hash.key? 'title'
|
@@ -8,11 +8,13 @@ module OnlinePayments::SDK
|
|
8
8
|
|
9
9
|
# @attr [Array<String>] expired_card_tokens
|
10
10
|
# @attr [String] hosted_tokenization_id
|
11
|
+
# @attr [String] hosted_tokenization_url
|
11
12
|
# @attr [Array<String>] invalid_tokens
|
12
13
|
# @attr [String] partial_redirect_url
|
13
14
|
class CreateHostedTokenizationResponse < OnlinePayments::SDK::DataObject
|
14
15
|
attr_accessor :expired_card_tokens
|
15
16
|
attr_accessor :hosted_tokenization_id
|
17
|
+
attr_accessor :hosted_tokenization_url
|
16
18
|
attr_accessor :invalid_tokens
|
17
19
|
attr_accessor :partial_redirect_url
|
18
20
|
|
@@ -21,6 +23,7 @@ module OnlinePayments::SDK
|
|
21
23
|
hash = super
|
22
24
|
hash['expiredCardTokens'] = @expired_card_tokens unless @expired_card_tokens.nil?
|
23
25
|
hash['hostedTokenizationId'] = @hosted_tokenization_id unless @hosted_tokenization_id.nil?
|
26
|
+
hash['hostedTokenizationUrl'] = @hosted_tokenization_url unless @hosted_tokenization_url.nil?
|
24
27
|
hash['invalidTokens'] = @invalid_tokens unless @invalid_tokens.nil?
|
25
28
|
hash['partialRedirectUrl'] = @partial_redirect_url unless @partial_redirect_url.nil?
|
26
29
|
hash
|
@@ -36,6 +39,7 @@ module OnlinePayments::SDK
|
|
36
39
|
end
|
37
40
|
end
|
38
41
|
@hosted_tokenization_id = hash['hostedTokenizationId'] if hash.key? 'hostedTokenizationId'
|
42
|
+
@hosted_tokenization_url = hash['hostedTokenizationUrl'] if hash.key? 'hostedTokenizationUrl'
|
39
43
|
if hash.key? 'invalidTokens'
|
40
44
|
raise TypeError, "value '%s' is not an Array" % [hash['invalidTokens']] unless hash['invalidTokens'].is_a? Array
|
41
45
|
@invalid_tokens = []
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'onlinepayments-sdk-ruby'
|
3
|
-
spec.version = '4.
|
3
|
+
spec.version = '4.5.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: 4.
|
4
|
+
version: 4.5.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: 2022-10
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|