Class Agreement
Class Agreement
A resource representing an agreement.
- PayPal\Common\PayPalModel
- PayPal\Common\PayPalResourceModel implements PayPal\Rest\IResource
- PayPal\Api\Agreement
Methods summary
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
#
setStartDate( string $start_date )
Start date of the agreement. Date format yyyy-MM-dd z, as defined in ISO8601. |
public
string
|
|
public
|
#
setPayer(
Details of the buyer who is enrolling in this agreement. This information is gathered from execution of the approval URL. |
public
|
|
public
|
#
setShippingAddress(
Shipping address object of the agreement, which should be provided if it is different from the default address. |
public
|
#
getShippingAddress( )
Shipping address object of the agreement, which should be provided if it is different from the default address. |
public
|
#
setOverrideMerchantPreferences(
Default merchant preferences from the billing plan are used, unless override preferences are provided here. |
public
|
#
getOverrideMerchantPreferences( )
Default merchant preferences from the billing plan are used, unless override preferences are provided here. |
public
|
#
setOverrideChargeModels(
Array of override_charge_model for this agreement if needed to change the default models from the billing plan. |
public
|
#
getOverrideChargeModels( )
Array of override_charge_model for this agreement if needed to change the default models from the billing plan. |
public
|
#
addOverrideChargeModel(
Append OverrideChargeModels to the list. |
public
|
#
removeOverrideChargeModel(
Remove OverrideChargeModels from the list. |
public
|
|
public
|
|
public
|
#
setCreateTime( string $create_time )
Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in ISO8601. |
public
string
|
#
getCreateTime( )
Date and time that this resource was created. Date format yyyy-MM-dd z, as defined in ISO8601. |
public
|
#
setUpdateTime( string $update_time )
Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in ISO8601. |
public
string
|
#
getUpdateTime( )
Date and time that this resource was updated. Date format yyyy-MM-dd z, as defined in ISO8601. |
public
|
|
public
|
|
public
null|string
|
|
public
|
#
create(
Create a new billing agreement by passing the details for the agreement, including the name, description, start date, payer, and billing plan in the request JSON. |
public
|
#
execute( $paymentToken,
Execute a billing agreement after buyer approval by passing the payment token to the request URI. |
public static
|
#
get( string $agreementId,
Retrieve details for a particular billing agreement by passing the ID of the agreement to the request URI. |
public
boolean
|
#
update(
Update details of a billing agreement, such as the description, shipping address, and start date, by passing the ID of the agreement to the request URI. |
public
boolean
|
#
suspend(
Suspend a particular billing agreement by passing the ID of the agreement to the request URI. |
public
boolean
|
#
reActivate(
Reactivate a suspended billing agreement by passing the ID of the agreement to the appropriate URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement. |
public
boolean
|
#
cancel(
Cancel a billing agreement by passing the ID of the agreement to the request URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement. |
public
boolean
|
#
billBalance(
Bill an outstanding amount for an agreement by passing the ID of the agreement to the request URI. In addition, pass an agreement_state_descriptor object in the request JSON that includes a note about the reason for changing the state of the agreement and the amount and currency for the agreement. |
public
boolean
|
#
setBalance(
Set the balance for an agreement by passing the ID of the agreement to the request URI. In addition, pass a common_currency object in the request JSON that specifies the currency type and value of the balance. |
public static
|
#
transactions( string $agreementId,
List transactions for a billing agreement by passing the ID of the agreement, as well as the start and end dates of the range of transactions to list, to the request URI. |
public static
|
#
searchTransactions( string $agreementId, array $params = array(),
List transactions for a billing agreement by passing the ID of the agreement, as well as the start and end dates of the range of transactions to list, to the request URI. |
Methods inherited from PayPal\Common\PayPalResourceModel
addLink()
,
executeCall()
,
getLink()
,
getLinks()
,
removeLink()
,
setLinks()
,
updateAccessToken()
Methods inherited from PayPal\Common\PayPalModel
__construct()
,
__get()
,
__isset()
,
__set()
,
__toString()
,
__unset()
,
fromArray()
,
fromJson()
,
getList()
,
setCredential()
,
toArray()
,
toJSON()