Quote class final

Quote

A Quote is a way to model prices that you'd like to provide to a customer. Once accepted, it will automatically create an invoice, subscription or subscription schedule.

Implemented types

Constructors

Quote({required int amountSubtotal, required int amountTotal, BillingPortalConfigurationApplicationOrId? application, int? applicationFeeAmount, double? applicationFeePercent, required QuotesResourceAutomaticTax automaticTax, required InvoiceCollectionMethod collectionMethod, required QuotesResourceComputed computed, required DateTime created, String? currency, BankAccountCustomerOrId? customer, List<TaxRateOrId>? defaultTaxRates, String? description, required List<DiscountOrId> discounts, required DateTime expiresAt, String? footer, QuoteFromQuote? fromQuote, String? header, required String id, QuoteInvoiceOrId? invoice, required InvoiceSettingQuoteSetting invoiceSettings, CheckoutSessionLineItems? lineItems, required bool livemode, required Map<String, String> metadata, String? number, AccountOrId? onBehalfOf, required QuoteStatus status, required QuotesResourceStatusTransitions statusTransitions, SubscriptionOrId? subscription, required QuotesResourceSubscriptionDataSubscriptionData subscriptionData, SubscriptionScheduleOrId? subscriptionSchedule, TestHelpersTestClockOrId? testClock, required QuotesResourceTotalDetails totalDetails, QuoteTransferData? transferData})
Quote
const
Quote.fromJson(Object? json)
factory

Properties

amountSubtotal → int
final
amountTotal → int
final
application → BillingPortalConfigurationApplicationOrId?
final
applicationFeeAmount → int?
final
applicationFeePercent → double?
final
automaticTax → QuotesResourceAutomaticTax
final
collectionMethod → InvoiceCollectionMethod
final
computed → QuotesResourceComputed
final
created → DateTime
final
currency → String?
final
customer → BankAccountCustomerOrId?
final
defaultTaxRates → List<TaxRateOrId>?
final
description → String?
final
discounts → List<DiscountOrId>
final
expiresAt → DateTime
final
final
fromQuote → QuoteFromQuote?
Details of the quote that was cloned. See the [cloning documentation](https://stripe.com/docs/quotes/clone) for more details.
final
hashCode → int
The hash code for this object.
no setterinherited
final
id → String
The ID of the Quote.
final
invoice → QuoteInvoiceOrId?
final
invoiceSettings → InvoiceSettingQuoteSetting
final
lineItems → CheckoutSessionLineItems?
final
livemode → bool
final
metadata → Map<String, String>
final
number → String?
final
object → String
The resource's type.
final
onBehalfOf → AccountOrId?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → QuoteStatus
final
statusTransitions → QuotesResourceStatusTransitions
final
subscription → SubscriptionOrId?
final
subscriptionData → QuotesResourceSubscriptionDataSubscriptionData
final
subscriptionSchedule → SubscriptionScheduleOrId?
final
testClock → TestHelpersTestClockOrId?
final
totalDetails → QuotesResourceTotalDetails
final
transferData → QuoteTransferData?
The account (if any) the payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the invoices.
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

encode<V>(Quote instance, Encoder<V> encoder) → V
override