-
Notifications
You must be signed in to change notification settings - Fork 463
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v515 * Update generated code for v516 * Update generated code for v517 * Update generated code for v519 * Update generated code for v520 * Update generated code for v522 * Update generated code for v522 * Update generated code for v523 * Update generated code for v524 * Update generated code for v525 * Update generated code for v525 * Update generated code for v525 * Update generated code for v526 * Update generated code for v526 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Richard Marmorstein <[email protected]>
- Loading branch information
1 parent
745ca66
commit 54238ea
Showing
14 changed files
with
673 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v512 | ||
v526 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// | ||
// | ||
// File generated from our OpenAPI spec | ||
// | ||
// | ||
|
||
// Package authorization provides the /issuing/authorizations APIs | ||
package authorization | ||
|
||
import ( | ||
"net/http" | ||
|
||
stripe "github.com/stripe/stripe-go/v75" | ||
) | ||
|
||
// Client is used to invoke /issuing/authorizations APIs. | ||
type Client struct { | ||
B stripe.Backend | ||
Key string | ||
} | ||
|
||
// New creates a new issuing authorization. | ||
func New(params *stripe.TestHelpersIssuingAuthorizationParams) (*stripe.IssuingAuthorization, error) { | ||
return getC().New(params) | ||
} | ||
|
||
// New creates a new issuing authorization. | ||
func (c Client) New(params *stripe.TestHelpersIssuingAuthorizationParams) (*stripe.IssuingAuthorization, error) { | ||
authorization := &stripe.IssuingAuthorization{} | ||
err := c.B.Call( | ||
http.MethodPost, | ||
"/v1/test_helpers/issuing/authorizations", | ||
c.Key, | ||
params, | ||
authorization, | ||
) | ||
return authorization, err | ||
} | ||
|
||
// Capture is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/capture` API. | ||
func Capture(id string, params *stripe.TestHelpersIssuingAuthorizationCaptureParams) (*stripe.IssuingAuthorization, error) { | ||
return getC().Capture(id, params) | ||
} | ||
|
||
// Capture is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/capture` API. | ||
func (c Client) Capture(id string, params *stripe.TestHelpersIssuingAuthorizationCaptureParams) (*stripe.IssuingAuthorization, error) { | ||
path := stripe.FormatURLPath( | ||
"/v1/test_helpers/issuing/authorizations/%s/capture", | ||
id, | ||
) | ||
authorization := &stripe.IssuingAuthorization{} | ||
err := c.B.Call(http.MethodPost, path, c.Key, params, authorization) | ||
return authorization, err | ||
} | ||
|
||
// Expire is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/expire` API. | ||
func Expire(id string, params *stripe.TestHelpersIssuingAuthorizationExpireParams) (*stripe.IssuingAuthorization, error) { | ||
return getC().Expire(id, params) | ||
} | ||
|
||
// Expire is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/expire` API. | ||
func (c Client) Expire(id string, params *stripe.TestHelpersIssuingAuthorizationExpireParams) (*stripe.IssuingAuthorization, error) { | ||
path := stripe.FormatURLPath( | ||
"/v1/test_helpers/issuing/authorizations/%s/expire", | ||
id, | ||
) | ||
authorization := &stripe.IssuingAuthorization{} | ||
err := c.B.Call(http.MethodPost, path, c.Key, params, authorization) | ||
return authorization, err | ||
} | ||
|
||
// Increment is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/increment` API. | ||
func Increment(id string, params *stripe.TestHelpersIssuingAuthorizationIncrementParams) (*stripe.IssuingAuthorization, error) { | ||
return getC().Increment(id, params) | ||
} | ||
|
||
// Increment is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/increment` API. | ||
func (c Client) Increment(id string, params *stripe.TestHelpersIssuingAuthorizationIncrementParams) (*stripe.IssuingAuthorization, error) { | ||
path := stripe.FormatURLPath( | ||
"/v1/test_helpers/issuing/authorizations/%s/increment", | ||
id, | ||
) | ||
authorization := &stripe.IssuingAuthorization{} | ||
err := c.B.Call(http.MethodPost, path, c.Key, params, authorization) | ||
return authorization, err | ||
} | ||
|
||
// Reverse is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/reverse` API. | ||
func Reverse(id string, params *stripe.TestHelpersIssuingAuthorizationReverseParams) (*stripe.IssuingAuthorization, error) { | ||
return getC().Reverse(id, params) | ||
} | ||
|
||
// Reverse is the method for the `POST /v1/test_helpers/issuing/authorizations/{authorization}/reverse` API. | ||
func (c Client) Reverse(id string, params *stripe.TestHelpersIssuingAuthorizationReverseParams) (*stripe.IssuingAuthorization, error) { | ||
path := stripe.FormatURLPath( | ||
"/v1/test_helpers/issuing/authorizations/%s/reverse", | ||
id, | ||
) | ||
authorization := &stripe.IssuingAuthorization{} | ||
err := c.B.Call(http.MethodPost, path, c.Key, params, authorization) | ||
return authorization, err | ||
} | ||
|
||
func getC() Client { | ||
return Client{stripe.GetBackend(stripe.APIBackend), stripe.Key} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// | ||
// | ||
// File generated from our OpenAPI spec | ||
// | ||
// | ||
|
||
// Package transaction provides the /issuing/transactions APIs | ||
package transaction | ||
|
||
import ( | ||
"net/http" | ||
|
||
stripe "github.com/stripe/stripe-go/v75" | ||
) | ||
|
||
// Client is used to invoke /issuing/transactions APIs. | ||
type Client struct { | ||
B stripe.Backend | ||
Key string | ||
} | ||
|
||
// CreateForceCapture is the method for the `POST /v1/test_helpers/issuing/transactions/create_force_capture` API. | ||
func CreateForceCapture(params *stripe.TestHelpersIssuingTransactionCreateForceCaptureParams) (*stripe.IssuingTransaction, error) { | ||
return getC().CreateForceCapture(params) | ||
} | ||
|
||
// CreateForceCapture is the method for the `POST /v1/test_helpers/issuing/transactions/create_force_capture` API. | ||
func (c Client) CreateForceCapture(params *stripe.TestHelpersIssuingTransactionCreateForceCaptureParams) (*stripe.IssuingTransaction, error) { | ||
transaction := &stripe.IssuingTransaction{} | ||
err := c.B.Call( | ||
http.MethodPost, | ||
"/v1/test_helpers/issuing/transactions/create_force_capture", | ||
c.Key, | ||
params, | ||
transaction, | ||
) | ||
return transaction, err | ||
} | ||
|
||
// CreateUnlinkedRefund is the method for the `POST /v1/test_helpers/issuing/transactions/create_unlinked_refund` API. | ||
func CreateUnlinkedRefund(params *stripe.TestHelpersIssuingTransactionCreateUnlinkedRefundParams) (*stripe.IssuingTransaction, error) { | ||
return getC().CreateUnlinkedRefund(params) | ||
} | ||
|
||
// CreateUnlinkedRefund is the method for the `POST /v1/test_helpers/issuing/transactions/create_unlinked_refund` API. | ||
func (c Client) CreateUnlinkedRefund(params *stripe.TestHelpersIssuingTransactionCreateUnlinkedRefundParams) (*stripe.IssuingTransaction, error) { | ||
transaction := &stripe.IssuingTransaction{} | ||
err := c.B.Call( | ||
http.MethodPost, | ||
"/v1/test_helpers/issuing/transactions/create_unlinked_refund", | ||
c.Key, | ||
params, | ||
transaction, | ||
) | ||
return transaction, err | ||
} | ||
|
||
// Refund is the method for the `POST /v1/test_helpers/issuing/transactions/{transaction}/refund` API. | ||
func Refund(id string, params *stripe.TestHelpersIssuingTransactionRefundParams) (*stripe.IssuingTransaction, error) { | ||
return getC().Refund(id, params) | ||
} | ||
|
||
// Refund is the method for the `POST /v1/test_helpers/issuing/transactions/{transaction}/refund` API. | ||
func (c Client) Refund(id string, params *stripe.TestHelpersIssuingTransactionRefundParams) (*stripe.IssuingTransaction, error) { | ||
path := stripe.FormatURLPath( | ||
"/v1/test_helpers/issuing/transactions/%s/refund", | ||
id, | ||
) | ||
transaction := &stripe.IssuingTransaction{} | ||
err := c.B.Call(http.MethodPost, path, c.Key, params, transaction) | ||
return transaction, err | ||
} | ||
|
||
func getC() Client { | ||
return Client{stripe.GetBackend(stripe.APIBackend), stripe.Key} | ||
} |
Oops, something went wrong.