public class CreateSubscriptionRequest<T extends CreateSubscriptionRequest> extends Request
| Modifier and Type | Field and Description |
|---|---|
protected Float |
applicationFeePercent |
protected Object |
card |
protected String |
coupon |
protected Map<String,Object> |
metadata |
protected String |
plan |
protected Integer |
quantity |
protected Date |
trialEnd |
| Constructor and Description |
|---|
CreateSubscriptionRequest(String plan) |
| Modifier and Type | Method and Description |
|---|---|
T |
setApplicationFeePercent(Float applicationFeePercent) |
T |
setCard(CreateCardRequest request) |
T |
setCard(String token) |
T |
setCoupon(String coupon) |
T |
setMetadata(Map<String,Object> metadata) |
T |
setQuantity(Integer quantity) |
T |
setTrialEnd(Date trialEnd) |
dateToString, toRequest, toRequest, toRequestprotected String plan
protected String coupon
protected Date trialEnd
protected Object card
protected Integer quantity
protected Float applicationFeePercent
public CreateSubscriptionRequest(String plan)
public T setCard(CreateCardRequest request)
Copyright © 2014. All rights reserved.