フィールドのデフォルトとカスタムマッピング
Salesforce オブジェクトの対応するフィールドを Stripe のオブジェクトにマッピングします。
When setting up the Stripe Billing app for Salesforce CPQ, you use the data mapper to map the fields from the Salesforce objects to corresponding fields on the Stripe objects.
データマッピング機能では、すべてのオブジェクトに Stripe ID フィールドがあるわけではありません。たとえば、サブスクリプションスケジュールフェーズアイテムに Stripe ID はありません。そのため、Stripe ID カスタムフィールドを Salesforce の注文明細に追加できません。ただし、データマッピング機能でオブジェクトを設定することはできます。
The app automatically maps the following objects:
Salesforce オブジェクト | Stripe オブジェクト |
---|---|
取引先 | Customer (顧客) |
注文 | Subscription Schedule (サブスクリプションスケジュール) と Subscription (サブスクリプション) |
OrderItem | サブスクリプションアイテム |
Product2 | Product (商品) |
PricebookEntry | Price (価格) |
カスタムマッピング
Salesforce で使用している標準フィールドおよびカスタムフィールドに基づいて、カスタムマッピングを作成できます。
サンプル
カスタムフィールドを使用して、価格表エントリーが従量制か、ライセンス制かを判断します。このカスタムフィールドは、Stripe
Price
オブジェクトの recurring.usage_type にマッピングできます。Salesforce の取引先で納税者番号のカスタムフィールドを使用します。そのカスタムフィールドを Stripe の対応するフィールドにマッピングできます。
You want to identify all customers in your Stripe account that the app created. You can add a custom metadata field called
Source
with a default value ofSalesforce
for the StripeCustomer
object.
オブジェクトとオブジェクトタイプの間に 1 対 1 の関係がある場合には、Salesforce フィールドへのパスをマッピングソースとして使用できます。たとえば、Salesforce の注文のアカウントのカスタムフィールドを Stripe のサブスクリプションスケジュールのカスタムメタデータフィールドにマッピングできます。ただし、アカウントに複数の注文が存在する場合は、Salesforce アカウントと注文フィールドの間のマッピングを作成できません。