PHP Class Recurly_Adjustment, recurly-client-php

Inheritance: extends Recurly_Resource
Afficher le fichier Open project: recurly/recurly-client-php Class Usage Examples

Méthodes publiques

Méthode Description
create ( )
delete ( )
get ( $adjustment_uuid, $client = null )
refund ( $quantity = null, $prorate = false, $refund_apply_order = 'credit' ) : Recurly_Invoice Allows you to refund this particular item if it's a part of an invoice. It does this by calling the invoice's refund() Only 'invoiced' adjustments can be refunded.
toRefundAttributes ( $quantity = null, $prorate = false ) : Array Converts this adjustment into the attributes needed for a refund.

Méthodes protégées

Méthode Description
createUriForAccount ( )
getNodeName ( )
getWriteableAttributes ( )

Method Details

create() public méthode

public create ( )

createUriForAccount() protected méthode

protected createUriForAccount ( )

delete() public méthode

public delete ( )

get() public static méthode

public static get ( $adjustment_uuid, $client = null )

getNodeName() protected méthode

protected getNodeName ( )

getWriteableAttributes() protected méthode

protected getWriteableAttributes ( )

refund() public méthode

Allows you to refund this particular item if it's a part of an invoice. It does this by calling the invoice's refund() Only 'invoiced' adjustments can be refunded.
public refund ( $quantity = null, $prorate = false, $refund_apply_order = 'credit' ) : Recurly_Invoice
Résultat Recurly_Invoice the new refund invoice

toRefundAttributes() public méthode

Converts this adjustment into the attributes needed for a refund.
public toRefundAttributes ( $quantity = null, $prorate = false ) : Array
Résultat Array an array of refund attributes to be fed into invoice->refund()