struct Facebook::Proto::PartnerCouponOffer

Included Modules

Defined in:

cli/proto/facebook/PartnerCouponOffer.pb.cr

Constant 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: :claim_by, pb_type: Datetime, crystal_type: Datetime, cast_type: Datetime?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :currency, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :expiration_days, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :minimum_spend, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :offer_amount, pb_type: :int64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Fields = {} of String => Field

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(id : String | Nil = nil, claim_by : Datetime | Nil = nil, currency : String | Nil = nil, expiration_days : Int64 | Nil = nil, minimum_spend : Int64 | Nil = nil, offer_amount : Int64 | Nil = nil) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def []=(key : String, val) #

def []?(key : String) #

def claim_by : Datetime | Nil #

def claim_by=(claim_by : Datetime | Nil) #

def currency : String | Nil #

def currency=(currency : String | Nil) #

def expiration_days : Int64 | Nil #

def expiration_days=(expiration_days : Int64 | Nil) #

def id : String | Nil #

def id=(id : String | Nil) #

def minimum_spend : Int64 | Nil #

def minimum_spend=(minimum_spend : Int64 | Nil) #

def offer_amount : Int64 | Nil #

def offer_amount=(offer_amount : Int64 | Nil) #

def to_hash #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #