Methods summary
public
|
#
__construct( integer $plan_id = null )
PlanUpdate Constuctor
Parameters
|
public
string
|
#
getMethod( )
Get the HTTP method to use to make the request
Get the HTTP method to use to make the request
Returns
string HTTP method
|
public
string
|
#
getPath( )
Get the path to call to make the request
Get the path to call to make the request
Returns
string API path
|
public
integer
|
#
getPlanId( )
Gets the value of planId.
Gets the value of planId.
Returns
integer integer
|
public
Syspay_Merchant_PlanUpdateRequest
|
#
setPlanId( integer $plan_id )
Sets the value of planId.
Sets the value of planId.
Parameters
- $plan_id
- $planId the planId
Returns
|
public
integer
|
#
getTrialAmount( )
Gets the value of trial_amount.
Gets the value of trial_amount.
Returns
integer integer
|
public
Syspay_Merchant_PlanUpdateRequest
|
#
setTrialAmount( integer $trial_amount )
Sets the value of trial_amount.
Sets the value of trial_amount.
Parameters
- $trial_amount
- the trial_amount
Returns
|
public
integer
|
#
getInitialAmount( )
Gets the value of initial_amount.
Gets the value of initial_amount.
Returns
integer integer
|
public
Syspay_Merchant_PlanUpdateRequest
|
#
setInitialAmount( integer $initial_amount )
Sets the value of initial_amount.
Sets the value of initial_amount.
Parameters
- $initial_amount
- the initial_amount
Returns
|
public
integer
|
#
getBillingAmount( )
Gets the value of billing_amount.
Gets the value of billing_amount.
Returns
integer integer
|
public
Syspay_Merchant_PlanUpdateRequest
|
#
setBillingAmount( integer $billing_amount )
Sets the value of billing_amount.
Sets the value of billing_amount.
Parameters
- $billing_amount
- the billing_amount
Returns
|
public
integer
|
#
getDefaultCaptureDelay( )
Gets the value of $default_capture_delay.
Gets the value of $default_capture_delay.
Returns
integer int
|
public
Syspay_Merchant_PlanUpdateRequest
|
#
setDefaultCaptureDelay( integer $default_capture_delay )
Sets the value of $default_capture_delay.
Sets the value of $default_capture_delay.
Parameters
Returns
|
public
array
|
#
getData( )
Get the data to send to the API for the request
Get the data to send to the API for the request
Returns
array An array of data that will be json-encoded by the Syspay_Merchant_Client
Overrides
|
public
mixed
|
#
buildResponse( stdClass $response )
Build an object based on the decoded response received from the API (turned
to a stdClass object)
Build an object based on the decoded response received from the API (turned
to a stdClass object)
Parameters
- $response
- The data to build the object from
Returns
mixed The object built
|