PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
mycred
/
addons
/
buy-creds
/
gateways
/
Bitpay
<?php /** * @license Copyright 2011-2014 BitPay Inc., MIT License * see https://github.com/bitpay/php-bitpay-client/blob/master/LICENSE */ namespace Bitpay; /** * Interface PayoutInterface * @package Bitpay */ interface PayoutInterface { /** * The payroll flow begins with the payroll provider creating a payout request, * using the payroll facade. */ const STATUS_NEW = 'new'; /** * Once Bitpay receives a corresponding ACH transfer from the payroll provider, * the finance group marks the payout as 'funded'. */ const STATUS_FUNDED = 'funded'; /** * A payout is marked as processing when it has begun to be processed, but * is not yet complete. */ const STATUS_PROCESSING = 'processing'; /** * A batch is marked as complete when all payments have been delivered to the * destinations. */ const STATUS_COMPLETE = 'complete'; /** * A payout can be cancelled by making a request on the API with a payout specific * token (returned when payout was requested) */ const STATUS_CANCELLED = 'cancelled'; /** * The batch ID of the payout assigned by Bitpay.com * * @return string */ public function getId(); /** * Return the account parameter given by Bitpay. * * @return string */ public function getAccountId(); /** * This is the total amount of the batch. Note, this amount must equal the sum of * the amounts paid to the individual addresses. Adding an instruction to a payout * will automatically increase this value. * * @return float */ public function getAmount(); /** * This will return the Bitcoin amount for this transaction. This * should only be called once the payout is funded * * @return float */ public function getBtcAmount(); /** * This is the currency code set for the batch amount. The pricing currencies * currently supported are USD and EUR. * * @return \Bitpay\CurrencyInterface */ public function getCurrency(); /** * The date and time when the batch should be sent. The time is in milliseconds * since midnight January 1, 1970. * * @return \DateTime */ public function getEffectiveDate(); /** * The date and time when the batch was created by the payee. The time is in milliseconds * since midnight January 1, 1970. * * @return \DateTime */ public function getRequestDate(); /** * This is an array containing the details of the batch. Each payment instruction * entry specifies the details for a single payout. There is no specific upper * limit on the number of payment instruction entries in the batch instructions * * @return array */ public function getInstructions(); /** * Status updates for the batch will be sent to this email address. If no value is * specified, the Merchant email will be used as a notification. * * @return string */ public function getNotificationEmail(); /** * A URL to send status update messages to your server (this must be an https * URL, unencrypted http URLs or any other type of URL is not supported). * Bitpay.com will send a POST request with a JSON encoding of the batch to this * URL when the batch status changes. * * @return string */ public function getNotificationUrl(); /** * The method you select determines the exchange rate used to compute the * payouts for the entire batch. * * @return string */ public function getPricingMethod(); /** * This is your reference label for this batch. It will be passedthrough on each * response for you to identify the batch in your system. Maximum string length is * 100 characters. * This passthrough variable can be a JSONencoded string, for example * { "ref":711454, "company":"Johns Data Center" } * * @return string */ public function getReference(); /** * Get the status for this payout. * * @return $string; */ public function getStatus(); /** * Get the payroll token * * @return mixed */ public function getToken(); /** * Get the response token, for cancelling payout requests later. * * @return string */ public function getResponseToken(); }
[+]
..
[-] Item.php
[edit]
[+]
Math
[+]
DependencyInjection
[-] BuyerInterface.php
[edit]
[-] Point.php
[edit]
[-] KeyInterface.php
[edit]
[-] PayoutTransactionInterface.php
[edit]
[-] PayoutInterface.php
[edit]
[-] InvoiceInterface.php
[edit]
[-] Autoloader.php
[edit]
[-] ApplicationInterface.php
[edit]
[-] KeyManager.php
[edit]
[-] Currency.php
[edit]
[-] ItemInterface.php
[edit]
[+]
Client
[+]
Util
[-] User.php
[edit]
[-] PayoutTransaction.php
[edit]
[-] PayoutInstruction.php
[edit]
[-] Key.php
[edit]
[-] Bitpay.php
[edit]
[+]
Network
[-] TokenInterface.php
[edit]
[-] PrivateKey.php
[edit]
[-] Buyer.php
[edit]
[-] Token.php
[edit]
[-] PublicKey.php
[edit]
[-] SinKey.php
[edit]
[+]
Storage
[+]
Config
[-] index.php
[edit]
[-] Bill.php
[edit]
[-] BillInterface.php
[edit]
[-] Application.php
[edit]
[-] Payout.php
[edit]
[-] Invoice.php
[edit]
[-] UserInterface.php
[edit]
[-] AccessToken.php
[edit]
[-] PayoutInstructionInterface.php
[edit]
[-] PointInterface.php
[edit]
[+]
Crypto
[-] CurrencyInterface.php
[edit]
[-] AccessTokenInterface.php
[edit]