Skip to content

Entitlement

Describes@ebitex/commerce-sdk 0.2.xSee the changelog:@ebitex/commerce-sdk

What a buyer may have, from a digital product they bought (one for each unit). Never the provider’s message or settings, and no buyer contact details. A guest’s is pending with pendingReason: 'email_not_proved' until they prove their address with the emailed sign-in link.

delivery: EntitlementDelivery


optional endsUtc?: string

When it ends. Absent for no end.


optional grantedUtc?: string


id: string


isTest: boolean

True for an order made in test mode: do not fulfil it for real.


optional orderId?: string

The order that granted it. Absent for one granted by hand.


optional pendingReason?: "email_not_proved"


optional revokedUtc?: string


sku: string


source: "order" | "manual"


state: EntitlementState