taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

delete-discount.rst (668B)


      1 .. ts:op:: deleteDiscount
      2 
      3   Delete all discount tokens of one token family from the wallet.
      4 
      5   **Request:**
      6 
      7   The request arguments must be a `DeleteDiscountRequest` object.
      8 
      9   **Response:**
     10 
     11   On success, the result is an empty object.
     12 
     13   **Side effects:**
     14 
     15   Deletes all discount tokens of the token family from the wallet
     16   database.  If any token of the family is still in use by a
     17   transaction, nothing is deleted.
     18 
     19   **Expected errors:**
     20 
     21   The caller can handle the following errors inline:
     22   ``WALLET_TOKENS_IN_USE``.
     23 
     24 .. ts:def:: DeleteDiscountRequest
     25 
     26   interface DeleteDiscountRequest {
     27     // Hash of token family info.
     28     tokenFamilyHash: string;
     29   }