pub struct RefundPaymentBuilder { /* private fields */ }Expand description
Instruction builder for RefundPayment.
§Accounts:
[writable, signer]payer[writable]payment[signer]operator_authority[]buyer[]merchant[]operator[]merchant_operator_config[]mint[writable]merchant_escrow_ata[writable]buyer_ata[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[optional]event_authority (default to3VSJP7faqLk6MbCaNtMYc2Y8S8hMXRsZ5cBcwh1fjMH1)[optional]commerce_program (default tocommkU28d52cwo2Ma3Marxz4Qr9REtfJtuUfqnDnbhT)
Implementations§
Source§impl RefundPaymentBuilder
impl RefundPaymentBuilder
pub fn new() -> Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
Sourcepub fn merchant_operator_config(
&mut self,
merchant_operator_config: Pubkey,
) -> &mut Self
pub fn merchant_operator_config( &mut self, merchant_operator_config: Pubkey, ) -> &mut Self
Merchant Operator Config PDA
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
Sourcepub fn merchant_escrow_ata(&mut self, merchant_escrow_ata: Pubkey) -> &mut Self
pub fn merchant_escrow_ata(&mut self, merchant_escrow_ata: Pubkey) -> &mut Self
Merchant Escrow ATA (Merchant PDA is owner)
pub fn buyer_ata(&mut self, buyer_ata: Pubkey) -> &mut Self
Sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
[optional account, default to '3VSJP7faqLk6MbCaNtMYc2Y8S8hMXRsZ5cBcwh1fjMH1']
Event authority PDA
Sourcepub fn commerce_program(&mut self, commerce_program: Pubkey) -> &mut Self
pub fn commerce_program(&mut self, commerce_program: Pubkey) -> &mut Self
[optional account, default to 'commkU28d52cwo2Ma3Marxz4Qr9REtfJtuUfqnDnbhT']
Commerce Program ID
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for RefundPaymentBuilder
impl Clone for RefundPaymentBuilder
Source§fn clone(&self) -> RefundPaymentBuilder
fn clone(&self) -> RefundPaymentBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefundPaymentBuilder
impl Debug for RefundPaymentBuilder
Source§impl Default for RefundPaymentBuilder
impl Default for RefundPaymentBuilder
Source§fn default() -> RefundPaymentBuilder
fn default() -> RefundPaymentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RefundPaymentBuilder
impl RefUnwindSafe for RefundPaymentBuilder
impl Send for RefundPaymentBuilder
impl Sync for RefundPaymentBuilder
impl Unpin for RefundPaymentBuilder
impl UnwindSafe for RefundPaymentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more