Class BillingRest

java.lang.Object
io.meeds.billing.rest.BillingRest

@RestController @RequestMapping("/billing") public class BillingRest extends Object
  • Constructor Details

    • BillingRest

      public BillingRest()
  • Method Details

    • createCustomerPortalSession

      @GetMapping(path="/customer-portal/{spaceId}", produces="text/plain") @Secured("users") public org.springframework.http.ResponseEntity<String> createCustomerPortalSession(@PathVariable("spaceId") long spaceId)
    • cancelSubscription

      @DeleteMapping(path="subscription/{spaceId}/cancel") @Secured("users") @ResponseStatus(NO_CONTENT) public void cancelSubscription(@PathVariable("spaceId") long spaceId)
    • notifyOnSubscriptionStatus

      @PostMapping(path="notify/subscription-status/{spaceId}") @Secured("users") @ResponseStatus(NO_CONTENT) public void notifyOnSubscriptionStatus(@PathVariable("spaceId") long spaceId, @RequestParam(name="maxOfUsersExceeded",required=false,defaultValue="false") boolean maxOfUsersExceeded)
    • enableExistingSpaceBilling

      @PostMapping(path="/enable/{spaceId}") @Secured("administrators") public org.springframework.http.ResponseEntity<String> enableExistingSpaceBilling(@PathVariable("spaceId") long spaceId, @RequestParam(name="priceId") String priceId, @RequestParam(name="spaceManager") String spaceManager)