struct Facebook::Proto::FundingSourceDetailsCoupon
- Facebook::Proto::FundingSourceDetailsCoupon
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
- Protobuf::Message
Defined in:
cli/proto/facebook/FundingSourceDetailsCoupon.pb.crConstant Summary
-
FIELDS =
{1 => {name: :amount, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :display_amount, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :expiration, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
-
Fields =
{} of String => Field
Constructors
- .new(buf : Protobuf::Buffer)
- .new(amount : Int64 | Nil = nil, currency : String | Nil = nil, display_amount : String | Nil = nil, expiration : Datetime | Nil = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #[]=(key : String, val)
- #[]?(key : String)
- #amount : Int64 | Nil
- #amount=(amount : Int64 | Nil)
- #currency : String | Nil
- #currency=(currency : String | Nil)
- #display_amount : String | Nil
- #display_amount=(display_amount : String | Nil)
- #expiration : Datetime | Nil
- #expiration=(expiration : Datetime | Nil)
- #to_hash
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
Constructor Detail
def self.new(amount : Int64 | Nil = nil, currency : String | Nil = nil, display_amount : String | Nil = nil, expiration : Datetime | Nil = nil)
#