IdempotentRequestBuilder<B>, RequestBuilder<M,Request<M>>SubscriptionBuilders.CreateSubscriptionRequestBuilderpublic abstract static class AbstractSubscriptionBuilders.AbstractCreateSubscriptionRequestBuilder<B extends AbstractSubscriptionBuilders.AbstractCreateSubscriptionRequestBuilder,R,M extends Subscription> extends IdempotentRetrofitRequestBuilder<M,R,B>
| Modifier and Type | Field | Description |
|---|---|---|
protected BigInteger |
initialAmount |
|
protected InstallmentPlanRequest |
installmentPlan |
|
protected MetadataMap |
metadata |
|
protected MoneyLike |
money |
|
protected SubscriptionPeriod |
period |
|
protected Boolean |
preserveEndOfMonth |
|
protected org.joda.time.LocalDate |
startOn |
|
protected Date |
subsequentCyclesStart |
|
protected TransactionTokenId |
token |
|
protected org.threeten.bp.ZoneId |
zoneId |
idempotencyKey| Constructor | Description |
|---|---|
AbstractCreateSubscriptionRequestBuilder(retrofit2.Retrofit retrofit,
TransactionTokenId token,
MoneyLike money,
SubscriptionPeriod period) |
| Modifier and Type | Method | Description |
|---|---|---|
protected BigInteger |
getInitialAmount() |
|
InstallmentPlanRequest |
getInstallmentPlan() |
|
protected MetadataMap |
getMetadata() |
|
protected MoneyLike |
getMoney() |
|
protected SubscriptionPeriod |
getPeriod() |
|
Boolean |
getPreserveEndOfMonth() |
|
org.joda.time.LocalDate |
getStartOn() |
|
Date |
getSubsequentCyclesStart() |
|
protected TransactionTokenId |
getToken() |
|
org.threeten.bp.ZoneId |
getZoneId() |
|
B |
withInitialAmount(BigInteger initialAmount) |
|
B |
withInstallmentPlan(InstallmentPlanRequest installmentPlan) |
|
B |
withMetadata(MetadataMap metadata) |
|
<T> B |
withMetadata(T metadata,
MetadataAdapter<T> adapter) |
|
B |
withPreserveEndOfMoth(Boolean preserveEndOfMonth) |
|
B |
withStartOn(org.joda.time.LocalDate startOn) |
|
B |
withSubsequentCyclesStart(Date subsequentCyclesStart) |
|
B |
withZoneId(org.threeten.bp.ZoneId zoneId) |
getIdempotencyKey, withIdempotencyKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, getRequestprotected TransactionTokenId token
protected MoneyLike money
protected SubscriptionPeriod period
protected BigInteger initialAmount
protected MetadataMap metadata
protected InstallmentPlanRequest installmentPlan
protected org.joda.time.LocalDate startOn
protected org.threeten.bp.ZoneId zoneId
protected Boolean preserveEndOfMonth
protected Date subsequentCyclesStart
public AbstractCreateSubscriptionRequestBuilder(retrofit2.Retrofit retrofit,
TransactionTokenId token,
MoneyLike money,
SubscriptionPeriod period)
protected TransactionTokenId getToken()
protected MoneyLike getMoney()
protected SubscriptionPeriod getPeriod()
protected BigInteger getInitialAmount()
protected MetadataMap getMetadata()
public InstallmentPlanRequest getInstallmentPlan()
public org.joda.time.LocalDate getStartOn()
public org.threeten.bp.ZoneId getZoneId()
public Boolean getPreserveEndOfMonth()
public Date getSubsequentCyclesStart()
public B withInitialAmount(BigInteger initialAmount)
public B withMetadata(MetadataMap metadata)
public <T> B withMetadata(T metadata, MetadataAdapter<T> adapter)
public B withInstallmentPlan(InstallmentPlanRequest installmentPlan)
public B withStartOn(org.joda.time.LocalDate startOn)
public B withZoneId(org.threeten.bp.ZoneId zoneId)
Copyright © 2018 The Apache Software Foundation. All rights reserved.