onlinepayments-sdk-ruby 4.2.0 → 4.4.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/domain/airline_data.rb +8 -0
- data/lib/onlinepayments/sdk/domain/airline_passenger.rb +8 -0
- data/lib/onlinepayments/sdk/domain/api_error.rb +4 -0
- data/lib/onlinepayments/sdk/domain/card_payment_method_specific_input.rb +8 -0
- data/onlinepayments-sdk-ruby.gemspec +1 -1
- metadata +2 -2
    
        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'
         | 
| @@ -13,6 +13,7 @@ module OnlinePayments::SDK | |
| 13 13 | 
             
                # @attr [String] id
         | 
| 14 14 | 
             
                # @attr [String] message
         | 
| 15 15 | 
             
                # @attr [String] property_name
         | 
| 16 | 
            +
                # @attr [true/false] retriable
         | 
| 16 17 | 
             
                class APIError < OnlinePayments::SDK::DataObject
         | 
| 17 18 | 
             
                  attr_accessor :category
         | 
| 18 19 | 
             
                  attr_accessor :code
         | 
| @@ -21,6 +22,7 @@ module OnlinePayments::SDK | |
| 21 22 | 
             
                  attr_accessor :id
         | 
| 22 23 | 
             
                  attr_accessor :message
         | 
| 23 24 | 
             
                  attr_accessor :property_name
         | 
| 25 | 
            +
                  attr_accessor :retriable
         | 
| 24 26 |  | 
| 25 27 | 
             
                  # @return (Hash)
         | 
| 26 28 | 
             
                  def to_h
         | 
| @@ -32,6 +34,7 @@ module OnlinePayments::SDK | |
| 32 34 | 
             
                    hash['id'] = @id unless @id.nil?
         | 
| 33 35 | 
             
                    hash['message'] = @message unless @message.nil?
         | 
| 34 36 | 
             
                    hash['propertyName'] = @property_name unless @property_name.nil?
         | 
| 37 | 
            +
                    hash['retriable'] = @retriable unless @retriable.nil?
         | 
| 35 38 | 
             
                    hash
         | 
| 36 39 | 
             
                  end
         | 
| 37 40 |  | 
| @@ -44,6 +47,7 @@ module OnlinePayments::SDK | |
| 44 47 | 
             
                    @id = hash['id'] if hash.key? 'id'
         | 
| 45 48 | 
             
                    @message = hash['message'] if hash.key? 'message'
         | 
| 46 49 | 
             
                    @property_name = hash['propertyName'] if hash.key? 'propertyName'
         | 
| 50 | 
            +
                    @retriable = hash['retriable'] if hash.key? 'retriable'
         | 
| 47 51 | 
             
                  end
         | 
| 48 52 | 
             
                end
         | 
| 49 53 | 
             
              end
         | 
| @@ -12,6 +12,8 @@ module OnlinePayments::SDK | |
| 12 12 |  | 
| 13 13 | 
             
                # @attr [String] authorization_mode
         | 
| 14 14 | 
             
                # @attr [OnlinePayments::SDK::Domain::Card] card
         | 
| 15 | 
            +
                # @attr [String] card_on_file_recurring_expiration
         | 
| 16 | 
            +
                # @attr [String] card_on_file_recurring_frequency
         | 
| 15 17 | 
             
                # @attr [String] initial_scheme_transaction_id
         | 
| 16 18 | 
             
                # @attr [true/false] is_recurring
         | 
| 17 19 | 
             
                # @attr [OnlinePayments::SDK::Domain::PaymentProduct130SpecificInput] payment_product130_specific_input
         | 
| @@ -29,6 +31,8 @@ module OnlinePayments::SDK | |
| 29 31 | 
             
                class CardPaymentMethodSpecificInput < OnlinePayments::SDK::DataObject
         | 
| 30 32 | 
             
                  attr_accessor :authorization_mode
         | 
| 31 33 | 
             
                  attr_accessor :card
         | 
| 34 | 
            +
                  attr_accessor :card_on_file_recurring_expiration
         | 
| 35 | 
            +
                  attr_accessor :card_on_file_recurring_frequency
         | 
| 32 36 | 
             
                  attr_accessor :initial_scheme_transaction_id
         | 
| 33 37 | 
             
                  attr_accessor :is_recurring
         | 
| 34 38 | 
             
                  attr_accessor :payment_product130_specific_input
         | 
| @@ -49,6 +53,8 @@ module OnlinePayments::SDK | |
| 49 53 | 
             
                    hash = super
         | 
| 50 54 | 
             
                    hash['authorizationMode'] = @authorization_mode unless @authorization_mode.nil?
         | 
| 51 55 | 
             
                    hash['card'] = @card.to_h if @card
         | 
| 56 | 
            +
                    hash['cardOnFileRecurringExpiration'] = @card_on_file_recurring_expiration unless @card_on_file_recurring_expiration.nil?
         | 
| 57 | 
            +
                    hash['cardOnFileRecurringFrequency'] = @card_on_file_recurring_frequency unless @card_on_file_recurring_frequency.nil?
         | 
| 52 58 | 
             
                    hash['initialSchemeTransactionId'] = @initial_scheme_transaction_id unless @initial_scheme_transaction_id.nil?
         | 
| 53 59 | 
             
                    hash['isRecurring'] = @is_recurring unless @is_recurring.nil?
         | 
| 54 60 | 
             
                    hash['paymentProduct130SpecificInput'] = @payment_product130_specific_input.to_h if @payment_product130_specific_input
         | 
| @@ -73,6 +79,8 @@ module OnlinePayments::SDK | |
| 73 79 | 
             
                      raise TypeError, "value '%s' is not a Hash" % [hash['card']] unless hash['card'].is_a? Hash
         | 
| 74 80 | 
             
                      @card = OnlinePayments::SDK::Domain::Card.new_from_hash(hash['card'])
         | 
| 75 81 | 
             
                    end
         | 
| 82 | 
            +
                    @card_on_file_recurring_expiration = hash['cardOnFileRecurringExpiration'] if hash.key? 'cardOnFileRecurringExpiration'
         | 
| 83 | 
            +
                    @card_on_file_recurring_frequency = hash['cardOnFileRecurringFrequency'] if hash.key? 'cardOnFileRecurringFrequency'
         | 
| 76 84 | 
             
                    @initial_scheme_transaction_id = hash['initialSchemeTransactionId'] if hash.key? 'initialSchemeTransactionId'
         | 
| 77 85 | 
             
                    @is_recurring = hash['isRecurring'] if hash.key? 'isRecurring'
         | 
| 78 86 | 
             
                    if hash.key? 'paymentProduct130SpecificInput'
         | 
| @@ -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
         |