Class: Inttegro::FinancialAccount::DoshRequest

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/financial_account/dosh_request.rb

Overview

Typed representation of the dosh request object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#currency ⇒ String (readonly)

Supported lowercase currency code

Required in the API payload. Wire name: currency.

Returns:

  • (String)


85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#custom_data ⇒ Inttegro::CustomDataInput? (readonly)

Merchant-defined values accepted on resource creation. Values are serialized to strings before storage.

Optional in the API payload; omitted values default to nil. Wire name: custom_data.

Returns:



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#description ⇒ String? (readonly)

Value of the description field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: description.

Returns:

  • (String, nil)


85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#dosh_account ⇒ Inttegro::Shared::DoshAccount (readonly)

Dosh account marker. Dosh credentials and internal identifiers are not supplied by callers or returned publicly.

Required in the API payload. Wire name: dosh_account.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#label ⇒ String (readonly)

Value of the label field in the Inttegro API payload.

Required in the API payload. Wire name: label.

Returns:

  • (String)


85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#owner ⇒ Inttegro::FinancialAccount::OwnerInput (readonly)

Value of the owner field in the Inttegro API payload.

Required in the API payload. Wire name: owner.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#pull_configuration ⇒ Inttegro::FinancialAccount::RequestBasePullConfiguration? (readonly)

Value of the pull_configuration field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: pull_configuration.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#push_configuration ⇒ Inttegro::FinancialAccount::RequestBasePushConfiguration? (readonly)

Value of the push_configuration field in the Inttegro API payload.

Optional in the API payload; omitted values default to nil. Wire name: push_configuration.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#reference ⇒ String (readonly)

Value of the reference field in the Inttegro API payload.

Required in the API payload. Wire name: reference.

Returns:

  • (String)


85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end

#type ⇒ Inttegro::FinancialAccount::DoshRequestType (readonly)

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'lib/inttegro/financial_account/dosh_request.rb', line 85

class DoshRequest < T::Struct
  const :currency, String
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::RequestBasePushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
  const :dosh_account, Inttegro::Shared::DoshAccount
end