This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ingenico ePayments
committed
Dec 18, 2017
1 parent
83d00d8
commit 273fa5f
Showing
11 changed files
with
163 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
lib/ingenico/connect/sdk/domain/definitions/airline_passenger.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# | ||
# This class was auto-generated from the API references found at | ||
# https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
# | ||
require 'ingenico/connect/sdk/data_object' | ||
|
||
module Ingenico::Connect::SDK | ||
module Domain | ||
module Definitions | ||
|
||
class AirlinePassenger < Ingenico::Connect::SDK::DataObject | ||
|
||
# String | ||
attr_accessor :first_name | ||
|
||
# String | ||
attr_accessor :surname | ||
|
||
# String | ||
attr_accessor :surname_prefix | ||
|
||
# String | ||
attr_accessor :title | ||
|
||
def to_h | ||
hash = super | ||
add_to_hash(hash, 'firstName', @first_name) | ||
add_to_hash(hash, 'surname', @surname) | ||
add_to_hash(hash, 'surnamePrefix', @surname_prefix) | ||
add_to_hash(hash, 'title', @title) | ||
hash | ||
end | ||
|
||
def from_hash(hash) | ||
super | ||
if hash.has_key?('firstName') | ||
@first_name = hash['firstName'] | ||
end | ||
if hash.has_key?('surname') | ||
@surname = hash['surname'] | ||
end | ||
if hash.has_key?('surnamePrefix') | ||
@surname_prefix = hash['surnamePrefix'] | ||
end | ||
if hash.has_key?('title') | ||
@title = hash['title'] | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
lib/ingenico/connect/sdk/domain/payment/hosted_checkout_specific_output.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# | ||
# This class was auto-generated from the API references found at | ||
# https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
# | ||
require 'ingenico/connect/sdk/data_object' | ||
|
||
module Ingenico::Connect::SDK | ||
module Domain | ||
module Payment | ||
|
||
class HostedCheckoutSpecificOutput < Ingenico::Connect::SDK::DataObject | ||
|
||
# String | ||
attr_accessor :hosted_checkout_id | ||
|
||
# String | ||
attr_accessor :variant | ||
|
||
def to_h | ||
hash = super | ||
add_to_hash(hash, 'hostedCheckoutId', @hosted_checkout_id) | ||
add_to_hash(hash, 'variant', @variant) | ||
hash | ||
end | ||
|
||
def from_hash(hash) | ||
super | ||
if hash.has_key?('hostedCheckoutId') | ||
@hosted_checkout_id = hash['hostedCheckoutId'] | ||
end | ||
if hash.has_key?('variant') | ||
@variant = hash['variant'] | ||
end | ||
end | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters