review

package
v72.109.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package review provides the /reviews APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Approve

func Approve(id string, params *stripe.ReviewApproveParams) (*stripe.Review, error)

Approve is the method for the `POST /v1/reviews/{review}/approve` API.

func Get

func Get(id string, params *stripe.ReviewParams) (*stripe.Review, error)

Get returns the details of a review.

Types

type Client

type Client struct {
	B   stripe.Backend
	Key string
}

Client is used to invoke /reviews APIs.

func (Client) Approve

func (c Client) Approve(id string, params *stripe.ReviewApproveParams) (*stripe.Review, error)

Approve is the method for the `POST /v1/reviews/{review}/approve` API.

func (Client) Get

func (c Client) Get(id string, params *stripe.ReviewParams) (*stripe.Review, error)

Get returns the details of a review.

func (Client) List

func (c Client) List(listParams *stripe.ReviewListParams) *Iter

List returns a list of reviews.

type Iter

type Iter struct {
	*stripe.Iter
}

Iter is an iterator for reviews.

func List

func List(params *stripe.ReviewListParams) *Iter

List returns a list of reviews.

func (*Iter) Review

func (i *Iter) Review() *stripe.Review

Review returns the review which the iterator is currently pointing to.

func (*Iter) ReviewList

func (i *Iter) ReviewList() *stripe.ReviewList

ReviewList returns the current list object which the iterator is currently using. List objects will change as new API calls are made to continue pagination.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL