Вход Регистрация
Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditFinancingOffered.php
Строк: 185
<?php

namespace PayPalApi;

use 
PayPalCommonPayPalModel;

/**
 * Class CreditFinancingOffered
 *
 * Credit financing offered to customer on PayPal side with opt-in/opt-out status
 *
 * @package PayPalApi
 *
 * @property PayPalApiCurrency total_cost
 * @property PayPalApinumber term
 * @property PayPalApiCurrency monthly_payment
 * @property PayPalApiCurrency total_interest
 * @property bool payer_acceptance
 * @property bool cart_amount_immutable
 */
class CreditFinancingOffered extends PayPalModel
{
    
/**
     * This is the estimated total payment amount including interest and fees the user will pay during the lifetime of the loan.
     *
     * @param PayPalApiCurrency $total_cost
     * 
     * @return $this
     */
    
public function setTotalCost($total_cost)
    {
        
$this->total_cost $total_cost;
        return 
$this;
    }

    
/**
     * This is the estimated total payment amount including interest and fees the user will pay during the lifetime of the loan.
     *
     * @return PayPalApiCurrency
     */
    
public function getTotalCost()
    {
        return 
$this->total_cost;
    }

    
/**
     * Length of financing terms in month
     *
     * @param PayPalApinumber $term
     * 
     * @return $this
     */
    
public function setTerm($term)
    {
        
$this->term $term;
        return 
$this;
    }

    
/**
     * Length of financing terms in month
     *
     * @return PayPalApinumber
     */
    
public function getTerm()
    {
        return 
$this->term;
    }

    
/**
     * This is the estimated amount per month that the customer will need to pay including fees and interest.
     *
     * @param PayPalApiCurrency $monthly_payment
     * 
     * @return $this
     */
    
public function setMonthlyPayment($monthly_payment)
    {
        
$this->monthly_payment $monthly_payment;
        return 
$this;
    }

    
/**
     * This is the estimated amount per month that the customer will need to pay including fees and interest.
     *
     * @return PayPalApiCurrency
     */
    
public function getMonthlyPayment()
    {
        return 
$this->monthly_payment;
    }

    
/**
     * Estimated interest or fees amount the payer will have to pay during the lifetime of the loan.
     *
     * @param PayPalApiCurrency $total_interest
     * 
     * @return $this
     */
    
public function setTotalInterest($total_interest)
    {
        
$this->total_interest $total_interest;
        return 
$this;
    }

    
/**
     * Estimated interest or fees amount the payer will have to pay during the lifetime of the loan.
     *
     * @return PayPalApiCurrency
     */
    
public function getTotalInterest()
    {
        return 
$this->total_interest;
    }

    
/**
     * Status on whether the customer ultimately was approved for and chose to make the payment using the approved installment credit.
     *
     * @param bool $payer_acceptance
     * 
     * @return $this
     */
    
public function setPayerAcceptance($payer_acceptance)
    {
        
$this->payer_acceptance $payer_acceptance;
        return 
$this;
    }

    
/**
     * Status on whether the customer ultimately was approved for and chose to make the payment using the approved installment credit.
     *
     * @return bool
     */
    
public function getPayerAcceptance()
    {
        return 
$this->payer_acceptance;
    }

    
/**
     * Indicates whether the cart amount is editable after payer's acceptance on PayPal side
     *
     * @param bool $cart_amount_immutable
     * 
     * @return $this
     */
    
public function setCartAmountImmutable($cart_amount_immutable)
    {
        
$this->cart_amount_immutable $cart_amount_immutable;
        return 
$this;
    }

    
/**
     * Indicates whether the cart amount is editable after payer's acceptance on PayPal side
     *
     * @return bool
     */
    
public function getCartAmountImmutable()
    {
        return 
$this->cart_amount_immutable;
    }

}
Онлайн: 2
Реклама