Skip to content
On this page

stage.ref.product.admin

物販に関する要認証操作です。

プロパティ

email

関連するメールテンプレートに使用する変数のオペレータです。

メソッド

create() admin

引数必須内容
dataCreateProductInput作成用データ

物販を作成します。

使用方法

ts
const product = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.admin.create({
    name: "タイトル",
    amount: 1000,
    description: "説明",
    publishFlag: true,
    salesFlag: true,
    tax: 10,
    images: [
      {
        file: new File([], "this is dummy"),
        index: 1,
      },
    ],
    deliveryChargeFlag: true,
    stripeAccountUuid: "UUID",
  });

sales() admin

引数必須内容
optionProductSalesListOptionリスト取得時のオプション

チケット売り上げのリストオペレータを取得します。

使用方法

ts
// すべて取得する場合
const list = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.admin.sales({
    /** 取得条件 */
  })
  .all();