struct
TwitterAds::Proto::FundingInstrument
- TwitterAds::Proto::FundingInstrument
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
twitter-ads/proto/funding_instrument.pb.crConstant Summary
-
FIELDS =
{1 => {name: :id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :account_id, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :type, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :able_to_fund, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :credit_remaining_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :credit_limit_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 7 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :description, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :entity_status, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :io_header, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :funded_amount_local_micro, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 12 => {name: :reasons_not_able_to_fund, pb_type: :string, crystal_type: String, cast_type: Array(String)?, native: true, optional: true, repeated: true, default: nil, packed: false}, 13 => {name: :start_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 14 => {name: :end_time, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 15 => {name: :created_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 16 => {name: :updated_at, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 17 => {name: :deleted, pb_type: :bool, crystal_type: Bool, cast_type: Bool?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode) -
Fields =
{} of String => Field
Constructors
- .new(buf : Protobuf::Buffer)
- .new(id : String | Nil = nil, account_id : String | Nil = nil, type : String | Nil = nil, able_to_fund : Bool | Nil = nil, credit_remaining_local_micro : Int64 | Nil = nil, credit_limit_local_micro : Int64 | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, entity_status : String | Nil = nil, io_header : String | Nil = nil, funded_amount_local_micro : Int64 | Nil = nil, reasons_not_able_to_fund : Array(String) | Nil = nil, start_time : String | Nil = nil, end_time : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, deleted : Bool | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #able_to_fund : Bool | Nil
- #able_to_fund=(able_to_fund : Bool | Nil)
- #account_id : String | Nil
- #account_id=(account_id : String | Nil)
- #created_at : String | Nil
- #created_at=(created_at : String | Nil)
- #credit_limit_local_micro : Int64 | Nil
- #credit_limit_local_micro=(credit_limit_local_micro : Int64 | Nil)
- #credit_remaining_local_micro : Int64 | Nil
- #credit_remaining_local_micro=(credit_remaining_local_micro : Int64 | Nil)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #deleted : Bool | Nil
- #deleted=(deleted : Bool | Nil)
- #description : String | Nil
- #description=(description : String | Nil)
- #end_time : String | Nil
- #end_time=(end_time : String | Nil)
- #entity_status : String | Nil
- #entity_status=(entity_status : String | Nil)
- #funded_amount_local_micro : Int64 | Nil
- #funded_amount_local_micro=(funded_amount_local_micro : Int64 | Nil)
- #id : String | Nil
- #id=(id : String | Nil)
- #io_header : String | Nil
- #io_header=(io_header : String | Nil)
- #reasons_not_able_to_fund : Array(String) | Nil
- #reasons_not_able_to_fund=(reasons_not_able_to_fund : Array(String) | Nil)
- #reasons_not_able_to_fund=(reasons_not_able_to_fund : Array(String) | Nil)
- #start_time : String | Nil
- #start_time=(start_time : String | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #type : String | Nil
- #type=(type : String | Nil)
- #updated_at : String | Nil
- #updated_at=(updated_at : String | Nil)
Constructor Detail
def self.new(id : String | Nil = nil, account_id : String | Nil = nil, type : String | Nil = nil, able_to_fund : Bool | Nil = nil, credit_remaining_local_micro : Int64 | Nil = nil, credit_limit_local_micro : Int64 | Nil = nil, currency : String | Nil = nil, description : String | Nil = nil, entity_status : String | Nil = nil, io_header : String | Nil = nil, funded_amount_local_micro : Int64 | Nil = nil, reasons_not_able_to_fund : Array(String) | Nil = nil, start_time : String | Nil = nil, end_time : String | Nil = nil, created_at : String | Nil = nil, updated_at : String | Nil = nil, deleted : Bool | Nil = nil)
#