com.chargebee.models
Class PaymentSource

java.lang.Object
  extended by com.chargebee.internal.Resource<PaymentSource>
      extended by com.chargebee.models.PaymentSource

public class PaymentSource
extends Resource<PaymentSource>


Nested Class Summary
static class PaymentSource.AmazonPayment
           
static class PaymentSource.BankAccount
           
static class PaymentSource.Card
           
static class PaymentSource.CreateCardRequest
           
static class PaymentSource.CreateUsingPermanentTokenRequest
           
static class PaymentSource.CreateUsingTempTokenRequest
           
static class PaymentSource.ExportPaymentSourceRequest
           
static class PaymentSource.PaymentSourceListRequest
           
static class PaymentSource.Paypal
           
static class PaymentSource.Status
           
static class PaymentSource.SwitchGatewayAccountRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
PaymentSource(org.json.JSONObject jsonObj)
           
PaymentSource(String jsonStr)
           
 
Method Summary
 PaymentSource.AmazonPayment amazonPayment()
           
 PaymentSource.BankAccount bankAccount()
           
 PaymentSource.Card card()
           
static PaymentSource.CreateCardRequest createCard()
           
static PaymentSource.CreateUsingPermanentTokenRequest createUsingPermanentToken()
           
static PaymentSource.CreateUsingTempTokenRequest createUsingTempToken()
           
 String customerId()
           
static Request delete(String id)
           
static PaymentSource.ExportPaymentSourceRequest exportPaymentSource(String id)
           
 Gateway gateway()
           
 String gatewayAccountId()
           
 String id()
           
 String ipAddress()
           
 String issuingCountry()
           
static PaymentSource.PaymentSourceListRequest list()
           
 PaymentSource.Paypal paypal()
           
 String referenceId()
           
static Request retrieve(String id)
           
 PaymentSource.Status status()
           
static PaymentSource.SwitchGatewayAccountRequest switchGatewayAccount(String id)
           
 Type type()
           
 
Methods inherited from class com.chargebee.internal.Resource
apiVersionCheck, nullCheck, optBigDecimal, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, reqBigDecimal, reqBoolean, reqDouble, reqEnum, reqInteger, reqJSONObject, reqList, reqLong, reqString, reqSubResource, reqTimestamp, toJson, toString, uri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PaymentSource

public PaymentSource(String jsonStr)

PaymentSource

public PaymentSource(org.json.JSONObject jsonObj)
Method Detail

id

public String id()

customerId

public String customerId()

type

public Type type()

referenceId

public String referenceId()

status

public PaymentSource.Status status()

gateway

public Gateway gateway()

gatewayAccountId

public String gatewayAccountId()

ipAddress

public String ipAddress()

issuingCountry

public String issuingCountry()

card

public PaymentSource.Card card()

bankAccount

public PaymentSource.BankAccount bankAccount()

amazonPayment

public PaymentSource.AmazonPayment amazonPayment()

paypal

public PaymentSource.Paypal paypal()

createUsingTempToken

public static PaymentSource.CreateUsingTempTokenRequest createUsingTempToken()
                                                                      throws IOException
Throws:
IOException

createUsingPermanentToken

public static PaymentSource.CreateUsingPermanentTokenRequest createUsingPermanentToken()
                                                                                throws IOException
Throws:
IOException

createCard

public static PaymentSource.CreateCardRequest createCard()
                                                  throws IOException
Throws:
IOException

retrieve

public static Request retrieve(String id)
                        throws IOException
Throws:
IOException

list

public static PaymentSource.PaymentSourceListRequest list()
                                                   throws IOException
Throws:
IOException

switchGatewayAccount

public static PaymentSource.SwitchGatewayAccountRequest switchGatewayAccount(String id)
                                                                      throws IOException
Throws:
IOException

exportPaymentSource

public static PaymentSource.ExportPaymentSourceRequest exportPaymentSource(String id)
                                                                    throws IOException
Throws:
IOException

delete

public static Request delete(String id)
                      throws IOException
Throws:
IOException


Copyright © 2017 ChargeBee. All Rights Reserved.