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 ⇒ Inttegro::FinancialAccount::Currency (readonly)

Currency currently supported for financial accounts.

Required in the API payload. Wire name: currency.



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

class DoshRequest < T::Struct
  const :currency, Inttegro::FinancialAccount::Currency
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :dosh_account, Inttegro::Shared::DoshAccount
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::DoshRequestPullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::DoshRequestPushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
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:



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

class DoshRequest < T::Struct
  const :currency, Inttegro::FinancialAccount::Currency
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :dosh_account, Inttegro::Shared::DoshAccount
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::DoshRequestPullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::DoshRequestPushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
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)


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

class DoshRequest < T::Struct
  const :currency, Inttegro::FinancialAccount::Currency
  const :custom_data, T.nilable(Inttegro::CustomDataInput), default: nil
  const :description, T.nilable(String), default: nil
  const :dosh_account, Inttegro::Shared::DoshAccount
  const :label, String
  const :owner, Inttegro::FinancialAccount::OwnerInput
  const :pull_configuration, T.nilable(Inttegro::FinancialAccount::DoshRequestPullConfiguration), default: nil
  const :push_configuration, T.nilable(Inttegro::FinancialAccount::DoshRequestPushConfiguration), default: nil
  const :reference, String
  const :type, Inttegro::FinancialAccount::DoshRequestType
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.



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

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

#label ⇒ String (readonly)

Value of the label field in the Inttegro API payload.

Required in the API payload. Wire name: label.

Returns:

  • (String)


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

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

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

Value of the owner field in the Inttegro API payload.

Required in the API payload. Wire name: owner.



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

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

#pull_configuration ⇒ Inttegro::FinancialAccount::DoshRequestPullConfiguration? (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.



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

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

#push_configuration ⇒ Inttegro::FinancialAccount::DoshRequestPushConfiguration? (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.



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

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

#reference ⇒ String (readonly)

Value of the reference field in the Inttegro API payload.

Required in the API payload. Wire name: reference.

Returns:

  • (String)


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

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

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

Value of the type field in the Inttegro API payload.

Required in the API payload. Wire name: type.



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

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