PHP 클래스 Braintree\Customer

== More information == For more detailed information on Customers, see {@link http://www.braintreepayments.com/gateway/customer-api http://www.braintreepaymentsolutions.com/gateway/customer-api}
상속: extends braintree\Base
파일 보기 프로젝트 열기: braintree/braintree_php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_attributes registry of customer data

공개 메소드들

메소드 설명
__toString ( ) : string returns a string representation of the customer
_defaultPaymentMethodFilter ( $paymentMethod )
all ( ) : Customer[]
create ( array $attribs = [] ) : Braintree\Result\Successful | Error
createCustomerUrl ( ) : string
createFromTransparentRedirect ( string $queryString ) : Braintree\Result\Successful
createNoValidate ( array $attribs = [] ) : Customer
credit ( integer $customerId, array $transactionAttribs ) : Braintree\Result\Successful | Error
creditNoValidate ( type $customerId, type $transactionAttribs ) : Transaction
defaultPaymentMethod ( ) : CreditCard | braintree\PayPalAccount returns the customer's default payment method
delete ( integer $customerId ) : Braintree\Result\Successful
factory ( array $attributes ) : Customer factory method: returns an instance of Customer to the requesting method, with populated properties
fetch ( string $query, int[] $ids ) : Customer | Customer[]
find ( string $id ) : Customer
isEqual ( object $otherCust ) : boolean returns false if comparing object is not a Customer, or is a Customer with a different id
paymentMethods ( ) : array returns an array containt all of the customer's payment methods
sale ( integer $customerId, array $transactionAttribs ) : Transaction
saleNoValidate ( integer $customerId, array $transactionAttribs ) : Transaction
search ( string $query ) : ResourceCollection
update ( integer $customerId, array $attributes ) : Braintree\Result\Successful | Error
updateCustomerUrl ( ) : string
updateFromTransparentRedirect ( string $queryString ) : Braintree\Result\Successful | Error
updateNoValidate ( integer $customerId, array $attributes ) : CustomerGateway

보호된 메소드들

메소드 설명
_initialize ( array $customerAttribs ) sets instance properties from an array of values

메소드 상세

__toString() 공개 메소드

returns a string representation of the customer
public __toString ( ) : string
리턴 string

_defaultPaymentMethodFilter() 공개 정적인 메소드

public static _defaultPaymentMethodFilter ( $paymentMethod )

_initialize() 보호된 메소드

sets instance properties from an array of values
protected _initialize ( array $customerAttribs )
$customerAttribs array array of customer data

all() 공개 정적인 메소드

public static all ( ) : Customer[]
리턴 Customer[]

create() 공개 정적인 메소드

public static create ( array $attribs = [] ) : Braintree\Result\Successful | Error
$attribs array
리턴 Braintree\Result\Successful | Braintree\Result\Error

createCustomerUrl() 공개 정적인 메소드

사용 중단: since version 2.3.0
public static createCustomerUrl ( ) : string
리턴 string

createFromTransparentRedirect() 공개 정적인 메소드

사용 중단: since version 2.3.0
public static createFromTransparentRedirect ( string $queryString ) : Braintree\Result\Successful
$queryString string
리턴 Braintree\Result\Successful

createNoValidate() 공개 정적인 메소드

public static createNoValidate ( array $attribs = [] ) : Customer
$attribs array
리턴 Customer

credit() 공개 정적인 메소드

public static credit ( integer $customerId, array $transactionAttribs ) : Braintree\Result\Successful | Error
$customerId integer
$transactionAttribs array
리턴 Braintree\Result\Successful | Braintree\Result\Error

creditNoValidate() 공개 정적인 메소드

public static creditNoValidate ( type $customerId, type $transactionAttribs ) : Transaction
$customerId type
$transactionAttribs type
리턴 Transaction

defaultPaymentMethod() 공개 메소드

returns the customer's default payment method
public defaultPaymentMethod ( ) : CreditCard | braintree\PayPalAccount
리턴 CreditCard | braintree\PayPalAccount

delete() 공개 정적인 메소드

public static delete ( integer $customerId ) : Braintree\Result\Successful
$customerId integer
리턴 Braintree\Result\Successful

factory() 공개 정적인 메소드

factory method: returns an instance of Customer to the requesting method, with populated properties
public static factory ( array $attributes ) : Customer
$attributes array
리턴 Customer

fetch() 공개 정적인 메소드

public static fetch ( string $query, int[] $ids ) : Customer | Customer[]
$query string
$ids int[]
리턴 Customer | Customer[]

find() 공개 정적인 메소드

public static find ( string $id ) : Customer
$id string customer id
리턴 Customer

isEqual() 공개 메소드

returns false if comparing object is not a Customer, or is a Customer with a different id
public isEqual ( object $otherCust ) : boolean
$otherCust object customer to compare against
리턴 boolean

paymentMethods() 공개 메소드

returns an array containt all of the customer's payment methods
사용 중단: since version 3.1.0 - use the paymentMethods property directly
public paymentMethods ( ) : array
리턴 array

sale() 공개 정적인 메소드

public static sale ( integer $customerId, array $transactionAttribs ) : Transaction
$customerId integer
$transactionAttribs array
리턴 Transaction

saleNoValidate() 공개 정적인 메소드

public static saleNoValidate ( integer $customerId, array $transactionAttribs ) : Transaction
$customerId integer
$transactionAttribs array
리턴 Transaction

update() 공개 정적인 메소드

public static update ( integer $customerId, array $attributes ) : Braintree\Result\Successful | Error
$customerId integer
$attributes array
리턴 Braintree\Result\Successful | Braintree\Result\Error

updateCustomerUrl() 공개 정적인 메소드

사용 중단: since version 2.3.0
public static updateCustomerUrl ( ) : string
리턴 string

updateFromTransparentRedirect() 공개 정적인 메소드

사용 중단: since version 2.3.0
public static updateFromTransparentRedirect ( string $queryString ) : Braintree\Result\Successful | Error
$queryString string
리턴 Braintree\Result\Successful | Braintree\Result\Error

updateNoValidate() 공개 정적인 메소드

public static updateNoValidate ( integer $customerId, array $attributes ) : CustomerGateway
$customerId integer
$attributes array
리턴 CustomerGateway

프로퍼티 상세

$_attributes 보호되어 있는 프로퍼티

registry of customer data
protected $_attributes