Package com.stripe.service
Class MarginService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.MarginService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(MarginCreateParams params) Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount.A margin has apercent_off
which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer.create
(MarginCreateParams params, RequestOptions options) Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount.A margin has apercent_off
which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer.list()
Retrieve a list of your margins.list
(RequestOptions options) Retrieve a list of your margins.list
(MarginListParams params) Retrieve a list of your margins.list
(MarginListParams params, RequestOptions options) Retrieve a list of your margins.Retrieve a margin object with the given ID.retrieve
(String margin, RequestOptions options) Retrieve a margin object with the given ID.retrieve
(String margin, MarginRetrieveParams params) Retrieve a margin object with the given ID.retrieve
(String margin, MarginRetrieveParams params, RequestOptions options) Retrieve a margin object with the given ID.Update the specified margin object.update
(String margin, RequestOptions options) Update the specified margin object.update
(String margin, MarginUpdateParams params) Update the specified margin object.update
(String margin, MarginUpdateParams params, RequestOptions options) Update the specified margin object.Methods inherited from class com.stripe.net.ApiService
getResponseGetter
-
Constructor Details
-
MarginService
-
-
Method Details
-
list
Retrieve a list of your margins.- Throws:
StripeException
-
list
Retrieve a list of your margins.- Throws:
StripeException
-
list
Retrieve a list of your margins.- Throws:
StripeException
-
list
public StripeCollection<Margin> list(MarginListParams params, RequestOptions options) throws StripeException Retrieve a list of your margins.- Throws:
StripeException
-
create
Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount.A margin has apercent_off
which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.- Throws:
StripeException
-
create
Create a margin object to be used with invoices, invoice items, and invoice line items for a customer to represent a partner discount.A margin has apercent_off
which is the percent that will be taken off the subtotal after all items and other discounts and promotions) of any invoices for a customer. Calculation of prorations do not include any partner margins applied on the original invoice item.- Throws:
StripeException
-
retrieve
Retrieve a margin object with the given ID.- Throws:
StripeException
-
retrieve
Retrieve a margin object with the given ID.- Throws:
StripeException
-
retrieve
Retrieve a margin object with the given ID.- Throws:
StripeException
-
retrieve
public Margin retrieve(String margin, MarginRetrieveParams params, RequestOptions options) throws StripeException Retrieve a margin object with the given ID.- Throws:
StripeException
-
update
Update the specified margin object. Certain fields of the margin object are not editable.- Throws:
StripeException
-
update
Update the specified margin object. Certain fields of the margin object are not editable.- Throws:
StripeException
-
update
Update the specified margin object. Certain fields of the margin object are not editable.- Throws:
StripeException
-
update
public Margin update(String margin, MarginUpdateParams params, RequestOptions options) throws StripeException Update the specified margin object. Certain fields of the margin object are not editable.- Throws:
StripeException
-