onlinepayments-sdk-ruby 4.3.0 → 4.4.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: 3c34ca597dc2815f823c2a086d2ab03f6e58b8aa59fa3d1fb5ecafc2f0167a3e
|
4
|
+
data.tar.gz: a888cab1541d3cfb78cbe85234a5093d1ec7c101f69f5f978c2793815f2046fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cad03d22b632779f34c31ef715279bc19b8667726c2da0d26c3ac5d3dd7793749faecd1c72f579c71159ceca4f518c6ca7fee5715430529c78b3f23ad0fbb53
|
7
|
+
data.tar.gz: 3f792f85f3dfcba14dbe009367b1e367d4bb0002c47de6f9d8fe56cd74d73d9854292abb9fb1ab63cee7c0be16e8d30a8e59eb972bbf3ed01fa2c85d232358bd
|
@@ -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'
|
@@ -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.4.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.4.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-
|
11
|
+
date: 2022-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpclient
|