Skip to content

Commit

Permalink
[DE-846] Release v0.2.1 #27
Browse files Browse the repository at this point in the history
  • Loading branch information
maciej-nedza authored Jun 17, 2024
2 parents cc42c65 + 6a4cb48 commit c6c901f
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 12 deletions.
6 changes: 4 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/[email protected].0
$ go get github.com/maxio-com/[email protected].1
```

You can also view the package at: https://pkg.go.dev/github.com/maxio-com/[email protected].0
You can also view the package at: https://pkg.go.dev/github.com/maxio-com/[email protected].1

## Initialize the API Client

Expand Down Expand Up @@ -74,6 +74,8 @@ client := advancedbilling.NewClient(
"BasicAuthPassword",
),
),
advancedbilling.WithSubdomain("subdomain"),
advancedbilling.WithDomain("chargify.com"),
),
)
```
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func NewClient(configuration Configuration) ClientInterface {
configuration: configuration,
}

client.userAgent = utilities.UpdateUserAgent("AB SDK Go:0.2.0 on OS {os-info}")
client.userAgent = utilities.UpdateUserAgent("AB SDK Go:0.2.1 on OS {os-info}")
client.callBuilderFactory = callBuilderHandler(
func(server string) string {
if server == "" {
Expand Down
2 changes: 2 additions & 0 deletions doc/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ client := advancedbilling.NewClient(
"BasicAuthPassword",
),
),
advancedbilling.WithSubdomain("subdomain"),
advancedbilling.WithDomain("chargify.com"),
),
)
```
Expand Down
2 changes: 1 addition & 1 deletion doc/models/customer.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| `LastName` | `*string` | Optional | The last name of the customer |
| `Email` | `*string` | Optional | The email address of the customer |
| `CcEmails` | `models.Optional[string]` | Optional | A comma-separated list of emails that should be cc’d on all customer communications (i.e. “[email protected], [email protected]”) |
| `Organization` | `models.Optional[string]` | Optional | The organization of the customer |
| `Organization` | `models.Optional[string]` | Optional | The organization of the customer. If no value, `null` or empty string is provided, `organization` will be populated with the customer's first and last name, separated with a space. |
| `Reference` | `models.Optional[string]` | Optional | The unique identifier used within your own application for this customer |
| `Id` | `*int` | Optional | The customer ID in Chargify |
| `CreatedAt` | `*time.Time` | Optional | The timestamp in which the customer object was created in Chargify |
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/maxio-com/ab-golang-sdk

go 1.18

require github.com/apimatic/go-core-runtime v0.0.21
require github.com/apimatic/go-core-runtime v0.0.22
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/apimatic/go-core-runtime v0.0.21 h1:05q2QqxfCxY8ejQQjJYs78DFjFvOeSnMl3EZNRuw3bc=
github.com/apimatic/go-core-runtime v0.0.21/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
github.com/apimatic/go-core-runtime v0.0.22 h1:n9O8r5U+g7X1sZRBzvqcdwa79BegV8CBy4z1M8eoYzU=
github.com/apimatic/go-core-runtime v0.0.22/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
2 changes: 1 addition & 1 deletion models/customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Customer struct {
Email *string `json:"email,omitempty"`
// A comma-separated list of emails that should be cc’d on all customer communications (i.e. “[email protected], [email protected]”)
CcEmails Optional[string] `json:"cc_emails"`
// The organization of the customer
// The organization of the customer. If no value, `null` or empty string is provided, `organization` will be populated with the customer's first and last name, separated with a space.
Organization Optional[string] `json:"organization"`
// The unique identifier used within your own application for this customer
Reference Optional[string] `json:"reference"`
Expand Down
2 changes: 1 addition & 1 deletion test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
)

require (
github.com/apimatic/go-core-runtime v0.0.21
github.com/apimatic/go-core-runtime v0.0.22
github.com/caarlos0/env/v10 v10.0.0
github.com/jaswdr/faker v1.19.1
github.com/maxio-com/ab-golang-sdk v0.0.1
Expand Down
4 changes: 2 additions & 2 deletions test/go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/apimatic/go-core-runtime v0.0.21 h1:05q2QqxfCxY8ejQQjJYs78DFjFvOeSnMl3EZNRuw3bc=
github.com/apimatic/go-core-runtime v0.0.21/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
github.com/apimatic/go-core-runtime v0.0.22 h1:n9O8r5U+g7X1sZRBzvqcdwa79BegV8CBy4z1M8eoYzU=
github.com/apimatic/go-core-runtime v0.0.22/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
github.com/caarlos0/env/v10 v10.0.0 h1:yIHUBZGsyqCnpTkbjk8asUlx6RFhhEs+h7TOBdgdzXA=
github.com/caarlos0/env/v10 v10.0.0/go.mod h1:ZfulV76NvVPw3tm591U4SwL3Xx9ldzBP9aGxzeN7G18=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
Expand Down
3 changes: 2 additions & 1 deletion test/invoice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ func (s *InvoiceSuite) TestInvoice() {
events, err := s.client.InvoicesController().ListInvoiceEvents(
ctx,
advancedbilling.ListInvoiceEventsInput{
InvoiceUid: resp.Data.Invoice.Uid, // cant pass event types here. Server throws 500
EventTypes: []models.InvoiceEventType{models.InvoiceEventType_ISSUEINVOICE, models.InvoiceEventType_VOIDINVOICE},
InvoiceUid: resp.Data.Invoice.Uid,
},
)

Expand Down

0 comments on commit c6c901f

Please sign in to comment.