Skip to content

Commit

Permalink
Releasing v3.16.1. Please check the changelog for the updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-thushitamariaselvan committed Apr 3, 2024
1 parent 1f62d34 commit dbc4e0e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
### v3.16.1 (2024-04-03)
* * *

#### New Input parameters:
* to_customer_id has been added to subscription#MoveRequest.
* copy_payment_source has been added to subscription#MoveRequest.

#### New endpoints:
* Subscription#MoveRequest has been added to the Subscription resource.

### v3.16.0 (2024-03-20)
* * *

Expand Down
3 changes: 3 additions & 0 deletions actions/subscription/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,6 @@ func RemoveScheduledPause(id string) chargebee.RequestObj {
func RemoveScheduledResumption(id string) chargebee.RequestObj {
return chargebee.Send("POST", fmt.Sprintf("/subscriptions/%v/remove_scheduled_resumption", url.PathEscape(id)), nil)
}
func Move(id string, params *subscription.MoveRequestParams) chargebee.RequestObj {
return chargebee.Send("POST", fmt.Sprintf("/subscriptions/%v/move", url.PathEscape(id)), params)
}
4 changes: 4 additions & 0 deletions models/subscription/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -1618,3 +1618,7 @@ type ResumePaymentIntentParams struct {
GwPaymentMethodId string `json:"gw_payment_method_id,omitempty"`
AdditionalInformation map[string]interface{} `json:"additional_information,omitempty"`
}
type MoveRequestParams struct {
ToCustomerId string `json:"to_customer_id"`
CopyPaymentSource *bool `json:"copy_payment_source,omitempty"`
}
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package chargebee

const Version string = "3.16.0"
const Version string = "3.16.1"

0 comments on commit dbc4e0e

Please sign in to comment.