Type ReceiptTemplate - HiznyakNikita/facebook-messenger-net-lib GitHub Wiki

ReceiptTemplate

represent a receipt template type payload of attachment

Fields

  • string RecipientName - name of receipt

  • string OrderNumber - number of order

  • string Currency - currency of order

  • string PaymentMethod - payment method for receipt

  • string Timestamp - time of order

  • string OrderUrl - url of order at site etc.

  • IList Elements - list of ReceiptTemplateElement type objects which will be send to user in bot message to choose goods etc.

  • ReceiptTemplateSummary Summary - ReceiptTemplateSummary object for receipt summary. Represents total taxes, total price etc.

  • Address Address - address of oreder (shipping etc.)

  • IList Adjustments - list of ReceiptAdjustments type objects which represents name and amount of goods

  • order_number must be unique for each user

  • payment_method is required but is a String. You may insert an arbitrary string here but we recommend providing enough * * information for the person to decipher which payment method and account they used (e.g., the name of the payment method and partial account number)

  • elements has a maximum of 100

  • elements sort order is not guaranteed

  • address is optional. If you do not ship an item, you may omit these fields

  • adjustments allow a way to insert adjusted pricing (e.g., sales). Adjustments are optional