Openbravo Issue Tracking System - Retail Modules
View Issue Details
0056895Retail ModulesGift cards and gift voucherspublic2024-10-24 18:192024-11-12 06:17
sofidossant 
Bimla_vm 
normalminoralways
closedfixed 
5
pi 
 
No
0056895: ERROR API Consume Gift cards
Any error in the api
https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard [^]
We have this response:
    “data": {
        “errors": [
            {
                “status": 200,
                “title": ‘Error consuming gift card’.
            }
        ]
    },
    “links": null
}

Relation with issue
https://issues.openbravo.com/view.php?id=56346 [^]
I try to consume one gift card that don't exits:
https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql/ws/org.openbravo.retail.api.giftcards.ImportService/ConsumeGiftCard [^] [^]

{
  "client": "The White Valley Group",
  "organization": "The White Valley Group",
  "giftCardIdentifier": "TEST-SOFISSA",
  "amount": 40,
}

Response

{
    "data": {
        "id": "9BF85FA64B114A16A9C1185D0E3BF9EE",
        "amount": 40,
        "gcnvGiftcardInst": "E16782A0E46D4BB69131B7B139F3CA70"
    },
    "links": null
}

The answer should be that there is no gift card,
If any field is missing, do not let us know.
No tags attached.
Issue History
2024-10-24 18:19sofidossantNew Issue
2024-10-24 18:19sofidossantAssigned To => Retail
2024-10-24 18:19sofidossantTriggers an Emergency Pack => No
2024-10-25 06:20guillermogilAssigned ToRetail => guilleaer
2024-10-25 14:22PracticsIssue Monitored: Practics
2024-10-29 08:16guilleaerStatusnew => acknowledged
2024-11-02 06:19Bimla_vmAssigned Toguilleaer => Bimla_vm
2024-11-02 06:19Bimla_vmStatusacknowledged => scheduled
2024-11-05 07:10hgbotNote Added: 0171357
2024-11-06 08:36hgbotNote Added: 0171475
2024-11-06 08:36hgbotResolutionopen => fixed
2024-11-06 08:36hgbotStatusscheduled => closed
2024-11-06 08:36hgbotNote Added: 0171476
2024-11-12 06:16Bimla_vmStatusclosed => new
2024-11-12 06:16Bimla_vmResolutionfixed => open
2024-11-12 06:17Bimla_vmStatusnew => scheduled
2024-11-12 06:17Bimla_vmStatusscheduled => resolved
2024-11-12 06:17Bimla_vmResolutionopen => fixed
2024-11-12 06:17Bimla_vmStatusresolved => closed

Notes
(0171357)
hgbot   
2024-11-05 07:10   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/393 [^]
(0171475)
hgbot   
2024-11-06 08:36   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/merge_requests/393 [^]
(0171476)
hgbot   
2024-11-06 08:36   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards [^]
Changeset: ded584597f375a03b5d5dbb93d51f0ffa1cfc79a
Author: Bimla Mayavan <b.mayavan@external.orisha.com>
Date: 06-11-2024 07:36:21
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.giftcards/-/commit/ded584597f375a03b5d5dbb93d51f0ffa1cfc79a [^]

Fixed ISSUE-56895: Handled exception for consume giftcards API

---
M src/org/openbravo/retail/giftcards/ConsumeGiftCardAmount.java
M src/org/openbravo/retail/giftcards/ConsumeGiftCardAmountExtension.java
M src/org/openbravo/retail/giftcards/utils/GiftCardUtils.java
---