Appearance
stage.ref.product.ref.admin
物販の要認証操作への参照です。
プロパティ
物販に紐づくメールのオペレータです。
sales
物販売り上げのオペレータです。
メソッド
associate() admin
| 引数 | 必須 | 型 | 内容 |
|---|---|---|---|
| eventUuid | ✓ | string / 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
| 引数 | 必須 | 型 | 内容 |
|---|---|---|---|
| salesUuid | ✓ | string / Array<string> | 物販売り上げの UUID |
物販の返金処理を行います。
DANGER
物販の返金は未実装です
使用方法
ts
await Hedgehog.stage
.ref("ステージのUUID")
.product.ref("物販のUUID")
.admin.refund("物販売り上げのUUID");unassociate() admin
| 引数 | 必須 | 型 | 内容 |
|---|---|---|---|
| eventUuid | ✓ | string / Array<string> | イベントの UUID |
type
Promise<void>
物販とイベントの紐づけを解除します。
使用方法
ts
await Hedgehog.stage
.ref("ステージのUUID")
.product.ref("物販のUUID")
.admin.unassociate("イベントのUUID");update() admin
| 引数 | 必須 | 型 | 内容 |
|---|---|---|---|
| data | ✓ | UpdateProductInput | 更新データ |
type
Promise<void>
物販の情報を更新します。
使用方法
ts
const data = await Hedgehog.stage
.ref("ステージのUUID")
.product.ref("物販のUUID")
.admin.update({
name: "タイトル更新",
});