Class: Spree::Api::V3::Admin::GiftCardBatchesController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/api/v3/admin/gift_card_batches_controller.rb

Overview

Admin bulk-issue endpoint for ‘Spree::GiftCardBatch`. Creating a batch synchronously generates the `codes_count` gift cards inline (or kicks off a background job when the count exceeds `Spree.config.gift_card_batch_web_limit`, default 500). Read-only access lives behind `list`/`show` so the SPA can surface batch context on the gift cards index (filter chip, batch chip on rows).

Constant Summary

Constants included from ScopedAuthorization

ScopedAuthorization::READ_ACTIONS

Constants inherited from BaseController

BaseController::RATE_LIMIT_RESPONSE

Constants included from Idempotent

Idempotent::IDEMPOTENCY_HEADER, Idempotent::IDEMPOTENCY_TTL, Idempotent::MAX_KEY_LENGTH, Idempotent::MUTATING_METHODS

Constants included from ErrorHandler

ErrorHandler::ERROR_CODES

Constants included from JwtAuthentication

JwtAuthentication::JWT_AUDIENCE_ADMIN, JwtAuthentication::JWT_AUDIENCE_STORE, JwtAuthentication::JWT_ISSUER, JwtAuthentication::USER_TYPE_ADMIN, JwtAuthentication::USER_TYPE_CUSTOMER

Method Summary

Methods inherited from ResourceController

#create, #destroy, #index, #show, #update

Methods included from Spree::Api::V3::ApiKeyAuthentication

#authenticate_api_key!, #authenticate_secret_key!

Methods included from JwtAuthentication

#authenticate_user, #require_authentication!