TaxWithholdingFactory
Last updated
Was this helpful?
Last updated
Was this helpful?
Factory generates information for a Tax Withholding entity
Factory‹TaxWithholding, Params, UniqueIdentifiers›
↳ TaxWithholdingFactory
+ new TaxWithholdingFactory(context
: Context): TaxWithholdingFactory
Defined in src/entities/factories/TaxWithholdingFactory.ts:71
Create an instance of the Tax Withholding Factory
Parameters:
Name
Type
context
Returns: TaxWithholdingFactory
• Entity: EntityClass‹Params, UniqueIdentifiers›
Defined in src/entities/factories/Factory.ts:37
entity class that this Factory is in charge of generating and caching
• cache: object
Defined in src/entities/factories/Factory.ts:28
[ key: string]: TaxWithholding | undefined
• context: Context
Defined in src/entities/factories/Factory.ts:32
â–¸ create(uid
: string, params
: Params): EntityType
Defined in src/entities/factories/Factory.ts:87
Get an entity from the cache. Creates it if it isn't cached, updates it if it is
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
Returns: EntityType
â–¸ fetch(uid
: string): Promise‹EntityType›
Defined in src/entities/factories/Factory.ts:57
Get an entity from the cache. Fetches the necessary data to create it if it isn't cached, refreshes it if it is
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
Returns: Promise‹EntityType›
â–¸ refresh(uid
: string): Promise‹void›
Defined in src/entities/factories/Factory.ts:108
Fetch the data for an entity and updates its properties
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
Returns: Promise‹void›
â–¸ update(uid
: string, params
: Partial‹Params›): Promise‹void›
Defined in src/entities/factories/Factory.ts:126
Update an entity's properties in place
Parameters:
Name
Type
Description
uid
string
unique identifier for the entity
Returns: Promise‹void›
Overrides Factory.
Inherited from Factory.
Inherited from Factory.
Inherited from Factory.
Inherited from Factory.
Inherited from Factory.
Inherited from Factory.
Inherited from Factory.