Releases: voucherifyio/voucherify-nodejs-sdk
Releases · voucherifyio/voucherify-nodejs-sdk
v5.2.0
v4.2.0
v4.1.0
v4.0.1
Features
- Added support for new method
- Distributions
- Publications
- Create
- Publications
- Distributions
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
v2.23.0
- 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
- Rewards
v2.22.0
v2.21.0 - advanced validation rules
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