first commit

This commit is contained in:
2024-04-01 09:54:43 +08:00
commit 899d816bc3
795 changed files with 130040 additions and 0 deletions

View File

@@ -0,0 +1,579 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account;
use Yeepay\Yop\Sdk\Client\ClientExecutionParams;
use Yeepay\Yop\Sdk\Client\ClientHandler;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Exception\YopClientException;
use Yeepay\Yop\Sdk\Service\Account\Model as Model;
class AccountClient
{
/**
* @var ClientHandler
*/
private $clientHandler;
/**
* AccountClient constructor.
* @param ClientParams $clientParams
*/
function __construct(ClientParams $clientParams)
{
$this->clientHandler = new ClientHandler($clientParams);
}
/**
* @param Model\AccountinfosQueryRequest $request
* @return Model\AccountinfosQueryResponse
* @throws YopClientException
*/
public function accountinfosQuery(Model\AccountinfosQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\AccountinfosQueryRequestMarshaller::getInstance(),
Model\AccountinfosQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\AutoWithdrawRuleCancelRequest $request
* @return Model\AutoWithdrawRuleCancelResponse
* @throws YopClientException
*/
public function autoWithdrawRuleCancel(Model\AutoWithdrawRuleCancelRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\AutoWithdrawRuleCancelRequestMarshaller::getInstance(),
Model\AutoWithdrawRuleCancelResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\AutoWithdrawRuleQueryRequest $request
* @return Model\AutoWithdrawRuleQueryResponse
* @throws YopClientException
*/
public function autoWithdrawRuleQuery(Model\AutoWithdrawRuleQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\AutoWithdrawRuleQueryRequestMarshaller::getInstance(),
Model\AutoWithdrawRuleQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\AutoWithdrawRuleSetRequest $request
* @return Model\AutoWithdrawRuleSetResponse
* @throws YopClientException
*/
public function autoWithdrawRuleSet(Model\AutoWithdrawRuleSetRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\AutoWithdrawRuleSetRequestMarshaller::getInstance(),
Model\AutoWithdrawRuleSetResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\BalanceBankAccountListRequest $request
* @return Model\BalanceBankAccountListResponse
* @throws YopClientException
*/
public function balanceBankAccountList(Model\BalanceBankAccountListRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
if ($request->getBankCode() == null) {
throw new YopClientException("request.bankCode is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\BalanceBankAccountListRequestMarshaller::getInstance(),
Model\BalanceBankAccountListResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\BalanceQueryRequest $request
* @return Model\BalanceQueryResponse
* @throws YopClientException
*/
public function balanceQuery(Model\BalanceQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\BalanceQueryRequestMarshaller::getInstance(),
Model\BalanceQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\EnterpriseAccountPayOrderRequest $request
* @return Model\EnterpriseAccountPayOrderResponse
* @throws YopClientException
*/
public function enterpriseAccountPayOrder(Model\EnterpriseAccountPayOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getBody() == null) {
throw new YopClientException("request.body is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\EnterpriseAccountPayOrderRequestMarshaller::getInstance(),
Model\EnterpriseAccountPayOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\EnterpriseAutoPaymentOrderRequest $request
* @return Model\EnterpriseAutoPaymentOrderResponse
* @throws YopClientException
*/
public function enterpriseAutoPaymentOrder(Model\EnterpriseAutoPaymentOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\EnterpriseAutoPaymentOrderRequestMarshaller::getInstance(),
Model\EnterpriseAutoPaymentOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\EnterpriseAutoPaymentQueryRequest $request
* @return Model\EnterpriseAutoPaymentQueryResponse
* @throws YopClientException
*/
public function enterpriseAutoPaymentQuery(Model\EnterpriseAutoPaymentQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\EnterpriseAutoPaymentQueryRequestMarshaller::getInstance(),
Model\EnterpriseAutoPaymentQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\EnterpriseWithholdingOrderRequest $request
* @return Model\EnterpriseWithholdingOrderResponse
* @throws YopClientException
*/
public function enterpriseWithholdingOrder(Model\EnterpriseWithholdingOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\EnterpriseWithholdingOrderRequestMarshaller::getInstance(),
Model\EnterpriseWithholdingOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\PayCancelRequest $request
* @return Model\PayCancelResponse
* @throws YopClientException
*/
public function payCancel(Model\PayCancelRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\PayCancelRequestMarshaller::getInstance(),
Model\PayCancelResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\PayOrderRequest $request
* @return Model\PayOrderResponse
* @throws YopClientException
*/
public function payOrder(Model\PayOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\PayOrderRequestMarshaller::getInstance(),
Model\PayOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\PayQueryRequest $request
* @return Model\PayQueryResponse
* @throws YopClientException
*/
public function payQuery(Model\PayQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\PayQueryRequestMarshaller::getInstance(),
Model\PayQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\ReceiptGetRequest $request
* @return Model\ReceiptGetResponse
* @throws YopClientException
*/
public function receiptGet(Model\ReceiptGetRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
if ($request->getOrderNo() == null) {
throw new YopClientException("request.orderNo is required.");
}
if ($request->getTradeType() == null) {
throw new YopClientException("request.tradeType is required.");
}
$clientExecutionParams = new ClientExecutionParams($request, Model\ReceiptGetRequestMarshaller::getInstance(),
Model\ReceiptGetResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\RechargeBankOrderRequest $request
* @return Model\RechargeBankOrderResponse
* @throws YopClientException
*/
public function rechargeBankOrder(Model\RechargeBankOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\RechargeBankOrderRequestMarshaller::getInstance(),
Model\RechargeBankOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\RechargeOnlinebankOrderRequest $request
* @return Model\RechargeOnlinebankOrderResponse
* @throws YopClientException
*/
public function rechargeOnlinebankOrder(Model\RechargeOnlinebankOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\RechargeOnlinebankOrderRequestMarshaller::getInstance(),
Model\RechargeOnlinebankOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\RechargeOrderRequest $request
* @return Model\RechargeOrderResponse
* @throws YopClientException
*/
public function rechargeOrder(Model\RechargeOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\RechargeOrderRequestMarshaller::getInstance(),
Model\RechargeOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\RechargeQueryRequest $request
* @return Model\RechargeQueryResponse
* @throws YopClientException
*/
public function rechargeQuery(Model\RechargeQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\RechargeQueryRequestMarshaller::getInstance(),
Model\RechargeQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\SupplierApplyRequest $request
* @return Model\SupplierApplyResponse
* @throws YopClientException
*/
public function supplierApply(Model\SupplierApplyRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getBody() == null) {
throw new YopClientException("request.body is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\SupplierApplyRequestMarshaller::getInstance(),
Model\SupplierApplyResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\SupplierPayOrderRequest $request
* @return Model\SupplierPayOrderResponse
* @throws YopClientException
*/
public function supplierPayOrder(Model\SupplierPayOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\SupplierPayOrderRequestMarshaller::getInstance(),
Model\SupplierPayOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\SupplierQueryRequest $request
* @return Model\SupplierQueryResponse
* @throws YopClientException
*/
public function supplierQuery(Model\SupplierQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\SupplierQueryRequestMarshaller::getInstance(),
Model\SupplierQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\SupplierQueryProgressRequest $request
* @return Model\SupplierQueryProgressResponse
* @throws YopClientException
*/
public function supplierQueryProgress(Model\SupplierQueryProgressRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getRequestNo() == null) {
throw new YopClientException("request.requestNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\SupplierQueryProgressRequestMarshaller::getInstance(),
Model\SupplierQueryProgressResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\TransferB2bOrderRequest $request
* @return Model\TransferB2bOrderResponse
* @throws YopClientException
*/
public function transferB2bOrder(Model\TransferB2bOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\TransferB2bOrderRequestMarshaller::getInstance(),
Model\TransferB2bOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\TransferB2bQueryRequest $request
* @return Model\TransferB2bQueryResponse
* @throws YopClientException
*/
public function transferB2bQuery(Model\TransferB2bQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\TransferB2bQueryRequestMarshaller::getInstance(),
Model\TransferB2bQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\WithdrawCardBindRequest $request
* @return Model\WithdrawCardBindResponse
* @throws YopClientException
*/
public function withdrawCardBind(Model\WithdrawCardBindRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\WithdrawCardBindRequestMarshaller::getInstance(),
Model\WithdrawCardBindResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\WithdrawCardModifyRequest $request
* @return Model\WithdrawCardModifyResponse
* @throws YopClientException
*/
public function withdrawCardModify(Model\WithdrawCardModifyRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\WithdrawCardModifyRequestMarshaller::getInstance(),
Model\WithdrawCardModifyResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\WithdrawCardQueryRequest $request
* @return Model\WithdrawCardQueryResponse
* @throws YopClientException
*/
public function withdrawCardQuery(Model\WithdrawCardQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getMerchantNo() == null) {
throw new YopClientException("request.merchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\WithdrawCardQueryRequestMarshaller::getInstance(),
Model\WithdrawCardQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\WithdrawOrderRequest $request
* @return Model\WithdrawOrderResponse
* @throws YopClientException
*/
public function withdrawOrder(Model\WithdrawOrderRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\WithdrawOrderRequestMarshaller::getInstance(),
Model\WithdrawOrderResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
/**
* @param Model\WithdrawQueryRequest $request
* @return Model\WithdrawQueryResponse
* @throws YopClientException
*/
public function withdrawQuery(Model\WithdrawQueryRequest $request)
{
if ($request == null) {
throw new YopClientException("request is required.");
}
if ($request->getParentMerchantNo() == null) {
throw new YopClientException("request.parentMerchantNo is required.");
}
$clientExecutionParams = new ClientExecutionParams($request,
Model\WithdrawQueryRequestMarshaller::getInstance(),
Model\WithdrawQueryResponseUnMarshaller::getInstance());
return $this->clientHandler->execute($clientExecutionParams);
}
}

View File

@@ -0,0 +1,126 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account;
use Yeepay\Yop\Sdk\Auth\AuthorityReqRegistryImpl;
use Yeepay\Yop\Sdk\Auth\AuthorizationReqRegistry;
use Yeepay\Yop\Sdk\Auth\AuthorizationReqSupport;
use Yeepay\Yop\Sdk\Client\ClientParams;
use Yeepay\Yop\Sdk\Client\Support\ClientParamsSupport;
use Yeepay\Yop\Sdk\Config\AppSdkConfig;
use Yeepay\Yop\Sdk\Config\AppSdkConfigProvider;
use Yeepay\Yop\Sdk\Config\DefaultAppSdkConfigProvider;
use Yeepay\Yop\Sdk\Exception\YopClientException;
class AccountClientBuilder
{
/**
* @var AuthorizationReqRegistry
*/
private static $authorizationReqRegistry;
public static function __init()
{
self::$authorizationReqRegistry = new AuthorityReqRegistryImpl();
self::$authorizationReqRegistry->register('accountinfosQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('autoWithdrawRuleCancel',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('autoWithdrawRuleQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('autoWithdrawRuleSet',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('balanceBankAccountList',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('balanceQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('enterpriseAccountPayOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('enterpriseAutoPaymentOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('enterpriseAutoPaymentQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('enterpriseWithholdingOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('payCancel',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('payOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('payQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('receiptGet',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('rechargeBankOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('rechargeOnlinebankOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('rechargeOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('rechargeQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('supplierApply',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('supplierPayOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('supplierQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('supplierQueryProgress',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('transferB2bOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('transferB2bQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('withdrawCardBind',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('withdrawCardModify',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('withdrawCardQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('withdrawOrder',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
self::$authorizationReqRegistry->register('withdrawQuery',
AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256'));
}
/**
* @var ClientParams
*/
private $clientParams;
/**
* AccountClientBuilder constructor.
* @param ClientParams $clientParams
*/
public function __construct(ClientParams $clientParams)
{
$this->clientParams = $clientParams;
}
public function build()
{
return new AccountClient($this->clientParams);
}
/**
* @param $config AppSdkConfig|array|AppSdkConfigProvider
* @return AccountClientBuilder
* @throws YopClientException
*/
public static function builder($config)
{
$appSdkConfigProvider = null;
if ($config instanceof AppSdkConfigProvider) {
$appSdkConfigProvider = $config;
} else {
$appSdkConfigProvider = new DefaultAppSdkConfigProvider($config);
}
$clientParams = ClientParamsSupport::generateClientParams($appSdkConfigProvider);
$clientParams->setAuthorizationReqRegistry(self::$authorizationReqRegistry);
return new AccountClientBuilder($clientParams);
}
}
AccountClientBuilder::__init();

View File

@@ -0,0 +1,348 @@
<?php
/**
* AccountinfosQueryAccountDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* AccountinfosQueryAccountDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description
* @link https://github.com/swagger-api/swagger-codegen
*/
class AccountinfosQueryAccountDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'AccountinfosQueryAccountDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'accountType' => 'string',
'createTime' => 'string',
'balance' => 'float',
'accountStatus' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'accountType' => null,
'createTime' => 'date-time',
'balance' => null,
'accountStatus' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'accountType' => 'accountType',
'createTime' => 'createTime',
'balance' => 'balance',
'accountStatus' => 'accountStatus',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'accountType' => 'setAccountType',
'createTime' => 'setCreateTime',
'balance' => 'setBalance',
'accountStatus' => 'setAccountStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'accountType' => 'getAccountType',
'createTime' => 'getCreateTime',
'balance' => 'getBalance',
'accountStatus' => 'getAccountStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null;
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
$this->container['balance'] = isset($data['balance']) ? $data['balance'] : null;
$this->container['accountStatus'] = isset($data['accountStatus']) ? $data['accountStatus'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets accountType
* @return string
*/
public function getAccountType()
{
return $this->container['accountType'];
}
/**
* Sets accountType
* @param string $accountType 账户类型
* @return $this
*/
public function setAccountType($accountType)
{
$this->container['accountType'] = $accountType;
return $this;
}
/**
* Gets createTime
* @return string
*/
public function getCreateTime()
{
return $this->container['createTime'];
}
/**
* Sets createTime
* @param string $createTime 开户时间
* @return $this
*/
public function setCreateTime($createTime)
{
$this->container['createTime'] = $createTime;
return $this;
}
/**
* Gets balance
* @return float
*/
public function getBalance()
{
return $this->container['balance'];
}
/**
* Sets balance
* @param float $balance 余额
* @return $this
*/
public function setBalance($balance)
{
$this->container['balance'] = $balance;
return $this;
}
/**
* Gets accountStatus
* @return string
*/
public function getAccountStatus()
{
return $this->container['accountStatus'];
}
/**
* Sets accountStatus
* @param string $accountStatus 账户状态
* @return $this
*/
public function setAccountStatus($accountStatus)
{
$this->container['accountStatus'] = $accountStatus;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,401 @@
<?php
/**
* AccountinfosQueryQueryAccountInfoListRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* AccountinfosQueryQueryAccountInfoListRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class AccountinfosQueryQueryAccountInfoListRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'AccountinfosQueryQueryAccountInfoListRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'initiateMerchantNo' => 'string',
'merchantNo' => 'string',
'totalAccountBalance' => 'float',
'accountInfoList' => '\Yeepay\Yop\Sdk\Service\Account\Model\AccountinfosQueryAccountDTOResult[]',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'initiateMerchantNo' => null,
'merchantNo' => null,
'totalAccountBalance' => null,
'accountInfoList' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'initiateMerchantNo' => 'initiateMerchantNo',
'merchantNo' => 'merchantNo',
'totalAccountBalance' => 'totalAccountBalance',
'accountInfoList' => 'accountInfoList',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'initiateMerchantNo' => 'setInitiateMerchantNo',
'merchantNo' => 'setMerchantNo',
'totalAccountBalance' => 'setTotalAccountBalance',
'accountInfoList' => 'setAccountInfoList',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'initiateMerchantNo' => 'getInitiateMerchantNo',
'merchantNo' => 'getMerchantNo',
'totalAccountBalance' => 'getTotalAccountBalance',
'accountInfoList' => 'getAccountInfoList',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['initiateMerchantNo'] = isset($data['initiateMerchantNo']) ? $data['initiateMerchantNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['totalAccountBalance'] = isset($data['totalAccountBalance']) ? $data['totalAccountBalance'] : null;
$this->container['accountInfoList'] = isset($data['accountInfoList']) ? $data['accountInfoList'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets initiateMerchantNo
* @return string
*/
public function getInitiateMerchantNo()
{
return $this->container['initiateMerchantNo'];
}
/**
* Sets initiateMerchantNo
* @param string $initiateMerchantNo 发起方商户编号
* @return $this
*/
public function setInitiateMerchantNo($initiateMerchantNo)
{
$this->container['initiateMerchantNo'] = $initiateMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets totalAccountBalance
* @return float
*/
public function getTotalAccountBalance()
{
return $this->container['totalAccountBalance'];
}
/**
* Sets totalAccountBalance
* @param float $totalAccountBalance 账户总余额
* @return $this
*/
public function setTotalAccountBalance($totalAccountBalance)
{
$this->container['totalAccountBalance'] = $totalAccountBalance;
return $this;
}
/**
* Gets accountInfoList
* @return \Yeepay\Yop\Sdk\Service\Account\Model\AccountinfosQueryAccountDTOResult[]
*/
public function getAccountInfoList()
{
return $this->container['accountInfoList'];
}
/**
* Sets accountInfoList
* @param \Yeepay\Yop\Sdk\Service\Account\Model\AccountinfosQueryAccountDTOResult[] $accountInfoList 账户信息列表
* @return $this
*/
public function setAccountInfoList($accountInfoList)
{
$this->container['accountInfoList'] = $accountInfoList;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,41 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class AccountinfosQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return AccountinfosQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'accountinfosQuery';
}
}

View File

@@ -0,0 +1,77 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class AccountinfosQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var AccountinfosQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AccountinfosQueryRequestMarshaller();
}
/**
* @return AccountinfosQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/accountinfos/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param AccountinfosQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
$internalRequest->addParameter('merchantNo',ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
return $internalRequest;
}
}
AccountinfosQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class AccountinfosQueryResponse extends BaseResponse
{
/**
* @var AccountinfosQueryQueryAccountInfoListRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\AccountinfosQueryQueryAccountInfoListRespDTOResult';
}
/**
* @param AccountinfosQueryQueryAccountInfoListRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return AccountinfosQueryQueryAccountInfoListRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class AccountinfosQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var AccountinfosQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AccountinfosQueryResponseUnMarshaller();
}
/**
* @return AccountinfosQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return AccountinfosQueryResponse
*/
protected function getResponseInstance()
{
return new AccountinfosQueryResponse();
}
}
AccountinfosQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,93 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class AutoWithdrawRuleCancelRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $ruleId;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return AutoWithdrawRuleCancelRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return AutoWithdrawRuleCancelRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets ruleId
* @return string
*/
public function getRuleId()
{
return $this->ruleId;
}
/**
* Sets ruleId
* @param string $ruleId
* @return AutoWithdrawRuleCancelRequest
*/
public function setRuleId($ruleId)
{
$this->ruleId = $ruleId;
return $this;
}
public static function getOperationId()
{
return 'autoWithdrawRuleCancel';
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class AutoWithdrawRuleCancelRequestMarshaller implements RequestMarshaller
{
/**
* @var AutoWithdrawRuleCancelRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AutoWithdrawRuleCancelRequestMarshaller();
}
/**
* @return AutoWithdrawRuleCancelRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/auto-withdraw-rule/cancel';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param AutoWithdrawRuleCancelRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getRuleId() != null) {
$internalRequest->addParameter('ruleId',
ObjectSerializer::sanitizeForSerialization($request->getRuleId(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
AutoWithdrawRuleCancelRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class AutoWithdrawRuleCancelResponse extends BaseResponse
{
/**
* @var AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult';
}
/**
* @param AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class AutoWithdrawRuleCancelResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var AutoWithdrawRuleCancelResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AutoWithdrawRuleCancelResponseUnMarshaller();
}
/**
* @return AutoWithdrawRuleCancelResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return AutoWithdrawRuleCancelResponse
*/
protected function getResponseInstance()
{
return new AutoWithdrawRuleCancelResponse();
}
}
AutoWithdrawRuleCancelResponseUnMarshaller::__init();

View File

@@ -0,0 +1,293 @@
<?php
/**
* AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'AutoWithdrawRuleCancelYopAutoWithdrawRuleCancelResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 系统返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 系统返回描述
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,510 @@
<?php
/**
* AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description
* @link https://github.com/swagger-api/swagger-codegen
*/
class AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'ruleId' => 'string',
'createTime' => 'string',
'merchantNo' => 'string',
'status' => 'string',
'receiveType' => 'string',
'bindId' => 'string',
'bankAccountNo' => 'string',
'triggerTime' => 'string',
'remainAmount' => 'float',
'remark' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'ruleId' => null,
'createTime' => 'date-time',
'merchantNo' => null,
'status' => null,
'receiveType' => null,
'bindId' => null,
'bankAccountNo' => null,
'triggerTime' => null,
'remainAmount' => null,
'remark' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'ruleId' => 'ruleId',
'createTime' => 'createTime',
'merchantNo' => 'merchantNo',
'status' => 'status',
'receiveType' => 'receiveType',
'bindId' => 'bindId',
'bankAccountNo' => 'bankAccountNo',
'triggerTime' => 'triggerTime',
'remainAmount' => 'remainAmount',
'remark' => 'remark',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'ruleId' => 'setRuleId',
'createTime' => 'setCreateTime',
'merchantNo' => 'setMerchantNo',
'status' => 'setStatus',
'receiveType' => 'setReceiveType',
'bindId' => 'setBindId',
'bankAccountNo' => 'setBankAccountNo',
'triggerTime' => 'setTriggerTime',
'remainAmount' => 'setRemainAmount',
'remark' => 'setRemark',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'ruleId' => 'getRuleId',
'createTime' => 'getCreateTime',
'merchantNo' => 'getMerchantNo',
'status' => 'getStatus',
'receiveType' => 'getReceiveType',
'bindId' => 'getBindId',
'bankAccountNo' => 'getBankAccountNo',
'triggerTime' => 'getTriggerTime',
'remainAmount' => 'getRemainAmount',
'remark' => 'getRemark',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['ruleId'] = isset($data['ruleId']) ? $data['ruleId'] : null;
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['receiveType'] = isset($data['receiveType']) ? $data['receiveType'] : null;
$this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null;
$this->container['bankAccountNo'] = isset($data['bankAccountNo']) ? $data['bankAccountNo'] : null;
$this->container['triggerTime'] = isset($data['triggerTime']) ? $data['triggerTime'] : null;
$this->container['remainAmount'] = isset($data['remainAmount']) ? $data['remainAmount'] : null;
$this->container['remark'] = isset($data['remark']) ? $data['remark'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets ruleId
* @return string
*/
public function getRuleId()
{
return $this->container['ruleId'];
}
/**
* Sets ruleId
* @param string $ruleId 规则id
* @return $this
*/
public function setRuleId($ruleId)
{
$this->container['ruleId'] = $ruleId;
return $this;
}
/**
* Gets createTime
* @return string
*/
public function getCreateTime()
{
return $this->container['createTime'];
}
/**
* Sets createTime
* @param string $createTime 规则创建时间
* @return $this
*/
public function setCreateTime($createTime)
{
$this->container['createTime'] = $createTime;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 交易主体商编
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 规则状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets receiveType
* @return string
*/
public function getReceiveType()
{
return $this->container['receiveType'];
}
/**
* Sets receiveType
* @param string $receiveType 提现到账类型
* @return $this
*/
public function setReceiveType($receiveType)
{
$this->container['receiveType'] = $receiveType;
return $this;
}
/**
* Gets bindId
* @return string
*/
public function getBindId()
{
return $this->container['bindId'];
}
/**
* Sets bindId
* @param string $bindId 提现卡id
* @return $this
*/
public function setBindId($bindId)
{
$this->container['bindId'] = $bindId;
return $this;
}
/**
* Gets bankAccountNo
* @return string
*/
public function getBankAccountNo()
{
return $this->container['bankAccountNo'];
}
/**
* Sets bankAccountNo
* @param string $bankAccountNo 提现卡卡号
* @return $this
*/
public function setBankAccountNo($bankAccountNo)
{
$this->container['bankAccountNo'] = $bankAccountNo;
return $this;
}
/**
* Gets triggerTime
* @return string
*/
public function getTriggerTime()
{
return $this->container['triggerTime'];
}
/**
* Sets triggerTime
* @param string $triggerTime 触发时间
* @return $this
*/
public function setTriggerTime($triggerTime)
{
$this->container['triggerTime'] = $triggerTime;
return $this;
}
/**
* Gets remainAmount
* @return float
*/
public function getRemainAmount()
{
return $this->container['remainAmount'];
}
/**
* Sets remainAmount
* @param float $remainAmount 保留金额
* @return $this
*/
public function setRemainAmount($remainAmount)
{
$this->container['remainAmount'] = $remainAmount;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->container['remark'];
}
/**
* Sets remark
* @param string $remark 银行附言
* @return $this
*/
public function setRemark($remark)
{
$this->container['remark'] = $remark;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,67 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class AutoWithdrawRuleQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return AutoWithdrawRuleQueryRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return AutoWithdrawRuleQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'autoWithdrawRuleQuery';
}
}

View File

@@ -0,0 +1,79 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class AutoWithdrawRuleQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var AutoWithdrawRuleQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AutoWithdrawRuleQueryRequestMarshaller();
}
/**
* @return AutoWithdrawRuleQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/auto-withdraw-rule/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param AutoWithdrawRuleQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
$internalRequest->addParameter('parentMerchantNo',ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
$internalRequest->addParameter('merchantNo',ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
return $internalRequest;
}
}
AutoWithdrawRuleQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class AutoWithdrawRuleQueryResponse extends BaseResponse
{
/**
* @var AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult';
}
/**
* @param AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class AutoWithdrawRuleQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var AutoWithdrawRuleQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AutoWithdrawRuleQueryResponseUnMarshaller();
}
/**
* @return AutoWithdrawRuleQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return AutoWithdrawRuleQueryResponse
*/
protected function getResponseInstance()
{
return new AutoWithdrawRuleQueryResponse();
}
}
AutoWithdrawRuleQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,320 @@
<?php
/**
* AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'AutoWithdrawRuleQueryYopAutoWithdrawRuleQueryResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'rules' => '\Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult[]',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'rules' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'rules' => 'rules',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'rules' => 'setRules',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'rules' => 'getRules',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['rules'] = isset($data['rules']) ? $data['rules'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 系统返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 系统返回描述
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets rules
* @return \Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult[]
*/
public function getRules()
{
return $this->container['rules'];
}
/**
* Sets rules
* @param \Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleQueryAutoWithdrawRuleDTOResult[] $rules 规则列表
* @return $this
*/
public function setRules($rules)
{
$this->container['rules'] = $rules;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,223 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class AutoWithdrawRuleSetRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $bindId;
/**
* @var string
*/
private $bankAccountNo;
/**
* @var string
*/
private $receiveType;
/**
* @var string
*/
private $triggerTime;
/**
* @var float
*/
private $remainAmount;
/**
* @var string
*/
private $remark;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return AutoWithdrawRuleSetRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return AutoWithdrawRuleSetRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets bindId
* @return string
*/
public function getBindId()
{
return $this->bindId;
}
/**
* Sets bindId
* @param string $bindId
* @return AutoWithdrawRuleSetRequest
*/
public function setBindId($bindId)
{
$this->bindId = $bindId;
return $this;
}
/**
* Gets bankAccountNo
* @return string
*/
public function getBankAccountNo()
{
return $this->bankAccountNo;
}
/**
* Sets bankAccountNo
* @param string $bankAccountNo
* @return AutoWithdrawRuleSetRequest
*/
public function setBankAccountNo($bankAccountNo)
{
$this->bankAccountNo = $bankAccountNo;
return $this;
}
/**
* Gets receiveType
* @return string
*/
public function getReceiveType()
{
return $this->receiveType;
}
/**
* Sets receiveType
* @param string $receiveType
* @return AutoWithdrawRuleSetRequest
*/
public function setReceiveType($receiveType)
{
$this->receiveType = $receiveType;
return $this;
}
/**
* Gets triggerTime
* @return string
*/
public function getTriggerTime()
{
return $this->triggerTime;
}
/**
* Sets triggerTime
* @param string $triggerTime
* @return AutoWithdrawRuleSetRequest
*/
public function setTriggerTime($triggerTime)
{
$this->triggerTime = $triggerTime;
return $this;
}
/**
* Gets remainAmount
* @return float
*/
public function getRemainAmount()
{
return $this->remainAmount;
}
/**
* Sets remainAmount
* @param float $remainAmount
* @return AutoWithdrawRuleSetRequest
*/
public function setRemainAmount($remainAmount)
{
$this->remainAmount = $remainAmount;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
* @param string $remark
* @return AutoWithdrawRuleSetRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
public static function getOperationId()
{
return 'autoWithdrawRuleSet';
}
}

View File

@@ -0,0 +1,109 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class AutoWithdrawRuleSetRequestMarshaller implements RequestMarshaller
{
/**
* @var AutoWithdrawRuleSetRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AutoWithdrawRuleSetRequestMarshaller();
}
/**
* @return AutoWithdrawRuleSetRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/auto-withdraw-rule/set';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param AutoWithdrawRuleSetRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getBindId() != null) {
$internalRequest->addParameter('bindId',
ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'string'));
}
if ($request->getBankAccountNo() != null) {
$internalRequest->addParameter('bankAccountNo',
ObjectSerializer::sanitizeForSerialization($request->getBankAccountNo(), 'string'));
}
if ($request->getReceiveType() != null) {
$internalRequest->addParameter('receiveType',
ObjectSerializer::sanitizeForSerialization($request->getReceiveType(), 'string'));
}
if ($request->getTriggerTime() != null) {
$internalRequest->addParameter('triggerTime',
ObjectSerializer::sanitizeForSerialization($request->getTriggerTime(), 'string'));
}
if ($request->getRemainAmount() != null) {
$internalRequest->addParameter('remainAmount',
ObjectSerializer::sanitizeForSerialization($request->getRemainAmount(), 'float'));
}
if ($request->getRemark() != null) {
$internalRequest->addParameter('remark',
ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
AutoWithdrawRuleSetRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class AutoWithdrawRuleSetResponse extends BaseResponse
{
/**
* @var AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult';
}
/**
* @param AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class AutoWithdrawRuleSetResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var AutoWithdrawRuleSetResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new AutoWithdrawRuleSetResponseUnMarshaller();
}
/**
* @return AutoWithdrawRuleSetResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return AutoWithdrawRuleSetResponse
*/
protected function getResponseInstance()
{
return new AutoWithdrawRuleSetResponse();
}
}
AutoWithdrawRuleSetResponseUnMarshaller::__init();

View File

@@ -0,0 +1,320 @@
<?php
/**
* AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'AutoWithdrawRuleSetYopAutoWithdrawRuleSetResponseDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'ruleId' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'ruleId' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'ruleId' => 'ruleId',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'ruleId' => 'setRuleId',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'ruleId' => 'getRuleId',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['ruleId'] = isset($data['ruleId']) ? $data['ruleId'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回描述
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets ruleId
* @return string
*/
public function getRuleId()
{
return $this->container['ruleId'];
}
/**
* Sets ruleId
* @param string $ruleId 规则id
* @return $this
*/
public function setRuleId($ruleId)
{
$this->container['ruleId'] = $ruleId;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,348 @@
<?php
/**
* BalanceBankAccountListAccountInfoDetailResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* BalanceBankAccountListAccountInfoDetailResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description
* @link https://github.com/swagger-api/swagger-codegen
*/
class BalanceBankAccountListAccountInfoDetailResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'BalanceBankAccountListAccountInfoDetailResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'accountType' => 'string',
'balance' => 'float',
'availableBalance' => 'float',
'freezeBalance' => 'float',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'accountType' => null,
'balance' => null,
'availableBalance' => null,
'freezeBalance' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'accountType' => 'accountType',
'balance' => 'balance',
'availableBalance' => 'availableBalance',
'freezeBalance' => 'freezeBalance',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'accountType' => 'setAccountType',
'balance' => 'setBalance',
'availableBalance' => 'setAvailableBalance',
'freezeBalance' => 'setFreezeBalance',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'accountType' => 'getAccountType',
'balance' => 'getBalance',
'availableBalance' => 'getAvailableBalance',
'freezeBalance' => 'getFreezeBalance',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null;
$this->container['balance'] = isset($data['balance']) ? $data['balance'] : null;
$this->container['availableBalance'] = isset($data['availableBalance']) ? $data['availableBalance'] : null;
$this->container['freezeBalance'] = isset($data['freezeBalance']) ? $data['freezeBalance'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets accountType
* @return string
*/
public function getAccountType()
{
return $this->container['accountType'];
}
/**
* Sets accountType
* @param string $accountType 账户类型
* @return $this
*/
public function setAccountType($accountType)
{
$this->container['accountType'] = $accountType;
return $this;
}
/**
* Gets balance
* @return float
*/
public function getBalance()
{
return $this->container['balance'];
}
/**
* Sets balance
* @param float $balance 账户余额
* @return $this
*/
public function setBalance($balance)
{
$this->container['balance'] = $balance;
return $this;
}
/**
* Gets availableBalance
* @return float
*/
public function getAvailableBalance()
{
return $this->container['availableBalance'];
}
/**
* Sets availableBalance
* @param float $availableBalance 可用余额
* @return $this
*/
public function setAvailableBalance($availableBalance)
{
$this->container['availableBalance'] = $availableBalance;
return $this;
}
/**
* Gets freezeBalance
* @return float
*/
public function getFreezeBalance()
{
return $this->container['freezeBalance'];
}
/**
* Sets freezeBalance
* @param float $freezeBalance 冻结金额
* @return $this
*/
public function setFreezeBalance($freezeBalance)
{
$this->container['freezeBalance'] = $freezeBalance;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,374 @@
<?php
/**
* BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'merchantNo' => 'string',
'totalAccountBalance' => 'float',
'accountInfoList' => '\Yeepay\Yop\Sdk\Service\Account\Model\BalanceBankAccountListAccountInfoDetailResult[]',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'merchantNo' => null,
'totalAccountBalance' => null,
'accountInfoList' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'merchantNo' => 'merchantNo',
'totalAccountBalance' => 'totalAccountBalance',
'accountInfoList' => 'accountInfoList',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'merchantNo' => 'setMerchantNo',
'totalAccountBalance' => 'setTotalAccountBalance',
'accountInfoList' => 'setAccountInfoList',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'merchantNo' => 'getMerchantNo',
'totalAccountBalance' => 'getTotalAccountBalance',
'accountInfoList' => 'getAccountInfoList',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['totalAccountBalance'] = isset($data['totalAccountBalance']) ? $data['totalAccountBalance'] : null;
$this->container['accountInfoList'] = isset($data['accountInfoList']) ? $data['accountInfoList'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回描述
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets totalAccountBalance
* @return float
*/
public function getTotalAccountBalance()
{
return $this->container['totalAccountBalance'];
}
/**
* Sets totalAccountBalance
* @param float $totalAccountBalance 总计金额
* @return $this
*/
public function setTotalAccountBalance($totalAccountBalance)
{
$this->container['totalAccountBalance'] = $totalAccountBalance;
return $this;
}
/**
* Gets accountInfoList
* @return \Yeepay\Yop\Sdk\Service\Account\Model\BalanceBankAccountListAccountInfoDetailResult[]
*/
public function getAccountInfoList()
{
return $this->container['accountInfoList'];
}
/**
* Sets accountInfoList
* @param \Yeepay\Yop\Sdk\Service\Account\Model\BalanceBankAccountListAccountInfoDetailResult[] $accountInfoList 账户信息列表
* @return $this
*/
public function setAccountInfoList($accountInfoList)
{
$this->container['accountInfoList'] = $accountInfoList;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,93 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class BalanceBankAccountListRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $bankCode;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return BalanceBankAccountListRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return BalanceBankAccountListRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets bankCode
* @return string
*/
public function getBankCode()
{
return $this->bankCode;
}
/**
* Sets bankCode
* @param string $bankCode
* @return BalanceBankAccountListRequest
*/
public function setBankCode($bankCode)
{
$this->bankCode = $bankCode;
return $this;
}
public static function getOperationId()
{
return 'balanceBankAccountList';
}
}

View File

@@ -0,0 +1,76 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class BalanceBankAccountListRequestMarshaller implements RequestMarshaller
{
/**
* @var BalanceBankAccountListRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new BalanceBankAccountListRequestMarshaller();
}
/**
* @return BalanceBankAccountListRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/balance/bank-account/list';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param BalanceBankAccountListRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
BalanceBankAccountListRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class BalanceBankAccountListResponse extends BaseResponse
{
/**
* @var BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult';
}
/**
* @param BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return BalanceBankAccountListQueryInnerAndBankAccountInfoRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class BalanceBankAccountListResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var BalanceBankAccountListResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new BalanceBankAccountListResponseUnMarshaller();
}
/**
* @return BalanceBankAccountListResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return BalanceBankAccountListResponse
*/
protected function getResponseInstance()
{
return new BalanceBankAccountListResponse();
}
}
BalanceBankAccountListResponseUnMarshaller::__init();

View File

@@ -0,0 +1,428 @@
<?php
/**
* BalanceQueryAccountInfoRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* BalanceQueryAccountInfoRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class BalanceQueryAccountInfoRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'BalanceQueryAccountInfoRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'merchantNo' => 'string',
'accountNo' => 'string',
'accountCreateTime' => 'string',
'balance' => 'float',
'accountStatus' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'merchantNo' => null,
'accountNo' => null,
'accountCreateTime' => 'date-time',
'balance' => null,
'accountStatus' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'merchantNo' => 'merchantNo',
'accountNo' => 'accountNo',
'accountCreateTime' => 'accountCreateTime',
'balance' => 'balance',
'accountStatus' => 'accountStatus',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'merchantNo' => 'setMerchantNo',
'accountNo' => 'setAccountNo',
'accountCreateTime' => 'setAccountCreateTime',
'balance' => 'setBalance',
'accountStatus' => 'setAccountStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'merchantNo' => 'getMerchantNo',
'accountNo' => 'getAccountNo',
'accountCreateTime' => 'getAccountCreateTime',
'balance' => 'getBalance',
'accountStatus' => 'getAccountStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null;
$this->container['accountCreateTime'] = isset($data['accountCreateTime']) ? $data['accountCreateTime'] : null;
$this->container['balance'] = isset($data['balance']) ? $data['balance'] : null;
$this->container['accountStatus'] = isset($data['accountStatus']) ? $data['accountStatus'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets accountNo
* @return string
*/
public function getAccountNo()
{
return $this->container['accountNo'];
}
/**
* Sets accountNo
* @param string $accountNo 账户编号
* @return $this
*/
public function setAccountNo($accountNo)
{
$this->container['accountNo'] = $accountNo;
return $this;
}
/**
* Gets accountCreateTime
* @return string
*/
public function getAccountCreateTime()
{
return $this->container['accountCreateTime'];
}
/**
* Sets accountCreateTime
* @param string $accountCreateTime 账户创建时间
* @return $this
*/
public function setAccountCreateTime($accountCreateTime)
{
$this->container['accountCreateTime'] = $accountCreateTime;
return $this;
}
/**
* Gets balance
* @return float
*/
public function getBalance()
{
return $this->container['balance'];
}
/**
* Sets balance
* @param float $balance 账户余额
* @return $this
*/
public function setBalance($balance)
{
$this->container['balance'] = $balance;
return $this;
}
/**
* Gets accountStatus
* @return string
*/
public function getAccountStatus()
{
return $this->container['accountStatus'];
}
/**
* Sets accountStatus
* @param string $accountStatus 账户状态
* @return $this
*/
public function setAccountStatus($accountStatus)
{
$this->container['accountStatus'] = $accountStatus;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,41 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class BalanceQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return BalanceQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
public static function getOperationId()
{
return 'balanceQuery';
}
}

View File

@@ -0,0 +1,76 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class BalanceQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var BalanceQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new BalanceQueryRequestMarshaller();
}
/**
* @return BalanceQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/balance/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param BalanceQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
BalanceQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class BalanceQueryResponse extends BaseResponse
{
/**
* @var BalanceQueryAccountInfoRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\BalanceQueryAccountInfoRespDTOResult';
}
/**
* @param BalanceQueryAccountInfoRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return BalanceQueryAccountInfoRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class BalanceQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var BalanceQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new BalanceQueryResponseUnMarshaller();
}
/**
* @return BalanceQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return BalanceQueryResponse
*/
protected function getResponseInstance()
{
return new BalanceQueryResponse();
}
}
BalanceQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,456 @@
<?php
/**
* EnterpriseAccountPayOrderAccountPaymentRequestDtoParam
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* EnterpriseAccountPayOrderAccountPaymentRequestDtoParam Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description 方法签名第0个参数请自行修改arg0等参数的名字
* @link https://github.com/swagger-api/swagger-codegen
*/
class EnterpriseAccountPayOrderAccountPaymentRequestDtoParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'EnterpriseAccountPayOrderAccountPaymentRequestDtoParam';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'appKey' => 'string',
'yopMerchantNo' => 'string',
'parentMerchantNo' => 'string',
'merchantNo' => 'string',
'payerMerchantNo' => 'string',
'marketingProductCode' => 'string',
'orderInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountPayOrderOrderInfoDtoParam',
'merchantRequestIp' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'appKey' => null,
'yopMerchantNo' => null,
'parentMerchantNo' => null,
'merchantNo' => null,
'payerMerchantNo' => null,
'marketingProductCode' => null,
'orderInfo' => null,
'merchantRequestIp' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'appKey' => 'appKey',
'yopMerchantNo' => 'yopMerchantNo',
'parentMerchantNo' => 'parentMerchantNo',
'merchantNo' => 'merchantNo',
'payerMerchantNo' => 'payerMerchantNo',
'marketingProductCode' => 'marketingProductCode',
'orderInfo' => 'orderInfo',
'merchantRequestIp' => 'merchantRequestIp',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'appKey' => 'setAppKey',
'yopMerchantNo' => 'setYopMerchantNo',
'parentMerchantNo' => 'setParentMerchantNo',
'merchantNo' => 'setMerchantNo',
'payerMerchantNo' => 'setPayerMerchantNo',
'marketingProductCode' => 'setMarketingProductCode',
'orderInfo' => 'setOrderInfo',
'merchantRequestIp' => 'setMerchantRequestIp',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'appKey' => 'getAppKey',
'yopMerchantNo' => 'getYopMerchantNo',
'parentMerchantNo' => 'getParentMerchantNo',
'merchantNo' => 'getMerchantNo',
'payerMerchantNo' => 'getPayerMerchantNo',
'marketingProductCode' => 'getMarketingProductCode',
'orderInfo' => 'getOrderInfo',
'merchantRequestIp' => 'getMerchantRequestIp',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null;
$this->container['yopMerchantNo'] = isset($data['yopMerchantNo']) ? $data['yopMerchantNo'] : null;
$this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['payerMerchantNo'] = isset($data['payerMerchantNo']) ? $data['payerMerchantNo'] : null;
$this->container['marketingProductCode'] = isset($data['marketingProductCode']) ? $data['marketingProductCode'] : null;
$this->container['orderInfo'] = isset($data['orderInfo']) ? $data['orderInfo'] : null;
$this->container['merchantRequestIp'] = isset($data['merchantRequestIp']) ? $data['merchantRequestIp'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets appKey
* @return string
*/
public function getAppKey()
{
return $this->container['appKey'];
}
/**
* Sets appKey
* @param string $appKey appKey
* @return $this
*/
public function setAppKey($appKey)
{
$this->container['appKey'] = $appKey;
return $this;
}
/**
* Gets yopMerchantNo
* @return string
*/
public function getYopMerchantNo()
{
return $this->container['yopMerchantNo'];
}
/**
* Sets yopMerchantNo
* @param string $yopMerchantNo yopMerchantNo
* @return $this
*/
public function setYopMerchantNo($yopMerchantNo)
{
$this->container['yopMerchantNo'] = $yopMerchantNo;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->container['parentMerchantNo'];
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo parentMerchantNo
* @return $this
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->container['parentMerchantNo'] = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo merchantNo
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets payerMerchantNo
* @return string
*/
public function getPayerMerchantNo()
{
return $this->container['payerMerchantNo'];
}
/**
* Sets payerMerchantNo
* @param string $payerMerchantNo payerMerchantNo
* @return $this
*/
public function setPayerMerchantNo($payerMerchantNo)
{
$this->container['payerMerchantNo'] = $payerMerchantNo;
return $this;
}
/**
* Gets marketingProductCode
* @return string
*/
public function getMarketingProductCode()
{
return $this->container['marketingProductCode'];
}
/**
* Sets marketingProductCode
* @param string $marketingProductCode marketingProductCode
* @return $this
*/
public function setMarketingProductCode($marketingProductCode)
{
$this->container['marketingProductCode'] = $marketingProductCode;
return $this;
}
/**
* Gets orderInfo
* @return \Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountPayOrderOrderInfoDtoParam
*/
public function getOrderInfo()
{
return $this->container['orderInfo'];
}
/**
* Sets orderInfo
* @param \Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountPayOrderOrderInfoDtoParam $orderInfo orderInfo
* @return $this
*/
public function setOrderInfo($orderInfo)
{
$this->container['orderInfo'] = $orderInfo;
return $this;
}
/**
* Gets merchantRequestIp
* @return string
*/
public function getMerchantRequestIp()
{
return $this->container['merchantRequestIp'];
}
/**
* Sets merchantRequestIp
* @param string $merchantRequestIp merchantRequestIp
* @return $this
*/
public function setMerchantRequestIp($merchantRequestIp)
{
$this->container['merchantRequestIp'] = $merchantRequestIp;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,374 @@
<?php
/**
* EnterpriseAccountPayOrderAccountPaymentRespDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* EnterpriseAccountPayOrderAccountPaymentRespDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class EnterpriseAccountPayOrderAccountPaymentRespDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'EnterpriseAccountPayOrderAccountPaymentRespDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'uniqueOrderNo' => 'string',
'orderId' => 'string',
'orderStatus' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'uniqueOrderNo' => null,
'orderId' => null,
'orderStatus' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'uniqueOrderNo' => 'uniqueOrderNo',
'orderId' => 'orderId',
'orderStatus' => 'orderStatus',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'uniqueOrderNo' => 'setUniqueOrderNo',
'orderId' => 'setOrderId',
'orderStatus' => 'setOrderStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'uniqueOrderNo' => 'getUniqueOrderNo',
'orderId' => 'getOrderId',
'orderStatus' => 'getOrderStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 响应编码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 响应描述信息
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets uniqueOrderNo
* @return string
*/
public function getUniqueOrderNo()
{
return $this->container['uniqueOrderNo'];
}
/**
* Sets uniqueOrderNo
* @param string $uniqueOrderNo 唯一订单号
* @return $this
*/
public function setUniqueOrderNo($uniqueOrderNo)
{
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
return $this;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->container['orderId'];
}
/**
* Sets orderId
* @param string $orderId 请求订单号
* @return $this
*/
public function setOrderId($orderId)
{
$this->container['orderId'] = $orderId;
return $this;
}
/**
* Gets orderStatus
* @return string
*/
public function getOrderStatus()
{
return $this->container['orderStatus'];
}
/**
* Sets orderStatus
* @param string $orderStatus 订单状态
* @return $this
*/
public function setOrderStatus($orderStatus)
{
$this->container['orderStatus'] = $orderStatus;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,429 @@
<?php
/**
* EnterpriseAccountPayOrderOrderInfoDtoParam
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* EnterpriseAccountPayOrderOrderInfoDtoParam Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description
* @link https://github.com/swagger-api/swagger-codegen
*/
class EnterpriseAccountPayOrderOrderInfoDtoParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'EnterpriseAccountPayOrderOrderInfoDtoParam';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'orderId' => 'string',
'orderAmount' => 'float',
'fundProcessType' => 'string',
'goodsName' => 'string',
'expiredTime' => 'string',
'notifyUrl' => 'string',
'memo' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'orderId' => null,
'orderAmount' => null,
'fundProcessType' => null,
'goodsName' => null,
'expiredTime' => null,
'notifyUrl' => null,
'memo' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'orderId' => 'orderId',
'orderAmount' => 'orderAmount',
'fundProcessType' => 'fundProcessType',
'goodsName' => 'goodsName',
'expiredTime' => 'expiredTime',
'notifyUrl' => 'notifyUrl',
'memo' => 'memo',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'orderId' => 'setOrderId',
'orderAmount' => 'setOrderAmount',
'fundProcessType' => 'setFundProcessType',
'goodsName' => 'setGoodsName',
'expiredTime' => 'setExpiredTime',
'notifyUrl' => 'setNotifyUrl',
'memo' => 'setMemo',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'orderId' => 'getOrderId',
'orderAmount' => 'getOrderAmount',
'fundProcessType' => 'getFundProcessType',
'goodsName' => 'getGoodsName',
'expiredTime' => 'getExpiredTime',
'notifyUrl' => 'getNotifyUrl',
'memo' => 'getMemo',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
$this->container['fundProcessType'] = isset($data['fundProcessType']) ? $data['fundProcessType'] : null;
$this->container['goodsName'] = isset($data['goodsName']) ? $data['goodsName'] : null;
$this->container['expiredTime'] = isset($data['expiredTime']) ? $data['expiredTime'] : null;
$this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
$this->container['memo'] = isset($data['memo']) ? $data['memo'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->container['orderId'];
}
/**
* Sets orderId
* @param string $orderId orderId
* @return $this
*/
public function setOrderId($orderId)
{
$this->container['orderId'] = $orderId;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount orderAmount
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Gets fundProcessType
* @return string
*/
public function getFundProcessType()
{
return $this->container['fundProcessType'];
}
/**
* Sets fundProcessType
* @param string $fundProcessType fundProcessType
* @return $this
*/
public function setFundProcessType($fundProcessType)
{
$this->container['fundProcessType'] = $fundProcessType;
return $this;
}
/**
* Gets goodsName
* @return string
*/
public function getGoodsName()
{
return $this->container['goodsName'];
}
/**
* Sets goodsName
* @param string $goodsName goodsName
* @return $this
*/
public function setGoodsName($goodsName)
{
$this->container['goodsName'] = $goodsName;
return $this;
}
/**
* Gets expiredTime
* @return string
*/
public function getExpiredTime()
{
return $this->container['expiredTime'];
}
/**
* Sets expiredTime
* @param string $expiredTime expiredTime
* @return $this
*/
public function setExpiredTime($expiredTime)
{
$this->container['expiredTime'] = $expiredTime;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->container['notifyUrl'];
}
/**
* Sets notifyUrl
* @param string $notifyUrl notifyUrl
* @return $this
*/
public function setNotifyUrl($notifyUrl)
{
$this->container['notifyUrl'] = $notifyUrl;
return $this;
}
/**
* Gets memo
* @return string
*/
public function getMemo()
{
return $this->container['memo'];
}
/**
* Sets memo
* @param string $memo memo
* @return $this
*/
public function setMemo($memo)
{
$this->container['memo'] = $memo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,41 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class EnterpriseAccountPayOrderRequest extends BaseRequest
{
/**
* @var
*/
private $body;
/**
* Gets body
* @return
*/
public function getBody()
{
return $this->body;
}
/**
* Sets body
* @param $body
* @return EnterpriseAccountPayOrderRequest
*/
public function setBody($body)
{
$this->body = $body;
return $this;
}
public static function getOperationId()
{
return 'enterpriseAccountPayOrder';
}
}

View File

@@ -0,0 +1,79 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class EnterpriseAccountPayOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var EnterpriseAccountPayOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseAccountPayOrderRequestMarshaller();
}
/**
* @return EnterpriseAccountPayOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/enterprise/account-pay/order';
/**
* @var string
*/
private $contentType = 'application/json';
/**
* @param EnterpriseAccountPayOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$content = \GuzzleHttp\json_encode($request->getBody());
$internalRequest->setContent(\GuzzleHttp\Psr7\stream_for($content));
$internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content));
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
EnterpriseAccountPayOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class EnterpriseAccountPayOrderResponse extends BaseResponse
{
/**
* @var EnterpriseAccountPayOrderAccountPaymentRespDtoResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountPayOrderAccountPaymentRespDtoResult';
}
/**
* @param EnterpriseAccountPayOrderAccountPaymentRespDtoResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return EnterpriseAccountPayOrderAccountPaymentRespDtoResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class EnterpriseAccountPayOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var EnterpriseAccountPayOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseAccountPayOrderResponseUnMarshaller();
}
/**
* @return EnterpriseAccountPayOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return EnterpriseAccountPayOrderResponse
*/
protected function getResponseInstance()
{
return new EnterpriseAccountPayOrderResponse();
}
}
EnterpriseAccountPayOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,374 @@
<?php
/**
* EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'orderId' => 'string',
'uniqueOrderNo' => 'string',
'orderStatus' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'orderId' => null,
'uniqueOrderNo' => null,
'orderStatus' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'orderId' => 'orderId',
'uniqueOrderNo' => 'uniqueOrderNo',
'orderStatus' => 'orderStatus',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'orderId' => 'setOrderId',
'uniqueOrderNo' => 'setUniqueOrderNo',
'orderStatus' => 'setOrderStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'orderId' => 'getOrderId',
'uniqueOrderNo' => 'getUniqueOrderNo',
'orderStatus' => 'getOrderStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 请求状态码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 响应描述信息
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->container['orderId'];
}
/**
* Sets orderId
* @param string $orderId 商户请求订单号
* @return $this
*/
public function setOrderId($orderId)
{
$this->container['orderId'] = $orderId;
return $this;
}
/**
* Gets uniqueOrderNo
* @return string
*/
public function getUniqueOrderNo()
{
return $this->container['uniqueOrderNo'];
}
/**
* Sets uniqueOrderNo
* @param string $uniqueOrderNo 易宝唯一订单号
* @return $this
*/
public function setUniqueOrderNo($uniqueOrderNo)
{
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
return $this;
}
/**
* Gets orderStatus
* @return string
*/
public function getOrderStatus()
{
return $this->container['orderStatus'];
}
/**
* Sets orderStatus
* @param string $orderStatus 订单状态
* @return $this
*/
public function setOrderStatus($orderStatus)
{
$this->container['orderStatus'] = $orderStatus;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,249 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class EnterpriseAutoPaymentOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $orderId;
/**
* @var float
*/
private $orderAmount;
/**
* @var string
*/
private $fundProcessType;
/**
* @var string
*/
private $goodsName;
/**
* @var string
*/
private $expiredTime;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $memo;
/**
* @var string
*/
private $payerNotifyUrl;
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->orderId;
}
/**
* Sets orderId
* @param string $orderId
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setOrderId($orderId)
{
$this->orderId = $orderId;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->orderAmount;
}
/**
* Sets orderAmount
* @param float $orderAmount
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setOrderAmount($orderAmount)
{
$this->orderAmount = $orderAmount;
return $this;
}
/**
* Gets fundProcessType
* @return string
*/
public function getFundProcessType()
{
return $this->fundProcessType;
}
/**
* Sets fundProcessType
* @param string $fundProcessType
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setFundProcessType($fundProcessType)
{
$this->fundProcessType = $fundProcessType;
return $this;
}
/**
* Gets goodsName
* @return string
*/
public function getGoodsName()
{
return $this->goodsName;
}
/**
* Sets goodsName
* @param string $goodsName
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setGoodsName($goodsName)
{
$this->goodsName = $goodsName;
return $this;
}
/**
* Gets expiredTime
* @return string
*/
public function getExpiredTime()
{
return $this->expiredTime;
}
/**
* Sets expiredTime
* @param string $expiredTime
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setExpiredTime($expiredTime)
{
$this->expiredTime = $expiredTime;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets memo
* @return string
*/
public function getMemo()
{
return $this->memo;
}
/**
* Sets memo
* @param string $memo
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setMemo($memo)
{
$this->memo = $memo;
return $this;
}
/**
* Gets payerNotifyUrl
* @return string
*/
public function getPayerNotifyUrl()
{
return $this->payerNotifyUrl;
}
/**
* Sets payerNotifyUrl
* @param string $payerNotifyUrl
* @return EnterpriseAutoPaymentOrderRequest
*/
public function setPayerNotifyUrl($payerNotifyUrl)
{
$this->payerNotifyUrl = $payerNotifyUrl;
return $this;
}
public static function getOperationId()
{
return 'enterpriseAutoPaymentOrder';
}
}

View File

@@ -0,0 +1,113 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class EnterpriseAutoPaymentOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var EnterpriseAutoPaymentOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseAutoPaymentOrderRequestMarshaller();
}
/**
* @return EnterpriseAutoPaymentOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/enterprise/auto-payment/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param EnterpriseAutoPaymentOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getOrderId() != null) {
$internalRequest->addParameter('orderId',
ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
}
if ($request->getOrderAmount() != null) {
$internalRequest->addParameter('orderAmount',
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
}
if ($request->getFundProcessType() != null) {
$internalRequest->addParameter('fundProcessType',
ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
}
if ($request->getGoodsName() != null) {
$internalRequest->addParameter('goodsName',
ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
}
if ($request->getExpiredTime() != null) {
$internalRequest->addParameter('expiredTime',
ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
}
if ($request->getMemo() != null) {
$internalRequest->addParameter('memo',
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
}
if ($request->getPayerNotifyUrl() != null) {
$internalRequest->addParameter('payerNotifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getPayerNotifyUrl(), 'string', 'url'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
EnterpriseAutoPaymentOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class EnterpriseAutoPaymentOrderResponse extends BaseResponse
{
/**
* @var EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult';
}
/**
* @param EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return EnterpriseAutoPaymentOrderAutoPaymentRespDtoResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class EnterpriseAutoPaymentOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var EnterpriseAutoPaymentOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseAutoPaymentOrderResponseUnMarshaller();
}
/**
* @return EnterpriseAutoPaymentOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return EnterpriseAutoPaymentOrderResponse
*/
protected function getResponseInstance()
{
return new EnterpriseAutoPaymentOrderResponse();
}
}
EnterpriseAutoPaymentOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,401 @@
<?php
/**
* EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'uniqueOrderNo' => 'string',
'merchantNo' => 'string',
'orderAmount' => 'float',
'orderStatus' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'uniqueOrderNo' => null,
'merchantNo' => null,
'orderAmount' => null,
'orderStatus' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'uniqueOrderNo' => 'uniqueOrderNo',
'merchantNo' => 'merchantNo',
'orderAmount' => 'orderAmount',
'orderStatus' => 'orderStatus',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'uniqueOrderNo' => 'setUniqueOrderNo',
'merchantNo' => 'setMerchantNo',
'orderAmount' => 'setOrderAmount',
'orderStatus' => 'setOrderStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'uniqueOrderNo' => 'getUniqueOrderNo',
'merchantNo' => 'getMerchantNo',
'orderAmount' => 'getOrderAmount',
'orderStatus' => 'getOrderStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
$this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 响应编码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 响应描述信息
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets uniqueOrderNo
* @return string
*/
public function getUniqueOrderNo()
{
return $this->container['uniqueOrderNo'];
}
/**
* Sets uniqueOrderNo
* @param string $uniqueOrderNo 易宝唯订单一号
* @return $this
*/
public function setUniqueOrderNo($uniqueOrderNo)
{
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 收单商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount 订单金额
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Gets orderStatus
* @return string
*/
public function getOrderStatus()
{
return $this->container['orderStatus'];
}
/**
* Sets orderStatus
* @param string $orderStatus 订单状态
* @return $this
*/
public function setOrderStatus($orderStatus)
{
$this->container['orderStatus'] = $orderStatus;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,119 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class EnterpriseAutoPaymentQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $orderId;
/**
* @var string
*/
private $orderDate;
/**
* @var string
*/
private $uniqueOrderNo;
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return EnterpriseAutoPaymentQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->orderId;
}
/**
* Sets orderId
* @param string $orderId
* @return EnterpriseAutoPaymentQueryRequest
*/
public function setOrderId($orderId)
{
$this->orderId = $orderId;
return $this;
}
/**
* Gets orderDate
* @return string
*/
public function getOrderDate()
{
return $this->orderDate;
}
/**
* Sets orderDate
* @param string $orderDate
* @return EnterpriseAutoPaymentQueryRequest
*/
public function setOrderDate($orderDate)
{
$this->orderDate = $orderDate;
return $this;
}
/**
* Gets uniqueOrderNo
* @return string
*/
public function getUniqueOrderNo()
{
return $this->uniqueOrderNo;
}
/**
* Sets uniqueOrderNo
* @param string $uniqueOrderNo
* @return EnterpriseAutoPaymentQueryRequest
*/
public function setUniqueOrderNo($uniqueOrderNo)
{
$this->uniqueOrderNo = $uniqueOrderNo;
return $this;
}
public static function getOperationId()
{
return 'enterpriseAutoPaymentQuery';
}
}

View File

@@ -0,0 +1,76 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class EnterpriseAutoPaymentQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var EnterpriseAutoPaymentQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseAutoPaymentQueryRequestMarshaller();
}
/**
* @return EnterpriseAutoPaymentQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/enterprise/auto-payment/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param EnterpriseAutoPaymentQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
EnterpriseAutoPaymentQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class EnterpriseAutoPaymentQueryResponse extends BaseResponse
{
/**
* @var EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult';
}
/**
* @param EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return EnterpriseAutoPaymentQueryAutoPaymentQueryRespDtoResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class EnterpriseAutoPaymentQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var EnterpriseAutoPaymentQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseAutoPaymentQueryResponseUnMarshaller();
}
/**
* @return EnterpriseAutoPaymentQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return EnterpriseAutoPaymentQueryResponse
*/
protected function getResponseInstance()
{
return new EnterpriseAutoPaymentQueryResponse();
}
}
EnterpriseAutoPaymentQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,301 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class EnterpriseWithholdingOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $payerMerchantNo;
/**
* @var string
*/
private $orderId;
/**
* @var float
*/
private $orderAmount;
/**
* @var string
*/
private $fundProcessType;
/**
* @var string
*/
private $goodsName;
/**
* @var string
*/
private $expiredTime;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $memo;
/**
* @var string
*/
private $payerNotifyUrl;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return EnterpriseWithholdingOrderRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return EnterpriseWithholdingOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets payerMerchantNo
* @return string
*/
public function getPayerMerchantNo()
{
return $this->payerMerchantNo;
}
/**
* Sets payerMerchantNo
* @param string $payerMerchantNo
* @return EnterpriseWithholdingOrderRequest
*/
public function setPayerMerchantNo($payerMerchantNo)
{
$this->payerMerchantNo = $payerMerchantNo;
return $this;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->orderId;
}
/**
* Sets orderId
* @param string $orderId
* @return EnterpriseWithholdingOrderRequest
*/
public function setOrderId($orderId)
{
$this->orderId = $orderId;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->orderAmount;
}
/**
* Sets orderAmount
* @param float $orderAmount
* @return EnterpriseWithholdingOrderRequest
*/
public function setOrderAmount($orderAmount)
{
$this->orderAmount = $orderAmount;
return $this;
}
/**
* Gets fundProcessType
* @return string
*/
public function getFundProcessType()
{
return $this->fundProcessType;
}
/**
* Sets fundProcessType
* @param string $fundProcessType
* @return EnterpriseWithholdingOrderRequest
*/
public function setFundProcessType($fundProcessType)
{
$this->fundProcessType = $fundProcessType;
return $this;
}
/**
* Gets goodsName
* @return string
*/
public function getGoodsName()
{
return $this->goodsName;
}
/**
* Sets goodsName
* @param string $goodsName
* @return EnterpriseWithholdingOrderRequest
*/
public function setGoodsName($goodsName)
{
$this->goodsName = $goodsName;
return $this;
}
/**
* Gets expiredTime
* @return string
*/
public function getExpiredTime()
{
return $this->expiredTime;
}
/**
* Sets expiredTime
* @param string $expiredTime
* @return EnterpriseWithholdingOrderRequest
*/
public function setExpiredTime($expiredTime)
{
$this->expiredTime = $expiredTime;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return EnterpriseWithholdingOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets memo
* @return string
*/
public function getMemo()
{
return $this->memo;
}
/**
* Sets memo
* @param string $memo
* @return EnterpriseWithholdingOrderRequest
*/
public function setMemo($memo)
{
$this->memo = $memo;
return $this;
}
/**
* Gets payerNotifyUrl
* @return string
*/
public function getPayerNotifyUrl()
{
return $this->payerNotifyUrl;
}
/**
* Sets payerNotifyUrl
* @param string $payerNotifyUrl
* @return EnterpriseWithholdingOrderRequest
*/
public function setPayerNotifyUrl($payerNotifyUrl)
{
$this->payerNotifyUrl = $payerNotifyUrl;
return $this;
}
public static function getOperationId()
{
return 'enterpriseWithholdingOrder';
}
}

View File

@@ -0,0 +1,121 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class EnterpriseWithholdingOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var EnterpriseWithholdingOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseWithholdingOrderRequestMarshaller();
}
/**
* @return EnterpriseWithholdingOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/enterprise/withholding/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param EnterpriseWithholdingOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getPayerMerchantNo() != null) {
$internalRequest->addParameter('payerMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getPayerMerchantNo(), 'string'));
}
if ($request->getOrderId() != null) {
$internalRequest->addParameter('orderId',
ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string'));
}
if ($request->getOrderAmount() != null) {
$internalRequest->addParameter('orderAmount',
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
}
if ($request->getFundProcessType() != null) {
$internalRequest->addParameter('fundProcessType',
ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string'));
}
if ($request->getGoodsName() != null) {
$internalRequest->addParameter('goodsName',
ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string'));
}
if ($request->getExpiredTime() != null) {
$internalRequest->addParameter('expiredTime',
ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url'));
}
if ($request->getMemo() != null) {
$internalRequest->addParameter('memo',
ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string'));
}
if ($request->getPayerNotifyUrl() != null) {
$internalRequest->addParameter('payerNotifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getPayerNotifyUrl(), 'string', 'url'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
EnterpriseWithholdingOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class EnterpriseWithholdingOrderResponse extends BaseResponse
{
/**
* @var EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult';
}
/**
* @param EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class EnterpriseWithholdingOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var EnterpriseWithholdingOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new EnterpriseWithholdingOrderResponseUnMarshaller();
}
/**
* @return EnterpriseWithholdingOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return EnterpriseWithholdingOrderResponse
*/
protected function getResponseInstance()
{
return new EnterpriseWithholdingOrderResponse();
}
}
EnterpriseWithholdingOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,347 @@
<?php
/**
* EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'EnterpriseWithholdingOrderWithholdingPaymentRespDtoResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'code' => 'string',
'message' => 'string',
'orderId' => 'string',
'uniqueOrderNo' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'code' => null,
'message' => null,
'orderId' => null,
'uniqueOrderNo' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'code' => 'code',
'message' => 'message',
'orderId' => 'orderId',
'uniqueOrderNo' => 'uniqueOrderNo',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'code' => 'setCode',
'message' => 'setMessage',
'orderId' => 'setOrderId',
'uniqueOrderNo' => 'setUniqueOrderNo',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'code' => 'getCode',
'message' => 'getMessage',
'orderId' => 'getOrderId',
'uniqueOrderNo' => 'getUniqueOrderNo',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
$this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null;
$this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets code
* @return string
*/
public function getCode()
{
return $this->container['code'];
}
/**
* Sets code
* @param string $code 响应编码
* @return $this
*/
public function setCode($code)
{
$this->container['code'] = $code;
return $this;
}
/**
* Gets message
* @return string
*/
public function getMessage()
{
return $this->container['message'];
}
/**
* Sets message
* @param string $message 响应描述信息
* @return $this
*/
public function setMessage($message)
{
$this->container['message'] = $message;
return $this;
}
/**
* Gets orderId
* @return string
*/
public function getOrderId()
{
return $this->container['orderId'];
}
/**
* Sets orderId
* @param string $orderId 商户请求订单号
* @return $this
*/
public function setOrderId($orderId)
{
$this->container['orderId'] = $orderId;
return $this;
}
/**
* Gets uniqueOrderNo
* @return string
*/
public function getUniqueOrderNo()
{
return $this->container['uniqueOrderNo'];
}
/**
* Sets uniqueOrderNo
* @param string $uniqueOrderNo 易宝唯一订单号
* @return $this
*/
public function setUniqueOrderNo($uniqueOrderNo)
{
$this->container['uniqueOrderNo'] = $uniqueOrderNo;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,320 @@
<?php
/**
* PayCancelRemitCancelRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* PayCancelRemitCancelRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class PayCancelRemitCancelRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'PayCancelRemitCancelRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'status' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'status' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'status' => 'status',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'status' => 'setStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'status' => 'getStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 撤销结果
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,93 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class PayCancelRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $orderNo;
/**
* @var string
*/
private $cancelReason;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return PayCancelRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->orderNo;
}
/**
* Sets orderNo
* @param string $orderNo
* @return PayCancelRequest
*/
public function setOrderNo($orderNo)
{
$this->orderNo = $orderNo;
return $this;
}
/**
* Gets cancelReason
* @return string
*/
public function getCancelReason()
{
return $this->cancelReason;
}
/**
* Sets cancelReason
* @param string $cancelReason
* @return PayCancelRequest
*/
public function setCancelReason($cancelReason)
{
$this->cancelReason = $cancelReason;
return $this;
}
public static function getOperationId()
{
return 'payCancel';
}
}

View File

@@ -0,0 +1,89 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class PayCancelRequestMarshaller implements RequestMarshaller
{
/**
* @var PayCancelRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new PayCancelRequestMarshaller();
}
/**
* @return PayCancelRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/pay/cancel';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param PayCancelRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getOrderNo() != null) {
$internalRequest->addParameter('orderNo',
ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string'));
}
if ($request->getCancelReason() != null) {
$internalRequest->addParameter('cancelReason',
ObjectSerializer::sanitizeForSerialization($request->getCancelReason(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
PayCancelRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class PayCancelResponse extends BaseResponse
{
/**
* @var PayCancelRemitCancelRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\PayCancelRemitCancelRespDTOResult';
}
/**
* @param PayCancelRemitCancelRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return PayCancelRemitCancelRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class PayCancelResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var PayCancelResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new PayCancelResponseUnMarshaller();
}
/**
* @return PayCancelResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return PayCancelResponse
*/
protected function getResponseInstance()
{
return new PayCancelResponse();
}
}
PayCancelResponseUnMarshaller::__init();

View File

@@ -0,0 +1,374 @@
<?php
/**
* PayOrderRemitRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* PayOrderRemitRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class PayOrderRemitRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'PayOrderRemitRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'requestNo' => 'string',
'orderNo' => 'string',
'status' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'requestNo' => null,
'orderNo' => null,
'status' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'status' => 'status',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'status' => 'setStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'status' => 'getStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
* @param string $orderNo 易宝付款订单号
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 订单状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,405 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class PayOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var float
*/
private $orderAmount;
/**
* @var string
*/
private $feeChargeSide;
/**
* @var string
*/
private $receiveType;
/**
* @var string
*/
private $receiverAccountNo;
/**
* @var string
*/
private $receiverAccountName;
/**
* @var string
*/
private $receiverBankCode;
/**
* @var string
*/
private $bankAccountType;
/**
* @var string
*/
private $branchBankCode;
/**
* @var string
*/
private $comments;
/**
* @var string
*/
private $terminalType;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $remark;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return PayOrderRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return PayOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
* @param string $requestNo
* @return PayOrderRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->orderAmount;
}
/**
* Sets orderAmount
* @param float $orderAmount
* @return PayOrderRequest
*/
public function setOrderAmount($orderAmount)
{
$this->orderAmount = $orderAmount;
return $this;
}
/**
* Gets feeChargeSide
* @return string
*/
public function getFeeChargeSide()
{
return $this->feeChargeSide;
}
/**
* Sets feeChargeSide
* @param string $feeChargeSide
* @return PayOrderRequest
*/
public function setFeeChargeSide($feeChargeSide)
{
$this->feeChargeSide = $feeChargeSide;
return $this;
}
/**
* Gets receiveType
* @return string
*/
public function getReceiveType()
{
return $this->receiveType;
}
/**
* Sets receiveType
* @param string $receiveType
* @return PayOrderRequest
*/
public function setReceiveType($receiveType)
{
$this->receiveType = $receiveType;
return $this;
}
/**
* Gets receiverAccountNo
* @return string
*/
public function getReceiverAccountNo()
{
return $this->receiverAccountNo;
}
/**
* Sets receiverAccountNo
* @param string $receiverAccountNo
* @return PayOrderRequest
*/
public function setReceiverAccountNo($receiverAccountNo)
{
$this->receiverAccountNo = $receiverAccountNo;
return $this;
}
/**
* Gets receiverAccountName
* @return string
*/
public function getReceiverAccountName()
{
return $this->receiverAccountName;
}
/**
* Sets receiverAccountName
* @param string $receiverAccountName
* @return PayOrderRequest
*/
public function setReceiverAccountName($receiverAccountName)
{
$this->receiverAccountName = $receiverAccountName;
return $this;
}
/**
* Gets receiverBankCode
* @return string
*/
public function getReceiverBankCode()
{
return $this->receiverBankCode;
}
/**
* Sets receiverBankCode
* @param string $receiverBankCode
* @return PayOrderRequest
*/
public function setReceiverBankCode($receiverBankCode)
{
$this->receiverBankCode = $receiverBankCode;
return $this;
}
/**
* Gets bankAccountType
* @return string
*/
public function getBankAccountType()
{
return $this->bankAccountType;
}
/**
* Sets bankAccountType
* @param string $bankAccountType
* @return PayOrderRequest
*/
public function setBankAccountType($bankAccountType)
{
$this->bankAccountType = $bankAccountType;
return $this;
}
/**
* Gets branchBankCode
* @return string
*/
public function getBranchBankCode()
{
return $this->branchBankCode;
}
/**
* Sets branchBankCode
* @param string $branchBankCode
* @return PayOrderRequest
*/
public function setBranchBankCode($branchBankCode)
{
$this->branchBankCode = $branchBankCode;
return $this;
}
/**
* Gets comments
* @return string
*/
public function getComments()
{
return $this->comments;
}
/**
* Sets comments
* @param string $comments
* @return PayOrderRequest
*/
public function setComments($comments)
{
$this->comments = $comments;
return $this;
}
/**
* Gets terminalType
* @return string
*/
public function getTerminalType()
{
return $this->terminalType;
}
/**
* Sets terminalType
* @param string $terminalType
* @return PayOrderRequest
*/
public function setTerminalType($terminalType)
{
$this->terminalType = $terminalType;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return PayOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
* @param string $remark
* @return PayOrderRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
public static function getOperationId()
{
return 'payOrder';
}
}

View File

@@ -0,0 +1,137 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class PayOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var PayOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new PayOrderRequestMarshaller();
}
/**
* @return PayOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/pay/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param PayOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getRequestNo() != null) {
$internalRequest->addParameter('requestNo',
ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if ($request->getOrderAmount() != null) {
$internalRequest->addParameter('orderAmount',
ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float'));
}
if ($request->getFeeChargeSide() != null) {
$internalRequest->addParameter('feeChargeSide',
ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), 'string'));
}
if ($request->getReceiveType() != null) {
$internalRequest->addParameter('receiveType',
ObjectSerializer::sanitizeForSerialization($request->getReceiveType(), 'string'));
}
if ($request->getReceiverAccountNo() != null) {
$internalRequest->addParameter('receiverAccountNo',
ObjectSerializer::sanitizeForSerialization($request->getReceiverAccountNo(), 'string'));
}
if ($request->getReceiverAccountName() != null) {
$internalRequest->addParameter('receiverAccountName',
ObjectSerializer::sanitizeForSerialization($request->getReceiverAccountName(), 'string'));
}
if ($request->getReceiverBankCode() != null) {
$internalRequest->addParameter('receiverBankCode',
ObjectSerializer::sanitizeForSerialization($request->getReceiverBankCode(), 'string'));
}
if ($request->getBankAccountType() != null) {
$internalRequest->addParameter('bankAccountType',
ObjectSerializer::sanitizeForSerialization($request->getBankAccountType(), 'string'));
}
if ($request->getBranchBankCode() != null) {
$internalRequest->addParameter('branchBankCode',
ObjectSerializer::sanitizeForSerialization($request->getBranchBankCode(), 'string'));
}
if ($request->getComments() != null) {
$internalRequest->addParameter('comments',
ObjectSerializer::sanitizeForSerialization($request->getComments(), 'string'));
}
if ($request->getTerminalType() != null) {
$internalRequest->addParameter('terminalType',
ObjectSerializer::sanitizeForSerialization($request->getTerminalType(), 'string'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if ($request->getRemark() != null) {
$internalRequest->addParameter('remark',
ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
PayOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class PayOrderResponse extends BaseResponse
{
/**
* @var PayOrderRemitRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\PayOrderRemitRespDTOResult';
}
/**
* @param PayOrderRemitRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return PayOrderRemitRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class PayOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var PayOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new PayOrderResponseUnMarshaller();
}
/**
* @return PayOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return PayOrderResponse
*/
protected function getResponseInstance()
{
return new PayOrderResponse();
}
}
PayOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,806 @@
<?php
/**
* PayQueryRemitOrderQueryRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* PayQueryRemitOrderQueryRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class PayQueryRemitOrderQueryRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'PayQueryRemitOrderQueryRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'requestNo' => 'string',
'orderNo' => 'string',
'merchantNo' => 'string',
'orderAmount' => 'float',
'receiveAmount' => 'float',
'debitAmount' => 'float',
'orderTime' => 'string',
'finishTime' => 'string',
'fee' => 'float',
'feeUndertakerMerchantNo' => 'string',
'status' => 'string',
'failReason' => 'string',
'receiveType' => 'string',
'receiverAccountNo' => 'string',
'receiverAccountName' => 'string',
'receiverBankCode' => 'string',
'comments' => 'string',
'isReversed' => 'bool',
'reverseTime' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'requestNo' => null,
'orderNo' => null,
'merchantNo' => null,
'orderAmount' => null,
'receiveAmount' => null,
'debitAmount' => null,
'orderTime' => 'date-time',
'finishTime' => 'date-time',
'fee' => null,
'feeUndertakerMerchantNo' => null,
'status' => null,
'failReason' => null,
'receiveType' => null,
'receiverAccountNo' => null,
'receiverAccountName' => null,
'receiverBankCode' => null,
'comments' => null,
'isReversed' => null,
'reverseTime' => 'date-time',
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'merchantNo' => 'merchantNo',
'orderAmount' => 'orderAmount',
'receiveAmount' => 'receiveAmount',
'debitAmount' => 'debitAmount',
'orderTime' => 'orderTime',
'finishTime' => 'finishTime',
'fee' => 'fee',
'feeUndertakerMerchantNo' => 'feeUndertakerMerchantNo',
'status' => 'status',
'failReason' => 'failReason',
'receiveType' => 'receiveType',
'receiverAccountNo' => 'receiverAccountNo',
'receiverAccountName' => 'receiverAccountName',
'receiverBankCode' => 'receiverBankCode',
'comments' => 'comments',
'isReversed' => 'isReversed',
'reverseTime' => 'reverseTime',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'merchantNo' => 'setMerchantNo',
'orderAmount' => 'setOrderAmount',
'receiveAmount' => 'setReceiveAmount',
'debitAmount' => 'setDebitAmount',
'orderTime' => 'setOrderTime',
'finishTime' => 'setFinishTime',
'fee' => 'setFee',
'feeUndertakerMerchantNo' => 'setFeeUndertakerMerchantNo',
'status' => 'setStatus',
'failReason' => 'setFailReason',
'receiveType' => 'setReceiveType',
'receiverAccountNo' => 'setReceiverAccountNo',
'receiverAccountName' => 'setReceiverAccountName',
'receiverBankCode' => 'setReceiverBankCode',
'comments' => 'setComments',
'isReversed' => 'setIsReversed',
'reverseTime' => 'setReverseTime',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'merchantNo' => 'getMerchantNo',
'orderAmount' => 'getOrderAmount',
'receiveAmount' => 'getReceiveAmount',
'debitAmount' => 'getDebitAmount',
'orderTime' => 'getOrderTime',
'finishTime' => 'getFinishTime',
'fee' => 'getFee',
'feeUndertakerMerchantNo' => 'getFeeUndertakerMerchantNo',
'status' => 'getStatus',
'failReason' => 'getFailReason',
'receiveType' => 'getReceiveType',
'receiverAccountNo' => 'getReceiverAccountNo',
'receiverAccountName' => 'getReceiverAccountName',
'receiverBankCode' => 'getReceiverBankCode',
'comments' => 'getComments',
'isReversed' => 'getIsReversed',
'reverseTime' => 'getReverseTime',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
$this->container['receiveAmount'] = isset($data['receiveAmount']) ? $data['receiveAmount'] : null;
$this->container['debitAmount'] = isset($data['debitAmount']) ? $data['debitAmount'] : null;
$this->container['orderTime'] = isset($data['orderTime']) ? $data['orderTime'] : null;
$this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null;
$this->container['fee'] = isset($data['fee']) ? $data['fee'] : null;
$this->container['feeUndertakerMerchantNo'] = isset($data['feeUndertakerMerchantNo']) ? $data['feeUndertakerMerchantNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : null;
$this->container['receiveType'] = isset($data['receiveType']) ? $data['receiveType'] : null;
$this->container['receiverAccountNo'] = isset($data['receiverAccountNo']) ? $data['receiverAccountNo'] : null;
$this->container['receiverAccountName'] = isset($data['receiverAccountName']) ? $data['receiverAccountName'] : null;
$this->container['receiverBankCode'] = isset($data['receiverBankCode']) ? $data['receiverBankCode'] : null;
$this->container['comments'] = isset($data['comments']) ? $data['comments'] : null;
$this->container['isReversed'] = isset($data['isReversed']) ? $data['isReversed'] : null;
$this->container['reverseTime'] = isset($data['reverseTime']) ? $data['reverseTime'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
* @param string $orderNo 易宝付款订单号
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount 付款金额
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Gets receiveAmount
* @return float
*/
public function getReceiveAmount()
{
return $this->container['receiveAmount'];
}
/**
* Sets receiveAmount
* @param float $receiveAmount 到账金额
* @return $this
*/
public function setReceiveAmount($receiveAmount)
{
$this->container['receiveAmount'] = $receiveAmount;
return $this;
}
/**
* Gets debitAmount
* @return float
*/
public function getDebitAmount()
{
return $this->container['debitAmount'];
}
/**
* Sets debitAmount
* @param float $debitAmount 扣账金额
* @return $this
*/
public function setDebitAmount($debitAmount)
{
$this->container['debitAmount'] = $debitAmount;
return $this;
}
/**
* Gets orderTime
* @return string
*/
public function getOrderTime()
{
return $this->container['orderTime'];
}
/**
* Sets orderTime
* @param string $orderTime 付款下单时间
* @return $this
*/
public function setOrderTime($orderTime)
{
$this->container['orderTime'] = $orderTime;
return $this;
}
/**
* Gets finishTime
* @return string
*/
public function getFinishTime()
{
return $this->container['finishTime'];
}
/**
* Sets finishTime
* @param string $finishTime 付款完成时间
* @return $this
*/
public function setFinishTime($finishTime)
{
$this->container['finishTime'] = $finishTime;
return $this;
}
/**
* Gets fee
* @return float
*/
public function getFee()
{
return $this->container['fee'];
}
/**
* Sets fee
* @param float $fee 手续费
* @return $this
*/
public function setFee($fee)
{
$this->container['fee'] = $fee;
return $this;
}
/**
* Gets feeUndertakerMerchantNo
* @return string
*/
public function getFeeUndertakerMerchantNo()
{
return $this->container['feeUndertakerMerchantNo'];
}
/**
* Sets feeUndertakerMerchantNo
* @param string $feeUndertakerMerchantNo 手续费承担方商编
* @return $this
*/
public function setFeeUndertakerMerchantNo($feeUndertakerMerchantNo)
{
$this->container['feeUndertakerMerchantNo'] = $feeUndertakerMerchantNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 订单状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets failReason
* @return string
*/
public function getFailReason()
{
return $this->container['failReason'];
}
/**
* Sets failReason
* @param string $failReason 失败原因
* @return $this
*/
public function setFailReason($failReason)
{
$this->container['failReason'] = $failReason;
return $this;
}
/**
* Gets receiveType
* @return string
*/
public function getReceiveType()
{
return $this->container['receiveType'];
}
/**
* Sets receiveType
* @param string $receiveType 到账类型
* @return $this
*/
public function setReceiveType($receiveType)
{
$this->container['receiveType'] = $receiveType;
return $this;
}
/**
* Gets receiverAccountNo
* @return string
*/
public function getReceiverAccountNo()
{
return $this->container['receiverAccountNo'];
}
/**
* Sets receiverAccountNo
* @param string $receiverAccountNo 收款方银行账号
* @return $this
*/
public function setReceiverAccountNo($receiverAccountNo)
{
$this->container['receiverAccountNo'] = $receiverAccountNo;
return $this;
}
/**
* Gets receiverAccountName
* @return string
*/
public function getReceiverAccountName()
{
return $this->container['receiverAccountName'];
}
/**
* Sets receiverAccountName
* @param string $receiverAccountName 收款方开户名
* @return $this
*/
public function setReceiverAccountName($receiverAccountName)
{
$this->container['receiverAccountName'] = $receiverAccountName;
return $this;
}
/**
* Gets receiverBankCode
* @return string
*/
public function getReceiverBankCode()
{
return $this->container['receiverBankCode'];
}
/**
* Sets receiverBankCode
* @param string $receiverBankCode 收款方开户行编码
* @return $this
*/
public function setReceiverBankCode($receiverBankCode)
{
$this->container['receiverBankCode'] = $receiverBankCode;
return $this;
}
/**
* Gets comments
* @return string
*/
public function getComments()
{
return $this->container['comments'];
}
/**
* Sets comments
* @param string $comments 银行附言
* @return $this
*/
public function setComments($comments)
{
$this->container['comments'] = $comments;
return $this;
}
/**
* Gets isReversed
* @return bool
*/
public function getIsReversed()
{
return $this->container['isReversed'];
}
/**
* Sets isReversed
* @param bool $isReversed 冲退标识
* @return $this
*/
public function setIsReversed($isReversed)
{
$this->container['isReversed'] = $isReversed;
return $this;
}
/**
* Gets reverseTime
* @return string
*/
public function getReverseTime()
{
return $this->container['reverseTime'];
}
/**
* Sets reverseTime
* @param string $reverseTime 冲退时间
* @return $this
*/
public function setReverseTime($reverseTime)
{
$this->container['reverseTime'] = $reverseTime;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,93 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class PayQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var string
*/
private $orderNo;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return PayQueryRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
* @param string $requestNo
* @return PayQueryRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->orderNo;
}
/**
* Sets orderNo
* @param string $orderNo
* @return PayQueryRequest
*/
public function setOrderNo($orderNo)
{
$this->orderNo = $orderNo;
return $this;
}
public static function getOperationId()
{
return 'payQuery';
}
}

View File

@@ -0,0 +1,76 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class PayQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var PayQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new PayQueryRequestMarshaller();
}
/**
* @return PayQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/pay/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param PayQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
PayQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class PayQueryResponse extends BaseResponse
{
/**
* @var PayQueryRemitOrderQueryRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\PayQueryRemitOrderQueryRespDTOResult';
}
/**
* @param PayQueryRemitOrderQueryRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return PayQueryRemitOrderQueryRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class PayQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var PayQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new PayQueryResponseUnMarshaller();
}
/**
* @return PayQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return PayQueryResponse
*/
protected function getResponseInstance()
{
return new PayQueryResponse();
}
}
PayQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,320 @@
<?php
/**
* ReceiptGetReceiptRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* ReceiptGetReceiptRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class ReceiptGetReceiptRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'ReceiptGetReceiptRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'data' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'data' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'data' => 'data',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'data' => 'setData',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'data' => 'getData',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['data'] = isset($data['data']) ? $data['data'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets data
* @return string
*/
public function getData()
{
return $this->container['data'];
}
/**
* Sets data
* @param string $data 返回数据
* @return $this
*/
public function setData($data)
{
$this->container['data'] = $data;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,93 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class ReceiptGetRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $orderNo;
/**
* @var string
*/
private $tradeType;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return ReceiptGetRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->orderNo;
}
/**
* Sets orderNo
* @param string $orderNo
* @return ReceiptGetRequest
*/
public function setOrderNo($orderNo)
{
$this->orderNo = $orderNo;
return $this;
}
/**
* Gets tradeType
* @return string
*/
public function getTradeType()
{
return $this->tradeType;
}
/**
* Sets tradeType
* @param string $tradeType
* @return ReceiptGetRequest
*/
public function setTradeType($tradeType)
{
$this->tradeType = $tradeType;
return $this;
}
public static function getOperationId()
{
return 'receiptGet';
}
}

View File

@@ -0,0 +1,76 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class ReceiptGetRequestMarshaller implements RequestMarshaller
{
/**
* @var ReceiptGetRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new ReceiptGetRequestMarshaller();
}
/**
* @return ReceiptGetRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/receipt/get';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param ReceiptGetRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
ReceiptGetRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class ReceiptGetResponse extends BaseResponse
{
/**
* @var ReceiptGetReceiptRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\ReceiptGetReceiptRespDTOResult';
}
/**
* @param ReceiptGetReceiptRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return ReceiptGetReceiptRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class ReceiptGetResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var ReceiptGetResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new ReceiptGetResponseUnMarshaller();
}
/**
* @return ReceiptGetResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return ReceiptGetResponse
*/
protected function getResponseInstance()
{
return new ReceiptGetResponse();
}
}
ReceiptGetResponseUnMarshaller::__init();

View File

@@ -0,0 +1,455 @@
<?php
/**
* RechargeBankOrderBankPayRechargeRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RechargeBankOrderBankPayRechargeRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RechargeBankOrderBankPayRechargeRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RechargeBankOrderBankPayRechargeRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'orderNo' => 'string',
'requestNo' => 'string',
'merchantNo' => 'string',
'status' => 'string',
'amount' => 'float',
'orderAmount' => 'float',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'orderNo' => null,
'requestNo' => null,
'merchantNo' => null,
'status' => null,
'amount' => null,
'orderAmount' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'orderNo' => 'orderNo',
'requestNo' => 'requestNo',
'merchantNo' => 'merchantNo',
'status' => 'status',
'amount' => 'amount',
'orderAmount' => 'orderAmount',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'orderNo' => 'setOrderNo',
'requestNo' => 'setRequestNo',
'merchantNo' => 'setMerchantNo',
'status' => 'setStatus',
'amount' => 'setAmount',
'orderAmount' => 'setOrderAmount',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'orderNo' => 'getOrderNo',
'requestNo' => 'getRequestNo',
'merchantNo' => 'getMerchantNo',
'status' => 'getStatus',
'amount' => 'getAmount',
'orderAmount' => 'getOrderAmount',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['amount'] = isset($data['amount']) ? $data['amount'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 接口返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 接口返回描述
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
* @param string $orderNo 提现订单号
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 提现商户号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 提现订单状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets amount
* @return float
*/
public function getAmount()
{
return $this->container['amount'];
}
/**
* Sets amount
* @param float $amount 提现金额
* @return $this
*/
public function setAmount($amount)
{
$this->container['amount'] = $amount;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount 银行扣款金额
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,275 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class RechargeBankOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var float
*/
private $amount;
/**
* @var string
*/
private $token;
/**
* @var string
*/
private $bankCode;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $usage;
/**
* @var string
*/
private $remark;
/**
* @var string
*/
private $clientIp;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return RechargeBankOrderRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return RechargeBankOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
* @param string $requestNo
* @return RechargeBankOrderRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets amount
* @return float
*/
public function getAmount()
{
return $this->amount;
}
/**
* Sets amount
* @param float $amount
* @return RechargeBankOrderRequest
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Gets token
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* Sets token
* @param string $token
* @return RechargeBankOrderRequest
*/
public function setToken($token)
{
$this->token = $token;
return $this;
}
/**
* Gets bankCode
* @return string
*/
public function getBankCode()
{
return $this->bankCode;
}
/**
* Sets bankCode
* @param string $bankCode
* @return RechargeBankOrderRequest
*/
public function setBankCode($bankCode)
{
$this->bankCode = $bankCode;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return RechargeBankOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets usage
* @return string
*/
public function getUsage()
{
return $this->usage;
}
/**
* Sets usage
* @param string $usage
* @return RechargeBankOrderRequest
*/
public function setUsage($usage)
{
$this->usage = $usage;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
* @param string $remark
* @return RechargeBankOrderRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
/**
* Gets clientIp
* @return string
*/
public function getClientIp()
{
return $this->clientIp;
}
/**
* Sets clientIp
* @param string $clientIp
* @return RechargeBankOrderRequest
*/
public function setClientIp($clientIp)
{
$this->clientIp = $clientIp;
return $this;
}
public static function getOperationId()
{
return 'rechargeBankOrder';
}
}

View File

@@ -0,0 +1,117 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class RechargeBankOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var RechargeBankOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeBankOrderRequestMarshaller();
}
/**
* @return RechargeBankOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/recharge/bank/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param RechargeBankOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getRequestNo() != null) {
$internalRequest->addParameter('requestNo',
ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if ($request->getAmount() != null) {
$internalRequest->addParameter('amount',
ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float'));
}
if ($request->getToken() != null) {
$internalRequest->addParameter('token',
ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string'));
}
if ($request->getBankCode() != null) {
$internalRequest->addParameter('bankCode',
ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if ($request->getUsage() != null) {
$internalRequest->addParameter('usage',
ObjectSerializer::sanitizeForSerialization($request->getUsage(), 'string'));
}
if ($request->getRemark() != null) {
$internalRequest->addParameter('remark',
ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
if ($request->getClientIp() != null) {
$internalRequest->addParameter('clientIp',
ObjectSerializer::sanitizeForSerialization($request->getClientIp(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
RechargeBankOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class RechargeBankOrderResponse extends BaseResponse
{
/**
* @var RechargeBankOrderBankPayRechargeRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeBankOrderBankPayRechargeRespDTOResult';
}
/**
* @param RechargeBankOrderBankPayRechargeRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return RechargeBankOrderBankPayRechargeRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class RechargeBankOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var RechargeBankOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeBankOrderResponseUnMarshaller();
}
/**
* @return RechargeBankOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return RechargeBankOrderResponse
*/
protected function getResponseInstance()
{
return new RechargeBankOrderResponse();
}
}
RechargeBankOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,455 @@
<?php
/**
* RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'orderNo' => 'string',
'requestNo' => 'string',
'merchantNo' => 'string',
'status' => 'string',
'orderAmount' => 'float',
'payUrl' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'orderNo' => null,
'requestNo' => null,
'merchantNo' => null,
'status' => null,
'orderAmount' => null,
'payUrl' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'orderNo' => 'orderNo',
'requestNo' => 'requestNo',
'merchantNo' => 'merchantNo',
'status' => 'status',
'orderAmount' => 'orderAmount',
'payUrl' => 'payUrl',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'orderNo' => 'setOrderNo',
'requestNo' => 'setRequestNo',
'merchantNo' => 'setMerchantNo',
'status' => 'setStatus',
'orderAmount' => 'setOrderAmount',
'payUrl' => 'setPayUrl',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'orderNo' => 'getOrderNo',
'requestNo' => 'getRequestNo',
'merchantNo' => 'getMerchantNo',
'status' => 'getStatus',
'orderAmount' => 'getOrderAmount',
'payUrl' => 'getPayUrl',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
$this->container['payUrl'] = isset($data['payUrl']) ? $data['payUrl'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
* @param string $orderNo 易宝订单号
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 充值商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount 支付金额
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Gets payUrl
* @return string
*/
public function getPayUrl()
{
return $this->container['payUrl'];
}
/**
* Sets payUrl
* @param string $payUrl 收银台链接
* @return $this
*/
public function setPayUrl($payUrl)
{
$this->container['payUrl'] = $payUrl;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,249 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class RechargeOnlinebankOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var float
*/
private $amount;
/**
* @var string
*/
private $payType;
/**
* @var string
*/
private $bankCode;
/**
* @var string
*/
private $notifyUrl;
/**
* @var string
*/
private $remark;
/**
* @var string
*/
private $returnUrl;
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return RechargeOnlinebankOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return RechargeOnlinebankOrderRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
* @param string $requestNo
* @return RechargeOnlinebankOrderRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets amount
* @return float
*/
public function getAmount()
{
return $this->amount;
}
/**
* Sets amount
* @param float $amount
* @return RechargeOnlinebankOrderRequest
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Gets payType
* @return string
*/
public function getPayType()
{
return $this->payType;
}
/**
* Sets payType
* @param string $payType
* @return RechargeOnlinebankOrderRequest
*/
public function setPayType($payType)
{
$this->payType = $payType;
return $this;
}
/**
* Gets bankCode
* @return string
*/
public function getBankCode()
{
return $this->bankCode;
}
/**
* Sets bankCode
* @param string $bankCode
* @return RechargeOnlinebankOrderRequest
*/
public function setBankCode($bankCode)
{
$this->bankCode = $bankCode;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return RechargeOnlinebankOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
* @param string $remark
* @return RechargeOnlinebankOrderRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
/**
* Gets returnUrl
* @return string
*/
public function getReturnUrl()
{
return $this->returnUrl;
}
/**
* Sets returnUrl
* @param string $returnUrl
* @return RechargeOnlinebankOrderRequest
*/
public function setReturnUrl($returnUrl)
{
$this->returnUrl = $returnUrl;
return $this;
}
public static function getOperationId()
{
return 'rechargeOnlinebankOrder';
}
}

View File

@@ -0,0 +1,113 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class RechargeOnlinebankOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var RechargeOnlinebankOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeOnlinebankOrderRequestMarshaller();
}
/**
* @return RechargeOnlinebankOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/recharge/onlinebank/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param RechargeOnlinebankOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getRequestNo() != null) {
$internalRequest->addParameter('requestNo',
ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if ($request->getAmount() != null) {
$internalRequest->addParameter('amount',
ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float'));
}
if ($request->getPayType() != null) {
$internalRequest->addParameter('payType',
ObjectSerializer::sanitizeForSerialization($request->getPayType(), 'string'));
}
if ($request->getBankCode() != null) {
$internalRequest->addParameter('bankCode',
ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
if ($request->getRemark() != null) {
$internalRequest->addParameter('remark',
ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
if ($request->getReturnUrl() != null) {
$internalRequest->addParameter('returnUrl',
ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
RechargeOnlinebankOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class RechargeOnlinebankOrderResponse extends BaseResponse
{
/**
* @var RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult';
}
/**
* @param RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return RechargeOnlinebankOrderOnlineBankRechargeApiRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class RechargeOnlinebankOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var RechargeOnlinebankOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeOnlinebankOrderResponseUnMarshaller();
}
/**
* @return RechargeOnlinebankOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return RechargeOnlinebankOrderResponse
*/
protected function getResponseInstance()
{
return new RechargeOnlinebankOrderResponse();
}
}
RechargeOnlinebankOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,455 @@
<?php
/**
* RechargeOrderRechargeApiRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RechargeOrderRechargeApiRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RechargeOrderRechargeApiRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RechargeOrderRechargeApiRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'orderNo' => 'string',
'requestNo' => 'string',
'merchantNo' => 'string',
'status' => 'string',
'orderAmount' => 'float',
'remitComment' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'orderNo' => null,
'requestNo' => null,
'merchantNo' => null,
'status' => null,
'orderAmount' => null,
'remitComment' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'orderNo' => 'orderNo',
'requestNo' => 'requestNo',
'merchantNo' => 'merchantNo',
'status' => 'status',
'orderAmount' => 'orderAmount',
'remitComment' => 'remitComment',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'orderNo' => 'setOrderNo',
'requestNo' => 'setRequestNo',
'merchantNo' => 'setMerchantNo',
'status' => 'setStatus',
'orderAmount' => 'setOrderAmount',
'remitComment' => 'setRemitComment',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'orderNo' => 'getOrderNo',
'requestNo' => 'getRequestNo',
'merchantNo' => 'getMerchantNo',
'status' => 'getStatus',
'orderAmount' => 'getOrderAmount',
'remitComment' => 'getRemitComment',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
$this->container['remitComment'] = isset($data['remitComment']) ? $data['remitComment'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回消息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
* @param string $orderNo 充值订单号
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 充值商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 订单状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount 支付金额
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Gets remitComment
* @return string
*/
public function getRemitComment()
{
return $this->container['remitComment'];
}
/**
* Sets remitComment
* @param string $remitComment 汇款备注码
* @return $this
*/
public function setRemitComment($remitComment)
{
$this->container['remitComment'] = $remitComment;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,197 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class RechargeOrderRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $requestNo;
/**
* @var float
*/
private $amount;
/**
* @var string
*/
private $remark;
/**
* @var string
*/
private $payType;
/**
* @var string
*/
private $notifyUrl;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return RechargeOrderRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return RechargeOrderRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
* @param string $requestNo
* @return RechargeOrderRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
/**
* Gets amount
* @return float
*/
public function getAmount()
{
return $this->amount;
}
/**
* Sets amount
* @param float $amount
* @return RechargeOrderRequest
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->remark;
}
/**
* Sets remark
* @param string $remark
* @return RechargeOrderRequest
*/
public function setRemark($remark)
{
$this->remark = $remark;
return $this;
}
/**
* Gets payType
* @return string
*/
public function getPayType()
{
return $this->payType;
}
/**
* Sets payType
* @param string $payType
* @return RechargeOrderRequest
*/
public function setPayType($payType)
{
$this->payType = $payType;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->notifyUrl;
}
/**
* Sets notifyUrl
* @param string $notifyUrl
* @return RechargeOrderRequest
*/
public function setNotifyUrl($notifyUrl)
{
$this->notifyUrl = $notifyUrl;
return $this;
}
public static function getOperationId()
{
return 'rechargeOrder';
}
}

View File

@@ -0,0 +1,105 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class RechargeOrderRequestMarshaller implements RequestMarshaller
{
/**
* @var RechargeOrderRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeOrderRequestMarshaller();
}
/**
* @return RechargeOrderRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'POST';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/recharge/order';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param RechargeOrderRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
if ($request->getParentMerchantNo() != null) {
$internalRequest->addParameter('parentMerchantNo',
ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string'));
}
if ($request->getMerchantNo() != null) {
$internalRequest->addParameter('merchantNo',
ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string'));
}
if ($request->getRequestNo() != null) {
$internalRequest->addParameter('requestNo',
ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string'));
}
if ($request->getAmount() != null) {
$internalRequest->addParameter('amount',
ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float'));
}
if ($request->getRemark() != null) {
$internalRequest->addParameter('remark',
ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string'));
}
if ($request->getPayType() != null) {
$internalRequest->addParameter('payType',
ObjectSerializer::sanitizeForSerialization($request->getPayType(), 'string'));
}
if ($request->getNotifyUrl() != null) {
$internalRequest->addParameter('notifyUrl',
ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string'));
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
RechargeOrderRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class RechargeOrderResponse extends BaseResponse
{
/**
* @var RechargeOrderRechargeApiRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeOrderRechargeApiRespDTOResult';
}
/**
* @param RechargeOrderRechargeApiRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return RechargeOrderRechargeApiRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class RechargeOrderResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var RechargeOrderResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeOrderResponseUnMarshaller();
}
/**
* @return RechargeOrderResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return RechargeOrderResponse
*/
protected function getResponseInstance()
{
return new RechargeOrderResponse();
}
}
RechargeOrderResponseUnMarshaller::__init();

View File

@@ -0,0 +1,752 @@
<?php
/**
* RechargeQueryRechargeQueryApiRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* RechargeQueryRechargeQueryApiRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class RechargeQueryRechargeQueryApiRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'RechargeQueryRechargeQueryApiRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'createTime' => 'string',
'requestNo' => 'string',
'orderNo' => 'string',
'status' => 'string',
'merchantNo' => 'string',
'orderAmount' => 'float',
'creditAmount' => 'float',
'fee' => 'float',
'payType' => 'string',
'remitComment' => 'string',
'bankCode' => 'string',
'bankName' => 'string',
'payerAccountNo' => 'string',
'payerAccountName' => 'string',
'remark' => 'string',
'finishTime' => 'string',
'failReason' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'createTime' => 'date-time',
'requestNo' => null,
'orderNo' => null,
'status' => null,
'merchantNo' => null,
'orderAmount' => null,
'creditAmount' => null,
'fee' => null,
'payType' => null,
'remitComment' => null,
'bankCode' => null,
'bankName' => null,
'payerAccountNo' => null,
'payerAccountName' => null,
'remark' => null,
'finishTime' => 'date-time',
'failReason' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'createTime' => 'createTime',
'requestNo' => 'requestNo',
'orderNo' => 'orderNo',
'status' => 'status',
'merchantNo' => 'merchantNo',
'orderAmount' => 'orderAmount',
'creditAmount' => 'creditAmount',
'fee' => 'fee',
'payType' => 'payType',
'remitComment' => 'remitComment',
'bankCode' => 'bankCode',
'bankName' => 'bankName',
'payerAccountNo' => 'payerAccountNo',
'payerAccountName' => 'payerAccountName',
'remark' => 'remark',
'finishTime' => 'finishTime',
'failReason' => 'failReason',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'createTime' => 'setCreateTime',
'requestNo' => 'setRequestNo',
'orderNo' => 'setOrderNo',
'status' => 'setStatus',
'merchantNo' => 'setMerchantNo',
'orderAmount' => 'setOrderAmount',
'creditAmount' => 'setCreditAmount',
'fee' => 'setFee',
'payType' => 'setPayType',
'remitComment' => 'setRemitComment',
'bankCode' => 'setBankCode',
'bankName' => 'setBankName',
'payerAccountNo' => 'setPayerAccountNo',
'payerAccountName' => 'setPayerAccountName',
'remark' => 'setRemark',
'finishTime' => 'setFinishTime',
'failReason' => 'setFailReason',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'createTime' => 'getCreateTime',
'requestNo' => 'getRequestNo',
'orderNo' => 'getOrderNo',
'status' => 'getStatus',
'merchantNo' => 'getMerchantNo',
'orderAmount' => 'getOrderAmount',
'creditAmount' => 'getCreditAmount',
'fee' => 'getFee',
'payType' => 'getPayType',
'remitComment' => 'getRemitComment',
'bankCode' => 'getBankCode',
'bankName' => 'getBankName',
'payerAccountNo' => 'getPayerAccountNo',
'payerAccountName' => 'getPayerAccountName',
'remark' => 'getRemark',
'finishTime' => 'getFinishTime',
'failReason' => 'getFailReason',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null;
$this->container['creditAmount'] = isset($data['creditAmount']) ? $data['creditAmount'] : null;
$this->container['fee'] = isset($data['fee']) ? $data['fee'] : null;
$this->container['payType'] = isset($data['payType']) ? $data['payType'] : null;
$this->container['remitComment'] = isset($data['remitComment']) ? $data['remitComment'] : null;
$this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null;
$this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null;
$this->container['payerAccountNo'] = isset($data['payerAccountNo']) ? $data['payerAccountNo'] : null;
$this->container['payerAccountName'] = isset($data['payerAccountName']) ? $data['payerAccountName'] : null;
$this->container['remark'] = isset($data['remark']) ? $data['remark'] : null;
$this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null;
$this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 返回码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 返回信息
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets createTime
* @return string
*/
public function getCreateTime()
{
return $this->container['createTime'];
}
/**
* Sets createTime
* @param string $createTime 下单时间
* @return $this
*/
public function setCreateTime($createTime)
{
$this->container['createTime'] = $createTime;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->container['orderNo'];
}
/**
* Sets orderNo
* @param string $orderNo 充值订单号
* @return $this
*/
public function setOrderNo($orderNo)
{
$this->container['orderNo'] = $orderNo;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->container['status'];
}
/**
* Sets status
* @param string $status 订单状态
* @return $this
*/
public function setStatus($status)
{
$this->container['status'] = $status;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 充值商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets orderAmount
* @return float
*/
public function getOrderAmount()
{
return $this->container['orderAmount'];
}
/**
* Sets orderAmount
* @param float $orderAmount 支付金额
* @return $this
*/
public function setOrderAmount($orderAmount)
{
$this->container['orderAmount'] = $orderAmount;
return $this;
}
/**
* Gets creditAmount
* @return float
*/
public function getCreditAmount()
{
return $this->container['creditAmount'];
}
/**
* Sets creditAmount
* @param float $creditAmount 入账金额
* @return $this
*/
public function setCreditAmount($creditAmount)
{
$this->container['creditAmount'] = $creditAmount;
return $this;
}
/**
* Gets fee
* @return float
*/
public function getFee()
{
return $this->container['fee'];
}
/**
* Sets fee
* @param float $fee 手续费
* @return $this
*/
public function setFee($fee)
{
$this->container['fee'] = $fee;
return $this;
}
/**
* Gets payType
* @return string
*/
public function getPayType()
{
return $this->container['payType'];
}
/**
* Sets payType
* @param string $payType 支付方式
* @return $this
*/
public function setPayType($payType)
{
$this->container['payType'] = $payType;
return $this;
}
/**
* Gets remitComment
* @return string
*/
public function getRemitComment()
{
return $this->container['remitComment'];
}
/**
* Sets remitComment
* @param string $remitComment 汇款备注码
* @return $this
*/
public function setRemitComment($remitComment)
{
$this->container['remitComment'] = $remitComment;
return $this;
}
/**
* Gets bankCode
* @return string
*/
public function getBankCode()
{
return $this->container['bankCode'];
}
/**
* Sets bankCode
* @param string $bankCode 银行编码
* @return $this
*/
public function setBankCode($bankCode)
{
$this->container['bankCode'] = $bankCode;
return $this;
}
/**
* Gets bankName
* @return string
*/
public function getBankName()
{
return $this->container['bankName'];
}
/**
* Sets bankName
* @param string $bankName 银行名称
* @return $this
*/
public function setBankName($bankName)
{
$this->container['bankName'] = $bankName;
return $this;
}
/**
* Gets payerAccountNo
* @return string
*/
public function getPayerAccountNo()
{
return $this->container['payerAccountNo'];
}
/**
* Sets payerAccountNo
* @param string $payerAccountNo 付款方账号
* @return $this
*/
public function setPayerAccountNo($payerAccountNo)
{
$this->container['payerAccountNo'] = $payerAccountNo;
return $this;
}
/**
* Gets payerAccountName
* @return string
*/
public function getPayerAccountName()
{
return $this->container['payerAccountName'];
}
/**
* Sets payerAccountName
* @param string $payerAccountName 付款方开户名
* @return $this
*/
public function setPayerAccountName($payerAccountName)
{
$this->container['payerAccountName'] = $payerAccountName;
return $this;
}
/**
* Gets remark
* @return string
*/
public function getRemark()
{
return $this->container['remark'];
}
/**
* Sets remark
* @param string $remark 备注
* @return $this
*/
public function setRemark($remark)
{
$this->container['remark'] = $remark;
return $this;
}
/**
* Gets finishTime
* @return string
*/
public function getFinishTime()
{
return $this->container['finishTime'];
}
/**
* Sets finishTime
* @param string $finishTime 充值完成时间
* @return $this
*/
public function setFinishTime($finishTime)
{
$this->container['finishTime'] = $finishTime;
return $this;
}
/**
* Gets failReason
* @return string
*/
public function getFailReason()
{
return $this->container['failReason'];
}
/**
* Sets failReason
* @param string $failReason 充值失败原因
* @return $this
*/
public function setFailReason($failReason)
{
$this->container['failReason'] = $failReason;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,119 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class RechargeQueryRequest extends BaseRequest
{
/**
* @var string
*/
private $parentMerchantNo;
/**
* @var string
*/
private $merchantNo;
/**
* @var string
*/
private $orderNo;
/**
* @var string
*/
private $requestNo;
/**
* Gets parentMerchantNo
* @return string
*/
public function getParentMerchantNo()
{
return $this->parentMerchantNo;
}
/**
* Sets parentMerchantNo
* @param string $parentMerchantNo
* @return RechargeQueryRequest
*/
public function setParentMerchantNo($parentMerchantNo)
{
$this->parentMerchantNo = $parentMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->merchantNo;
}
/**
* Sets merchantNo
* @param string $merchantNo
* @return RechargeQueryRequest
*/
public function setMerchantNo($merchantNo)
{
$this->merchantNo = $merchantNo;
return $this;
}
/**
* Gets orderNo
* @return string
*/
public function getOrderNo()
{
return $this->orderNo;
}
/**
* Sets orderNo
* @param string $orderNo
* @return RechargeQueryRequest
*/
public function setOrderNo($orderNo)
{
$this->orderNo = $orderNo;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->requestNo;
}
/**
* Sets requestNo
* @param string $requestNo
* @return RechargeQueryRequest
*/
public function setRequestNo($requestNo)
{
$this->requestNo = $requestNo;
return $this;
}
public static function getOperationId()
{
return 'rechargeQuery';
}
}

View File

@@ -0,0 +1,76 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Http\Headers;
use Yeepay\Yop\Sdk\Internal\DefaultRequest;
use Yeepay\Yop\Sdk\Internal\Request;
use Yeepay\Yop\Sdk\Model\Transform\RequestMarshaller;
use Yeepay\Yop\Sdk\Utils\UUIDUtils;
class RechargeQueryRequestMarshaller implements RequestMarshaller
{
/**
* @var RechargeQueryRequestMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeQueryRequestMarshaller();
}
/**
* @return RechargeQueryRequestMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @var string
*/
private $serviceName = 'Account';
/**
* @var string
*/
private $httpMethod = 'GET';
/**
* @var string
*/
private $resourcePath = '/rest/v1.0/account/recharge/query';
/**
* @var string
*/
private $contentType = 'application/x-www-form-urlencoded';
/**
* @param RechargeQueryRequest $request
* @return Request
*/
public function marshal($request)
{
$internalRequest = new DefaultRequest($this->serviceName);
$internalRequest->setResourcePath($this->resourcePath);
$internalRequest->setHttpMethod($this->httpMethod);
if (!empty($request->getRequestConfig()) && !empty($request->getRequestConfig()->getCustomRequestHeaders())) {
foreach ($request->getRequestConfig()->getCustomRequestHeaders() as $name => $value) {
$internalRequest->addHeader($name, $value);
}
}
if (!isset($internalRequest->getHeaders()[Headers::YOP_REQUEST_ID])) {
$internalRequest->addHeader(Headers::YOP_REQUEST_ID, UUIDUtils::uuid());
}
$internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType);
return $internalRequest;
}
}
RechargeQueryRequestMarshaller::__init();

View File

@@ -0,0 +1,36 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseResponse;
class RechargeQueryResponse extends BaseResponse
{
/**
* @var RechargeQueryRechargeQueryApiRespDTOResult
*/
private $result;
function getResultClass()
{
return '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeQueryRechargeQueryApiRespDTOResult';
}
/**
* @param RechargeQueryRechargeQueryApiRespDTOResult $result
*/
function setResult($result)
{
$this->result = $result;
}
/**
* @return RechargeQueryRechargeQueryApiRespDTOResult
*/
function getResult()
{
return $this->result;
}
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\Transform\BaseResponseUnMarshaller;
class RechargeQueryResponseUnMarshaller extends BaseResponseUnMarshaller
{
/**
* @var RechargeQueryResponseUnMarshaller
*/
private static $instance;
public static function __init()
{
self::$instance = new RechargeQueryResponseUnMarshaller();
}
/**
* @return RechargeQueryResponseUnMarshaller
*/
public static function getInstance()
{
return self::$instance;
}
/**
* @return RechargeQueryResponse
*/
protected function getResponseInstance()
{
return new RechargeQueryResponse();
}
}
RechargeQueryResponseUnMarshaller::__init();

View File

@@ -0,0 +1,483 @@
<?php
/**
* SupplierApplyApplySupplierRequestDTOParam
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* SupplierApplyApplySupplierRequestDTOParam Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @description
* @link https://github.com/swagger-api/swagger-codegen
*/
class SupplierApplyApplySupplierRequestDTOParam implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'SupplierApplyApplySupplierRequestDTOParam';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'requestNo' => 'string',
'initiateMerchantNo' => 'string',
'merchantNo' => 'string',
'supplierAccountInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\SupplierApplySupplierAccountInfoParam',
'supplierQualInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\SupplierApplySupplierQualInfoParam',
'notifyUrl' => 'string',
'appKey' => 'string',
'reasonType' => 'string',
'reason' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'requestNo' => null,
'initiateMerchantNo' => null,
'merchantNo' => null,
'supplierAccountInfo' => null,
'supplierQualInfo' => null,
'notifyUrl' => null,
'appKey' => null,
'reasonType' => null,
'reason' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'requestNo' => 'requestNo',
'initiateMerchantNo' => 'initiateMerchantNo',
'merchantNo' => 'merchantNo',
'supplierAccountInfo' => 'supplierAccountInfo',
'supplierQualInfo' => 'supplierQualInfo',
'notifyUrl' => 'notifyUrl',
'appKey' => 'appKey',
'reasonType' => 'reasonType',
'reason' => 'reason',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'requestNo' => 'setRequestNo',
'initiateMerchantNo' => 'setInitiateMerchantNo',
'merchantNo' => 'setMerchantNo',
'supplierAccountInfo' => 'setSupplierAccountInfo',
'supplierQualInfo' => 'setSupplierQualInfo',
'notifyUrl' => 'setNotifyUrl',
'appKey' => 'setAppKey',
'reasonType' => 'setReasonType',
'reason' => 'setReason',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'requestNo' => 'getRequestNo',
'initiateMerchantNo' => 'getInitiateMerchantNo',
'merchantNo' => 'getMerchantNo',
'supplierAccountInfo' => 'getSupplierAccountInfo',
'supplierQualInfo' => 'getSupplierQualInfo',
'notifyUrl' => 'getNotifyUrl',
'appKey' => 'getAppKey',
'reasonType' => 'getReasonType',
'reason' => 'getReason',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['initiateMerchantNo'] = isset($data['initiateMerchantNo']) ? $data['initiateMerchantNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['supplierAccountInfo'] = isset($data['supplierAccountInfo']) ? $data['supplierAccountInfo'] : null;
$this->container['supplierQualInfo'] = isset($data['supplierQualInfo']) ? $data['supplierQualInfo'] : null;
$this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null;
$this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null;
$this->container['reasonType'] = isset($data['reasonType']) ? $data['reasonType'] : null;
$this->container['reason'] = isset($data['reason']) ? $data['reason'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo requestNo
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets initiateMerchantNo
* @return string
*/
public function getInitiateMerchantNo()
{
return $this->container['initiateMerchantNo'];
}
/**
* Sets initiateMerchantNo
* @param string $initiateMerchantNo initiateMerchantNo
* @return $this
*/
public function setInitiateMerchantNo($initiateMerchantNo)
{
$this->container['initiateMerchantNo'] = $initiateMerchantNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo merchantNo
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets supplierAccountInfo
* @return \Yeepay\Yop\Sdk\Service\Account\Model\SupplierApplySupplierAccountInfoParam
*/
public function getSupplierAccountInfo()
{
return $this->container['supplierAccountInfo'];
}
/**
* Sets supplierAccountInfo
* @param \Yeepay\Yop\Sdk\Service\Account\Model\SupplierApplySupplierAccountInfoParam $supplierAccountInfo supplierAccountInfo
* @return $this
*/
public function setSupplierAccountInfo($supplierAccountInfo)
{
$this->container['supplierAccountInfo'] = $supplierAccountInfo;
return $this;
}
/**
* Gets supplierQualInfo
* @return \Yeepay\Yop\Sdk\Service\Account\Model\SupplierApplySupplierQualInfoParam
*/
public function getSupplierQualInfo()
{
return $this->container['supplierQualInfo'];
}
/**
* Sets supplierQualInfo
* @param \Yeepay\Yop\Sdk\Service\Account\Model\SupplierApplySupplierQualInfoParam $supplierQualInfo supplierQualInfo
* @return $this
*/
public function setSupplierQualInfo($supplierQualInfo)
{
$this->container['supplierQualInfo'] = $supplierQualInfo;
return $this;
}
/**
* Gets notifyUrl
* @return string
*/
public function getNotifyUrl()
{
return $this->container['notifyUrl'];
}
/**
* Sets notifyUrl
* @param string $notifyUrl notifyUrl
* @return $this
*/
public function setNotifyUrl($notifyUrl)
{
$this->container['notifyUrl'] = $notifyUrl;
return $this;
}
/**
* Gets appKey
* @return string
*/
public function getAppKey()
{
return $this->container['appKey'];
}
/**
* Sets appKey
* @param string $appKey appKey
* @return $this
*/
public function setAppKey($appKey)
{
$this->container['appKey'] = $appKey;
return $this;
}
/**
* Gets reasonType
* @return string
*/
public function getReasonType()
{
return $this->container['reasonType'];
}
/**
* Sets reasonType
* @param string $reasonType reasonType
* @return $this
*/
public function setReasonType($reasonType)
{
$this->container['reasonType'] = $reasonType;
return $this;
}
/**
* Gets reason
* @return string
*/
public function getReason()
{
return $this->container['reason'];
}
/**
* Sets reason
* @param string $reason reason
* @return $this
*/
public function setReason($reason)
{
$this->container['reason'] = $reason;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,374 @@
<?php
/**
* SupplierApplyApplySupplierRespDTOResult
* PHP version 5
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* 账户
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
* OpenAPI spec version: 1.0.0
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Swagger Codegen version: 3.0.13
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use ArrayAccess;
use Yeepay\Yop\Sdk\Model\ModelInterface;
use Yeepay\Yop\Sdk\Utils\ObjectSerializer;
/**
* SupplierApplyApplySupplierRespDTOResult Class Doc Comment
* @author Swagger Codegen team
* @package Yeepay\Yop\Sdk\
* @category Class
* @link https://github.com/swagger-api/swagger-codegen
*/
class SupplierApplyApplySupplierRespDTOResult implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;
/**
* The original name of the model.
* @var string
*/
protected static $swaggerModelName = 'SupplierApplyApplySupplierRespDTOResult';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerTypes = [
'returnCode' => 'string',
'returnMsg' => 'string',
'requestNo' => 'string',
'merchantNo' => 'string',
'applicationStatus' => 'string',
];
/**
* Array of property to format mappings. Used for (de)serialization
* @var string[]
*/
protected static $swaggerFormats = [
'returnCode' => null,
'returnMsg' => null,
'requestNo' => null,
'merchantNo' => null,
'applicationStatus' => null,
];
/**
* Array of property to type mappings. Used for (de)serialization
* @return array
*/
public static function swaggerTypes()
{
return self::$swaggerTypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
* @return array
*/
public static function swaggerFormats()
{
return self::$swaggerFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @var string[]
*/
protected static $attributeMap = [
'returnCode' => 'returnCode',
'returnMsg' => 'returnMsg',
'requestNo' => 'requestNo',
'merchantNo' => 'merchantNo',
'applicationStatus' => 'applicationStatus',
];
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
protected static $setters = [
'returnCode' => 'setReturnCode',
'returnMsg' => 'setReturnMsg',
'requestNo' => 'setRequestNo',
'merchantNo' => 'setMerchantNo',
'applicationStatus' => 'setApplicationStatus',
];
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
protected static $getters = [
'returnCode' => 'getReturnCode',
'returnMsg' => 'getReturnMsg',
'requestNo' => 'getRequestNo',
'merchantNo' => 'getMerchantNo',
'applicationStatus' => 'getApplicationStatus',
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
* @return string
*/
public function getModelName()
{
return self::$swaggerModelName;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null;
$this->container['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null;
$this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null;
$this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null;
$this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null;
}
/**
* Show all the invalid properties with reasons.
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets returnCode
* @return string
*/
public function getReturnCode()
{
return $this->container['returnCode'];
}
/**
* Sets returnCode
* @param string $returnCode 响应码
* @return $this
*/
public function setReturnCode($returnCode)
{
$this->container['returnCode'] = $returnCode;
return $this;
}
/**
* Gets returnMsg
* @return string
*/
public function getReturnMsg()
{
return $this->container['returnMsg'];
}
/**
* Sets returnMsg
* @param string $returnMsg 响应描述
* @return $this
*/
public function setReturnMsg($returnMsg)
{
$this->container['returnMsg'] = $returnMsg;
return $this;
}
/**
* Gets requestNo
* @return string
*/
public function getRequestNo()
{
return $this->container['requestNo'];
}
/**
* Sets requestNo
* @param string $requestNo 商户请求号
* @return $this
*/
public function setRequestNo($requestNo)
{
$this->container['requestNo'] = $requestNo;
return $this;
}
/**
* Gets merchantNo
* @return string
*/
public function getMerchantNo()
{
return $this->container['merchantNo'];
}
/**
* Sets merchantNo
* @param string $merchantNo 商户编号
* @return $this
*/
public function setMerchantNo($merchantNo)
{
$this->container['merchantNo'] = $merchantNo;
return $this;
}
/**
* Gets applicationStatus
* @return string
*/
public function getApplicationStatus()
{
return $this->container['applicationStatus'];
}
/**
* Sets applicationStatus
* @param string $applicationStatus 审批状态
* @return $this
*/
public function setApplicationStatus($applicationStatus)
{
$this->container['applicationStatus'] = $applicationStatus;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -0,0 +1,41 @@
<?php
namespace Yeepay\Yop\Sdk\Service\Account\Model;
use Yeepay\Yop\Sdk\Model\BaseRequest;
class SupplierApplyRequest extends BaseRequest
{
/**
* @var
*/
private $body;
/**
* Gets body
* @return
*/
public function getBody()
{
return $this->body;
}
/**
* Sets body
* @param $body
* @return SupplierApplyRequest
*/
public function setBody($body)
{
$this->body = $body;
return $this;
}
public static function getOperationId()
{
return 'supplierApply';
}
}

Some files were not shown because too many files have changed in this diff Show More