All URIs are relative to http://example.com/rest/default
Method | HTTP request | Description |
---|---|---|
PostV1PurchaseordercartsCartIdSetpaymentinformation | Post /V1/purchase-order-carts/{cartId}/set-payment-information | purchase-order-carts/{cartId}/set-payment-information |
int32 PostV1PurchaseordercartsCartIdSetpaymentinformation(ctx, cartId).PostV1CartsMinePaymentinformationRequest(postV1CartsMinePaymentinformationRequest).Execute()
purchase-order-carts/{cartId}/set-payment-information
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Hevelop/go-client-magento"
)
func main() {
cartId := int32(56) // int32 |
postV1CartsMinePaymentinformationRequest := *openapiclient.NewPostV1CartsMinePaymentinformationRequest(*openapiclient.NewQuoteDataPaymentInterface("Method_example")) // PostV1CartsMinePaymentinformationRequest | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.PurchaseOrderCartsCartIdSetPaymentInformationAPI.PostV1PurchaseordercartsCartIdSetpaymentinformation(context.Background(), cartId).PostV1CartsMinePaymentinformationRequest(postV1CartsMinePaymentinformationRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `PurchaseOrderCartsCartIdSetPaymentInformationAPI.PostV1PurchaseordercartsCartIdSetpaymentinformation``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `PostV1PurchaseordercartsCartIdSetpaymentinformation`: int32
fmt.Fprintf(os.Stdout, "Response from `PurchaseOrderCartsCartIdSetPaymentInformationAPI.PostV1PurchaseordercartsCartIdSetpaymentinformation`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
cartId | int32 |
Other parameters are passed through a pointer to a apiPostV1PurchaseordercartsCartIdSetpaymentinformationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
postV1CartsMinePaymentinformationRequest | PostV1CartsMinePaymentinformationRequest | |
int32
No authorization required
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]