Skip to content

billabear/go-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BillaBear GO SDK

Installation

go get github.com/billabear/go-sdk

Documentation for API Endpoints

All URIs are relative to https://{customerId}.billabear.cloud/api/v1

Class Method HTTP request Description
CheckoutApi CreateCheckout Post /checkout Create Checkout
CustomersApi AddSeatsSubscriptions Post /subscription/{subscriptionId}/seats/add Add Seats
CustomersApi ApplyVoucherToCustomer Post /customer/{customerId}/voucher Apply voucher
CustomersApi CreateCustomer Post /customer Create
CustomersApi DisableCustomer Post /customer/{customerId}/disable Disable Customer
CustomersApi EnableCustomer Post /customer/{customerId}/enable Enable Customer
CustomersApi GetActiveForCustomer Get /customer/{customerId}/subscription/active List Customer Active Subscriptions
CustomersApi GetAllCustomers Get /customer List
CustomersApi GetCustomerById Get /customer/{customerId} Detail
CustomersApi GetCustomerLimitsById Get /customer/{customerId}/limits Fetch Customer Limits
CustomersApi GetForCustomer Get /customer/{customerId}/subscription List Customer Subscriptions
CustomersApi GetInvoicesForCustomer Get /customer/{customerId}/invoices List Customer Invoices
CustomersApi GetPaymentsForCustomer Get /customer/{customerId}/payment List Customer Payments
CustomersApi GetRefundsForCustomer Get /customer/{customerId}/refund List Customer Refunds
CustomersApi ListPaymentDetails Get /customer/{customerId}/payment-methods List Customer's Payment Details
CustomersApi RemoveSeatsSubscriptions Post /subscription/{subscriptionId}/seats/remove Remove Seats
CustomersApi UpdateCustomer Put /customer/{customerId} Update
InvoicesApi ChargeInvoice Post /invoice/{invoiceId}/charge Charge Invoice
InvoicesApi DownloadInvoice Get /invoice/{invoiceId}/download Download Invoice
InvoicesApi GetInvoicesForCustomer Get /customer/{customerId}/invoices List Customer Invoices
PaymentDetailsApi CompleteFrontendPaymentDetails Post /customer/{customerId}/payment-methods/frontend-payment-token Complete Frontend Detail Collection
PaymentDetailsApi DeletePaymentDetails Delete /payment-methods/{paymentDetailsId} Delete
PaymentDetailsApi DeletePaymentDetailsCustomer Delete /customer/{customerId}/payment-methods/{paymentDetailsId} Delete With Customer
PaymentDetailsApi GetPaymentDetails Get /payment-methods/{paymentDetailsId} Fetch
PaymentDetailsApi ListPaymentDetails Get /customer/{customerId}/payment-methods List Customer's Payment Details
PaymentDetailsApi MakeDefaultPaymentDetails Post /payment-methods/{paymentDetailsId}/default Make Default
PaymentDetailsApi MakeDefaultPaymentDetailsCustomer Post /customer/{customerId}/payment-methods/{paymentDetailsId}/default Make Default With Customer
PaymentDetailsApi StartFrontendPaymentDetails Get /customer/{customerId}/payment-methods/frontend-payment-token Start Frontend Detail Collection
PaymentsApi ChargeInvoice Post /invoice/{invoiceId}/charge Charge Invoice
PaymentsApi DownloadInvoice Get /invoice/{invoiceId}/download Download Invoice
PaymentsApi DownloadReceipt Get /receipt/{receiptId}/download Download Receipt
PaymentsApi GetInvoicesForCustomer Get /customer/{customerId}/invoices List Customer Invoices
PaymentsApi GetPaymentsForCustomer Get /customer/{customerId}/payment List Customer Payments
PaymentsApi ListPayment Get /payment List
PaymentsApi RefundPayment Post /payment/{paymentId}/refund Refund Payment
PricesApi CreatePrice Post /product/{productId}/price Create
PricesApi ListPrice Get /product/{productId}/price List
ProductsApi CreateProduct Post /product Create
ProductsApi ListProduct Get /product List
ProductsApi ShowProductById Get /product/{productId} Detail
ProductsApi UpdateProduct Put /product/{productId} Update
ReceiptApi DownloadReceipt Get /receipt/{receiptId}/download Download Receipt
RefundsApi GetRefundsForCustomer Get /customer/{customerId}/refund List Customer Refunds
RefundsApi ListRefund Get /refund List
RefundsApi ShowRefundById Get /refund/{refundId} Detail
SubscriptionsApi AddSeatsSubscriptions Post /subscription/{subscriptionId}/seats/add Add Seats
SubscriptionsApi CancelSubscription Post /subscription/{subscriptionId}/cancel Cancel Subscription
SubscriptionsApi ChangeSubscriptionPrice Post /subscription/{subscriptionId}/price Change Price
SubscriptionsApi CreateSubscription Post /customer/{customerId}/subscription/start Create Subscription
SubscriptionsApi CustomerChangeSubscriptionPlan Post /subscription/{subscriptionId}/plan Change Subscription Plan
SubscriptionsApi ExtendTrial Post /subscription/{subscriptionId}/extend Extend Trial Subscription
SubscriptionsApi GetActiveForCustomer Get /customer/{customerId}/subscription/active List Customer Active Subscriptions
SubscriptionsApi GetForCustomer Get /customer/{customerId}/subscription List Customer Subscriptions
SubscriptionsApi ListSubscriptionPlans Get /subscription/plans List Subscription Plans
SubscriptionsApi ListSubscriptions Get /subscription List
SubscriptionsApi RemoveSeatsSubscriptions Post /subscription/{subscriptionId}/seats/remove Remove Seats
SubscriptionsApi ShowSubscriptionById Get /subscription/{subscriptionId} Detail
SubscriptionsApi StartTrial Post /customer/{customerId}/subscription/trial Start Trial Subscription For Customer

Documentation For Models

Documentation For Authorization

ApiKeyAuth

  • Type: API key

Example

auth := context.WithValue(context.Background(), sw.ContextAPIKey, sw.APIKey{
	Key: "APIKEY",
	Prefix: "Bearer", // Omit if not necessary.
})
r, err := client.Service.Operation(auth, args)

Author

[email protected]