001// Generated by delombok at Thu Aug 13 13:56:44 UTC 2026 002/* 003 * Copyright (c) 2010-2026 Mark Allen, Norbert Bartels. 004 * 005 * Permission is hereby granted, free of charge, to any person obtaining a copy 006 * of this software and associated documentation files (the "Software"), to deal 007 * in the Software without restriction, including without limitation the rights 008 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 009 * copies of the Software, and to permit persons to whom the Software is 010 * furnished to do so, subject to the following conditions: 011 * 012 * The above copyright notice and this permission notice shall be included in 013 * all copies or substantial portions of the Software. 014 * 015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 016 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 017 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 018 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 019 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 020 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 021 * THE SOFTWARE. 022 */ 023package com.restfb.types.webhook.messaging; 024 025import com.restfb.Facebook; 026import com.restfb.types.webhook.messaging.payment.Amount; 027import com.restfb.types.webhook.messaging.payment.PaymentCredential; 028import com.restfb.types.webhook.messaging.payment.ReuqestedUserInfo; 029 030/** 031 * Represents the 032 * <a href="https://developers.facebook.com/docs/messenger-platform/webhook-reference/payment">Payment</a> Callback 033 */ 034public class PaymentItem implements InnerMessagingItem { 035 /** 036 * Metadata defined in the Buy Button. 037 */ 038 @Facebook 039 private String payload; 040 /** 041 * Information that was requested from the user by the Buy Button. 042 */ 043 @Facebook("requested_user_info") 044 private ReuqestedUserInfo requestedUserInfo; 045 /** 046 * Payment credentials. 047 */ 048 @Facebook("payment_credential") 049 private PaymentCredential paymentCredential; 050 /** 051 * Total amount of transaction. 052 */ 053 @Facebook 054 private Amount amount; 055 056 @java.lang.Override 057 @java.lang.SuppressWarnings("all") 058 @lombok.Generated 059 public java.lang.String toString() { 060 return "PaymentItem(payload=" + this.getPayload() + ", requestedUserInfo=" + this.getRequestedUserInfo() + ", paymentCredential=" + this.getPaymentCredential() + ", amount=" + this.getAmount() + ")"; 061 } 062 063 /** 064 * Metadata defined in the Buy Button. 065 */ 066 @java.lang.SuppressWarnings("all") 067 @lombok.Generated 068 public String getPayload() { 069 return this.payload; 070 } 071 072 /** 073 * Metadata defined in the Buy Button. 074 */ 075 @java.lang.SuppressWarnings("all") 076 @lombok.Generated 077 public void setPayload(final String payload) { 078 this.payload = payload; 079 } 080 081 /** 082 * Information that was requested from the user by the Buy Button. 083 */ 084 @java.lang.SuppressWarnings("all") 085 @lombok.Generated 086 public ReuqestedUserInfo getRequestedUserInfo() { 087 return this.requestedUserInfo; 088 } 089 090 /** 091 * Information that was requested from the user by the Buy Button. 092 */ 093 @java.lang.SuppressWarnings("all") 094 @lombok.Generated 095 public void setRequestedUserInfo(final ReuqestedUserInfo requestedUserInfo) { 096 this.requestedUserInfo = requestedUserInfo; 097 } 098 099 /** 100 * Payment credentials. 101 */ 102 @java.lang.SuppressWarnings("all") 103 @lombok.Generated 104 public PaymentCredential getPaymentCredential() { 105 return this.paymentCredential; 106 } 107 108 /** 109 * Payment credentials. 110 */ 111 @java.lang.SuppressWarnings("all") 112 @lombok.Generated 113 public void setPaymentCredential(final PaymentCredential paymentCredential) { 114 this.paymentCredential = paymentCredential; 115 } 116 117 /** 118 * Total amount of transaction. 119 */ 120 @java.lang.SuppressWarnings("all") 121 @lombok.Generated 122 public Amount getAmount() { 123 return this.amount; 124 } 125 126 /** 127 * Total amount of transaction. 128 */ 129 @java.lang.SuppressWarnings("all") 130 @lombok.Generated 131 public void setAmount(final Amount amount) { 132 this.amount = amount; 133 } 134}