QuickbooksProduct class
Entity to get a product's data from Quickbooks
Constructors
-
QuickbooksProduct({String? id, String? fullyQualifiedName, String? domain, String? sku, String? name, double? price, double? cost, QuickbooksProductType type = QuickbooksProductType.inventory, String? description, QuickbooksReferenceType? parentRef, String? syncToken, bool? sparse, bool? active, bool? taxable, QuickbooksReferenceType? incomeAccountRef, String? purchaseDesc, QuickbooksReferenceType? expenseAccountRef, QuickbooksReferenceType? assetAccountRef, bool? trackQtyOnHand, int? qtyOnHand, DateTime? invStartDate, Map<
String, dynamic> ? metaData}) - QuickbooksProduct.fromJson(String source)
-
factory
-
QuickbooksProduct.fromMap(Map<
String, dynamic> map) -
factory
Properties
- active ↔ bool?
-
getter/setter pair
- assetAccountRef ↔ QuickbooksReferenceType?
-
getter/setter pair
- cost ↔ double?
-
getter/setter pair
- description ↔ String?
-
getter/setter pair
- domain ↔ String?
-
getter/setter pair
- expenseAccountRef ↔ QuickbooksReferenceType?
-
getter/setter pair
- fullyQualifiedName ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- id ↔ String?
-
getter/setter pair
- incomeAccountRef ↔ QuickbooksReferenceType?
-
getter/setter pair
- invStartDate ↔ DateTime?
-
getter/setter pair
-
metaData
↔ Map<
String, dynamic> ? -
getter/setter pair
- name ↔ String?
-
getter/setter pair
- parentRef ↔ QuickbooksReferenceType?
-
getter/setter pair
- price ↔ double?
-
getter/setter pair
- purchaseDesc ↔ String?
-
getter/setter pair
- qtyOnHand ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sku ↔ String?
-
getter/setter pair
- sparse ↔ bool?
-
getter/setter pair
- syncToken ↔ String?
-
getter/setter pair
- taxable ↔ bool?
-
getter/setter pair
- trackQtyOnHand ↔ bool?
-
getter/setter pair
- type ↔ QuickbooksProductType
-
getter/setter pair
Methods
-
calculateTaxe(
double taxRate) → double -
Calculates the tax price for a
taxRate
-
copyWith(
{String? id, String? fullyQualifiedName, String? domain, String? sku, String? name, double? price, double? cost, QuickbooksProductType? type, String? description, QuickbooksReferenceType? parentRef, String? syncToken, bool? sparse, bool? active, bool? taxable, QuickbooksReferenceType? incomeAccountRef, String? purchaseDesc, QuickbooksReferenceType? expenseAccountRef, QuickbooksReferenceType? assetAccountRef, bool? trackQtyOnHand, int? qtyOnHand, DateTime? invStartDate, Map< String, dynamic> ? metaData}) → QuickbooksProduct -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
{bool withId = true}) → Map< String, dynamic> -
If
withId
is true, will send the id in the map -
toString(
) → String -
A string representation of this object.
override
-
totalPrice(
List< double> taxRates) → double -
Calculates the total price of a QuickbooksProduct for a list of
taxRates
Operators
-
operator ==(
Object? other) → bool -
The equality operator.
override