PHP Class Stripe\Plan

Inheritance: extends stripe\ApiResource
Exibir arquivo Open project: stripe/stripe-php Class Usage Examples

Public Methods

Method Description
all ( array | null $params = null, array | string | null $opts = null ) : Collection
create ( array | null $params = null, array | string | null $opts = null ) : Plan
delete ( array | null $params = null, array | string | null $opts = null ) : Plan
retrieve ( string $id, array | string | null $opts = null ) : Plan
save ( array | string | null $opts = null ) : Plan
update ( string $id, array | null $params = null, array | string | null $options = null ) : Plan

Method Details

all() public static method

public static all ( array | null $params = null, array | string | null $opts = null ) : Collection
$params array | null
$opts array | string | null
return Collection of Plans

create() public static method

public static create ( array | null $params = null, array | string | null $opts = null ) : Plan
$params array | null
$opts array | string | null
return Plan The created plan.

delete() public method

public delete ( array | null $params = null, array | string | null $opts = null ) : Plan
$params array | null
$opts array | string | null
return Plan The deleted plan.

retrieve() public static method

public static retrieve ( string $id, array | string | null $opts = null ) : Plan
$id string The ID of the plan to retrieve.
$opts array | string | null
return Plan

save() public method

public save ( array | string | null $opts = null ) : Plan
$opts array | string | null
return Plan The saved plan.

update() public static method

public static update ( string $id, array | null $params = null, array | string | null $options = null ) : Plan
$id string The ID of the plan to update.
$params array | null
$options array | string | null
return Plan The updated plan.