Instantiates a new payment plan.
Instantiates a new payment plan.
PaymentPlan
__construct
([
DateTime $createDate =
null], [
DateTime $lastInvocingDate =
null], [
DateTime $lastProcessingDate =
null], [
String $code =
null], [
String $sellerCode =
null], [
int $length =
null], [
int $value =
null], [
int $deferredLength =
null], [
int $deferredValue =
null], [
int $amount =
null], [
String $groupCode1 =
null], [
String $groupCode2 =
null], [
String $groupCode3 =
null], [
String $groupCode4 =
null], [
String $groupCode5 =
null], [
String $groupCode6 =
null], [
String $groupCode7 =
null], [
String $groupCode8 =
null], [
int $merchantAccountCode =
null], [
String $type =
null], [
DateTime $firstBillingDate =
null], [
String $billingCycleCode =
null], [
String $itemCode =
null], [
String $taxCode =
null], [
PaymentOption $paymentOption =
null], [
CustomerAccount $customerAccount =
null], [
int $id =
null], [
DateTime $lastUpdateDate =
null], [
DateTime $nextBillingDate =
null], [
String $status =
null])
-
DateTime
$createDate: createDate the create date
-
DateTime
$lastInvocingDate: lastInvocingDate the last invocing date
-
DateTime
$lastProcessingDate: lastProcessingDate the last processing date
-
String
$code: code the code
-
String
$sellerCode: sellerCode the seller code
-
int
$length: length the length
-
int
$value: value the value
-
int
$deferredLength: deferredLength the deferred length
-
int
$deferredValue: deferredValue the deferred value
-
int
$amount: amount the amount
-
String
$groupCode1: groupCode1 the group code1
-
String
$groupCode2: groupCode2 the group code2
-
String
$groupCode3: groupCode3 the group code3
-
String
$groupCode4: groupCode4 the group code4
-
String
$groupCode5: groupCode5 the group code5
-
String
$groupCode6: groupCode6 the group code6
-
String
$groupCode7: groupCode7 the group code7
-
String
$groupCode8: groupCode8 the group code8
-
int
$merchantAccountCode: merchantAccountCode the merchant account code
-
String
$type: type the type
-
DateTime
$firstBillingDate: firstBillingDate the first billing date
-
String
$billingCycleCode: billingCycleCode the billing cycle code
-
String
$itemCode: itemCode the item code
-
String
$taxCode: taxCode the tax code
-
PaymentOption
$paymentOption: paymentOption the payment option
-
CustomerAccount
$customerAccount: customerAccount the customer account
-
int
$id: id the id
-
DateTime
$lastUpdateDate: lastUpdateDate the last update date
-
DateTime
$nextBillingDate: nextBillingDate the next billing date
-
String
$status: status the status
add method.
add method.
void
add
(int $position, int $length, bool $isFreeze)
-
int
$position: position the position
-
int
$length: length the length
-
bool
$isFreeze: isFreeze the is freeze
add method.
add method.
void
addCharge
(
Charge $charge,
int $position)
-
Charge
$charge: charge the charge
-
int
$position: position the position
Cancel.
Cancel.
void
cancel
()
createAdjustment method.
createAdjustment method.
createAdjustment method.
createAdjustment method.
Adjustment
createAdjustmentExtended
(
String $code,
String $notes,
String $adjustmentReasonCode)
-
String
$code: code the code
-
String
$notes: notes the notes
-
String
$adjustmentReasonCode: adjustmentReasonCode the adjustment reason code
Метод создает дочерний PP.
Метод создает дочерний PP.
Метод создает дочерний PaymentPlan.
Метод создает дочерний PaymentPlan.
PaymentPlan
createLinkedPaymentPlanBasic
(
String $code,
int $type,
int $amount,
String $length)
-
String
$code: code String
-
int
$type: amount Integer
-
int
$amount: length Integer
-
String
$length: type the type
Creates the linked payment plan extended.
Creates the linked payment plan extended.
PaymentPlan
createLinkedPaymentPlanExtended
(
String $code,
String $type,
int $amount,
int $length,
PaymentOption $paymentOption,
String $sellerCode,
String $itemCode,
String $taxCode,
String $groupCode1,
String $groupCode2,
String $groupCode3,
String $groupCode4,
String $groupCode5,
String $groupCode6,
String $groupCode7,
String $groupCode8)
-
String
$code: code the code
-
String
$type: type the type
-
int
$amount: amount the amount
-
int
$length: length the length
-
PaymentOption
$paymentOption: paymentOption the payment option
-
String
$sellerCode: sellerCode the seller code
-
String
$itemCode: itemCode the item code
-
String
$taxCode: taxCode the tax code
-
String
$groupCode1: groupCode1 the group code1
-
String
$groupCode2: groupCode2 the group code2
-
String
$groupCode3: groupCode3 the group code3
-
String
$groupCode4: groupCode4 the group code4
-
String
$groupCode5: groupCode5 the group code5
-
String
$groupCode6: groupCode6 the group code6
-
String
$groupCode7: groupCode7 the group code7
-
String
$groupCode8: groupCode8 the group code8
Creates the list charges.
Creates the list charges.
ArrayList
createListCharges
([
int $size =
true])
Decrement charges list parameters.
Decrement charges list parameters.
void
decrementChargesListParameters
(
Charge $charge)
-
Charge
$charge: charge the charge
void
equals
( $anotherObject)
Gets the adjustment.
Gets the adjustment.
Gets the amount.
Gets the amount.
int
getAmount
()
Gets the billing cycle code.
Gets the billing cycle code.
String
getBillingCycleCode
()
Gets the charges.
Gets the charges.
The actual charge list should never be exposed to the clients.
The actual charge list should never be exposed to the clients.
Gets the customer account.
Gets the customer account.
Gets the deferred length.
Gets the deferred length.
int
getDeferredLength
()
Gets the deferred value.
Gets the deferred value.
int
getDeferredValue
()
Gets the first billing date.
Gets the first billing date.
DateTime
getFirstBillingDate
()
Gets the group code1.
Gets the group code1.
String
getGroupCode1
()
Gets the group code2.
Gets the group code2.
String
getGroupCode2
()
Gets the group code3.
Gets the group code3.
String
getGroupCode3
()
Gets the group code4.
Gets the group code4.
String
getGroupCode4
()
Gets the group code5.
Gets the group code5.
String
getGroupCode5
()
Gets the group code6.
Gets the group code6.
String
getGroupCode6
()
Gets the group code7.
Gets the group code7.
String
getGroupCode7
()
Gets the group code8.
Gets the group code8.
String
getGroupCode8
()
Gets the item code.
Gets the item code.
String
getItemCode
()
Gets the last invocing date.
Gets the last invocing date.
DateTime
getLastInvocingDate
()
Gets the last processing date.
Gets the last processing date.
DateTime
getLastProcessingDate
()
getLastUpdateDate method.
getLastUpdateDate method.
DateTime
getLastUpdateDate
()
Gets the length.
Gets the length.
int
getLength
()
Gets the link account.
Gets the link account.
int
getLinkAccount
()
Gets the link parent plan.
Gets the link parent plan.
Gets the next billing date.
Gets the next billing date.
DateTime
getNextBillingDate
()
getNextCharge method.
getNextCharge method.
Gets the payment option.
Gets the payment option.
Gets the seller code.
Gets the seller code.
String
getSellerCode
()
Gets the status.
Gets the status.
String
getStatus
()
Gets the tax code.
Gets the tax code.
String
getTaxCode
()
Gets the type.
Gets the type.
String
getType
()
Gets the value.
Gets the value.
int
getValue
()
Increment charges list parameters.
Increment charges list parameters.
void
incrementChargesListParameters
(
Charge $charge)
-
Charge
$charge: charge the charge
remove method.
remove method.
-
Charge
$charge: charge the charge
remove method.
remove method.
void
removeIndex
(int $position)
-
int
$position: position the position
remove method.
remove method.
void
removeRange
(int $position, int $length)
-
int
$position: position the position
-
int
$length: length the length
Sets the adjustment.
Sets the adjustment.
-
Adjustment
$adjustment: adjustment the new adjustment
Set a value to amount.
Set a value to amount.
void
setAmount
(int $amount)
-
int
$amount: amount the amount
Set a value to billingCycleCode.
Set a value to billingCycleCode.
void
setBillingCycleCode
(String $billingCycleCode)
-
String
$billingCycleCode: billingCycleCode the billing cycle code
Sets the charges.
Sets the charges.
Sets the customer account.
Sets the customer account.
Set a value to deferredLength.
Set a value to deferredLength.
void
setDeferredLength
(int $deferredLength)
-
int
$deferredLength: deferredLength the deferred length
Set a value to deferredValue.
Set a value to deferredValue.
void
setDeferredValue
(int $deferredValue)
-
int
$deferredValue: deferredValue the deferred value
Set a value to firstBillingDate.
Set a value to firstBillingDate.
void
setFirstBillingDate
(DateTime $firstBillingDate)
-
DateTime
$firstBillingDate: firstBillingDate the first billing date
Set a value to groupCode1.
Set a value to groupCode1.
void
setGroupCode1
(String $groupCode1)
-
String
$groupCode1: groupCode1 the group code1
Set a value to groupCode2.
Set a value to groupCode2.
void
setGroupCode2
(String $groupCode2)
-
String
$groupCode2: groupCode2 the group code2
Set a value to groupCode3.
Set a value to groupCode3.
void
setGroupCode3
(String $groupCode3)
-
String
$groupCode3: groupCode3 the group code3
Set a value to groupCode4.
Set a value to groupCode4.
void
setGroupCode4
(String $groupCode4)
-
String
$groupCode4: groupCode4 the group code4
Set a value to groupCode5.
Set a value to groupCode5.
void
setGroupCode5
(String $groupCode5)
-
String
$groupCode5: groupCode5 the group code5
Set a value to groupCode6.
Set a value to groupCode6.
void
setGroupCode6
(String $groupCode6)
-
String
$groupCode6: groupCode6 the group code6
Set a value to groupCode7.
Set a value to groupCode7.
void
setGroupCode7
(String $groupCode7)
-
String
$groupCode7: groupCode7 the group code7
Set a value to groupCode8.
Set a value to groupCode8.
void
setGroupCode8
(String $groupCode8)
-
String
$groupCode8: groupCode8 the group code8
Set a value to itemCode.
Set a value to itemCode.
void
setItemCode
(String $itemCode)
-
String
$itemCode: itemCode the item code
Set a value to lastInvocingDate.
Set a value to lastInvocingDate.
void
setLastInvocingDate
(DateTime $lastInvocingDate)
-
DateTime
$lastInvocingDate: lastInvocingDate the last invocing date
Set a value to lastProcessingDate.
Set a value to lastProcessingDate.
void
setLastProcessingDate
(DateTime $lastProcessingDate)
-
DateTime
$lastProcessingDate: lastProcessingDate the last processing date
setLastUpdateDate method.
setLastUpdateDate method.
void
setLastUpdateDate
(DateTime $lastUpdateDate)
-
DateTime
$lastUpdateDate: lastUpdateDate the last update date
Set a value to length.
Set a value to length.
void
setLength
(int $length)
-
int
$length: length the length
Sets the link account.
Sets the link account.
void
setLinkAccount
(int $linkAccount)
-
int
$linkAccount: linkAccount the new link account