Newer Version Available
CommerceStorePricing クラス
商品価格を取得します。
名前空間
CommerceStorePricing のメソッド
次に、CommerceStorePricing 用のメソッドを示します。すべてのメソッドが静的です。
getProductPrice(webstoreId, productId, effectiveAccountId)
API バージョン
49.0
ゲストユーザが使用可能
51.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.ProductPrice getProductPrice(String webstoreId, String productId, String effectiveAccountId)
パラメータ
戻り値
getProductPrices(webstoreId, effectiveAccountId, pricingInput)
API バージョン
49.0
ゲストユーザが使用可能
51.0
Chatter が必要かどうか
いいえ
署名
public static ConnectApi.PricingResult getProductPrices(String webstoreId, String effectiveAccountId, ConnectApi.PricingInput pricingInput)
パラメータ
- webstoreId
- 型: String
- WebStore の ID。
- effectiveAccountId
- 型: String
- 要求が行われたバイヤー取引先またはゲストバイヤープロファイルの ID。 null の場合、デフォルト値はコンテキストから決定されます。
- pricingInput
- 型: ConnectApi.PricingInput
- 価格設定する品目のリストを含む ConnectApi.PricingInput のボディ。
戻り値
使用方法
このメソッドではバイヤーエンタイトルメントが適用され、商品および価格データを表示する資格があるユーザのみがアクセスできます。