src/models/addon.js
function performPreorder (api, orgaId, name, planId, providerId, region) {
  const params = orgaId ? [orgaId] : [];
  return api.owner(orgaId).addons.preorders.post().withParams(params).send(JSON.stringify({
    name: name,
    plan: planId,
    providerId: providerId,
    region: region,
  }));
}
function performPreorder (api, orgaId, name, planId, providerId, region) {
  const params = orgaId ? [orgaId] : [];
  return api.owner(orgaId).addons.preorders.post().withParams(params).send(JSON.stringify({
    name: name,
    plan: planId,
    providerId: providerId,
    region: region,
  }));
}
function performPreorder ( api , orgaId , name , planId , providerId , region ) { const params = orgaId ? [ orgaId ] : [ ] ; return api . owner ( orgaId ) . addons . preorders . post ( ) . withParams ( params ) . send ( JSON . stringify ( { name : name , plan : planId , providerId : providerId , region : region , } ) ) ; }
Generate a preview creation, to get access to the price that will be charged,
as well as to verify that the payment methods are correctly configured
Generate a preview creation to get access to the price that will be charged as well as to verify that the payment methods are correctly configured