Class PartyDto
- Namespace
- Integrations.Contracts.Parties
- Assembly
- Integrations.Contracts.dll
A customer or vendor as this service knows it, with its sync state at the tax provider.
public sealed record PartyDto : IEquatable<PartyDto>
- Inheritance
-
PartyDto
- Implements
- Inherited Members
Constructors
PartyDto(string, PartyType, string, string, AddressDto, string?, bool, string?, PartySyncStatus, string?, DateTimeOffset?)
A customer or vendor as this service knows it, with its sync state at the tax provider.
public PartyDto(string EntityId, PartyType PartyType, string Code, string Name, AddressDto Address, string? Email, bool IsExempt, string? EntityUseCode, PartySyncStatus SyncStatus, string? LastError, DateTimeOffset? LastSyncedAt)
Parameters
EntityIdstringOwning entity (PVC, DXT-CA, ...).
PartyTypePartyTypeCustomer or vendor.
CodestringPVC Connect's customer/vendor code; also the code at the provider.
NamestringLegal or trading name.
AddressAddressDtoBilling or remit-to address.
EmailstringContact for certificate requests, if known.
IsExemptboolThe party claims an exemption.
EntityUseCodestringAvalara entity use code for the claimed exemption, if any.
SyncStatusPartySyncStatusWhether the provider has accepted the current version.
LastErrorstringWhy the last sync failed or was deferred, if it did.
LastSyncedAtDateTimeOffset?When the provider last accepted this record.
Properties
Address
Billing or remit-to address.
public AddressDto Address { get; init; }
Property Value
Code
PVC Connect's customer/vendor code; also the code at the provider.
public string Code { get; init; }
Property Value
Contact for certificate requests, if known.
public string? Email { get; init; }
Property Value
EntityId
Owning entity (PVC, DXT-CA, ...).
public string EntityId { get; init; }
Property Value
EntityUseCode
Avalara entity use code for the claimed exemption, if any.
public string? EntityUseCode { get; init; }
Property Value
IsExempt
The party claims an exemption.
public bool IsExempt { get; init; }
Property Value
LastError
Why the last sync failed or was deferred, if it did.
public string? LastError { get; init; }
Property Value
LastSyncedAt
When the provider last accepted this record.
public DateTimeOffset? LastSyncedAt { get; init; }
Property Value
Name
Legal or trading name.
public string Name { get; init; }
Property Value
PartyType
Customer or vendor.
public PartyType PartyType { get; init; }
Property Value
SyncStatus
Whether the provider has accepted the current version.
public PartySyncStatus SyncStatus { get; init; }