/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Map->map('title', $this->getTitle()); $Map->map('description', $this->getDescription()); $Map->map('created', $this->created); $Map->map('currency', $this->getCurrency()); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { // $Map->map('email', $this->email); $Map->map('card', $this->card); $Map->map('name', $this->name); $Map->map('address', $this->address . ($this->address2 ? "\n" . $this->address2 : '')); // $Map->map('wallet-address2', $this->address2); $Map->map('city', $this->city); $Map->map('state', $this->state); $Map->map('country', $this->country); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { // $SourceEntry = PaymentSourceEntry::get($this->payment_source_id); // $Source = $SourceEntry->getPaymentSource(); $Product = $this->getProduct(); $Map->map('product', $this->getID(), $Product->getProductTitle()); $Map->map('type', $Product->getTypeName()); $Map->map('total', $Product->getTotalCost()); // . ' ' . $Source->getCurrency() // $Map->map('currency', $Source->getCurrency()); $Map->map('account', $this->account_id); // $Map->map('payment-source', $Source->getDescription(), $this->payment_source_id); $Map->map('description', $Product->getTypeDescription()); // $Map->map('currency', $Source->getCurrency()); // $Map->map('profit', $this->getProfit() . ' ' . $Source->getCurrency()); $Map->map('fees', $Product->exportFeesToString()); $Map->map('test-url', OrderForm::getRequestURL($this->getID())); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Map->map('account', $this->getID()); // $Map->map('name', $this->getName()); // $Map->map('email', $this->getEmail()); $this->getAccount()->mapKeys($Map); $Map->map('created', $this->getCreatedTimestamp()); $Map->map('status', $this->getStatus(), $this->getStatusText()); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Map->map('title', $this->getProductTitle()); $Map->map('description', $this->getTypeDescription()); $Map->map('total', $this->getTotalCost()); $Map->map('type', $this->getTypeName()); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Map->map('account', $this->getAccountID()); $Map->map('affiliate', $this->getAffiliateID()); $Map->map('type', $this->getTypeText()); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $SourceEntry = PaymentSourceEntry::get($this->payment_source_id); // TODO: inefficient $Source = $SourceEntry->getPaymentSource(); $Invoice = $this->getInvoice(); $Product = $Invoice->getProduct(); $Map->map('id', $this->getID()); $Map->map('wallet', $this->getWalletID()); $Map->map('email', $Invoice->getWallet()->getEmail()); $Map->map('product', $this->getProductID(), $Product->getProductTitle()); $Map->map('created', $this->getCreatedTimestamp()); $Map->map('status', $this->getStatusText()); $Map->map('amount', $this->getAmount()); $Map->map('currency', $Source->getCurrency()); // $Map->map('description', $Product->getTypeDescription()); // $Map->map('payment-source', $Source->getTitle()); //todo: flags for mapping headers? // $Map->map('product', $ProductEntry); // $Map->map('product-title', $Product->getTitle()); // $Map->map('total', $Product->getTotalCost()); // $Map->map('type', $Product->getTypeName()); // $Map->map('invoice', $Invoice->getProduct()->); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Map->map('payment-source-id', $this->getID()); $Map->map('status', $this->getStatusText()); $Source = $this->getPaymentSource(); $Source->mapKeys($Map); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Wallet = $this->getWallet(); $Map->map('wallet-id', $this->getID()); $Map->map('email', $this->getEmail()); // , $Product->getTitle()); $Map->map('hash', substr($Wallet->getWalletHash(), -8)); $Map->map('status', $this->getStatus(), $this->getStatusText()); $Wallet->mapKeys($Map); }
/** * Map data to the key map * @param IKeyMapper $Map the map inst to add data to * @internal param \CPath\Request\IRequest $Request * @internal param \CPath\Request\IRequest $Request * @return void */ function mapKeys(IKeyMapper $Map) { $Map->map('name', $this->getAccountName()); $Map->map('email', $this->getAccountEmail()); $Map->map('type', $this->getTypeName()); }