Class SendInvoice

    • Constructor Detail

      • SendInvoice

        public SendInvoice​(java.lang.Long chatId,
                           java.lang.String title,
                           java.lang.String description,
                           java.lang.String payload,
                           java.lang.String providerToken,
                           java.lang.String currency,
                           LabeledPrice... prices)
      • SendInvoice

        public SendInvoice​(java.lang.Long chatId,
                           java.lang.String title,
                           java.lang.String description,
                           java.lang.String payload,
                           java.lang.String providerToken,
                           java.lang.String startParameter,
                           java.lang.String currency,
                           LabeledPrice... prices)
    • Method Detail

      • providerData

        public SendInvoice providerData​(java.lang.String providerData)
      • photoUrl

        public SendInvoice photoUrl​(java.lang.String photoUrl)
      • photoSize

        public SendInvoice photoSize​(java.lang.Integer photoSize)
      • photoWidth

        public SendInvoice photoWidth​(java.lang.Integer photoWidth)
      • photoHeight

        public SendInvoice photoHeight​(java.lang.Integer photoHeight)
      • needName

        public SendInvoice needName​(boolean needName)
      • needPhoneNumber

        public SendInvoice needPhoneNumber​(boolean needPhoneNumber)
      • needEmail

        public SendInvoice needEmail​(boolean needEmail)
      • needShippingAddress

        public SendInvoice needShippingAddress​(boolean needShippingAddress)
      • isFlexible

        public SendInvoice isFlexible​(boolean isFlexible)
      • startParameter

        public SendInvoice startParameter​(java.lang.String startParameter)
      • maxTipAmount

        public SendInvoice maxTipAmount​(int maxTipAmount)
        Parameters:
        maxTipAmount - The maximum accepted amount for tips in the smallest units of the currency
        Returns:
      • suggestedTipAmounts

        public SendInvoice suggestedTipAmounts​(java.lang.Integer[] suggestedTipAmounts)
        Parameters:
        suggestedTipAmounts - An array of suggested amounts of tip in the smallest units of the currency. At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount.
        Returns: