Skip to content

Commit c6c901f

Browse files
authored
[DE-846] Release v0.2.1 #27
2 parents cc42c65 + 6a4cb48 commit c6c901f

File tree

10 files changed

+17
-12
lines changed

10 files changed

+17
-12
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ The following section explains how to use the advancedbilling library in a new p
3838
To use the package in your application, you can install the package from [pkg.go.dev](https://pkg.go.dev/) using the following command:
3939

4040
```bash
41-
$ go get github.com/maxio-com/ab-golang-sdk@v0.2.0
41+
$ go get github.com/maxio-com/ab-golang-sdk@v0.2.1
4242
```
4343

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

4646
## Initialize the API Client
4747

@@ -74,6 +74,8 @@ client := advancedbilling.NewClient(
7474
"BasicAuthPassword",
7575
),
7676
),
77+
advancedbilling.WithSubdomain("subdomain"),
78+
advancedbilling.WithDomain("chargify.com"),
7779
),
7880
)
7981
```

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ func NewClient(configuration Configuration) ClientInterface {
9696
configuration: configuration,
9797
}
9898

99-
client.userAgent = utilities.UpdateUserAgent("AB SDK Go:0.2.0 on OS {os-info}")
99+
client.userAgent = utilities.UpdateUserAgent("AB SDK Go:0.2.1 on OS {os-info}")
100100
client.callBuilderFactory = callBuilderHandler(
101101
func(server string) string {
102102
if server == "" {

doc/client.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ client := advancedbilling.NewClient(
2828
"BasicAuthPassword",
2929
),
3030
),
31+
advancedbilling.WithSubdomain("subdomain"),
32+
advancedbilling.WithDomain("chargify.com"),
3133
),
3234
)
3335
```

doc/models/customer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
| `LastName` | `*string` | Optional | The last name of the customer |
1414
| `Email` | `*string` | Optional | The email address of the customer |
1515
| `CcEmails` | `models.Optional[string]` | Optional | A comma-separated list of emails that should be cc’d on all customer communications (i.e. “joe@example.com, sue@example.com”) |
16-
| `Organization` | `models.Optional[string]` | Optional | The organization of the customer |
16+
| `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. |
1717
| `Reference` | `models.Optional[string]` | Optional | The unique identifier used within your own application for this customer |
1818
| `Id` | `*int` | Optional | The customer ID in Chargify |
1919
| `CreatedAt` | `*time.Time` | Optional | The timestamp in which the customer object was created in Chargify |

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/maxio-com/ab-golang-sdk
22

33
go 1.18
44

5-
require github.com/apimatic/go-core-runtime v0.0.21
5+
require github.com/apimatic/go-core-runtime v0.0.22

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/apimatic/go-core-runtime v0.0.21 h1:05q2QqxfCxY8ejQQjJYs78DFjFvOeSnMl3EZNRuw3bc=
2-
github.com/apimatic/go-core-runtime v0.0.21/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
1+
github.com/apimatic/go-core-runtime v0.0.22 h1:n9O8r5U+g7X1sZRBzvqcdwa79BegV8CBy4z1M8eoYzU=
2+
github.com/apimatic/go-core-runtime v0.0.22/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=

models/customer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type Customer struct {
1616
Email *string `json:"email,omitempty"`
1717
// A comma-separated list of emails that should be cc’d on all customer communications (i.e. “joe@example.com, sue@example.com”)
1818
CcEmails Optional[string] `json:"cc_emails"`
19-
// The organization of the customer
19+
// 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.
2020
Organization Optional[string] `json:"organization"`
2121
// The unique identifier used within your own application for this customer
2222
Reference Optional[string] `json:"reference"`

test/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
)
1212

1313
require (
14-
github.com/apimatic/go-core-runtime v0.0.21
14+
github.com/apimatic/go-core-runtime v0.0.22
1515
github.com/caarlos0/env/v10 v10.0.0
1616
github.com/jaswdr/faker v1.19.1
1717
github.com/maxio-com/ab-golang-sdk v0.0.1

test/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/apimatic/go-core-runtime v0.0.21 h1:05q2QqxfCxY8ejQQjJYs78DFjFvOeSnMl3EZNRuw3bc=
2-
github.com/apimatic/go-core-runtime v0.0.21/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
1+
github.com/apimatic/go-core-runtime v0.0.22 h1:n9O8r5U+g7X1sZRBzvqcdwa79BegV8CBy4z1M8eoYzU=
2+
github.com/apimatic/go-core-runtime v0.0.22/go.mod h1:kyqGg2v3OTV7o2fXHgbHLZPMinqZvIqw1JwdEd64OzM=
33
github.com/caarlos0/env/v10 v10.0.0 h1:yIHUBZGsyqCnpTkbjk8asUlx6RFhhEs+h7TOBdgdzXA=
44
github.com/caarlos0/env/v10 v10.0.0/go.mod h1:ZfulV76NvVPw3tm591U4SwL3Xx9ldzBP9aGxzeN7G18=
55
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=

test/invoice_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ func (s *InvoiceSuite) TestInvoice() {
9696
events, err := s.client.InvoicesController().ListInvoiceEvents(
9797
ctx,
9898
advancedbilling.ListInvoiceEventsInput{
99-
InvoiceUid: resp.Data.Invoice.Uid, // cant pass event types here. Server throws 500
99+
EventTypes: []models.InvoiceEventType{models.InvoiceEventType_ISSUEINVOICE, models.InvoiceEventType_VOIDINVOICE},
100+
InvoiceUid: resp.Data.Invoice.Uid,
100101
},
101102
)
102103

0 commit comments

Comments
 (0)