C# Class Braintree.SubscriptionGateway

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
SubscriptionGateway ( BraintreeGateway gateway ) : Braintree.Exceptions

Private Methods

Méthode Description
FetchSubscriptions ( SubscriptionSearchRequest query, string ids ) : List
RetryCharge ( SubscriptionTransactionRequest txnRequest ) : Result

Method Details

Cancel() public méthode

public Cancel ( string id ) : Result
id string
Résultat Result

Create() public méthode

public Create ( SubscriptionRequest request ) : Result
request SubscriptionRequest
Résultat Result

Find() public méthode

public Find ( string id ) : Braintree.Subscription
id string
Résultat Braintree.Subscription

RetryCharge() public méthode

public RetryCharge ( string subscriptionId ) : Result
subscriptionId string
Résultat Result

RetryCharge() public méthode

public RetryCharge ( string subscriptionId, decimal amount ) : Result
subscriptionId string
amount decimal
Résultat Result

Search() public méthode

public Search ( SearchDelegate searchDelegate ) : ResourceCollection
searchDelegate SearchDelegate
Résultat ResourceCollection

Search() public méthode

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

SubscriptionGateway() protected méthode

protected SubscriptionGateway ( BraintreeGateway gateway ) : Braintree.Exceptions
gateway BraintreeGateway
Résultat Braintree.Exceptions

Update() public méthode

public Update ( string id, SubscriptionRequest request ) : Result
id string
request SubscriptionRequest
Résultat Result