Overview

Classes

  • Syspay_Merchant_AstroPayBanksRequest
  • Syspay_Merchant_BillingAgreementCancellationRequest
  • Syspay_Merchant_BillingAgreementInfoRequest
  • Syspay_Merchant_BillingAgreementListRequest
  • Syspay_Merchant_BillingAgreementRequest
  • Syspay_Merchant_ChargebackInfoRequest
  • Syspay_Merchant_ChargebackListRequest
  • Syspay_Merchant_Client
  • Syspay_Merchant_ConfirmRequest
  • Syspay_Merchant_EMS
  • Syspay_Merchant_Entity
  • Syspay_Merchant_Entity_AstroPayBank
  • Syspay_Merchant_Entity_BillingAgreement
  • Syspay_Merchant_Entity_Chargeback
  • Syspay_Merchant_Entity_Creditcard
  • Syspay_Merchant_Entity_Customer
  • Syspay_Merchant_Entity_Eterminal
  • Syspay_Merchant_Entity_Payment
  • Syspay_Merchant_Entity_PaymentMethod
  • Syspay_Merchant_Entity_PaymentRecipient
  • Syspay_Merchant_Entity_Plan
  • Syspay_Merchant_Entity_Refund
  • Syspay_Merchant_Entity_Subscription
  • Syspay_Merchant_Entity_SubscriptionEvent
  • Syspay_Merchant_EterminalRequest
  • Syspay_Merchant_IpAddressesRequest
  • Syspay_Merchant_PaymentInfoRequest
  • Syspay_Merchant_PaymentListRequest
  • Syspay_Merchant_PaymentRequest
  • Syspay_Merchant_PlanInfoRequest
  • Syspay_Merchant_PlanRequest
  • Syspay_Merchant_PlanUpdateRequest
  • Syspay_Merchant_RebillRequest
  • Syspay_Merchant_Redirect
  • Syspay_Merchant_RefundInfoRequest
  • Syspay_Merchant_RefundListRequest
  • Syspay_Merchant_RefundRequest
  • Syspay_Merchant_Request
  • Syspay_Merchant_SubscriptionCancellationRequest
  • Syspay_Merchant_SubscriptionInfoRequest
  • Syspay_Merchant_SubscriptionRebillRequest
  • Syspay_Merchant_SubscriptionRequest
  • Syspay_Merchant_Utils
  • Syspay_Merchant_VoidRequest

Interfaces

  • Syspay_Merchant_Entity_ReturnedEntityInterface

Exceptions

  • Syspay_Merchant_EMSException
  • Syspay_Merchant_RedirectException
  • Syspay_Merchant_RequestException
  • Syspay_Merchant_UnexpectedResponseException
  • Overview
  • Class
  • Tree

Class Syspay_Merchant_PlanUpdateRequest

Uodate a plan

Syspay_Merchant_Request
Extended by Syspay_Merchant_PlanUpdateRequest
See: https://app.syspay.com/docs/api/merchant_subscription.html#update-a-plan
Located at Syspay/SDK/Merchant/Request/PlanUpdate.php
Methods summary
public
# __construct( integer $plan_id = null )

PlanUpdate Constuctor

PlanUpdate Constuctor

Parameters

$plan_id
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

Syspay_Merchant_PlanUpdateRequest
self
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

Syspay_Merchant_PlanUpdateRequest
self
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

Syspay_Merchant_PlanUpdateRequest
self
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

Syspay_Merchant_PlanUpdateRequest
self
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

$default_capture_delay

Returns

Syspay_Merchant_PlanUpdateRequest
self
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

Syspay_Merchant_Request::getData()
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
Constants summary
string METHOD
#'PUT'
string PATH
#'/api/v1/merchant/plan/%d'
Syspay Merchant SDK API documentation generated by ApiGen 2.8.0