Skip to content

Commit

Permalink
feat(legacy transactions): vocuher fields extension
Browse files Browse the repository at this point in the history
streamlinbed voucher fields
  • Loading branch information
alghanor committed Dec 2, 2019
1 parent 9ae6167 commit ae68da9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/v1/transactions/legacy/items/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,13 +345,16 @@ module.exports = {
'voucher_ean', // If is_voucher, the EAN of the voucher\'s associated product
'voucher_product', // If is_voucher, the associated Tillhub product resource of the voucher
'voucher_system_id', // If is_voucher, the associated Tillhub system resource of the voucher
'voucher_delegate_id', // If is_voucher, the associated system inside an external system
'voucher_user_id', // If is_voucher, the dynamic user component (user or external system id)
'voucher_action_id', // If is_voucher, the associated Tillhub system'\s action_id of the voucher
'voucher_currency', // If is_voucher, the voucher\'s currency
'voucher_api', // If is_voucher, the API used to process this voucher operation; e.g. fleurop-voucher-api, tillhub-voucher-api
'voucher_api', // If is_voucher, the API used to process this voucher operation
'voucher_is_booked', // If is_voucher, indicates if the operation has been successfully applied via calling the API
'voucher_is_locked', // If is_voucher, indicates the locked state within the API
'voucher_message', // If is_voucher, collected messages from voucher processing API calls
'voucher_title', // If is_voucher, a currently not used custom title
'voucher_type', // If is_voucher, the legacy type of the voucher operation
/*
the voucher_type enum:
[
Expand Down
2 changes: 2 additions & 0 deletions lib/v1/transactions/legacy/payments/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ module.exports = {
'voucher_ean', // If is_voucher, the EAN of the voucher\'s associated product
'voucher_product', // If is_voucher, the associated Tillhub product resource of the voucher
'voucher_system_id', // If is_voucher, the associated Tillhub system resource of the voucher
'voucher_user_id', // If is_voucher, the dynamic user component (user or external system id)
'voucher_action_id', // If is_voucher, the associated Tillhub system'\s action_id of the voucher
'voucher_product', // If is_voucher, the associated Tillhub product of the voucher
'voucher_currency', // If is_voucher, the voucher\'s currency
'voucher_api', // If is_voucher, the API used to process this voucher operation
'voucher_is_booked', // If is_voucher, indicates if the operation has been successfully applied via calling the API
Expand Down

0 comments on commit ae68da9

Please sign in to comment.