Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * The meta fields used to save a Bitcoin_Address in a WP_Post. |
| 4 | * |
| 5 | * @package brianhenryie/bh-wp-bitcoin-gateway |
| 6 | */ |
| 7 | |
| 8 | namespace BrianHenryIE\WP_Bitcoin_Gateway\API\Model\Wallet; |
| 9 | |
| 10 | use BrianHenryIE\WP_Bitcoin_Gateway\API\Model\Payments\Bitcoin_Transaction; |
| 11 | use BrianHenryIE\WP_Bitcoin_Gateway\API\Services\Bitcoin_Wallet_Service; |
| 12 | use BrianHenryIE\WP_Bitcoin_Gateway\API\Services\Payment_Service; |
| 13 | use BrianHenryIE\WP_Bitcoin_Gateway\Integrations\WooCommerce\Helpers\WC_Order_Meta_Helper; |
| 14 | |
| 15 | interface Bitcoin_Address_WP_Post_Interface { |
| 16 | |
| 17 | const string POST_TYPE = 'bh-bitcoin-address'; |
| 18 | const string DERIVATION_PATH_SEQUENCE_NUMBER_META_KEY = 'derivation_path_sequence_number'; |
| 19 | |
| 20 | /** |
| 21 | * Saved in meta as array<int, string> <wp_post_id, tx_id>. |
| 22 | * |
| 23 | * @see Bitcoin_Transaction::get_txid() |
| 24 | * @see Bitcoin_Address::get_tx_ids() |
| 25 | * @see Bitcoin_Wallet_Service::update_address_transactions_posts() |
| 26 | * @see Payment_Service::update_address_transactions() |
| 27 | */ |
| 28 | const string TRANSACTIONS_META_KEY = 'address_transactions'; |
| 29 | |
| 30 | /** |
| 31 | * @see WC_Order_Meta_Helper::BITCOIN_AMOUNT_CONFIRMED_RECEIVED_META_KEY |
| 32 | */ |
| 33 | const string CONFIRMED_AMOUNT_RECEIVED_META_KEY = 'confirmed_amount_received'; |
| 34 | const string INTEGRATION_ID_META_KEY = 'integration_id'; |
| 35 | const string ORDER_ID_META_KEY = 'order_id'; |
| 36 | const string TARGET_AMOUNT_META_KEY = 'target_amount'; |
| 37 | } |