lib/access/api.rb in access-2.0.22 vs lib/access/api.rb in access-2.0.23
- old
+ new
@@ -26,11 +26,11 @@
OfferResponse.new(response)
end
end
def find_offer_uses_remaining(offer_key, options = {})
- request.get("/offers/#{offer_key}/uses-remaining", "offer", options) do |response|
+ request.get("/offers/#{offer_key}/uses_remaining", "offer", options) do |response|
OfferResponse.new(response)
end
end
# Locations
@@ -146,16 +146,16 @@
end
# Offer Redemptions
def search_offer_redemptions_by_member(member_key, options = {})
- request.get("/members/#{member_key}/offer-redemptions", "report", options) do |response|
+ request.get("/members/#{member_key}/offer_redemptions", "report", options) do |response|
RedemptionResponse.new(response)
end
end
def find_offer_redemptions_by_member(member_key, usage_redeem_key, options = {})
- request.get("/members/#{member_key}/offer-redemptions/#{usage_redeem_key}", "report", options) do |response|
+ request.get("/members/#{member_key}/offer_redemptions/#{usage_redeem_key}", "report", options) do |response|
RedemptionResponse.new(response)
end
end
# Internal Admin only Call Below