Class: UnivapayClientSdk::BaseBankTransferData
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UnivapayClientSdk::BaseBankTransferData
- Defined in:
- lib/univapay_client_sdk/models/base_bank_transfer_data.rb
Overview
Base Bank Transfer Data schema.
Instance Attribute Summary collapse
-
#brand ⇒ String
The bank brand identifier (e.g., 'aozora_bank').
-
#expiration_period ⇒ String
ISO 8601 duration format (e.g., 'PT168H').
-
#expiration_time_shift ⇒ String
Time shift applied to the expiration, typically pushing it to the end of the day in a specific timezone (e.g., '23:59:59+09:00').
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(brand: SKIP, expiration_period: SKIP, expiration_time_shift: SKIP, additional_properties: nil) ⇒ BaseBankTransferData
constructor
A new instance of BaseBankTransferData.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(brand: SKIP, expiration_period: SKIP, expiration_time_shift: SKIP, additional_properties: nil) ⇒ BaseBankTransferData
Returns a new instance of BaseBankTransferData.
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 48 def initialize(brand: SKIP, expiration_period: SKIP, expiration_time_shift: SKIP, additional_properties: nil) # Add additional model properties to the instance additional_properties = {} if additional_properties.nil? @brand = brand unless brand == SKIP @expiration_period = expiration_period unless expiration_period == SKIP @expiration_time_shift = expiration_time_shift unless expiration_time_shift == SKIP @additional_properties = additional_properties end |
Instance Attribute Details
#brand ⇒ String
The bank brand identifier (e.g., 'aozora_bank').
14 15 16 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 14 def brand @brand end |
#expiration_period ⇒ String
ISO 8601 duration format (e.g., 'PT168H').
18 19 20 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 18 def expiration_period @expiration_period end |
#expiration_time_shift ⇒ String
Time shift applied to the expiration, typically pushing it to the end of the day in a specific timezone (e.g., '23:59:59+09:00').
23 24 25 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 23 def expiration_time_shift @expiration_time_shift end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 60 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. brand = hash.key?('brand') ? hash['brand'] : SKIP expiration_period = hash.key?('expiration_period') ? hash['expiration_period'] : SKIP expiration_time_shift = hash.key?('expiration_time_shift') ? hash['expiration_time_shift'] : SKIP # Create a new hash for additional properties, removing known properties. new_hash = hash.reject { |k, _| names.value?(k) } additional_properties = APIHelper.get_additional_properties( new_hash, proc { |value| value } ) # Create object from extracted values. BaseBankTransferData.new(brand: brand, expiration_period: expiration_period, expiration_time_shift: expiration_time_shift, additional_properties: additional_properties) end |
.names ⇒ Object
A mapping from model property names to API property names.
26 27 28 29 30 31 32 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 26 def self.names @_hash = {} if @_hash.nil? @_hash['brand'] = 'brand' @_hash['expiration_period'] = 'expiration_period' @_hash['expiration_time_shift'] = 'expiration_time_shift' @_hash end |
.nullables ⇒ Object
An array for nullable fields
44 45 46 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 44 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
35 36 37 38 39 40 41 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 35 def self.optionals %w[ brand expiration_period expiration_time_shift ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
93 94 95 96 97 98 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 93 def inspect class_name = self.class.name.split('::').last "<#{class_name} brand: #{@brand.inspect}, expiration_period: #{@expiration_period.inspect},"\ " expiration_time_shift: #{@expiration_time_shift.inspect}, additional_properties:"\ " #{@additional_properties}>" end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
85 86 87 88 89 90 |
# File 'lib/univapay_client_sdk/models/base_bank_transfer_data.rb', line 85 def to_s class_name = self.class.name.split('::').last "<#{class_name} brand: #{@brand}, expiration_period: #{@expiration_period},"\ " expiration_time_shift: #{@expiration_time_shift}, additional_properties:"\ " #{@additional_properties}>" end |