kGiftCard
Gift Card
Info
Inherits from kDataObject\kDataBasic
Properties
| Name | Type | Label | List | Owned | Cluster | Mandatory | Unique | Note |
|---|---|---|---|---|---|---|---|---|
| Barcode | tkCode | Barcode | (A) | |||||
| BarcodeType | tkLoyaltyBarcodeType | Barcode Type | - | (A) | ||||
| Group | kGiftCardGroup | Gift Card Group | ||||||
| Status | tkGiftCardStatus | Status | ||||||
| IssuedByStore | kStore | Issued by Store | - | |||||
| IssueDate | tkDateTime | Date of Issue | - | |||||
| ExpiryDate | tkDateTime | Expiry Date | - | |||||
| FirstUsed | tkDateTime | Date/Time of the first Transaction | - | |||||
| LastUsed | tkDateTime | Date/Time of the last Transaction | - | |||||
| AccountBalance | tkAmount | Account Balance | - | |||||
| AccountBalance.Value | tkValue | Amount | - | |||||
| AccountBalance.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| Balance | tkAmount | Available Balance | - | |||||
| Balance.Value | tkValue | Amount | - | |||||
| Balance.Currency | kCurrency | Currency | - | mandatory(true) {TODO: Mandatory only if Value<>0} | ||||
| LoyaltyCustomer | kLoyaltyCustomer | Customer | - | |||||
| ExternalId | tkDescription | ExternalId | - | |||||
| Reference | tkDescription | Reference | - | |||||
| Batch | kGiftCardBatch | GiftCard Batch | - | |||||
| Carnet | kCarnet | Carnet | - | |||||
| Inherited from kDataBasic | ||||||||
| Code | tkCode | Code | ||||||
| Description | tkTranslatableDescription | Description | - | |||||
| Remark | kRemark | Remark | Owned | - | ||||
| Inherited from kDataObject | ||||||||
| Id | tkUnique | Id | ||||||
| ClassName | tkCode | Class Name | - | |||||
| CreatedBy | tkCode | Created BY | - | |||||
| LastModifiedBy | tkCode | Last Modified By | - | |||||
| CreatedDate | tkDateTime | Created Date | - | |||||
| LastModifiedDate | tkDateTime | Last Modified Date | - | |||||
| RevisionNumber | tkInteger | Revision Number | - | |||||
| WorkflowStatus | kWorkflowStatus | Workflow Status | - | |||||
| OwnedOnRequest | tkYesNo | Is owned on request | - | |||||
| Origin | kSystem | Origin | - | |||||
| LastModifiedProcess | tkGuid | Last process | - | |||||
(E) : Type have an event assigned to it, look at type documentation for mode details
(A) : Property have an autocoderole, look autocoderole grid for mode details
Autocoderoles
| Property | Ignore user input | When | Code part | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Type | Value | Start | Length | Fill Char | Dir | Seq. Suf. | Prefix | Limit Len | |||
| code | insert | property | Group.StandardPrefix | 4 | |||||||
| sequence | basegiftcardseq | 8 | 0 | left | Group.StandardPrefix | ||||||
| random | 999 | 0 | 3 | 0 | left | ||||||
| checksum | gtin-16 | ||||||||||
| barcode | insert | property | code | ||||||||
| barcodetype | insert | fixed | 2 | ||||||||
Events
| When | Method Name | Module | Parameters | On | Off | Asynch |
|---|---|---|---|---|---|---|
| afterinsert | OmniCommerce_GiftCard_EventChanged | kOmniCommerce | ||||
| afterupdate | OmniCommerce_GiftCard_EventChanged | kOmniCommerce | Balance,LastModifiedBy,LastModifiedDate,RevisionNumber | |||
| beforeinsert (I) | OnInitWorkFlow | kCoreServices | ||||
| afterinsert (I) | AutoTransition | kCoreServices | ||||
| afterupdate (I) | AutoTransition | kCoreServices | workflowstatus |
IncrementalSearch
- class : kGiftCard
- searchproperty : code
- displayproperties : code
- displaytextproperties : code
Used By
| Class | Property |
|---|---|
| kOmniGiftCardAuthTransaction | GiftCard |
| kGiftCardTransaction | GiftCard |
| kBookingReservation | RefundGiftCard |
| kLoyaltyAppPushNotificationRequest | Gift |
| kOmniCartPaymentLine | GiftCard |
| kCarnet | GiftCards |