@@ -32,7 +32,7 @@ func (s *ServiceCustomers) setup() {
3232// Endpoint: POST /customers
3333//
3434// API reference: https://docs.payrexhq.com/docs/api/customers/create
35- func (s * ServiceCustomers ) Create (params * CreateCustomerParams ) (* Customer , error ) {
35+ func (s * ServiceCustomers ) Create (params * CustomerCreateParams ) (* Customer , error ) {
3636 return s .create (params )
3737}
3838
@@ -50,7 +50,7 @@ func (s *ServiceCustomers) Retrieve(id string) (*Customer, error) {
5050// Endpoint: GET /customers
5151//
5252// API reference: https://docs.payrexhq.com/docs/api/customers/list
53- func (s * ServiceCustomers ) List (params * ListCustomersParams ) (* Listing [Customer ], error ) {
53+ func (s * ServiceCustomers ) List (params * CustomerListParams ) (* Listing [Customer ], error ) {
5454 return s .list (params )
5555}
5656
@@ -59,7 +59,7 @@ func (s *ServiceCustomers) List(params *ListCustomersParams) (*Listing[Customer]
5959// Endpoint: PUT /customers/:id
6060//
6161// API reference: https://docs.payrexhq.com/docs/api/customers/update
62- func (s * ServiceCustomers ) Update (id string , params * UpdateCustomerParams ) (* Customer , error ) {
62+ func (s * ServiceCustomers ) Update (id string , params * CustomerUpdateParams ) (* Customer , error ) {
6363 return s .update (id , params )
6464}
6565
@@ -74,10 +74,10 @@ func (s *ServiceCustomers) Delete(id string) (*DeletedResource, error) {
7474 return s .delete (id )
7575}
7676
77- // CreateCustomerParams represents the available [ServiceCustomers.Create] parameters.
77+ // CustomerCreateParams represents the available [ServiceCustomers.Create] parameters.
7878//
7979// API reference: https://docs.payrexhq.com/docs/api/customers/create
80- type CreateCustomerParams struct {
80+ type CustomerCreateParams struct {
8181 Currency Currency `form:"currency"`
8282 Name string `form:"name"`
8383 Email string `form:"email"`
@@ -86,10 +86,10 @@ type CreateCustomerParams struct {
8686 Metadata * map [string ]string `form:"metadata"`
8787}
8888
89- // ListCustomersParams represents the available [ServiceCustomers.List] parameters.
89+ // CustomerListParams represents the available [ServiceCustomers.List] parameters.
9090//
9191// API reference: https://docs.payrexhq.com/docs/api/customers/list
92- type ListCustomersParams struct {
92+ type CustomerListParams struct {
9393 Limit * int `form:"int"`
9494 Before * string `form:"before"`
9595 After * string `form:"after"`
@@ -98,10 +98,10 @@ type ListCustomersParams struct {
9898 Metadata * map [string ]string `form:"metadata"`
9999}
100100
101- // UpdateCustomerParams represents the available [ServiceCustomers.Update] parameters.
101+ // CustomerUpdateParams represents the available [ServiceCustomers.Update] parameters.
102102//
103103// API reference: https://docs.payrexhq.com/docs/api/customers/update
104- type UpdateCustomerParams struct {
104+ type CustomerUpdateParams struct {
105105 Currency * Currency `form:"currency"`
106106 Name * string `form:"name"`
107107 Email * string `form:"email"`
0 commit comments