Class Payment
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.api.v2010.account.call.Payment
-
- All Implemented Interfaces:
Serializable
public class Payment extends Resource
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPayment.BankAccountTypestatic classPayment.Capturestatic classPayment.PaymentMethodstatic classPayment.Statusstatic classPayment.TokenType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentCreatorcreator(String pathAccountSid, String pathCallSid, String idempotencyKey, URI statusCallback)static PaymentCreatorcreator(String pathCallSid, String idempotencyKey, URI statusCallback)booleanequals(Object o)static PaymentfromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Payment object using the provided ObjectMapper.static PaymentfromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Payment object using the provided ObjectMapper.StringgetAccountSid()StringgetCallSid()ZonedDateTimegetDateCreated()ZonedDateTimegetDateUpdated()StringgetSid()StringgetUri()inthashCode()static PaymentUpdaterupdater(String pathAccountSid, String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)static PaymentUpdaterupdater(String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
-
-
-
Method Detail
-
creator
public static PaymentCreator creator(String pathCallSid, String idempotencyKey, URI statusCallback)
-
creator
public static PaymentCreator creator(String pathAccountSid, String pathCallSid, String idempotencyKey, URI statusCallback)
-
updater
public static PaymentUpdater updater(String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
-
updater
public static PaymentUpdater updater(String pathAccountSid, String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
-
fromJson
public static Payment fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Payment object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Payment object represented by the provided JSON
-
fromJson
public static Payment fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Payment object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Payment object represented by the provided JSON
-
getAccountSid
public final String getAccountSid()
-
getCallSid
public final String getCallSid()
-
getSid
public final String getSid()
-
getDateCreated
public final ZonedDateTime getDateCreated()
-
getDateUpdated
public final ZonedDateTime getDateUpdated()
-
getUri
public final String getUri()
-
-