Package com.stripe.model.billing
Class FeedbackOption
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.FeedbackOption
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
A resource for the feedback options model (for custom cancellation reasons).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about StatusTransitions, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanstatic FeedbackOptioncreate(FeedbackOptionCreateParams params) Creates a new feedback option.static FeedbackOptioncreate(FeedbackOptionCreateParams params, RequestOptions options) Creates a new feedback option.static FeedbackOptionCreates a new feedback option.static FeedbackOptioncreate(Map<String, Object> params, RequestOptions options) Creates a new feedback option.Deactivates a feedback option.deactivate(RequestOptions options) Deactivates a feedback option.Deactivates a feedback option.deactivate(FeedbackOptionDeactivateParams params, RequestOptions options) Deactivates a feedback option.deactivate(Map<String, Object> params) Deactivates a feedback option.deactivate(Map<String, Object> params, RequestOptions options) Deactivates a feedback option.booleanAn arbitrary string attached to the object.getId()Unique identifier for the object.If the object exists in live mode, the value istrue.String representing the object's type.The feedback option's status.inthashCode()static FeedbackOptionCollectionlist(FeedbackOptionListParams params) An API method for listing the feedback options model.static FeedbackOptionCollectionlist(FeedbackOptionListParams params, RequestOptions options) An API method for listing the feedback options model.static FeedbackOptionCollectionAn API method for listing the feedback options model.static FeedbackOptionCollectionlist(Map<String, Object> params, RequestOptions options) An API method for listing the feedback options model.static FeedbackOptionRetrieves a feedback options object given an ID.static FeedbackOptionretrieve(String id, RequestOptions options) Retrieves a feedback options object given an ID.static FeedbackOptionretrieve(String id, FeedbackOptionRetrieveParams params, RequestOptions options) Retrieves a feedback options object given an ID.static FeedbackOptionRetrieves a feedback options object given an ID.voidsetDescription(String description) An arbitrary string attached to the object.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) If the object exists in live mode, the value istrue.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidThe feedback option's status.voidsetStatusTransitions(FeedbackOption.StatusTransitions statusTransitions) update(FeedbackOptionUpdateParams params) Updates the description of an existing feedback option.update(FeedbackOptionUpdateParams params, RequestOptions options) Updates the description of an existing feedback option.Updates the description of an existing feedback option.update(Map<String, Object> params, RequestOptions options) Updates the description of an existing feedback option.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
FeedbackOption
public FeedbackOption()
-
-
Method Details
-
create
Creates a new feedback option.- Throws:
StripeException
-
create
public static FeedbackOption create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a new feedback option.- Throws:
StripeException
-
create
Creates a new feedback option.- Throws:
StripeException
-
create
public static FeedbackOption create(FeedbackOptionCreateParams params, RequestOptions options) throws StripeException Creates a new feedback option.- Throws:
StripeException
-
deactivate
Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.- Throws:
StripeException
-
deactivate
Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.- Throws:
StripeException
-
deactivate
Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.- Throws:
StripeException
-
deactivate
public FeedbackOption deactivate(Map<String, Object> params, RequestOptions options) throws StripeExceptionDeactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.- Throws:
StripeException
-
deactivate
Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.- Throws:
StripeException
-
deactivate
public FeedbackOption deactivate(FeedbackOptionDeactivateParams params, RequestOptions options) throws StripeException Deactivates a feedback option. Deactivated feedback options cannot be used in portal configurations.- Throws:
StripeException
-
list
An API method for listing the feedback options model.- Throws:
StripeException
-
list
public static FeedbackOptionCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionAn API method for listing the feedback options model.- Throws:
StripeException
-
list
An API method for listing the feedback options model.- Throws:
StripeException
-
list
public static FeedbackOptionCollection list(FeedbackOptionListParams params, RequestOptions options) throws StripeException An API method for listing the feedback options model.- Throws:
StripeException
-
retrieve
Retrieves a feedback options object given an ID.- Throws:
StripeException
-
retrieve
Retrieves a feedback options object given an ID.- Throws:
StripeException
-
retrieve
public static FeedbackOption retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a feedback options object given an ID.- Throws:
StripeException
-
retrieve
public static FeedbackOption retrieve(String id, FeedbackOptionRetrieveParams params, RequestOptions options) throws StripeException Retrieves a feedback options object given an ID.- Throws:
StripeException
-
update
Updates the description of an existing feedback option.- Throws:
StripeException
-
update
public FeedbackOption update(Map<String, Object> params, RequestOptions options) throws StripeExceptionUpdates the description of an existing feedback option.- Throws:
StripeException
-
update
Updates the description of an existing feedback option.- Throws:
StripeException
-
update
public FeedbackOption update(FeedbackOptionUpdateParams params, RequestOptions options) throws StripeException Updates the description of an existing feedback option.- Throws:
StripeException
-
setResponseGetter
Description copied from interface:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
getLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.feedback_option. -
getStatus
The feedback option's status.One of
active, orinactive. -
getStatusTransitions
-
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setId
Unique identifier for the object. -
setLivemode
If the object exists in live mode, the value istrue. If the object exists in test mode, the value isfalse. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.feedback_option. -
setStatus
The feedback option's status.One of
active, orinactive. -
setStatusTransitions
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-