Class: Believe::Models::TicketSaleUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/believe/models/ticket_sale_update_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(ticket_sale_id:, buyer_email: nil, buyer_name: nil, coupon_code: nil, currency: nil, discount: nil, match_id: nil, purchase_method: nil, quantity: nil, subtotal: nil, tax: nil, total: nil, unit_price: nil, request_options: {}) ⇒ Object

Parameters:

  • ticket_sale_id (String)
  • buyer_email (String, nil) (defaults to: nil)
  • buyer_name (String, nil) (defaults to: nil)
  • coupon_code (String, nil) (defaults to: nil)
  • currency (String, nil) (defaults to: nil)
  • discount (String, nil) (defaults to: nil)
  • match_id (String, nil) (defaults to: nil)
  • purchase_method (Symbol, ::Believe::Models::PurchaseMethod, nil) (defaults to: nil)

    How the ticket was purchased.

  • quantity (Integer, nil) (defaults to: nil)
  • subtotal (String, nil) (defaults to: nil)
  • tax (String, nil) (defaults to: nil)
  • total (String, nil) (defaults to: nil)
  • unit_price (String, nil) (defaults to: nil)
  • request_options (::Believe::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/believe/models/ticket_sale_update_params.rb', line 76

Instance Attribute Details

#buyer_emailString?

Returns:

  • (String, nil)


18
# File 'lib/believe/models/ticket_sale_update_params.rb', line 18

optional :buyer_email, String, nil?: true

#buyer_nameString?

Returns:

  • (String, nil)


23
# File 'lib/believe/models/ticket_sale_update_params.rb', line 23

optional :buyer_name, String, nil?: true

#coupon_codeString?

Returns:

  • (String, nil)


28
# File 'lib/believe/models/ticket_sale_update_params.rb', line 28

optional :coupon_code, String, nil?: true

#currencyString?

Returns:

  • (String, nil)


33
# File 'lib/believe/models/ticket_sale_update_params.rb', line 33

optional :currency, String, nil?: true

#discountString?

Returns:

  • (String, nil)


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

optional :discount, String, nil?: true

#match_idString?

Returns:

  • (String, nil)


43
# File 'lib/believe/models/ticket_sale_update_params.rb', line 43

optional :match_id, String, nil?: true

#purchase_methodSymbol, ...

How the ticket was purchased.

Returns:



49
# File 'lib/believe/models/ticket_sale_update_params.rb', line 49

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

#quantityInteger?

Returns:

  • (Integer, nil)


54
# File 'lib/believe/models/ticket_sale_update_params.rb', line 54

optional :quantity, Integer, nil?: true

#subtotalString?

Returns:

  • (String, nil)


59
# File 'lib/believe/models/ticket_sale_update_params.rb', line 59

optional :subtotal, String, nil?: true

#taxString?

Returns:

  • (String, nil)


64
# File 'lib/believe/models/ticket_sale_update_params.rb', line 64

optional :tax, String, nil?: true

#ticket_sale_idString

Returns:

  • (String)


13
# File 'lib/believe/models/ticket_sale_update_params.rb', line 13

required :ticket_sale_id, String

#totalString?

Returns:

  • (String, nil)


69
# File 'lib/believe/models/ticket_sale_update_params.rb', line 69

optional :total, String, nil?: true

#unit_priceString?

Returns:

  • (String, nil)


74
# File 'lib/believe/models/ticket_sale_update_params.rb', line 74

optional :unit_price, String, nil?: true