C# Class Braintree.SubscriptionGateway

Provides operations for creating, finding, updating, searching, and deleting subscriptions in the vault
Exibir arquivo Open project: braintree/braintree_dotnet

Public Methods

Method Description
Cancel ( string id ) : Result
Create ( SubscriptionRequest request ) : Result
Find ( string id ) : Braintree.Subscription
RetryCharge ( string subscriptionId ) : Result
RetryCharge ( string subscriptionId, decimal amount ) : Result
Search ( SearchDelegate searchDelegate ) : ResourceCollection
Search ( SubscriptionSearchRequest query ) : ResourceCollection

Search for subscriptions based on PlanId, DaysPastDue and Status

Update ( string id, SubscriptionRequest request ) : Result

Protected Methods

Method Description
SubscriptionGateway ( BraintreeGateway gateway ) : Braintree.Exceptions

Private Methods

Method Description
FetchSubscriptions ( SubscriptionSearchRequest query, string ids ) : List
RetryCharge ( SubscriptionTransactionRequest txnRequest ) : Result

Method Details

Cancel() public method

public Cancel ( string id ) : Result
id string
return Result

Create() public method

public Create ( SubscriptionRequest request ) : Result
request SubscriptionRequest
return Result

Find() public method

public Find ( string id ) : Braintree.Subscription
id string
return Braintree.Subscription

RetryCharge() public method

public RetryCharge ( string subscriptionId ) : Result
subscriptionId string
return Result

RetryCharge() public method

public RetryCharge ( string subscriptionId, decimal amount ) : Result
subscriptionId string
amount decimal
return Result

Search() public method

public Search ( SearchDelegate searchDelegate ) : ResourceCollection
searchDelegate SearchDelegate
return ResourceCollection

Search() public method

Search for subscriptions based on PlanId, DaysPastDue and Status
public Search ( SubscriptionSearchRequest query ) : ResourceCollection
query SubscriptionSearchRequest
return ResourceCollection

SubscriptionGateway() protected method

protected SubscriptionGateway ( BraintreeGateway gateway ) : Braintree.Exceptions
gateway BraintreeGateway
return Braintree.Exceptions

Update() public method

public Update ( string id, SubscriptionRequest request ) : Result
id string
request SubscriptionRequest
return Result