Sha256: e0e70da976c9e3a4405160fc818b44427caafb92c0fb1700df730b90f46c12a0

Contents?: true

Size: 1.66 KB

Versions: 30

Compression:

Stored size: 1.66 KB

Contents

json.id @cart.id
json.pdfUrl @cart.read_attribute(:pdf) ? cart_invoice_url(@cart.slug) : nil

json.content do
  json.appInstances (@cart.content[:app_instances] || {}).values
  json.services (@cart.content[:services] || {}).values
  json.support @cart.content[:support]
  json.deal @cart.content[:deal]
end

json.total do
  json.monthly @cart.total_monthly
  json.monthlyRaw @cart.total_monthly_raw
  
  json.hourly @cart.total_hourly
  json.adhoc @cart.total_adhoc
  
  json.upfrontWithTax @cart.total_upfront_with_tax
  json.upfrontTax @cart.total_upfront_tax
  
  json.upfront @cart.total_upfront
  json.upfrontBeforeCredit @cart.total_upfront_before_credit
  json.upfrontRaw @cart.total_upfront_raw
  
  json.upfrontSavings @cart.total_upfront_savings
  json.supportCredit @cart.total_support_credit
end

json.orderList @cart.order_list

json.setting do
  json.prepayMonths @cart.prepay_months
  json.reductionPercent @cart.reduction_whole_percent
  json.underFreeTrial @cart.under_free_trial?
  json.freeTrialEligible @cart.free_trial_eligible?
  json.creditCardRequired @cart.credit_card_required?
  json.monthlyCreditAvailable @cart.monthly_credit_available?
  json.ownedSupportPlan @cart.owned_support_plan
end

json.creditCard do
  if @cart.credit_card
    cc = @cart.credit_card
    
    json.id cc.id
    json.title cc.title
    json.first_name cc.first_name
    json.last_name cc.last_name
    json.number cc.masked_number
    json.month cc.month
    json.year cc.year
    json.country cc.country
    
    json.billing_address cc.billing_address
    json.billing_city cc.billing_city
    json.billing_postcode cc.billing_postcode
    json.billing_country cc.billing_country
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.3.3 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.3.2 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.2.1 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.3.1 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.3.0 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.2.0 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.1.4 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.0.7 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-2.0.9 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.1.3 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.0.6 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-2.0.8 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.1.2 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.0.5 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-2.0.7 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-2.0.6 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-2.0.5 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.1.1 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder
mno-enterprise-api-3.0.4 app/views/mno_enterprise/jpi/v1/shopping_cart/show.json.jbuilder