6.0.0 (2022-01-06)
- missing configuration for logs (35c056c)
- module interface exports (3667122)
- redundant class interface (e0b76bb)
- redundant interface prefix (d234b3d)
- Logs are disabled by default now.
You can enable them by adding
logs: { enabled: true }orlogs: { useNodeEnv: true } - Interfaces have same name now as classes, e.g.
IConfigwas changed toConfig - Interfaces are not exported anymore.
It is necessary to use class as a type directly, e.g.
Klarnainstead ofIKlarnaInstance
5.0.0 (2022-01-05)
- shipping option ID type and merchant urls interface nam (26bcec6)
- typo in order management API (dcb5276)
- shipping option id has correct number type now (Empty commit, released in 13f7f641f9e1ae71c1d80f6b40604b9ab3d5fe7c)
- ordermanagementV1 renamed to orderManagementV1 (Empty commit, released in e0e775c0aa0a30e215d29e70f3fa2e2e24059016)
4.9.1 (2022-01-05)
4.9.0 (2021-08-23)
- updated packages (27c87ae)
4.8.1 (2021-08-23)
4.8.0 (2021-01-07)
- also consider isSubscriptionOnly prop when converting crystallizeLineItem to klarnaLineItem (cc64243)
4.7.1 (2021-01-07)
- convert address interface types to optional (as per klarna docs) (e987a0c)
- revert unecessary property (dcb88d4)
4.7.0 (2020-12-04)
- add ordermanagementv1 get order function (96b4e1e)
4.6.4 (2020-10-28)
- add more types for crystallizeLineItem (1168c8d)
4.6.3 (2020-10-23)
- null check (df07181)
4.6.2 (2020-10-01)
- crystallize-helpers: add shipping option field & types when generating orderbody (ef4c087)
4.6.1 (2020-10-01)
- use correct types for customerTokenV1 recurring order (8fba733)
4.6.0 (2020-10-01)
- crystallize-helpers: indicate if product is a subscription in klarna merchant_data (9ca7778)
4.5.0 (2020-10-01)
- added types must be optional (7717b9c)
- add additional type fields for klarna order_line (5edfa8c)
4.4.0 (2020-10-01)
- lint error (6387417)
- destructure interface, add shared address types, added additional types (c1cc0b4)
4.3.0 (2020-10-01)
- add recurring token fields for orderResponse type (8534e70)
4.2.0 (2020-10-01)
- add billing_address type support for orderResponse + export crystallize helper types (d71162a)
4.1.1 (2020-10-01)
- lint: trailing semicolon (1175b4a)
4.1.0 (2020-09-30)
- add recurring field for orders generated via crystallize helper functions (4545421)
4.0.1 (2020-09-30)
- crystallizeHelperFunction kebab_case to camelCase for lineItem (1640801)
4.0.0 (2020-09-30)
- add correct capture body interface (50796cc)
- correct naming for checkout function (ae7b065)
- handle empty string response from klarna api (4b2baa3)
- prettier lint (c8adfb8)
- remove unused props, use correct prop name (1c95676)
- use correct host_uri variable (f185a89)
- ci: add commitlint step before fetching cached node_modules (e63b705)
- ci: npm_token spell fix (86ea1a8)
- git-hooks: make sure pre commit hook is working (75d3523)
- lint: prettier (0c77e96)
- add customer token v1 endpoint helper functions (0b87176)
- add ordermanagement v1 endpoint helper functions (67b824e)
- Added CrystallizeKlarnaHelper class to generate klarnaOrderBody (4c31808)
- ordermanagement v1 -> add additional helper functions for orders (113506a)
- ordermanagement v1 -> refunds helper functions added (c458f8f)
- orders -> cancel order function added (bea9fd6)
- set npm publish irrespective of branches, add npm_token for ci env (27ea9ae)
- Move to typescript, improved structure for library, bug fixes and added typings based on klarna api
4.0.0-beta.10 (2020-09-24)
- handle empty string response from klarna api (4b2baa3)
4.0.0-beta.9 (2020-09-23)
- remove unused props, use correct prop name (1c95676)
4.0.0-beta.8 (2020-09-23)
- use correct host_uri variable (f185a89)
4.0.0-beta.7 (2020-09-23)
- prettier lint (c8adfb8)
- Added CrystallizeKlarnaHelper class to generate klarnaOrderBody (4c31808)
4.0.0-beta.6 (2020-09-22)
- ci: add commitlint step before fetching cached node_modules (e63b705)
4.0.0-beta.5 (2020-09-22)
- ordermanagement v1 -> add additional helper functions for orders (113506a)
4.0.0-beta.4 (2020-09-22)
- git-hooks: make sure pre commit hook is working (75d3523)
- ordermanagement v1 -> refunds helper functions added (c458f8f)
- orders -> cancel order function added (bea9fd6)
4.0.0-beta.3 (2020-09-22)
- add customer token v1 endpoint helper functions (0b87176)
- add ordermanagement v1 endpoint helper functions (67b824e)
4.0.0-beta.2 (2020-09-21)
- correct naming for checkout function (ae7b065)
4.0.0-beta.1 (2020-09-16)
- ci: npm_token spell fix (86ea1a8)
- set npm publish irrespective of branches, add npm_token for ci env (27ea9ae)
- Move to typescript, improved structure for library, bug fixes and added typings based on klarna api