Package io.meeds.billing.rest
Class BillingRest
java.lang.Object
io.meeds.billing.rest.BillingRest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelSubscription(long spaceId) org.springframework.http.ResponseEntity<String> createCustomerPortalSession(long spaceId) org.springframework.http.ResponseEntity<String> enableExistingSpaceBilling(long spaceId, String priceId, String spaceManager) voidnotifyOnSubscriptionStatus(long spaceId, boolean maxOfUsersExceeded)
-
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
-