/// <summary> /// Creates a add value request for a LevelUp gift card /// </summary> /// <param name="accessToken">App access token for the request</param> /// <param name="merchantId">The merchant id</param> /// <param name="giftCardQrData">The qr code of the target card or account</param> /// <param name="amountInCents">The amount of value to add in US Cents</param> /// <param name="locationId">The location id of the store where the value add originates</param> /// <param name="identifierFromMerchant">The check identifier for the check on which the gift /// card is purchased</param> /// <param name="tenderTypes">A collection of tender types used to pay for the check on which /// the gift card is purchased</param> /// <param name="levelUpOrderId">If applicable, a LevelUp order Id associated with the purchase of /// the gift card for which value is added</param> public GiftCardAddValueRequest(string accessToken, int merchantId, string giftCardQrData, int amountInCents, int locationId, string identifierFromMerchant = null, IList <string> tenderTypes = null, string levelUpOrderId = null) : base(accessToken) { _merchantId = merchantId; _body = new GiftCardAddValueRequestBody(giftCardQrData, amountInCents, locationId, identifierFromMerchant, tenderTypes, levelUpOrderId); }
/// <summary> /// Creates a add value request for a LevelUp gift card /// </summary> public GiftCardAddValueRequest(string accessToken, int merchantId, GiftCardAddValueRequestBody body) : base(accessToken) { _merchantId = merchantId; Body = body; }