Skip to content

Commit

Permalink
Release v0.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Aug 20, 2024
1 parent 5c7fb33 commit a01bc92
Show file tree
Hide file tree
Showing 8 changed files with 620 additions and 95 deletions.
2 changes: 1 addition & 1 deletion core/request_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (r *RequestOptions) cloneHeader() http.Header {
headers := r.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/mercoa-finance/go")
headers.Set("X-Fern-SDK-Version", "v0.5.1")
headers.Set("X-Fern-SDK-Version", "v0.5.4")
return headers
}

Expand Down
2 changes: 2 additions & 0 deletions entity/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ type EntityGetInvoicesRequest struct {
InvoiceID []*mercoafinancego.InvoiceID `json:"-" url:"invoiceId,omitempty"`
// Invoice status to filter on.
Status []*mercoafinancego.InvoiceStatus `json:"-" url:"status,omitempty"`
// Filter invoices by payment type.
PaymentType []mercoafinancego.PaymentType `json:"-" url:"paymentType,omitempty"`
}

type InvoiceMetricsRequest struct {
Expand Down
3 changes: 3 additions & 0 deletions entitygroup/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ func (c *Client) Create(
// Get an entity group
func (c *Client) Get(
ctx context.Context,
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
opts ...option.RequestOption,
) (*mercoafinancego.EntityGroupResponse, error) {
Expand Down Expand Up @@ -369,6 +370,7 @@ func (c *Client) Get(
// Update an entity group
func (c *Client) Update(
ctx context.Context,
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
request *mercoafinancego.EntityGroupRequest,
opts ...option.RequestOption,
Expand Down Expand Up @@ -476,6 +478,7 @@ func (c *Client) Update(
// Delete an entity group
func (c *Client) Delete(
ctx context.Context,
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
opts ...option.RequestOption,
) error {
Expand Down
2 changes: 2 additions & 0 deletions entitygroup/invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ type EntityGetInvoicesRequest struct {
InvoiceID []*mercoafinancego.InvoiceID `json:"-" url:"invoiceId,omitempty"`
// Invoice status to filter on.
Status []*mercoafinancego.InvoiceStatus `json:"-" url:"status,omitempty"`
// Filter invoices by recurring status
PaymentType []mercoafinancego.PaymentType `json:"-" url:"paymentType,omitempty"`
}

type GroupInvoiceMetricsRequest struct {
Expand Down
2 changes: 2 additions & 0 deletions entitygroup/invoice/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func NewClient(opts ...option.RequestOption) *Client {
// Get invoices for an entity group with the given filters.
func (c *Client) Find(
ctx context.Context,
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
request *entitygroup.EntityGetInvoicesRequest,
opts ...option.RequestOption,
Expand Down Expand Up @@ -152,6 +153,7 @@ func (c *Client) Find(
// Get invoice metrics for an entity group with the given filters. Invoices will be grouped by currency. If none of excludePayables, excludeReceivables, payerId, vendorId, or invoiceId status filters are provided, excludeReceivables will be set to true.
func (c *Client) Metrics(
ctx context.Context,
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
request *entitygroup.GroupInvoiceMetricsRequest,
opts ...option.RequestOption,
Expand Down
10 changes: 5 additions & 5 deletions entitygroup/user/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func NewClient(opts ...option.RequestOption) *Client {
// Search entity group users
func (c *Client) Find(
ctx context.Context,
// Entity Group ID
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
request *user.EntityFindEntityRequest,
opts ...option.RequestOption,
Expand Down Expand Up @@ -153,7 +153,7 @@ func (c *Client) Find(
// Create entity user that will be added to all entities in the group.
func (c *Client) Create(
ctx context.Context,
// Entity Group ID
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
request *mercoafinancego.EntityGroupUserRequest,
opts ...option.RequestOption,
Expand Down Expand Up @@ -261,7 +261,7 @@ func (c *Client) Create(
// Get entity user from a group
func (c *Client) Get(
ctx context.Context,
// Entity Group ID
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
// ID used to identify user in your system
foreignID string,
Expand Down Expand Up @@ -373,7 +373,7 @@ func (c *Client) Get(
// Update entity user for all entities in the group.
func (c *Client) Update(
ctx context.Context,
// Entity Group ID
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
// ID used to identify user in your system
foreignID string,
Expand Down Expand Up @@ -487,7 +487,7 @@ func (c *Client) Update(
// Delete entity user from all entities in the group. This will also remove the user from all approval policies. If an approval policy will break as a result of this operation, this request will fail.
func (c *Client) Delete(
ctx context.Context,
// Entity Group ID
// Entity Group ID or Entity Group ForeignID
entityGroupID mercoafinancego.EntityGroupID,
// ID used to identify user in your system
foreignID string,
Expand Down
2 changes: 2 additions & 0 deletions invoice/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ type GetAllInvoicesRequest struct {
InvoiceID []*mercoafinancego.InvoiceID `json:"-" url:"invoiceId,omitempty"`
// Invoice status to filter on
Status []*mercoafinancego.InvoiceStatus `json:"-" url:"status,omitempty"`
// Filter invoices by recurring status
PaymentType []mercoafinancego.PaymentType `json:"-" url:"paymentType,omitempty"`
}
Loading

0 comments on commit a01bc92

Please sign in to comment.