Skip to content

Commit

Permalink
[DE-874] Release 0.3.0 (#28)
Browse files Browse the repository at this point in the history
DE-874 Increase timeout to 120s by default
SUB-3996 Ability to create products using the product family handle - productFamilyId in createProduct method is now string instead of int
IN-3434 Add API endpoints for finding price points by handle. Move PricePoint methods from ComponentsController to ComponentPricePointsController
  • Loading branch information
maciej-nedza authored Jun 26, 2024
1 parent c6c901f commit 3b73c7b
Show file tree
Hide file tree
Showing 26 changed files with 2,055 additions and 1,278 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ The following section explains how to use the advancedbilling library in a new p
To use the package in your application, you can install the package from [pkg.go.dev](https://pkg.go.dev/) using the following command:

```bash
$ go get github.com/maxio-com/ab-golang-sdk@v0.2.1
$ go get github.com/maxio-com/ab-golang-sdk@v0.3.0
```

You can also view the package at: https://pkg.go.dev/github.com/maxio-com/ab-golang-sdk@v0.2.1
You can also view the package at: https://pkg.go.dev/github.com/maxio-com/ab-golang-sdk@v0.3.0

## Initialize the API Client

Expand Down Expand Up @@ -102,6 +102,7 @@ This API uses the following authentication schemes.
* [API Exports](doc/controllers/api-exports.md)
* [Advance Invoice](doc/controllers/advance-invoice.md)
* [Billing Portal](doc/controllers/billing-portal.md)
* [Component Price Points](doc/controllers/component-price-points.md)
* [Custom Fields](doc/controllers/custom-fields.md)
* [Events-Based Billing Segments](doc/controllers/events-based-billing-segments.md)
* [Payment Profiles](doc/controllers/payment-profiles.md)
Expand Down
10 changes: 9 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ type ClientInterface interface {
BillingPortalController() *BillingPortalController
CouponsController() *CouponsController
ComponentsController() *ComponentsController
ComponentPricePointsController() *ComponentPricePointsController
CustomersController() *CustomersController
CustomFieldsController() *CustomFieldsController
EventsController() *EventsController
Expand Down Expand Up @@ -61,6 +62,7 @@ type client struct {
billingPortalController BillingPortalController
couponsController CouponsController
componentsController ComponentsController
componentPricePointsController ComponentPricePointsController
customersController CustomersController
customFieldsController CustomFieldsController
eventsController EventsController
Expand Down Expand Up @@ -96,7 +98,7 @@ func NewClient(configuration Configuration) ClientInterface {
configuration: configuration,
}

client.userAgent = utilities.UpdateUserAgent("AB SDK Go:0.2.1 on OS {os-info}")
client.userAgent = utilities.UpdateUserAgent("AB SDK Go:0.3.0 on OS {os-info}")
client.callBuilderFactory = callBuilderHandler(
func(server string) string {
if server == "" {
Expand All @@ -118,6 +120,7 @@ func NewClient(configuration Configuration) ClientInterface {
client.billingPortalController = *NewBillingPortalController(*baseController)
client.couponsController = *NewCouponsController(*baseController)
client.componentsController = *NewComponentsController(*baseController)
client.componentPricePointsController = *NewComponentPricePointsController(*baseController)
client.customersController = *NewCustomersController(*baseController)
client.customFieldsController = *NewCustomFieldsController(*baseController)
client.eventsController = *NewEventsController(*baseController)
Expand Down Expand Up @@ -182,6 +185,11 @@ func (c *client) ComponentsController() *ComponentsController {
return &c.componentsController
}

// ComponentPricePointsController returns the componentPricePointsController instance of the client.
func (c *client) ComponentPricePointsController() *ComponentPricePointsController {
return &c.componentPricePointsController
}

// CustomersController returns the customersController instance of the client.
func (c *client) CustomersController() *CustomersController {
return &c.customersController
Expand Down
Loading

0 comments on commit 3b73c7b

Please sign in to comment.