Files
medusa-store/www/apps/docs/content/references/js-client/classes/internal-8.internal.AdminPostGiftCardsGiftCardReq.md
github-actions[bot] daea35fe73 chore(docs): Generated JS Client Reference (#5334)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-10-10 17:47:07 +00:00

1.9 KiB

displayed_sidebar
displayed_sidebar
jsClientSidebar

Class: AdminPostGiftCardsGiftCardReq

internal.internal.AdminPostGiftCardsGiftCardReq

Schema

AdminPostGiftCardsGiftCardReq type: object properties: balance: type: integer description: The value (excluding VAT) that the Gift Card should represent. is_disabled: type: boolean description: Whether the Gift Card is disabled on creation. If set to true, the gift card will not be available for customers. ends_at: type: string format: date-time description: The date and time at which the Gift Card should no longer be available. region_id: description: The ID of the Region in which the Gift Card can be used. type: string metadata: description: An optional set of key-value pairs to hold additional information. type: object externalDocs: description: "Learn about the metadata attribute, and how to delete and update it." url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"

Properties

balance

Optional balance: number

Defined in

packages/medusa/dist/api/routes/admin/gift-cards/update-gift-card.d.ts:91


ends_at

Optional ends_at: null | Date

Defined in

packages/medusa/dist/api/routes/admin/gift-cards/update-gift-card.d.ts:93


is_disabled

Optional is_disabled: boolean

Defined in

packages/medusa/dist/api/routes/admin/gift-cards/update-gift-card.d.ts:92


metadata

Optional metadata: Record<string, unknown>

Defined in

packages/medusa/dist/api/routes/admin/gift-cards/update-gift-card.d.ts:95


region_id

Optional region_id: string

Defined in

packages/medusa/dist/api/routes/admin/gift-cards/update-gift-card.d.ts:94