com.chargebee.models
Class TimeMachine

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

public class TimeMachine
extends Resource<TimeMachine>


Nested Class Summary
static class TimeMachine.StartAfreshRequest
           
static class TimeMachine.TimeTravelStatus
           
static class TimeMachine.TravelForwardRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
TimeMachine(org.json.JSONObject jsonObj)
           
TimeMachine(String jsonStr)
           
 
Method Summary
 Timestamp destinationTime()
           
 String errorJson()
           
 String failureCode()
           
 String failureReason()
           
 Timestamp genesisTime()
           
 String name()
           
static Request retrieve(String id)
           
static TimeMachine.StartAfreshRequest startAfresh(String id)
           
 TimeMachine.TimeTravelStatus timeTravelStatus()
           
static TimeMachine.TravelForwardRequest travelForward(String id)
           
 TimeMachine waitForTimeTravelCompletion()
           
 TimeMachine waitForTimeTravelCompletion(Environment env)
           
 
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

TimeMachine

public TimeMachine(String jsonStr)

TimeMachine

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

name

public String name()

timeTravelStatus

public TimeMachine.TimeTravelStatus timeTravelStatus()

genesisTime

public Timestamp genesisTime()

destinationTime

public Timestamp destinationTime()

failureCode

public String failureCode()

failureReason

public String failureReason()

errorJson

public String errorJson()

retrieve

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

startAfresh

public static TimeMachine.StartAfreshRequest startAfresh(String id)
                                                  throws IOException
Throws:
IOException

travelForward

public static TimeMachine.TravelForwardRequest travelForward(String id)
                                                      throws IOException
Throws:
IOException

waitForTimeTravelCompletion

public TimeMachine waitForTimeTravelCompletion()
                                        throws Exception
Throws:
Exception

waitForTimeTravelCompletion

public TimeMachine waitForTimeTravelCompletion(Environment env)
                                        throws Exception
Throws:
Exception


Copyright © 2018 ChargeBee. All Rights Reserved.