Skip to content

Releases: voucherifyio/voucherify-nodejs-sdk

v5.2.0

17 Sep 10:56
Compare
Choose a tag to compare
  • Add support Get Member Activities in Loyality API
  • Add support for listing all promotion tiers
  • Add support for listing consents
  • enhancement: throw error objects instead of object literals (thanks to @AbdelrahmanHafez)
  • dependency update

v4.2.0

06 Apr 10:10
Compare
Choose a tag to compare

Update Customer's consents support

v4.1.0

03 Feb 13:20
Compare
Choose a tag to compare

Expose campaigns and vouchers Qualification API methods

v4.0.1

22 Nov 13:25
Compare
Choose a tag to compare

Features

  • Added support for new method
    • Distributions
      • Publications
        • Create

Breaking changes

This version introduces few major changes:

  • drops support for node.js v4 and v6
  • drops methods previously marked as deprecated, to make transition easier please check table below.
    All those methods were already available in v3.x.
Previously Currently
client.events.track(eventName, metadata, customer) client.events.create(eventName, { customer, metadata })
client.list(params) client.vouchers.list(query)
client.get(voucherCode) client.vouchers.get(code)
client.create(voucher) client.vouchers.create(voucher)
client.update(voucher) client.vouchers.update(voucher)
client.delete(voucherCode, [params]) client.vouchers.delete(code, params)
client.disable(voucherCode) client.vouchers.disable(code)
client.enable(voucherCode) client.vouchers.enable(code)
client.campaign.voucher.create(campaignName) client.campaigns.addVoucher(campaignName, voucher)
`client.publish(campaign_name params)`
client.validate(voucherCode, params) client.validations.validateVoucher(code, params)
client.redemption(voucherCode) client.redemptions.getForVoucher(code)
`client.redeem(voucherCode, tracking_id params)`
client.redemptions(query) client.redemptions.list(query)
client.rollback(redemptionId, params) client.redemptions.rollback(redemptionId, data)
client.customer.* changed namespace to client.customers.*
client.product.* changed namespace to client.products.*
client.product.sku.* changed namespace to client.products.*

v3.0.0

19 Jul 07:56
Compare
Choose a tag to compare

Added support for custom API endpoint, that allows to connect to projects created in specific Voucherify region.

v2.23.0

27 May 14:35
Compare
Choose a tag to compare
  • Added support for the methods related to the Loyalty Programs
    • Rewards
      • List
      • Create
      • Get
      • Update
      • Delete
      • Assignments
        • List
        • Create
        • Update
        • Delete
    • Loyalties
      • List
      • Create
      • Get
      • Update
      • Delete
      • Reward Assignments
        • List
        • Create
        • Update
        • Delete
      • Earning Rules
        • List
        • Create
        • Update
        • Delete
      • Members
        • List
        • Create
        • Get
        • Add points
        • Redeem reward
    • Events.create method in Events namespace
    • Add methods to delete campaign

v2.22.0

27 Mar 16:08
Compare
Choose a tag to compare

Added Validation Rules validate method client.validationRules.validate(ruleId, params)

v2.21.0 - advanced validation rules

28 Dec 10:57
Compare
Choose a tag to compare

Switch Validation Rules to new model: Business Validation Rules:

  • Validation Rule Object - structure reorganized to handle advanced rules
  • Validation Rule Assignment Object - added object describing a relation between rules and linked promotions
  • Validation Rules - modified​ data model

v2.19.0

07 Nov 10:02
Compare
Choose a tag to compare

Allow to update order with soruce id client.orders.update({source_id, ...rest})

v2.18.0

26 Oct 13:38
Compare
Choose a tag to compare

Add Update Campaign method client.campaigns.update(campaignId, campaign)