Skip to content
On this page

stage.ref.product.ref.admin

物販の要認証操作への参照です。

プロパティ

email

物販に紐づくメールのオペレータです。

sales

物販売り上げのオペレータです。

メソッド

associate() admin

引数必須内容
eventUuidstring / Array<string>イベントの UUID
type
Promise<void>

物販とイベントを紐づけます。

使用方法

ts
await Hedgehog.stage
  .ref("ステージのUUID")
  .product.ref("物販のUUID")
  .admin.associate("イベントのUUID");

delete() admin

type
Promise<void>

物販を削除します。

使用方法

ts
const data = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.ref("物販のUUID")
  .admin.delete();

refund() admin

引数必須内容
salesUuidstring / Array<string>物販売り上げの UUID

物販の返金処理を行います。

DANGER

物販の返金は未実装です

使用方法

ts
await Hedgehog.stage
  .ref("ステージのUUID")
  .product.ref("物販のUUID")
  .admin.refund("物販売り上げのUUID");

unassociate() admin

引数必須内容
eventUuidstring / Array<string>イベントの UUID
type
Promise<void>

物販とイベントの紐づけを解除します。

使用方法

ts
await Hedgehog.stage
  .ref("ステージのUUID")
  .product.ref("物販のUUID")
  .admin.unassociate("イベントのUUID");

update() admin

引数必須内容
dataUpdateProductInput更新データ
type
Promise<void>

物販の情報を更新します。

使用方法

ts
const data = await Hedgehog.stage
  .ref("ステージのUUID")
  .product.ref("物販のUUID")
  .admin.update({
    name: "タイトル更新",
  });