Class: Believe::Models::TicketSaleCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Believe::Models::TicketSaleCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/believe/models/ticket_sale_create_params.rb
Overview
Instance Attribute Summary collapse
-
#buyer_email ⇒ String?
Email of the ticket buyer.
-
#buyer_name ⇒ String
Name of the ticket buyer.
-
#coupon_code ⇒ String?
Coupon code applied, if any.
-
#currency ⇒ String
Currency code (GBP, USD, or EUR).
-
#discount ⇒ String
Discount amount applied from coupon.
-
#match_id ⇒ String
ID of the match.
-
#purchase_method ⇒ Symbol, ::Believe::Models::PurchaseMethod
How the ticket was purchased.
-
#quantity ⇒ Integer
Number of tickets purchased.
-
#subtotal ⇒ String
Subtotal before discount and tax (unit_price * quantity).
-
#tax ⇒ String
Tax amount (20% UK VAT on discounted subtotal).
-
#total ⇒ String
Final total (subtotal - discount + tax).
-
#unit_price ⇒ String
Price per ticket (decimal string).
Attributes included from Internal::Type::RequestParameters
Instance Method Summary collapse
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(buyer_name:, currency:, discount:, match_id:, purchase_method:, quantity:, subtotal:, tax:, total:, unit_price:, buyer_email: nil, coupon_code: nil, request_options: {}) ⇒ Object
|
|
# File 'lib/believe/models/ticket_sale_create_params.rb', line 82
|
Instance Attribute Details
#buyer_email ⇒ String?
Email of the ticket buyer
74 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 74 optional :buyer_email, String, nil?: true |
#buyer_name ⇒ String
Name of the ticket buyer
14 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 14 required :buyer_name, String |
#coupon_code ⇒ String?
Coupon code applied, if any
80 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 80 optional :coupon_code, String, nil?: true |
#currency ⇒ String
Currency code (GBP, USD, or EUR)
20 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 20 required :currency, String |
#discount ⇒ String
Discount amount applied from coupon
26 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 26 required :discount, String |
#match_id ⇒ String
ID of the match
32 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 32 required :match_id, String |
#purchase_method ⇒ Symbol, ::Believe::Models::PurchaseMethod
How the ticket was purchased
38 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 38 required :purchase_method, enum: -> { ::Believe::PurchaseMethod } |
#quantity ⇒ Integer
Number of tickets purchased
44 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 44 required :quantity, Integer |
#subtotal ⇒ String
Subtotal before discount and tax (unit_price * quantity)
50 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 50 required :subtotal, String |
#tax ⇒ String
Tax amount (20% UK VAT on discounted subtotal)
56 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 56 required :tax, String |
#total ⇒ String
Final total (subtotal - discount + tax)
62 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 62 required :total, String |
#unit_price ⇒ String
Price per ticket (decimal string)
68 |
# File 'lib/believe/models/ticket_sale_create_params.rb', line 68 required :unit_price, String |