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" }
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::PricingcalculatorApi.new
ammendment_price_request = Bfwd::BillingEntityBase.new # BillingEntityBase | An amendment pricing request
begin
#Calculates the price of a subscription's upgrading/downgrading to a new pricing component value.
result = api_instance.get_amendment_cost(ammendment_price_request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling PricingcalculatorApi->get_amendment_cost: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
ammendment_price_request | BillingEntityBase | An amendment pricing request |
AmendmentPriceNTimePagedMetadata
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
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" }
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::PricingcalculatorApi.new
coupon_instance_initialisation_request = Bfwd::BillingEntityBase.new # BillingEntityBase | A coupon instance initialisation request
begin
#Calculates the price of a subscription to a rate plan, at specified values of pricing component values, and with the specified coupon applied.
result = api_instance.get_coupon_instance_initialisation_cost(coupon_instance_initialisation_request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling PricingcalculatorApi->get_coupon_instance_initialisation_cost: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
coupon_instance_initialisation_request | BillingEntityBase | A coupon instance initialisation request |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8
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" }
# load the gem
require 'bf_ruby2'
api_instance = Bfwd::PricingcalculatorApi.new
price_request = Bfwd::BillingEntityBase.new # BillingEntityBase | A price request
begin
#Calculates the price of a subscription to a rate plan, at specified values of pricing component values.
result = api_instance.get_product_rate_plan_costs(price_request)
p result
rescue Bfwd::ApiError => e
puts "Exception when calling PricingcalculatorApi->get_product_rate_plan_costs: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
price_request | BillingEntityBase | A price request |
No authorization required
- Content-Type: application/json; charset=utf-8
- Accept: application/json; charset=utf-8