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 class
Payment.BankAccountType
static class
Payment.Capture
static class
Payment.PaymentMethod
static class
Payment.Status
static class
Payment.TokenType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentCreator
creator(String pathAccountSid, String pathCallSid, String idempotencyKey, URI statusCallback)
static PaymentCreator
creator(String pathCallSid, String idempotencyKey, URI statusCallback)
boolean
equals(Object o)
static Payment
fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Payment object using the provided ObjectMapper.static Payment
fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Payment object using the provided ObjectMapper.String
getAccountSid()
String
getCallSid()
ZonedDateTime
getDateCreated()
ZonedDateTime
getDateUpdated()
String
getSid()
String
getUri()
int
hashCode()
static PaymentUpdater
updater(String pathAccountSid, String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
static PaymentUpdater
updater(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()
-
-