Class: Believe::Models::TicketSaleListParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/believe/models/ticket_sale_list_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(coupon_code: nil, currency: nil, limit: nil, match_id: nil, purchase_method: nil, skip: nil, request_options: {}) ⇒ Object

Parameters:

  • coupon_code (String, nil) (defaults to: nil)

    Filter by coupon code (use ‘none’ for sales without coupons)

  • currency (String, nil) (defaults to: nil)

    Filter by currency (GBP, USD, EUR)

  • limit (Integer) (defaults to: nil)

    Maximum number of items to return (max: 100)

  • match_id (String, nil) (defaults to: nil)

    Filter by match ID

  • purchase_method (Symbol, ::Believe::Models::PurchaseMethod, nil) (defaults to: nil)

    Filter by purchase method

  • skip (Integer) (defaults to: nil)

    Number of items to skip (offset)

  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/believe/models/ticket_sale_list_params.rb', line 46

Instance Attribute Details

#coupon_codeString?

Filter by coupon code (use ‘none’ for sales without coupons)

Returns:

  • (String, nil)


14
# File 'lib/believe/models/ticket_sale_list_params.rb', line 14

optional :coupon_code, String, nil?: true

#currencyString?

Filter by currency (GBP, USD, EUR)

Returns:

  • (String, nil)


20
# File 'lib/believe/models/ticket_sale_list_params.rb', line 20

optional :currency, String, nil?: true

#limitInteger?

Maximum number of items to return (max: 100)

Returns:

  • (Integer, nil)


26
# File 'lib/believe/models/ticket_sale_list_params.rb', line 26

optional :limit, Integer

#match_idString?

Filter by match ID

Returns:

  • (String, nil)


32
# File 'lib/believe/models/ticket_sale_list_params.rb', line 32

optional :match_id, String, nil?: true

#purchase_methodSymbol, ...

Filter by purchase method

Returns:



38
# File 'lib/believe/models/ticket_sale_list_params.rb', line 38

optional :purchase_method, enum: -> { ::Believe::PurchaseMethod }, nil?: true

#skipInteger?

Number of items to skip (offset)

Returns:

  • (Integer, nil)


44
# File 'lib/believe/models/ticket_sale_list_params.rb', line 44

optional :skip, Integer