Skip to content

Releases: Piggy-Loyalty/piggy-php-sdk

3.7.1

23 Jul 13:50
Compare
Choose a tag to compare

What's Changed

  • Fix VoucherResourceTest

Full Changelog: 3.7.0...3.7.1

3.7.0

23 Jul 13:44
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.6.0...3.7.0

3.6.0

03 Jul 09:09
a6cd576
Compare
Choose a tag to compare

What's Changed

  • Add ContactSubscriptions, SubscriptionTypes and LoyaltyTokens to Register resources by @iDiegoNL in #28
  • Refactor BaseClient and OAuthClientApiKey classes by @iDiegoNL in #29

Full Changelog: 3.5.0...3.6.0

3.5.0

08 May 09:23
73f4c7f
Compare
Choose a tag to compare

What's Changed

  • [v3] Add channel to loyalty transactions by @iDiegoNL in #26

Full Changelog: 3.4.0...3.5.0

3.4.0

07 May 13:03
3c58876
Compare
Choose a tag to compare

What's Changed

  • [v3] Add PHPStan @ level 8, fix broken endpoints & add recently added endpoints by @iDiegoNL in #18
  • [v3] Make Digital Reward and Digital Reward Code nullable by @Thibaux in #25

Full Changelog: 3.3.4...3.4.0

Voucher & Promotion patches

16 Jan 08:54
57d802d
Compare
Choose a tag to compare
  • Add 'attributes' as array on Voucher & Promotion.
  • Add ContactUuid on Voucher.
  • Add PromotionUuid on Voucher.

Minor fixes

10 Jan 14:17
Compare
Choose a tag to compare
3.3.3

use empty array as fallback when meta is missing on response

Reversed recent deprecations

20 Dec 12:44
Compare
Choose a tag to compare

We have reversed the decision on deprecating certain functions. We are internally reviewing our way forward, and appreciate any community feedback.

Static methods and new way of authentication with ApiClient class

12 Dec 15:59
Compare
Choose a tag to compare

In this version we introduce static methods in our SDK for greater flexibility and performance, preparing for future updates. Older resource methods are now deprecated, encouraging you to adopt these new improvements. Resource files with calls to our API are from now on not updated anymore.

We also added a create and show call for Portal Sessions, but you can only use this with static methods which are located on the Portal Session class. Also, an update call has been added for Vouchers. Custom Attributes have been added with list and create functionality.

Our new ApiClient class expects through the configure function your API key and your base-URL. The API key can be generated in our Business Dashboard under Integrations.

Latest SDK version with minor updates

31 Oct 08:51
Compare
Choose a tag to compare

In the latest update, we've added a couple of new features and made some updates:

New Resources:

  • Collectable Rewards: You can now list and collect rewards.
  • Portal Sessions: We've added methods to create and show portal sessions.
  • Webhook Subscriptions: You can list, make, show, change, and remove webhook subscriptions.
  • Vouchers: We've added a new methods, like creating, listing, redeem, and more.
  • Promotions: You can now list and make promotions.
  • Promotion Attributes: You can list, show, make, and change promotion attributes.
  • Forms, Tiers, BrandKit, Contacts Portal, and Loyalty Transaction Attributes: These have new methods like listing and showing.

Updates to Current Resources:

  • Authentication: We have added functionality to authenticate using an API key from the business dashboard. Use the OAuthClientApiKey class for this.
  • Contacts: We've added more methods to manage contacts, like creating them asynchronously and showing the tier of a contact.
  • Contact Verification: We added a method to show the authentication token from a contact.
  • Giftcard Transactions: You can now list giftcard transactions.