Payout::__construct()

Payouts_Repository constructor.

Contents


Source

File: src/Tribe/Repositories/Payout.php

	public function __construct() {
		parent::__construct();

		$this->default_args = [
			'post_type'   => Payouts::PAYOUT_OBJECT,
			'post_status' => 'any',
			'orderby'     => [
				'date',
				'ID',
			],
		];

		$this->create_args = [
			'post_type' => Payouts::PAYOUT_OBJECT,
		];

		$this->add_simple_meta_schema_entry( 'event', '_tribe_event_id', 'meta_in' );
		$this->add_simple_meta_schema_entry( 'event__not_in', '_tribe_event_id', 'meta_not_in' );
		$this->add_simple_meta_schema_entry( 'ticket', '_tribe_ticket_id', 'meta_in' );
		$this->add_simple_meta_schema_entry( 'ticket__not_in', '_tribe_ticket_id', 'meta_not_in' );
		$this->add_simple_meta_schema_entry( 'order', '_tribe_order_id', 'meta_in' );
		$this->add_simple_meta_schema_entry( 'order__not_in', '_tribe_order_id', 'meta_not_in' );
		$this->add_simple_meta_schema_entry( 'user', '_tribe_user_id', 'meta_in' );
		$this->add_simple_meta_schema_entry( 'user__not_in', '_tribe_user_id', 'meta_not_in' );

		$this->add_simple_meta_schema_entry( 'amount', '_tribe_amount' );
		$this->add_simple_meta_schema_entry( 'fees', '_tribe_fees' );
		$this->add_simple_meta_schema_entry( 'order_provider', '_tribe_order_provider' );
		$this->add_simple_meta_schema_entry( 'receiver_key', '_tribe_receiver_key' );
		$this->add_simple_meta_schema_entry( 'gateway', '_tribe_gateway' );
		$this->add_simple_meta_schema_entry( 'transaction', '_tribe_transaction_id' );
		$this->add_simple_meta_schema_entry( 'date_paid', '_tribe_date_paid' );
	}

Top ↑

Changelog

Changelog
Version Description
4.7.0 Introduced.