public class Payment extends Resource
Modifier and Type | Class and Description |
---|---|
static class |
Payment.BankAccountType |
static class |
Payment.Capture |
static class |
Payment.PaymentMethod |
static class |
Payment.Status |
static class |
Payment.TokenType |
Modifier and Type | Method and Description |
---|---|
static PaymentCreator |
creator(String pathAccountSid,
String pathCallSid,
String idempotencyKey,
URI statusCallback)
Create a PaymentCreator to execute create.
|
static PaymentCreator |
creator(String pathCallSid,
String idempotencyKey,
URI statusCallback)
Create a PaymentCreator to execute create.
|
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()
Returns The SID of the Account that created the Payments resource..
|
String |
getCallSid()
Returns The SID of the Call the resource is associated with..
|
ZonedDateTime |
getDateCreated()
Returns The RFC 2822 date and time in GMT that the resource was created.
|
ZonedDateTime |
getDateUpdated()
Returns The RFC 2822 date and time in GMT that the resource was last updated.
|
String |
getSid()
Returns The SID of the Payments resource..
|
String |
getUri()
Returns The URI of the resource, relative to `https://api.twilio.com`.
|
int |
hashCode() |
static PaymentUpdater |
updater(String pathAccountSid,
String pathCallSid,
String pathSid,
String idempotencyKey,
URI statusCallback)
Create a PaymentUpdater to execute update.
|
static PaymentUpdater |
updater(String pathCallSid,
String pathSid,
String idempotencyKey,
URI statusCallback)
Create a PaymentUpdater to execute update.
|
public static PaymentCreator creator(String pathAccountSid, String pathCallSid, String idempotencyKey, URI statusCallback)
pathAccountSid
- The SID of the Account that will create the resourcepathCallSid
- The SID of the call that will create the resource.idempotencyKey
- A unique token that will be used to ensure that
multiple API calls with the same information do not
result in multiple transactions.statusCallback
- Provide an absolute or relative URL to receive status
updates regarding your Pay session..public static PaymentCreator creator(String pathCallSid, String idempotencyKey, URI statusCallback)
pathCallSid
- The SID of the call that will create the resource.idempotencyKey
- A unique token that will be used to ensure that
multiple API calls with the same information do not
result in multiple transactions.statusCallback
- Provide an absolute or relative URL to receive status
updates regarding your Pay session..public static PaymentUpdater updater(String pathAccountSid, String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
pathAccountSid
- The SID of the Account that will update the resourcepathCallSid
- The SID of the call that will create the resource.pathSid
- The SID of Payments sessionidempotencyKey
- A unique token that will be used to ensure that
multiple API calls with the same information do not
result in multiple transactions.statusCallback
- Provide an absolute or relative URL to receive status
updates regarding your Pay session.public static PaymentUpdater updater(String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
pathCallSid
- The SID of the call that will create the resource.pathSid
- The SID of Payments sessionidempotencyKey
- A unique token that will be used to ensure that
multiple API calls with the same information do not
result in multiple transactions.statusCallback
- Provide an absolute or relative URL to receive status
updates regarding your Pay session.public static Payment fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Payment fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getAccountSid()
public final String getCallSid()
public final String getSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final String getUri()
Copyright © 2019 Twilio, Inc. All Rights Reserved.