Method | Description | |
---|---|---|
DeleteGiftCard ( |
Deletes a gift card
|
|
GenerateGiftCardCode ( ) : string |
Generate new gift card code
|
|
GetActiveGiftCardsAppliedByCustomer ( |
Get active gift cards that are applied by a customer
|
|
GetAllGiftCards ( int purchasedWithOrderId, System.DateTime startTime, System.DateTime endTime, bool isGiftCardActivated, string giftCardCouponCode, int pageIndex, int pageSize ) : IPagedList |
Gets all gift cards
|
|
GetGiftCardById ( int giftCardId ) : |
Gets a gift card
|
|
GetGiftCardsByPurchasedWithOrderProductVariantId ( int purchasedWithOrderProductVariantId ) : IList |
Gets gift cards by 'PurchasedWithOrderProductVariantId'
|
|
GiftCardService ( IRepository |
Ctor
|
|
InsertGiftCard ( |
Inserts a gift card
|
|
UpdateGiftCard ( |
Updates the gift card
|
public DeleteGiftCard ( |
||
giftCard | Gift card | |
return | void |
public GetActiveGiftCardsAppliedByCustomer ( |
||
customer | Customer | |
return | IList |
public GetAllGiftCards ( int purchasedWithOrderId, System.DateTime startTime, System.DateTime endTime, bool isGiftCardActivated, string giftCardCouponCode, int pageIndex, int pageSize ) : IPagedList |
||
purchasedWithOrderId | int | Associated order ID; null to load all records |
startTime | System.DateTime | Order start time; null to load all records |
endTime | System.DateTime | Order end time; null to load all records |
isGiftCardActivated | bool | Value indicating whether gift card is activated; null to load all records |
giftCardCouponCode | string | Gift card coupon code; null or string.empty to load all records |
pageIndex | int | Page index |
pageSize | int | Page size |
return | IPagedList |
public GetGiftCardById ( int giftCardId ) : |
||
giftCardId | int | Gift card identifier |
return |
public GetGiftCardsByPurchasedWithOrderProductVariantId ( int purchasedWithOrderProductVariantId ) : IList |
||
purchasedWithOrderProductVariantId | int | Purchased with order product variant identifier |
return | IList |
public GiftCardService ( IRepository |
||
giftCardRepository | IRepository |
Gift card context |
eventPublisher | IEventPublisher | Event published |
return | System |
public InsertGiftCard ( |
||
giftCard | Gift card | |
return | void |
public UpdateGiftCard ( |
||
giftCard | Gift card | |
return | void |