当前位置: 首页>>代码示例>>PHP>>正文


PHP Brand::setAcceptanceBrandCode方法代码示例

本文整理汇总了PHP中Brand::setAcceptanceBrandCode方法的典型用法代码示例。如果您正苦于以下问题:PHP Brand::setAcceptanceBrandCode方法的具体用法?PHP Brand::setAcceptanceBrandCode怎么用?PHP Brand::setAcceptanceBrandCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Brand的用法示例。


在下文中一共展示了Brand::setAcceptanceBrandCode方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: buildPanEligibility

 private function buildPanEligibility($xml)
 {
     $panEligibility = new PanEligibility();
     $panEligibility->setRequestId((string) $xml->RequestId);
     $tmpSendingEligibility = new SendingEligibility();
     $sendingEligibility = $xml->SendingEligibility;
     $tmpSendingEligibility->setEligible((string) $sendingEligibility->Eligible);
     $tmpSendingEligibility->setReasonCode((string) $sendingEligibility->ReasonCode);
     $tmpSendingEligibility->setAccountNumber((string) $sendingEligibility->AccountNumber);
     $tmpSendingEligibility->setICA((string) $sendingEligibility->ICA);
     $tmpCurrency = new Currency();
     $currency = $sendingEligibility->Currency;
     $tmpCurrency->setAlphaCurrencyCode((string) $currency->AlphaCurrencyCode);
     $tmpCurrency->setNumericCurrencyCode((string) $currency->NumericCurrencyCode);
     $tmpCountry = new Country();
     $country = $sendingEligibility->Country;
     $tmpCountry->setAlphaCountryCode((string) $country->AlphaCountryCode);
     $tmpCountry->setNumericCountryCode((string) $country->NumericCountryCode);
     $tmpBrand = new Brand();
     $brand = $sendingEligibility->Brand;
     $tmpBrand->setAcceptanceBrandCode((string) $brand->AcceptanceBrandCode);
     $tmpBrand->setProductBrandCode((string) $brand->ProductBrandCode);
     $tmpSendingEligibility->setCurrency($tmpCurrency);
     $tmpSendingEligibility->setCountry($tmpCountry);
     $tmpSendingEligibility->setBrand($tmpBrand);
     $panEligibility->setSendingEligibility($tmpSendingEligibility);
     $tmpReceivingEligibility = new ReceivingEligibility();
     $receivingEligibility = $xml->ReceivingEligibility;
     $tmpReceivingEligibility->setEligible((string) $receivingEligibility->Eligible);
     $tmpReceivingEligibility->setReasonCode((string) $receivingEligibility->ReasonCode);
     $tmpReceivingEligibility->setAccountNumber((string) $receivingEligibility->AccountNumber);
     $tmpReceivingEligibility->setICA((string) $receivingEligibility->ICA);
     $tmpCurrency = new Currency();
     $currency = $receivingEligibility->Currency;
     $tmpCurrency->setAlphaCurrencyCode((string) $currency->AlphaCurrencyCode);
     $tmpCurrency->setNumericCurrencyCode((string) $currency->NumericCurrencyCode);
     $tmpCountry = new Country();
     $country = $receivingEligibility->Country;
     $tmpCountry->setAlphaCountryCode((string) $country->AlphaCountryCode);
     $tmpCountry->setNumericCountryCode((string) $country->NumericCountryCode);
     $tmpBrand = new Brand();
     $brand = $receivingEligibility->Brand;
     $tmpBrand->setAcceptanceBrandCode((string) $brand->AcceptanceBrandCode);
     $tmpBrand->setProductBrandCode((string) $brand->ProductBrandCode);
     $tmpReceivingEligibility->setCurrency($tmpCurrency);
     $tmpReceivingEligibility->setCountry($tmpCountry);
     $tmpReceivingEligibility->setBrand($tmpBrand);
     $panEligibility->setReceivingEligibility($tmpReceivingEligibility);
     return $panEligibility;
 }
开发者ID:payene,项目名称:mastercard-api-php,代码行数:50,代码来源:PanEligibilityService.php

示例2: buildInquireMapping

 private function buildInquireMapping($xml)
 {
     $inquireMapping = new InquireMapping();
     $inquireMapping->setRequestId((string) $xml->RequestId);
     $mappings = new Mappings();
     $mappingArray = array();
     foreach ($xml->Mappings->Mapping as $mapping) {
         $tmpMapping = new Mapping();
         $tmpMapping->setMappingId((string) $mapping->MappingId);
         $tmpMapping->setSubscriberId((string) $mapping->SubscriberId);
         $tmpMapping->setAccountUsage((string) $mapping->AccountUsage);
         $tmpMapping->setDefaultIndicator((string) $mapping->DefaultIndicator);
         $tmpMapping->setAlias((string) $mapping->Alias);
         $tmpMapping->setICA((string) $mapping->ICA);
         $tmpMapping->setAccountNumber((string) $mapping->AccountNumber);
         $tmpCardholderFullName = new CardholderFullName();
         $cardholderFullName = $mapping->CardholderFullName;
         $tmpCardholderFullName->setCardholderFirstName((string) $cardholderFullName->CardholderFirstName);
         $tmpCardholderFullName->setCardholderMiddleName((string) $cardholderFullName->CardholderMiddleName);
         $tmpCardholderFullName->setCardholderLastName((string) $cardholderFullName->CardholderLastName);
         $tmpAddress = new Address();
         $address = $mapping->Address;
         $tmpAddress->setLine1((string) $address->line1);
         $tmpAddress->setLine2((string) $address->line2);
         $tmpAddress->setCity((string) $address->City);
         $tmpAddress->setCountrySubdivision((string) $address->CountrySubdivision);
         $tmpAddress->setPostalCode((string) $address->PostalCode);
         $tmpAddress->setCountry((string) $address->Country);
         $tmpReceivingEligibility = new ReceivingEligibility();
         $receivingEligibility = $mapping->ReceivingEligibility;
         $tmpReceivingEligibility->setEligible((string) $receivingEligibility->Eligible);
         $tmpCurrency = new Currency();
         $currency = $receivingEligibility->Currency;
         $tmpCurrency->setAlphaCurrencyCode((string) $currency->AlphaCurrencyCode);
         $tmpCurrency->setNumericCurrencyCode((string) $currency->NumericCurrencyCode);
         $tmpCountry = new Country();
         $country = $receivingEligibility->Country;
         $tmpCountry->setAlphaCountryCode((string) $country->AlphaCountryCode);
         $tmpCountry->setAlphaCountryCode((string) $country->NumericCountryCode);
         $tmpBrand = new Brand();
         $brand = $receivingEligibility->Brand;
         $tmpBrand->setAcceptanceBrandCode((string) $brand->AcceptanceBrandCode);
         $tmpBrand->setProductBrandCode((string) $brand->ProductBrandCode);
         $tmpMapping->setExpiryDate((string) $mapping->ExpiryDate);
         $tmpReceivingEligibility->setCurrency($tmpCurrency);
         $tmpReceivingEligibility->setCountry($tmpCountry);
         $tmpReceivingEligibility->setBrand($tmpBrand);
         $tmpMapping->setCardholderFullName($tmpCardholderFullName);
         $tmpMapping->setAddress($tmpAddress);
         $tmpMapping->setReceivingEligibility($tmpReceivingEligibility);
         array_push($mappingArray, $tmpMapping);
     }
     $mappings->setMapping($mappingArray);
     $inquireMapping->setMappings($mappings);
     return $inquireMapping;
 }
开发者ID:payene,项目名称:mastercard-api-php,代码行数:56,代码来源:CardMappingService.php


注:本文中的Brand::setAcceptanceBrandCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。