@one-view/delivery-project-types
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

FORMAT: 1A HOST: https://api-pandacare.foodpanda.com/voucher-wallet

delivery-project

example delivery project

Voucher Wallet [/v1/customers/{geid}/{customerId}/wallet]

Get voucher wallet

  • Parameters
    • geid (string, required, FP_SG) - global entity id
    • customerId (string, required) - customer ID

Get voucher wallet [GET]

  • Request

    • Headers

        Authorization: bearer token
      
  • Response 200 (application/json)

    • Attributes (Vouchers)
  • Response 403 (application/json)

    • Attributes (Error)
  • Response 404 (application/json)

    • Attributes (Error)
  • Response 500 (application/json)

    • Attributes (Error)

Voucher [/v1/vouchers/{geid}/{voucherCode}]

Get voucher by code

  • Parameters
    • geid (string, required, FP_SG) - global entity id
    • voucherCode (string, required) - voucher code

Get single voucher by code [GET]

  • Request

    • Headers

        Authorization: bearer token
      
  • Response 200 (application/json)

    • Attributes (Voucher)
  • Response 403 (application/json)

    • Attributes (Error)
  • Response 404 (application/json)

    • Attributes (Error)
  • Response 500 (application/json)

    • Attributes (Error)

Data Structures

int32 (number)

int64 (number)

error_object (object)

  • status (string)
  • title (string)

Error (object)

  • errors (array[error_object], fixed-type)

Vouchers

  • list (array[Voucher], required, fixed-type)

Voucher

  • code : vmdMlZ8 (string) - voucher code
  • name : happy new year (string) - voucher name
  • description : for user activation (string) - voucher description
  • expiry : 1619667165 (string) - timestamp formatted date
  • minimumOrder : $10.00 (string) minimum order amount
  • value : $20.00 (string) voucher value
  • status (VoucherStatus)
  • attributes (array[VoucherAttribute], fixed-type)

VoucherStatus (enum)

  • APPLICABLE
  • NOT_APPLICABLE
  • EXPIRED
  • USED

VoucherAttribute

  • label : code (string, required) - voucher label
  • value (object) - actual voucher value
  • displayValue : vmdMlZ8 (string, required) - voucher value
  • isRestricted : true (boolean, required) - is the value restricted to be copied

Readme

Keywords

none

Package Sidebar

Install

npm i @one-view/delivery-project-types

Weekly Downloads

1

Version

0.0.2

License

none

Unpacked Size

15.8 kB

Total Files

4

Last publish

Collaborators

  • alipsidik
  • ramadimasatria
  • forex
  • ichsanrp
  • alicanakyuz
  • gabrielang-fp
  • hendra.wijaya
  • fp_apac_jonathan.sudibya
  • jianann-fp
  • shing-fp