CreditPayment extends RecurlyResource
Table of Contents
- $array_hints : mixed
- $_account : mixed
- $_action : mixed
- $_amount : mixed
- $_applied_to_invoice : mixed
- $_created_at : mixed
- $_currency : mixed
- $_id : mixed
- $_object : mixed
- $_original_credit_payment_id : mixed
- $_original_invoice : mixed
- $_refund_transaction : mixed
- $_response : mixed
- $_updated_at : mixed
- $_uuid : mixed
- $_voided_at : mixed
- __construct() : mixed
- Constructor
- __debugInfo() : array<string|int, mixed>
- Override of the magic method __debugInfo that will only return the relevant attributes of the \Recurly\RecurlyResource
- __set() : void
- Guard against setting invalid properties
- cast() : RecurlyResource
- Recursively converts a response object into a \Recurly\RecurlyResource.
- fromBinary() : BinaryFile
- Converts a binary response into a Recurly BinaryFile
- fromEmpty() : EmptyResource
- Returns a \Recurly\EmptyResource for API requests that do not have a response body.
- fromResponse() : RecurlyResource
- Converts a Recurly response object into a \Recurly\RecurlyResource.
- getAccount() : AccountMini|null
- Getter method for the account attribute.
- getAction() : string|null
- Getter method for the action attribute.
- getAmount() : float|null
- Getter method for the amount attribute.
- getAppliedToInvoice() : InvoiceMini|null
- Getter method for the applied_to_invoice attribute.
- getCreatedAt() : string|null
- Getter method for the created_at attribute.
- getCurrency() : string|null
- Getter method for the currency attribute.
- getId() : string|null
- Getter method for the id attribute.
- getObject() : string|null
- Getter method for the object attribute.
- getOriginalCreditPaymentId() : string|null
- Getter method for the original_credit_payment_id attribute.
- getOriginalInvoice() : InvoiceMini|null
- Getter method for the original_invoice attribute.
- getRefundTransaction() : Transaction|null
- Getter method for the refund_transaction attribute.
- getResponse() : Response
- Getter for the Recurly HTTP Response
- getUpdatedAt() : string|null
- Getter method for the updated_at attribute.
- getUuid() : string|null
- Getter method for the uuid attribute.
- getVoidedAt() : string|null
- Getter method for the voided_at attribute.
- setAccount() : void
- Setter method for the account attribute.
- setAction() : void
- Setter method for the action attribute.
- setAmount() : void
- Setter method for the amount attribute.
- setAppliedToInvoice() : void
- Setter method for the applied_to_invoice attribute.
- setCreatedAt() : void
- Setter method for the created_at attribute.
- setCurrency() : void
- Setter method for the currency attribute.
- setId() : void
- Setter method for the id attribute.
- setObject() : void
- Setter method for the object attribute.
- setOriginalCreditPaymentId() : void
- Setter method for the original_credit_payment_id attribute.
- setOriginalInvoice() : void
- Setter method for the original_invoice attribute.
- setRefundTransaction() : void
- Setter method for the refund_transaction attribute.
- setUpdatedAt() : void
- Setter method for the updated_at attribute.
- setUuid() : void
- Setter method for the uuid attribute.
- setVoidedAt() : void
- Setter method for the voided_at attribute.
- encodeApiKey() : string
- Base64 encodes the API key
- getUserAgent() : string
- Generates User-Agent for API requests
- hintArrayType() : string
- The hintArrayType method will provide type hinting for setter methods that have array parameters.
- resourceClass() : string
- Converts a string into a representation of a Recurly Resource
- setResponse() : void
- Setter for the Recurly HTTP Response
- setterParamClass() : string
- Uses the Reflection API to determine what \Recurly\RecurlyResource is the expected parameter for the given method.
- titleize() : string
- Capitalizes all the words in the $input.
Properties
$array_hints
protected
static mixed
$array_hints
= []
$_account
private
mixed
$_account
$_action
private
mixed
$_action
$_amount
private
mixed
$_amount
$_applied_to_invoice
private
mixed
$_applied_to_invoice
$_created_at
private
mixed
$_created_at
$_currency
private
mixed
$_currency
$_id
private
mixed
$_id
$_object
private
mixed
$_object
$_original_credit_payment_id
private
mixed
$_original_credit_payment_id
$_original_invoice
private
mixed
$_original_invoice
$_refund_transaction
private
mixed
$_refund_transaction
$_response
private
mixed
$_response
$_updated_at
private
mixed
$_updated_at
$_uuid
private
mixed
$_uuid
$_voided_at
private
mixed
$_voided_at
Methods
__construct()
Constructor
public
final __construct() : mixed
Return values
mixed —__debugInfo()
Override of the magic method __debugInfo that will only return the relevant attributes of the \Recurly\RecurlyResource
public
__debugInfo() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —__set()
Guard against setting invalid properties
public
__set(string $key, mixed $value) : void
Parameters
- $key : string
-
The parameter name that is being set
- $value : mixed
-
The parameter value that is being set
Tags
Return values
void —cast()
Recursively converts a response object into a \Recurly\RecurlyResource.
public
static cast(object $data) : RecurlyResource
Parameters
- $data : object
-
PHP Object containing the decoded JSON
Return values
RecurlyResource —An instance of a Recurly Resource
fromBinary()
Converts a binary response into a Recurly BinaryFile
public
static fromBinary(string $data, Response $response) : BinaryFile
Parameters
- $data : string
-
The binary file data
- $response : Response
-
(optional) The Recurly HTTP Response
Return values
BinaryFile —An instance of a Recurly BinaryFile
fromEmpty()
Returns a \Recurly\EmptyResource for API requests that do not have a response body.
public
static fromEmpty(Response $response) : EmptyResource
Parameters
- $response : Response
-
(optional) The Recurly HTTP Response
Return values
EmptyResource —fromResponse()
Converts a Recurly response object into a \Recurly\RecurlyResource.
public
static fromResponse(Response $response[, object $json = null ]) : RecurlyResource
Parameters
- $response : Response
-
The Recurly HTTP Response
- $json : object = null
-
(optional) JSON payload to use instead of the $response's. Primarily used for errors
Return values
RecurlyResource —An instance of a Recurly Resource
getAccount()
Getter method for the account attribute.
public
getAccount() : AccountMini|null
Account mini details
Return values
AccountMini|null —getAction()
Getter method for the action attribute.
public
getAction() : string|null
The action for which the credit was created.
Return values
string|null —getAmount()
Getter method for the amount attribute.
public
getAmount() : float|null
Total credit payment amount applied to the charge invoice.
Return values
float|null —getAppliedToInvoice()
Getter method for the applied_to_invoice attribute.
public
getAppliedToInvoice() : InvoiceMini|null
Invoice mini details
Return values
InvoiceMini|null —getCreatedAt()
Getter method for the created_at attribute.
public
getCreatedAt() : string|null
Created at
Return values
string|null —getCurrency()
Getter method for the currency attribute.
public
getCurrency() : string|null
3-letter ISO 4217 currency code.
Return values
string|null —getId()
Getter method for the id attribute.
public
getId() : string|null
Credit Payment ID
Return values
string|null —getObject()
Getter method for the object attribute.
public
getObject() : string|null
Object type
Return values
string|null —getOriginalCreditPaymentId()
Getter method for the original_credit_payment_id attribute.
public
getOriginalCreditPaymentId() : string|null
For credit payments with action refund
, this is the credit payment that was refunded.
Return values
string|null —getOriginalInvoice()
Getter method for the original_invoice attribute.
public
getOriginalInvoice() : InvoiceMini|null
Invoice mini details
Return values
InvoiceMini|null —getRefundTransaction()
Getter method for the refund_transaction attribute.
public
getRefundTransaction() : Transaction|null
Return values
Transaction|null —getResponse()
Getter for the Recurly HTTP Response
public
getResponse() : Response
Return values
Response —The Recurly HTTP Response
getUpdatedAt()
Getter method for the updated_at attribute.
public
getUpdatedAt() : string|null
Last updated at
Return values
string|null —getUuid()
Getter method for the uuid attribute.
public
getUuid() : string|null
The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
Return values
string|null —getVoidedAt()
Getter method for the voided_at attribute.
public
getVoidedAt() : string|null
Voided at
Return values
string|null —setAccount()
Setter method for the account attribute.
public
setAccount(AccountMini $account) : void
Parameters
- $account : AccountMini
Return values
void —setAction()
Setter method for the action attribute.
public
setAction(string $action) : void
Parameters
- $action : string
Return values
void —setAmount()
Setter method for the amount attribute.
public
setAmount(float $amount) : void
Parameters
- $amount : float
Return values
void —setAppliedToInvoice()
Setter method for the applied_to_invoice attribute.
public
setAppliedToInvoice(InvoiceMini $applied_to_invoice) : void
Parameters
- $applied_to_invoice : InvoiceMini
Return values
void —setCreatedAt()
Setter method for the created_at attribute.
public
setCreatedAt(string $created_at) : void
Parameters
- $created_at : string
Return values
void —setCurrency()
Setter method for the currency attribute.
public
setCurrency(string $currency) : void
Parameters
- $currency : string
Return values
void —setId()
Setter method for the id attribute.
public
setId(string $id) : void
Parameters
- $id : string
Return values
void —setObject()
Setter method for the object attribute.
public
setObject(string $object) : void
Parameters
- $object : string
Return values
void —setOriginalCreditPaymentId()
Setter method for the original_credit_payment_id attribute.
public
setOriginalCreditPaymentId(string $original_credit_payment_id) : void
Parameters
- $original_credit_payment_id : string
Return values
void —setOriginalInvoice()
Setter method for the original_invoice attribute.
public
setOriginalInvoice(InvoiceMini $original_invoice) : void
Parameters
- $original_invoice : InvoiceMini
Return values
void —setRefundTransaction()
Setter method for the refund_transaction attribute.
public
setRefundTransaction(Transaction $refund_transaction) : void
Parameters
- $refund_transaction : Transaction
Return values
void —setUpdatedAt()
Setter method for the updated_at attribute.
public
setUpdatedAt(string $updated_at) : void
Parameters
- $updated_at : string
Return values
void —setUuid()
Setter method for the uuid attribute.
public
setUuid(string $uuid) : void
Parameters
- $uuid : string
Return values
void —setVoidedAt()
Setter method for the voided_at attribute.
public
setVoidedAt(string $voided_at) : void
Parameters
- $voided_at : string
Return values
void —encodeApiKey()
Base64 encodes the API key
protected
static encodeApiKey(string $key) : string
Parameters
- $key : string
-
The API key to encode
Return values
string —base64 encoded API key
getUserAgent()
Generates User-Agent for API requests
protected
static getUserAgent() : string
Return values
string —Recurly client User-Agent string
hintArrayType()
The hintArrayType method will provide type hinting for setter methods that have array parameters.
protected
static hintArrayType(string $key) : string
Parameters
- $key : string
-
The property to get teh type hint for.
Return values
string —The class name of the expected array type.
resourceClass()
Converts a string into a representation of a Recurly Resource
protected
static resourceClass(string $type) : string
Parameters
- $type : string
-
A string to convert to a Recurly Resource
Return values
string —The string representation of a Recurly Resource
setResponse()
Setter for the Recurly HTTP Response
protected
setResponse(Response $response) : void
Parameters
- $response : Response
-
The Recurly HTTP Response
Return values
void —setterParamClass()
Uses the Reflection API to determine what \Recurly\RecurlyResource is the expected parameter for the given method.
protected
static setterParamClass(string $method) : string
Parameters
- $method : string
-
The name of the setter method to find the type hint for
Return values
string —The \Recurly\RecurlyResource that the setter method expects
titleize()
Capitalizes all the words in the $input.
protected
static titleize(string $input[, string $prefix = '' ]) : string
Parameters
- $input : string
-
The string to titleize
- $prefix : string = ''
-
(optional) Prefix to add to the beginning of the titleized string. The prefix will not be titleized.
Return values
string —The titleized $input wtih the prepended $prefix