All URIs are relative to https://localhost:8080/RestAPI
| Method | HTTP request | Description |
|---|---|---|
| get_amendment_cost | POST /pricing-calculator/amendment-cost | Calculates the price of a subscription's upgrading/downgrading to a new pricing component value. |
| get_coupon_instance_initialisation_cost | POST /pricing-calculator/coupon-instance/initialisation | Calculates the price of a subscription to a rate plan, at specified values of pricing component values, and with the specified coupon applied. |
| get_product_rate_plan_costs | POST /pricing-calculator/product-rate-plan | Calculates the price of a subscription to a rate plan, at specified values of pricing component values. |
AmendmentPriceNTimePagedMetadata get_amendment_cost(ammendment_price_request)
Calculates the price of a subscription's upgrading/downgrading to a new pricing component value.
{ "nickname" : "Calculate upgrade price", "request" : "AmendmentPriceRequest.html" ,"response" : "AmendmentPriceNTime.html" }
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.PricingcalculatorApi()
ammendment_price_request = billforward.BillingEntityBase() # BillingEntityBase | An amendment pricing request
try:
# Calculates the price of a subscription's upgrading/downgrading to a new pricing component value.
api_response = api_instance.get_amendment_cost(ammendment_price_request)
pprint(api_response)
except ApiException as e:
print "Exception when calling PricingcalculatorApi->get_amendment_cost: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| ammendment_price_request | BillingEntityBase | An amendment pricing request |
AmendmentPriceNTimePagedMetadata
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PriceCalculationPagedMetadata get_coupon_instance_initialisation_cost(coupon_instance_initialisation_request)
Calculates the price of a subscription to a rate plan, at specified values of pricing component values, and with the specified coupon applied.
{ "nickname" : "Calculate price with a coupon","request" : "PriceRequestWithCoupon.html" ,"response" : "PriceCalculationWithCoupon.html" }
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.PricingcalculatorApi()
coupon_instance_initialisation_request = billforward.BillingEntityBase() # BillingEntityBase | A coupon instance initialisation request
try:
# Calculates the price of a subscription to a rate plan, at specified values of pricing component values, and with the specified coupon applied.
api_response = api_instance.get_coupon_instance_initialisation_cost(coupon_instance_initialisation_request)
pprint(api_response)
except ApiException as e:
print "Exception when calling PricingcalculatorApi->get_coupon_instance_initialisation_cost: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| coupon_instance_initialisation_request | BillingEntityBase | A coupon instance initialisation request |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PriceCalculationPagedMetadata get_product_rate_plan_costs(price_request)
Calculates the price of a subscription to a rate plan, at specified values of pricing component values.
{ "nickname" : "Calculate price", "request" : "PriceRequest.html" ,"response" : "PriceCalculation.html" }
import time
import billforward
from billforward.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = billforward.PricingcalculatorApi()
price_request = billforward.BillingEntityBase() # BillingEntityBase | A price request
try:
# Calculates the price of a subscription to a rate plan, at specified values of pricing component values.
api_response = api_instance.get_product_rate_plan_costs(price_request)
pprint(api_response)
except ApiException as e:
print "Exception when calling PricingcalculatorApi->get_product_rate_plan_costs: %s\n" % e| Name | Type | Description | Notes |
|---|---|---|---|
| price_request | BillingEntityBase | A price request |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]