From f8299b36aaa5d6696a82f07d2900c5aeb24461bc Mon Sep 17 00:00:00 2001 From: xuanchen <122383162@qq.com> Date: Mon, 1 Apr 2024 17:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=81=9A=E5=90=88=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E6=89=98=E7=AE=A1=E4=B8=8B=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Auth/Signer/RsaSigner.php | 17 +- lib/Client/ClientHandler.php | 23 +- .../Transform/BaseResponseUnMarshaller.php | 9 +- ...undQueryAccountBookRefundRespDTOResult.php | 512 +++++ .../Model/AccountBookQueryRefundRequest.php | 92 + ...ccountBookQueryRefundRequestMarshaller.php | 86 + .../Model/AccountBookQueryRefundResponse.php | 34 + ...untBookQueryRefundResponseUnMarshaller.php | 39 + ...okRefundAccountBookRefundRespDTOResult.php | 482 +++++ .../Model/AccountBookRefundRequest.php | 192 ++ .../AccountBookRefundRequestMarshaller.php | 98 + .../Model/AccountBookRefundResponse.php | 34 + .../AccountBookRefundResponseUnMarshaller.php | 39 + .../Model/AccountIndividualApplyRequest.php | 217 +++ ...ccountIndividualApplyRequestMarshaller.php | 101 + .../Model/AccountIndividualApplyResponse.php | 34 + ...untIndividualApplyResponseUnMarshaller.php | 39 + .../AccountIndividualQueryProgressRequest.php | 42 + ...dividualQueryProgressRequestMarshaller.php | 80 + ...AccountIndividualQueryProgressResponse.php | 34 + ...idualQueryProgressResponseUnMarshaller.php | 39 + .../Model/AccountIndividualQueryRequest.php | 42 + ...ccountIndividualQueryRequestMarshaller.php | 80 + .../Model/AccountIndividualQueryResponse.php | 34 + ...untIndividualQueryResponseUnMarshaller.php | 39 + ...OpenAccountBookCreateResponseDtoResult.php | 482 +++++ .../Model/AccountManageAccountOpenRequest.php | 117 ++ ...ountManageAccountOpenRequestMarshaller.php | 89 + .../AccountManageAccountOpenResponse.php | 34 + ...tManageAccountOpenResponseUnMarshaller.php | 39 + ...ryAccountBalanceQueryResponseDtoResult.php | 452 +++++ .../AccountManageAccountQueryRequest.php | 117 ++ ...untManageAccountQueryRequestMarshaller.php | 89 + .../AccountManageAccountQueryResponse.php | 34 + ...ManageAccountQueryResponseUnMarshaller.php | 39 + .../AccountManageBankAccountOpenRequest.php | 42 + ...ManageBankAccountOpenRequestMarshaller.php | 80 + .../AccountManageBankAccountOpenResponse.php | 34 + ...ageBankAccountOpenResponseUnMarshaller.php | 39 + .../AccountManageBankAccountQueryRequest.php | 92 + ...anageBankAccountQueryRequestMarshaller.php | 86 + .../AccountManageBankAccountQueryResponse.php | 34 + ...geBankAccountQueryResponseUnMarshaller.php | 39 + ...ccountManageBankAccountQueryV10Request.php | 92 + ...geBankAccountQueryV10RequestMarshaller.php | 86 + ...countManageBankAccountQueryV10Response.php | 34 + ...ankAccountQueryV10ResponseUnMarshaller.php | 39 + .../Model/ApplyIndivdualProgressRespDTO.php | 580 ++++++ .../Account/Model/ApplyIndividualRespDTO.php | 499 +++++ .../Model/BankAccountAuthApplyRequest.php | 92 + .../BankAccountAuthApplyRequestMarshaller.php | 86 + .../Model/BankAccountAuthApplyResponse.php | 34 + ...nkAccountAuthApplyResponseUnMarshaller.php | 39 + .../Model/BankAccountAuthConfirmRequest.php | 117 ++ ...ankAccountAuthConfirmRequestMarshaller.php | 89 + .../Model/BankAccountAuthConfirmResponse.php | 34 + ...AccountAuthConfirmResponseUnMarshaller.php | 39 + ...derBankAccountPaymentPayerInfoDtoParam.php | 393 ++++ ...OrderBankAccountPaymentRequestDtoParam.php | 603 ++++++ ...ntOrderBankAccountPaymentRespDtoResult.php | 452 +++++ .../BankPaymentOrderOrderInfoDtoParam.php | 543 ++++++ .../Account/Model/BankPaymentOrderRequest.php | 42 + .../BankPaymentOrderRequestMarshaller.php | 80 + .../Model/BankPaymentOrderResponse.php | 34 + .../BankPaymentOrderResponseUnMarshaller.php | 39 + .../Account/Model/BenefitInfoReqDTO.php | 603 ++++++ ...OrderAccountBookPaymentRequestDtoParam.php | 543 ++++++ ...ayOrderAccountBookPaymentRespDtoResult.php | 422 ++++ ...seAccountBookPayOrderOrderInfoDtoParam.php | 543 ++++++ .../EnterpriseAccountBookPayOrderRequest.php | 42 + ...seAccountBookPayOrderRequestMarshaller.php | 80 + .../EnterpriseAccountBookPayOrderResponse.php | 34 + ...ccountBookPayOrderResponseUnMarshaller.php | 39 + .../Model/EnterpriseTokenPayOrderRequest.php | 92 + ...terpriseTokenPayOrderRequestMarshaller.php | 86 + .../Model/EnterpriseTokenPayOrderResponse.php | 34 + ...priseTokenPayOrderResponseUnMarshaller.php | 39 + ...nPayOrderTokenPaymentResponseDtoResult.php | 392 ++++ ...rExternalOrderSubmitOrderRespDtoResult.php | 332 ++++ .../Account/Model/ExternalOrderRequest.php | 467 +++++ .../Model/ExternalOrderRequestMarshaller.php | 131 ++ .../Account/Model/ExternalOrderResponse.php | 34 + .../ExternalOrderResponseUnMarshaller.php | 39 + .../Account/Model/HtbOpenAccountDTO.php | 1065 ++++++++++ .../Account/Model/IndividualApplyRequest.php | 217 +++ .../IndividualApplyRequestMarshaller.php | 101 + .../Account/Model/IndividualApplyResponse.php | 34 + .../IndividualApplyResponseUnMarshaller.php | 39 + lib/Service/Account/Model/IndividualDTO.php | 471 +++++ .../Model/IndividualQueryProgressRequest.php | 42 + ...dividualQueryProgressRequestMarshaller.php | 80 + .../Model/IndividualQueryProgressResponse.php | 34 + ...idualQueryProgressResponseUnMarshaller.php | 39 + .../Account/Model/IndividualQueryRequest.php | 42 + .../IndividualQueryRequestMarshaller.php | 80 + .../Account/Model/IndividualQueryResponse.php | 34 + .../IndividualQueryResponseUnMarshaller.php | 39 + .../Account/Model/JsbcOpenAccountDTO.php | 711 +++++++ .../Model/OpenAccountAuthApplyRespDTO.php | 399 ++++ .../Model/OpenAccountAuthConfirmRespDTO.php | 402 ++++ ...PayBatchOrderBatchRemitExtInfoDTOParam.php | 333 ++++ .../PayBatchOrderBatchRemitReqDTOParam.php | 723 +++++++ .../PayBatchOrderBatchRemitRespDTOResult.php | 422 ++++ .../PayBatchOrderRemitDetailDTOParam.php | 573 ++++++ .../PayBatchOrderRemitDetailRespDTOResult.php | 392 ++++ .../Account/Model/PayBatchOrderRequest.php | 42 + .../Model/PayBatchOrderRequestMarshaller.php | 80 + .../Account/Model/PayBatchOrderResponse.php | 34 + .../PayBatchOrderResponseUnMarshaller.php | 39 + ...BatchQueryBatchRemitQueryRespDTOResult.php | 422 ++++ .../PayBatchQueryRemitOrderQueryDTOResult.php | 902 +++++++++ .../Account/Model/PayBatchQueryRequest.php | 42 + .../Model/PayBatchQueryRequestMarshaller.php | 80 + .../Account/Model/PayBatchQueryResponse.php | 34 + .../PayBatchQueryResponseUnMarshaller.php | 39 + ...ystemQueryRemitOrderQueryRespDTOResult.php | 902 +++++++++ .../Account/Model/PaySystemQueryRequest.php | 92 + .../Model/PaySystemQueryRequestMarshaller.php | 86 + .../Account/Model/PaySystemQueryResponse.php | 34 + .../PaySystemQueryResponseUnMarshaller.php | 39 + .../Account/Model/QueryIndividualRespDTO.php | 366 ++++ ...ReceiptGatherBatchReceiptRespDTOResult.php | 362 ++++ .../Account/Model/ReceiptGatherRequest.php | 142 ++ .../Model/ReceiptGatherRequestMarshaller.php | 92 + .../Account/Model/ReceiptGatherResponse.php | 34 + .../ReceiptGatherResponseUnMarshaller.php | 39 + ...ountBookQueryRechargeOrderApiDtoResult.php | 782 ++++++++ ...ueryRechargePageQueryResponseDTOResult.php | 392 ++++ .../Model/RechargeAccountBookQueryRequest.php | 192 ++ ...hargeAccountBookQueryRequestMarshaller.php | 98 + .../RechargeAccountBookQueryResponse.php | 34 + ...geAccountBookQueryResponseUnMarshaller.php | 39 + .../Model/RechargeBankPayRequestDTOParam.php | 423 ++++ ...rgeBatchQueryRechargeOrderApiDtoResult.php | 813 ++++++++ ...ueryRechargeQueryMultiApiRespDTOResult.php | 362 ++++ .../Model/RechargeBatchQueryRequest.php | 117 ++ .../RechargeBatchQueryRequestMarshaller.php | 89 + .../Model/RechargeBatchQueryResponse.php | 34 + ...RechargeBatchQueryResponseUnMarshaller.php | 39 + .../Model/RechargeEBankRequestDTOParam.php | 333 ++++ .../RechargeQuickPublicRequestDTOParam.php | 333 ++++ .../RechargeRechargeApiV2RequestDTOParam.php | 753 ++++++++ ...RechargeRechargeApiV2ResponseDTOResult.php | 542 ++++++ lib/Service/Account/Model/RechargeRequest.php | 42 + .../Model/RechargeRequestMarshaller.php | 80 + .../Account/Model/RechargeResponse.php | 34 + .../Model/RechargeResponseUnMarshaller.php | 39 + .../Account/Model/SetWithdrawRuleRequest.php | 67 + .../SetWithdrawRuleRequestMarshaller.php | 83 + .../Account/Model/SetWithdrawRuleResponse.php | 34 + .../SetWithdrawRuleResponseUnMarshaller.php | 39 + ...tWithdrawRuleWithdrawRuleRespDTOResult.php | 362 ++++ .../Account/Model/ShareHolderInfoReqDTO.php | 438 +++++ .../Account/Model/SnOpenAccountDTO.php | 711 +++++++ .../StandardOpenAccountQueryResponseDTO.php | 633 ++++++ .../Model/StandardOpenAccountRequestDTO.php | 711 +++++++ .../Model/StandardOpenAccountResponseDTO.php | 483 +++++ ...QueryMgTransferOrderQueryRespDTOResult.php | 752 +++++++ .../Model/TransferSystemQueryRequest.php | 92 + .../TransferSystemQueryRequestMarshaller.php | 86 + .../Model/TransferSystemQueryResponse.php | 34 + ...ransferSystemQueryResponseUnMarshaller.php | 39 + .../Model/TransferWechatOrderRequest.php | 267 +++ .../TransferWechatOrderRequestMarshaller.php | 107 + .../Model/TransferWechatOrderResponse.php | 34 + ...ransferWechatOrderResponseUnMarshaller.php | 39 + ...WechatOrderWechatTransferRespDTOResult.php | 482 +++++ ...tQueryQueryWechatTransferRespDTOResult.php | 632 ++++++ .../Model/TransferWechatQueryRequest.php | 117 ++ .../TransferWechatQueryRequestMarshaller.php | 89 + .../Model/TransferWechatQueryResponse.php | 34 + ...ransferWechatQueryResponseUnMarshaller.php | 39 + .../Account/Model/WhzbbOpenAccountDTO.php | 816 ++++++++ ...QueryMGWithdrawOrderQueryRespDTOResult.php | 902 +++++++++ .../Model/WithdrawSystemQueryRequest.php | 92 + .../WithdrawSystemQueryRequestMarshaller.php | 86 + .../Model/WithdrawSystemQueryResponse.php | 34 + ...ithdrawSystemQueryResponseUnMarshaller.php | 39 + .../Account/Model/XibOpenAccountDTO.php | 858 ++++++++ .../Account/Model/XwbOpenAccountDTO.php | 963 +++++++++ lib/Service/Aggpay/AggpayClient.php | 18 +- lib/Service/Aggpay/AggpayClientBuilder.php | 3 + .../Model/ComplaintWechatDetailsRequest.php | 42 + ...omplaintWechatDetailsRequestMarshaller.php | 80 + .../Model/ComplaintWechatDetailsResponse.php | 34 + ...laintWechatDetailsResponseUnMarshaller.php | 39 + ...chatComplaintInfoFlatResponseDTOResult.php | 842 ++++++++ .../ComplaintWechatDownloadPicRequest.php | 92 + ...aintWechatDownloadPicRequestMarshaller.php | 86 + .../ComplaintWechatDownloadPicResponse.php | 34 + ...tWechatDownloadPicResponseUnMarshaller.php | 39 + ...tComplaintDownloadPicResponseDTOResult.php | 392 ++++ ...intWechatFeedbackBaseResponseDTOResult.php | 332 ++++ .../Model/ComplaintWechatFeedbackRequest.php | 117 ++ ...mplaintWechatFeedbackRequestMarshaller.php | 89 + .../Model/ComplaintWechatFeedbackResponse.php | 34 + ...aintWechatFeedbackResponseUnMarshaller.php | 39 + .../Model/ComplaintWechatListRequest.php | 192 ++ .../ComplaintWechatListRequestMarshaller.php | 98 + .../Model/ComplaintWechatListResponse.php | 34 + ...omplaintWechatListResponseUnMarshaller.php | 39 + ...chatComplaintListFlatResponseDTOResult.php | 392 ++++ ...mplaintWechatNegotiationHistoryRequest.php | 42 + ...hatNegotiationHistoryRequestMarshaller.php | 80 + ...plaintWechatNegotiationHistoryResponse.php | 34 + ...NegotiationHistoryResponseUnMarshaller.php | 39 + ...egotiationHistoryFlatResponseDTOResult.php | 362 ++++ ...aintWechatSuccessBaseResponseDTOResult.php | 332 ++++ .../Model/ComplaintWechatSuccessRequest.php | 42 + ...omplaintWechatSuccessRequestMarshaller.php | 80 + .../Model/ComplaintWechatSuccessResponse.php | 34 + ...laintWechatSuccessResponseUnMarshaller.php | 39 + .../PayLinkOrderCodeResponseDTOResult.php | 482 +++++ lib/Service/Aggpay/Model/PayLinkRequest.php | 617 ++++++ .../Aggpay/Model/PayLinkRequestMarshaller.php | 149 ++ lib/Service/Aggpay/Model/PayLinkResponse.php | 34 + .../Model/PayLinkResponseUnMarshaller.php | 39 + ...seridPassiveGetUserIdResponseDTOResult.php | 392 ++++ .../Aggpay/Model/QueryUseridRequest.php | 142 ++ .../Model/QueryUseridRequestMarshaller.php | 92 + .../Aggpay/Model/QueryUseridResponse.php | 34 + .../Model/QueryUseridResponseUnMarshaller.php | 39 + ...GenerateAliShareTokenResponseDTOResult.php | 602 ++++++ .../Model/ShareTokenGenerateRequest.php | 642 ++++++ .../ShareTokenGenerateRequestMarshaller.php | 152 ++ .../Model/ShareTokenGenerateResponse.php | 34 + ...ShareTokenGenerateResponseUnMarshaller.php | 39 + ...etQueryAliMarketQueryResponseDTOResult.php | 362 ++++ .../Model/ShareTokenMarketQueryRequest.php | 142 ++ ...ShareTokenMarketQueryRequestMarshaller.php | 92 + .../Model/ShareTokenMarketQueryResponse.php | 34 + ...reTokenMarketQueryResponseUnMarshaller.php | 39 + .../Aggpay/Model/TutelagePrePayRequest.php | 587 ++++++ .../Model/TutelagePrePayRequestMarshaller.php | 143 ++ .../Aggpay/Model/TutelagePrePayResponse.php | 35 + .../TutelagePrePayResponseUnMarshaller.php | 39 + ...PrePayWrapPrePayOrderResponseDTOResult.php | 512 +++++ .../Aggpay/Model/WechatConfigAddV2Request.php | 117 ++ .../WechatConfigAddV2RequestMarshaller.php | 89 + .../Model/WechatConfigAddV2Response.php | 34 + .../WechatConfigAddV2ResponseUnMarshaller.php | 39 + ...AddV2WechatConfigFlatResponseDTOResult.php | 392 ++++ .../Model/WechatConfigQueryV2Request.php | 92 + .../WechatConfigQueryV2RequestMarshaller.php | 86 + .../Model/WechatConfigQueryV2Response.php | 34 + ...echatConfigQueryV2ResponseUnMarshaller.php | 39 + ...eryV2WechatConfigFlatResponseDTOResult.php | 392 ++++ lib/Service/AtVcc/AtVccClient.php | 49 + lib/Service/AtVcc/AtVccClientBuilder.php | 68 + ...QueryAuthReportDetailResponseDTOResult.php | 632 ++++++ ...rQueryAuthReportQueryResponseDTOResult.php | 602 ++++++ .../AtVcc/Model/UnionPayOrderQueryRequest.php | 117 ++ .../UnionPayOrderQueryRequestMarshaller.php | 91 + .../Model/UnionPayOrderQueryResponse.php | 34 + ...UnionPayOrderQueryResponseUnMarshaller.php | 39 + lib/Service/Auth/AuthClient.php | 117 ++ lib/Service/Auth/AuthClientBuilder.php | 72 + .../FaceAuthFaceAuthResponseDTOResult.php | 452 +++++ .../FaceAuthKycFaceAuthResponseDTOResult.php | 452 +++++ ...ryFaceAuthResultQueryResponseDTOResult.php | 482 +++++ .../Auth/Model/FaceAuthKycQueryRequest.php | 92 + .../FaceAuthKycQueryRequestMarshaller.php | 86 + .../Auth/Model/FaceAuthKycQueryResponse.php | 34 + .../FaceAuthKycQueryResponseUnMarshaller.php | 39 + lib/Service/Auth/Model/FaceAuthKycRequest.php | 242 +++ .../Model/FaceAuthKycRequestMarshaller.php | 104 + .../Auth/Model/FaceAuthKycResponse.php | 34 + .../Model/FaceAuthKycResponseUnMarshaller.php | 39 + lib/Service/Auth/Model/FaceAuthRequest.php | 242 +++ .../Auth/Model/FaceAuthRequestMarshaller.php | 104 + lib/Service/Auth/Model/FaceAuthResponse.php | 34 + .../Model/FaceAuthResponseUnMarshaller.php | 39 + ...ryFaceAuthResultQueryResponseDTOResult.php | 452 +++++ .../Auth/Model/FaceAuthResultQueryRequest.php | 92 + .../FaceAuthResultQueryRequestMarshaller.php | 86 + .../Model/FaceAuthResultQueryResponse.php | 34 + ...aceAuthResultQueryResponseUnMarshaller.php | 39 + .../MultipleAuthAuthResponseDTOResult.php | 482 +++++ .../Auth/Model/MultipleAuthRequest.php | 292 +++ .../Model/MultipleAuthRequestMarshaller.php | 110 ++ .../Auth/Model/MultipleAuthResponse.php | 34 + .../MultipleAuthResponseUnMarshaller.php | 39 + .../Cashier/Model/UnifiedOrderRequest.php | 517 +++++ .../Model/UnifiedOrderRequestMarshaller.php | 137 ++ .../Cashier/Model/UnifiedOrderResponse.php | 34 + .../UnifiedOrderResponseUnMarshaller.php | 39 + ...erUnifiedCashierOrderResponseDTOResult.php | 392 ++++ ...mentPayRequestInstallmentApiInfoResult.php | 333 ++++ ...RequestInstallmentPayResponseDTOResult.php | 482 +++++ .../Model/InstallmentPayRequestRequest.php | 367 ++++ ...InstallmentPayRequestRequestMarshaller.php | 119 ++ .../Model/InstallmentPayRequestResponse.php | 34 + ...tallmentPayRequestResponseUnMarshaller.php | 39 + ...erybankcfgInstallmentBankCfgInfoResult.php | 452 +++++ ...cfgInstallmentBankCfgResponseDTOResult.php | 362 ++++ .../Model/InstallmentQuerybankcfgRequest.php | 67 + ...stallmentQuerybankcfgRequestMarshaller.php | 83 + .../Model/InstallmentQuerybankcfgResponse.php | 34 + ...llmentQuerybankcfgResponseUnMarshaller.php | 39 + ...eceiptDownloadReceiptResponseDTOResult.php | 362 ++++ .../Model/BackReceiptDownloadRequest.php | 142 ++ .../BackReceiptDownloadRequestMarshaller.php | 92 + .../Model/BackReceiptDownloadResponse.php | 34 + ...ackReceiptDownloadResponseUnMarshaller.php | 39 + ...bindAgreementBindCardResponseDTOResult.php | 452 +++++ .../Model/AgreementNosmsbindRequest.php | 267 +++ .../AgreementNosmsbindRequestMarshaller.php | 107 + .../Model/AgreementNosmsbindResponse.php | 34 + ...AgreementNosmsbindResponseUnMarshaller.php | 39 + ...enAuthBindCardConfirmResponseDTOResult.php | 512 +++++ .../Model/BindcardConfirmV2Request.php | 117 ++ .../BindcardConfirmV2RequestMarshaller.php | 89 + .../Model/BindcardConfirmV2Response.php | 34 + .../BindcardConfirmV2ResponseUnMarshaller.php | 39 + ...stOpenPayerAuthBindCardRequestDTOParam.php | 933 +++++++++ ...OpenPayerAuthBindCardResponseDTOResult.php | 632 ++++++ .../Model/BindcardPayerrequestRequest.php | 42 + .../BindcardPayerrequestRequestMarshaller.php | 80 + .../Model/BindcardPayerrequestResponse.php | 34 + ...ndcardPayerrequestResponseUnMarshaller.php | 39 + ...nfoOpenQueryOrderInfoResponseDTOResult.php | 542 ++++++ .../Model/BindcardQueryorderinfoRequest.php | 92 + ...indcardQueryorderinfoRequestMarshaller.php | 86 + .../Model/BindcardQueryorderinfoResponse.php | 34 + ...cardQueryorderinfoResponseUnMarshaller.php | 39 + ...estV2OpenAuthBindCardResponseDTOResult.php | 512 +++++ .../Model/BindcardRequestV2Request.php | 417 ++++ .../BindcardRequestV2RequestMarshaller.php | 125 ++ .../Model/BindcardRequestV2Response.php | 34 + .../BindcardRequestV2ResponseUnMarshaller.php | 39 + ...V2OpenAuthBindCardSmsResponseDTOResult.php | 452 +++++ .../Model/BindcardResendsmsV2Request.php | 92 + .../BindcardResendsmsV2RequestMarshaller.php | 86 + .../Model/BindcardResendsmsV2Response.php | 34 + ...indcardResendsmsV2ResponseUnMarshaller.php | 39 + .../Model/BindcardUnbindcardRequest.php | 117 ++ .../BindcardUnbindcardRequestMarshaller.php | 89 + .../Model/BindcardUnbindcardResponse.php | 34 + ...BindcardUnbindcardResponseUnMarshaller.php | 39 + ...dUnbindcardUnBindCardResponseDTOResult.php | 452 +++++ ...NetsUnionAuthBindCardResponseDTOResult.php | 512 +++++ .../Model/FastbindcardRequestRequest.php | 392 ++++ .../FastbindcardRequestRequestMarshaller.php | 122 ++ .../Model/FastbindcardRequestResponse.php | 34 + ...astbindcardRequestResponseUnMarshaller.php | 39 + ...nPayOpenActiveScanPayResponseDTOResult.php | 362 ++++ .../Model/UpopActivescanPayRequest.php | 542 ++++++ .../UpopActivescanPayRequestMarshaller.php | 140 ++ .../Model/UpopActivescanPayResponse.php | 34 + .../UpopActivescanPayResponseUnMarshaller.php | 39 + ...onOpenQueryCouponInfoResponseDTOResult.php | 362 ++++ .../UpopActivescanQuerycouponRequest.php | 267 +++ ...ActivescanQuerycouponRequestMarshaller.php | 107 + .../UpopActivescanQuerycouponResponse.php | 34 + ...ivescanQuerycouponResponseUnMarshaller.php | 39 + ...enQueryPayeeOrderInfoResponseDTOResult.php | 452 +++++ .../UpopActivescanQuerypayeeorderRequest.php | 67 + ...vescanQuerypayeeorderRequestMarshaller.php | 83 + .../UpopActivescanQuerypayeeorderResponse.php | 34 + ...canQuerypayeeorderResponseUnMarshaller.php | 39 + ...ueryActiveScanPayResultRequestDTOParam.php | 333 ++++ ...ryActiveScanPayResultResponseDTOResult.php | 722 +++++++ ...sultRefundTradeDetailResponseDTOResult.php | 483 +++++ .../UpopActivescanQuerypayresultRequest.php | 42 + ...ivescanQuerypayresultRequestMarshaller.php | 80 + .../UpopActivescanQuerypayresultResponse.php | 34 + ...scanQuerypayresultResponseUnMarshaller.php | 39 + ...odeOpenPassiveScanPayResponseDTOResult.php | 452 +++++ ...teOpenPassiveValidateResponseDTOResult.php | 392 ++++ .../Model/UpopPassivescanValidateRequest.php | 117 ++ ...opPassivescanValidateRequestMarshaller.php | 89 + .../Model/UpopPassivescanValidateResponse.php | 34 + ...assivescanValidateResponseUnMarshaller.php | 39 + lib/Service/Insurance/InsuranceClient.php | 60 + .../Insurance/InsuranceClientBuilder.php | 69 + ...RealnameAuthCommonInsurRequestDTOParam.php | 723 +++++++ ...alnameAuthCommonInsurResponseDTOResult.php | 722 +++++++ .../RealnameAuthCustomerDataDTOResult.php | 422 ++++ .../Insurance/Model/RealnameAuthRequest.php | 42 + .../Model/RealnameAuthRequestMarshaller.php | 80 + .../Insurance/Model/RealnameAuthResponse.php | 34 + .../RealnameAuthResponseUnMarshaller.php | 39 + .../RealnameAuthTradingBackDataDTOParam.php | 392 ++++ ...ameNotifyCommonNoticeResponseDTOResult.php | 452 +++++ .../Insurance/Model/RealnameNotifyRequest.php | 617 ++++++ .../Model/RealnameNotifyRequestMarshaller.php | 149 ++ .../Model/RealnameNotifyResponse.php | 34 + .../RealnameNotifyResponseUnMarshaller.php | 39 + lib/Service/Invoice/InvoiceClient.php | 120 ++ lib/Service/Invoice/InvoiceClientBuilder.php | 72 + .../ApplyApplyInvoiceYOPResponseDtoResult.php | 662 +++++++ .../Model/ApplyIssueInvoiceDtoResult.php | 512 +++++ lib/Service/Invoice/Model/ApplyRequest.php | 167 ++ .../Invoice/Model/ApplyRequestMarshaller.php | 95 + lib/Service/Invoice/Model/ApplyResponse.php | 34 + .../Model/ApplyResponseUnMarshaller.php | 39 + .../Model/FeeQueryGetFeeResponseDtoResult.php | 452 +++++ lib/Service/Invoice/Model/FeeQueryRequest.php | 117 ++ .../Model/FeeQueryRequestMarshaller.php | 89 + .../Invoice/Model/FeeQueryResponse.php | 34 + .../Model/FeeQueryResponseUnMarshaller.php | 39 + ...ddOrModifyInvoiceInfoResponseDtoResult.php | 422 ++++ .../Invoice/Model/InfoModifyRequest.php | 517 +++++ .../Model/InfoModifyRequestMarshaller.php | 137 ++ .../Invoice/Model/InfoModifyResponse.php | 34 + .../Model/InfoModifyResponseUnMarshaller.php | 39 + ...ryQueryInvoiceInfoYOPResponseDtoResult.php | 992 ++++++++++ .../Invoice/Model/InfoQueryRequest.php | 67 + .../Model/InfoQueryRequestMarshaller.php | 83 + .../Invoice/Model/InfoQueryResponse.php | 34 + .../Model/InfoQueryResponseUnMarshaller.php | 39 + ...dQueryApplyInvoiceYOPResponseDtoResult.php | 662 +++++++ .../RecordQueryIssueInvoiceDtoResult.php | 512 +++++ ...ueryQueryApplyInvoiceResponseDTOResult.php | 362 ++++ .../Invoice/Model/RecordQueryRequest.php | 92 + .../Model/RecordQueryRequestMarshaller.php | 86 + .../Invoice/Model/RecordQueryResponse.php | 34 + .../Model/RecordQueryResponseUnMarshaller.php | 39 + lib/Service/MWallet/MWalletClient.php | 1720 +++++++++++++++++ lib/Service/MWallet/MWalletClientBuilder.php | 167 ++ .../MWallet/Model/APIWalletPayResponseDTO.php | 363 ++++ .../Model/AccountFaceCertifyOpenRequest.php | 267 +++ ...ccountFaceCertifyOpenRequestMarshaller.php | 107 + .../Model/AccountFaceCertifyOpenResponse.php | 34 + ...untFaceCertifyOpenResponseUnMarshaller.php | 39 + .../MWallet/Model/AccountMemberDTO.php | 693 +++++++ .../Model/AccountOpenNotifyRequest.php | 167 ++ .../AccountOpenNotifyRequestMarshaller.php | 95 + .../Model/AccountOpenNotifyResponse.php | 34 + .../AccountOpenNotifyResponseUnMarshaller.php | 39 + .../MWallet/Model/AccountOpenRequest.php | 217 +++ .../Model/AccountOpenRequestMarshaller.php | 101 + .../MWallet/Model/AccountOpenResponse.php | 34 + .../Model/AccountOpenResponseUnMarshaller.php | 39 + .../MWallet/Model/AccountOpenV10Request.php | 217 +++ .../Model/AccountOpenV10RequestMarshaller.php | 101 + .../MWallet/Model/AccountOpenV10Response.php | 34 + .../AccountOpenV10ResponseUnMarshaller.php | 39 + ...tQueryBalanceQueryAccountInfoDTOResult.php | 483 +++++ ...ryBalanceQueryBalanceResponseDTOResult.php | 362 ++++ .../Model/AccountQueryBalanceRequest.php | 142 ++ .../AccountQueryBalanceRequestMarshaller.php | 92 + .../Model/AccountQueryBalanceResponse.php | 34 + ...ccountQueryBalanceResponseUnMarshaller.php | 39 + .../Model/AccountQueryQuotaRequest.php | 92 + .../AccountQueryQuotaRequestMarshaller.php | 86 + .../Model/AccountQueryQuotaResponse.php | 34 + .../AccountQueryQuotaResponseUnMarshaller.php | 39 + .../MWallet/Model/AccountQueryRequest.php | 92 + .../Model/AccountQueryRequestMarshaller.php | 86 + .../MWallet/Model/AccountQueryResponse.php | 34 + .../AccountQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/AccountQueryV10Request.php | 92 + .../AccountQueryV10RequestMarshaller.php | 86 + .../MWallet/Model/AccountQueryV10Response.php | 34 + .../AccountQueryV10ResponseUnMarshaller.php | 39 + .../Model/AgreementPaymentCancelRequest.php | 167 ++ ...greementPaymentCancelRequestMarshaller.php | 95 + .../Model/AgreementPaymentCancelResponse.php | 34 + ...ementPaymentCancelResponseUnMarshaller.php | 39 + .../AgreementPaymentCancelV10Request.php | 167 ++ ...ementPaymentCancelV10RequestMarshaller.php | 95 + .../AgreementPaymentCancelV10Response.php | 34 + ...ntPaymentCancelV10ResponseUnMarshaller.php | 39 + .../AgreementPaymentCancelWeb3V10Request.php | 192 ++ ...tPaymentCancelWeb3V10RequestMarshaller.php | 98 + .../AgreementPaymentCancelWeb3V10Response.php | 34 + ...ymentCancelWeb3V10ResponseUnMarshaller.php | 39 + .../AgreementPaymentNotifyWeb3Request.php | 192 ++ ...mentPaymentNotifyWeb3RequestMarshaller.php | 98 + .../AgreementPaymentNotifyWeb3Response.php | 34 + ...tPaymentNotifyWeb3ResponseUnMarshaller.php | 39 + .../Model/AgreementPaymentQueryRequest.php | 92 + ...AgreementPaymentQueryRequestMarshaller.php | 86 + .../Model/AgreementPaymentQueryResponse.php | 34 + ...eementPaymentQueryResponseUnMarshaller.php | 39 + .../AgreementPaymentQueryWeb3V10Request.php | 117 ++ ...ntPaymentQueryWeb3V10RequestMarshaller.php | 89 + .../AgreementPaymentQueryWeb3V10Response.php | 34 + ...aymentQueryWeb3V10ResponseUnMarshaller.php | 39 + .../Model/AgreementPaymentRequestRequest.php | 167 ++ ...reementPaymentRequestRequestMarshaller.php | 95 + .../Model/AgreementPaymentRequestResponse.php | 34 + ...mentPaymentRequestResponseUnMarshaller.php | 39 + .../AgreementPaymentRequestV1Request.php | 167 ++ ...ementPaymentRequestV1RequestMarshaller.php | 95 + .../AgreementPaymentRequestV1Response.php | 34 + ...ntPaymentRequestV1ResponseUnMarshaller.php | 39 + .../Model/AgreementPaymentSignRequest.php | 167 ++ .../AgreementPaymentSignRequestMarshaller.php | 95 + .../Model/AgreementPaymentSignResponse.php | 34 + ...reementPaymentSignResponseUnMarshaller.php | 39 + .../Model/AgreementPaymentSignV10Request.php | 167 ++ ...reementPaymentSignV10RequestMarshaller.php | 95 + .../Model/AgreementPaymentSignV10Response.php | 34 + ...mentPaymentSignV10ResponseUnMarshaller.php | 39 + .../AgreementPaymentSignWeb3V10Request.php | 192 ++ ...entPaymentSignWeb3V10RequestMarshaller.php | 98 + .../AgreementPaymentSignWeb3V10Response.php | 34 + ...PaymentSignWeb3V10ResponseUnMarshaller.php | 39 + .../Model/AutoDeductionCreateRequest.php | 242 +++ .../AutoDeductionCreateRequestMarshaller.php | 104 + .../Model/AutoDeductionCreateResponse.php | 34 + ...utoDeductionCreateResponseUnMarshaller.php | 39 + .../Model/AutoDeductionQueryRequest.php | 92 + .../AutoDeductionQueryRequestMarshaller.php | 86 + .../Model/AutoDeductionQueryResponse.php | 34 + .../Model/AutoDeductionQueryResponseDTO.php | 423 ++++ ...AutoDeductionQueryResponseUnMarshaller.php | 39 + .../Model/AutoDeductionResponseDTO.php | 393 ++++ .../Model/AutoWithdrawQueryRequest.php | 117 ++ .../AutoWithdrawQueryRequestMarshaller.php | 89 + .../Model/AutoWithdrawQueryResponse.php | 34 + .../Model/AutoWithdrawQueryResponseDTO.php | 513 +++++ .../AutoWithdrawQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/AutoWithdrawRequest.php | 167 ++ .../Model/AutoWithdrawRequestMarshaller.php | 95 + .../MWallet/Model/AutoWithdrawResponse.php | 34 + .../MWallet/Model/AutoWithdrawResponseDTO.php | 393 ++++ .../AutoWithdrawResponseUnMarshaller.php | 39 + .../Model/BankAccountConfirmRequest.php | 117 ++ .../BankAccountConfirmRequestMarshaller.php | 89 + .../Model/BankAccountConfirmResponse.php | 34 + ...BankAccountConfirmResponseUnMarshaller.php | 39 + .../Model/BankAccountConfirmV10Request.php | 117 ++ ...BankAccountConfirmV10RequestMarshaller.php | 89 + .../Model/BankAccountConfirmV10Response.php | 34 + ...kAccountConfirmV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/BankAccountOpenRequest.php | 42 + .../BankAccountOpenRequestMarshaller.php | 80 + .../MWallet/Model/BankAccountOpenResponse.php | 34 + .../BankAccountOpenResponseUnMarshaller.php | 39 + .../Model/BankAccountOpenV10Request.php | 42 + .../BankAccountOpenV10RequestMarshaller.php | 80 + .../Model/BankAccountOpenV10Response.php | 34 + ...BankAccountOpenV10ResponseUnMarshaller.php | 39 + .../BankAccountQueryActivationRequest.php | 92 + ...ccountQueryActivationRequestMarshaller.php | 86 + .../BankAccountQueryActivationResponse.php | 34 + ...untQueryActivationResponseUnMarshaller.php | 39 + .../BankAccountQueryActivationV10Request.php | 92 + ...untQueryActivationV10RequestMarshaller.php | 86 + .../BankAccountQueryActivationV10Response.php | 34 + ...QueryActivationV10ResponseUnMarshaller.php | 39 + .../BankAccountQueryComplaintRequest.php | 167 ++ ...AccountQueryComplaintRequestMarshaller.php | 95 + .../BankAccountQueryComplaintResponse.php | 34 + ...ountQueryComplaintResponseUnMarshaller.php | 39 + .../BankAccountQueryComplaintV10Request.php | 167 ++ ...ountQueryComplaintV10RequestMarshaller.php | 95 + .../BankAccountQueryComplaintV10Response.php | 34 + ...tQueryComplaintV10ResponseUnMarshaller.php | 39 + .../BankAccountQueryOpenResultRequest.php | 92 + ...ccountQueryOpenResultRequestMarshaller.php | 86 + .../BankAccountQueryOpenResultResponse.php | 34 + ...untQueryOpenResultResponseUnMarshaller.php | 39 + .../BankAccountQueryOpenResultV10Request.php | 92 + ...untQueryOpenResultV10RequestMarshaller.php | 86 + .../BankAccountQueryOpenResultV10Response.php | 34 + ...QueryOpenResultV10ResponseUnMarshaller.php | 39 + .../Model/BankAccountQueryTradeRequest.php | 292 +++ ...BankAccountQueryTradeRequestMarshaller.php | 110 ++ .../Model/BankAccountQueryTradeResponse.php | 34 + ...kAccountQueryTradeResponseUnMarshaller.php | 39 + .../Model/BankAccountQueryTradeV10Request.php | 292 +++ ...kAccountQueryTradeV10RequestMarshaller.php | 110 ++ .../BankAccountQueryTradeV10Response.php | 34 + ...countQueryTradeV10ResponseUnMarshaller.php | 39 + .../Model/BankAccountQueryWithdrawRequest.php | 92 + ...kAccountQueryWithdrawRequestMarshaller.php | 86 + .../BankAccountQueryWithdrawResponse.php | 34 + ...countQueryWithdrawResponseUnMarshaller.php | 39 + .../BankAccountQueryWithdrawV10Request.php | 92 + ...countQueryWithdrawV10RequestMarshaller.php | 86 + .../BankAccountQueryWithdrawV10Response.php | 34 + ...ntQueryWithdrawV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/BankAccountRequestDTO.php | 483 +++++ .../MWallet/Model/BankAccountResponseDTO.php | 483 +++++ .../Model/BankAccountSendMsgRequest.php | 117 ++ .../BankAccountSendMsgRequestMarshaller.php | 89 + .../Model/BankAccountSendMsgResponse.php | 34 + ...BankAccountSendMsgResponseUnMarshaller.php | 39 + .../Model/BankAccountSendMsgV10Request.php | 117 ++ ...BankAccountSendMsgV10RequestMarshaller.php | 89 + .../Model/BankAccountSendMsgV10Response.php | 34 + ...kAccountSendMsgV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/BankAccountTradeDTO.php | 633 ++++++ .../BankAccountUpdateKeyWordsRequest.php | 117 ++ ...AccountUpdateKeyWordsRequestMarshaller.php | 89 + .../BankAccountUpdateKeyWordsResponse.php | 34 + ...ountUpdateKeyWordsResponseUnMarshaller.php | 39 + .../BankAccountUpdateKeyWordsV10Request.php | 117 ++ ...ountUpdateKeyWordsV10RequestMarshaller.php | 89 + .../BankAccountUpdateKeyWordsV10Response.php | 34 + ...tUpdateKeyWordsV10ResponseUnMarshaller.php | 39 + .../Model/BankAccountWithDrawRespDTO.php | 453 +++++ .../Model/BankAccountWithdrawRequest.php | 267 +++ .../BankAccountWithdrawRequestMarshaller.php | 107 + .../Model/BankAccountWithdrawResponse.php | 34 + ...ankAccountWithdrawResponseUnMarshaller.php | 39 + .../Model/BankAccountWithdrawV10Request.php | 267 +++ ...ankAccountWithdrawV10RequestMarshaller.php | 107 + .../Model/BankAccountWithdrawV10Response.php | 34 + ...AccountWithdrawV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/BankKeyWordsResponseDTO.php | 363 ++++ .../MWallet/Model/BankShortMsgResponseDTO.php | 393 ++++ .../MWallet/Model/BillDetailResponseDto.php | 807 ++++++++ .../MWallet/Model/BillListDetailDto.php | 537 +++++ .../MWallet/Model/BillListResponseDto.php | 363 ++++ .../MWallet/Model/BillOverviewDetailDto.php | 380 ++++ lib/Service/MWallet/Model/BillOverviewDto.php | 336 ++++ .../MWallet/Model/BillOverviewResponseDto.php | 363 ++++ .../MWallet/Model/BillQueryDetailRequest.php | 167 ++ .../BillQueryDetailRequestMarshaller.php | 95 + .../MWallet/Model/BillQueryDetailResponse.php | 34 + .../BillQueryDetailResponseUnMarshaller.php | 39 + .../MWallet/Model/BillQueryListRequest.php | 192 ++ .../Model/BillQueryListRequestMarshaller.php | 98 + .../MWallet/Model/BillQueryListResponse.php | 34 + .../BillQueryListResponseUnMarshaller.php | 39 + .../MWallet/Model/BillQueryListV2Request.php | 217 +++ .../BillQueryListV2RequestMarshaller.php | 101 + .../MWallet/Model/BillQueryListV2Response.php | 34 + .../BillQueryListV2ResponseUnMarshaller.php | 39 + .../Model/BillQueryOverviewRequest.php | 142 ++ .../BillQueryOverviewRequestMarshaller.php | 92 + .../Model/BillQueryOverviewResponse.php | 34 + .../BillQueryOverviewResponseUnMarshaller.php | 39 + lib/Service/MWallet/Model/BindCardInfo.php | 483 +++++ .../MWallet/Model/CardQueryRequest.php | 142 ++ .../Model/CardQueryRequestMarshaller.php | 92 + .../MWallet/Model/CardQueryResponse.php | 34 + .../Model/CardQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/CardQueryV10Request.php | 142 ++ .../Model/CardQueryV10RequestMarshaller.php | 92 + .../MWallet/Model/CardQueryV10Response.php | 34 + .../CardQueryV10ResponseUnMarshaller.php | 39 + .../Model/ConfirmBankAccountResponseDTO.php | 513 +++++ lib/Service/MWallet/Model/CouponInfoDTO.php | 603 ++++++ .../Model/CouponListQueryWeb3Request.php | 242 +++ .../CouponListQueryWeb3RequestMarshaller.php | 104 + .../Model/CouponListQueryWeb3Response.php | 34 + ...ouponListQueryWeb3ResponseUnMarshaller.php | 39 + .../MWallet/Model/CouponQueryResponseDTO.php | 363 ++++ .../MWallet/Model/FreeSecretCancelRespDTO.php | 363 ++++ .../Model/FreeSecretCancelResponseDTO.php | 363 ++++ .../MWallet/Model/FreeSecretNotifyRespDTO.php | 333 ++++ .../MWallet/Model/FreeSecretQueryRespDTO.php | 363 ++++ .../Model/FreeSecretQueryResponseDTO.php | 363 ++++ .../MWallet/Model/FreeSecretSignRespDTO.php | 363 ++++ .../Model/ManageFeeDeductQueryRespDTO.php | 363 ++++ .../MWallet/Model/ManageFeeDeductResult.php | 393 ++++ .../Model/ManageFeeQueryDeductRequest.php | 92 + .../ManageFeeQueryDeductRequestMarshaller.php | 86 + .../Model/ManageFeeQueryDeductResponse.php | 34 + ...nageFeeQueryDeductResponseUnMarshaller.php | 39 + .../MWallet/Model/MarketingInfoModel.php | 363 ++++ .../MWallet/Model/MemberCancelResponseDTO.php | 333 ++++ .../MWallet/Model/MemberCardListRequest.php | 92 + .../Model/MemberCardListRequestMarshaller.php | 86 + .../MWallet/Model/MemberCardListResponse.php | 34 + .../MemberCardListResponseUnMarshaller.php | 39 + .../MemberQueryBindCardListResponseDTO.php | 363 ++++ .../MWallet/Model/MemberQueryRequest.php | 117 ++ .../Model/MemberQueryRequestMarshaller.php | 89 + .../MWallet/Model/MemberQueryResponse.php | 34 + .../Model/MemberQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/MemberQueryV10Request.php | 117 ++ .../Model/MemberQueryV10RequestMarshaller.php | 89 + .../MWallet/Model/MemberQueryV10Response.php | 34 + .../MemberQueryV10ResponseUnMarshaller.php | 39 + .../Model/MemberSubscribeNotifyInfo.php | 333 ++++ .../MWallet/Model/MemberTradOrderResp.php | 483 +++++ .../Model/OpenSuccessNotifyResponseDTO.php | 333 ++++ .../MWallet/Model/PasswordManageRequest.php | 142 ++ .../Model/PasswordManageRequestMarshaller.php | 92 + .../MWallet/Model/PasswordManageResponse.php | 34 + .../PasswordManageResponseUnMarshaller.php | 39 + .../Model/PasswordManageV10Request.php | 142 ++ .../PasswordManageV10RequestMarshaller.php | 92 + .../Model/PasswordManageV10Response.php | 34 + .../PasswordManageV10ResponseUnMarshaller.php | 39 + .../Model/PaymentManageWeb3V10Request.php | 142 ++ .../PaymentManageWeb3V10RequestMarshaller.php | 92 + .../Model/PaymentManageWeb3V10Response.php | 34 + ...ymentManageWeb3V10ResponseUnMarshaller.php | 39 + .../QueryBankAccountActivationRespDTO.php | 393 ++++ .../Model/QueryBankAccountTradeRespDTO.php | 573 ++++++ .../Model/QueryBankAccountWithDrawRespDTO.php | 633 ++++++ .../Model/QueryComplaintOrderRespDTO.php | 513 +++++ .../MWallet/Model/QueryMGB2CResponseDTO.php | 543 ++++++ .../Model/QueryMemberInfoResponseDTO.php | 483 +++++ .../Model/QueryOpenResultResponseDTO.php | 543 ++++++ .../Model/QueryRechargeResponseDTO.php | 633 ++++++ .../MWallet/Model/RechargeInitiateRequest.php | 192 ++ .../RechargeInitiateRequestMarshaller.php | 98 + .../Model/RechargeInitiateResponse.php | 34 + .../RechargeInitiateResponseUnMarshaller.php | 39 + .../Model/RechargeInitiateV10Request.php | 192 ++ .../RechargeInitiateV10RequestMarshaller.php | 98 + .../Model/RechargeInitiateV10Response.php | 34 + ...echargeInitiateV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/RechargeQueryRequest.php | 92 + .../Model/RechargeQueryRequestMarshaller.php | 86 + .../MWallet/Model/RechargeQueryResponse.php | 34 + .../RechargeQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/RechargeQueryV10Request.php | 92 + .../RechargeQueryV10RequestMarshaller.php | 86 + .../Model/RechargeQueryV10Response.php | 34 + .../RechargeQueryV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/RequestURLResponseDTO.php | 363 ++++ .../Model/SubscribeExpireNotifyRequest.php | 42 + ...SubscribeExpireNotifyRequestMarshaller.php | 80 + .../Model/SubscribeExpireNotifyResponse.php | 34 + ...scribeExpireNotifyResponseUnMarshaller.php | 39 + .../Model/SubscribeNotifyRequestDTO.php | 500 +++++ .../Model/SubscribeNotifyResponseDTO.php | 333 ++++ .../Model/TradeAutoDeductionCreateRequest.php | 242 +++ ...deAutoDeductionCreateRequestMarshaller.php | 104 + .../TradeAutoDeductionCreateResponse.php | 34 + ...utoDeductionCreateResponseUnMarshaller.php | 39 + .../Model/TradeAutoDeductionQueryRequest.php | 92 + ...adeAutoDeductionQueryRequestMarshaller.php | 86 + .../Model/TradeAutoDeductionQueryResponse.php | 34 + ...AutoDeductionQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/TradeOrderRequest.php | 267 +++ .../Model/TradeOrderRequestMarshaller.php | 107 + .../MWallet/Model/TradeOrderResponse.php | 34 + .../Model/TradeOrderResponseUnMarshaller.php | 39 + .../MWallet/Model/TradeOrderV10Request.php | 267 +++ .../Model/TradeOrderV10RequestMarshaller.php | 107 + .../MWallet/Model/TradeOrderV10Response.php | 34 + .../TradeOrderV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/TradeOrderV20Request.php | 342 ++++ .../Model/TradeOrderV20RequestMarshaller.php | 116 ++ .../MWallet/Model/TradeOrderV20Response.php | 34 + .../TradeOrderV20ResponseUnMarshaller.php | 39 + .../MWallet/Model/TradeOrderV2Request.php | 342 ++++ .../Model/TradeOrderV2RequestMarshaller.php | 116 ++ .../MWallet/Model/TradeOrderV2Response.php | 34 + .../TradeOrderV2ResponseUnMarshaller.php | 39 + .../Model/TransferB2cInitiateRequest.php | 217 +++ .../TransferB2cInitiateRequestMarshaller.php | 101 + .../Model/TransferB2cInitiateResponse.php | 34 + ...ransferB2cInitiateResponseUnMarshaller.php | 39 + .../Model/TransferB2cInitiateV10Request.php | 217 +++ ...ransferB2cInitiateV10RequestMarshaller.php | 101 + .../Model/TransferB2cInitiateV10Response.php | 34 + ...sferB2cInitiateV10ResponseUnMarshaller.php | 39 + .../Model/TransferB2cMarketRequest.php | 242 +++ .../TransferB2cMarketRequestMarshaller.php | 104 + .../Model/TransferB2cMarketResponse.php | 34 + .../TransferB2cMarketResponseUnMarshaller.php | 39 + .../Model/TransferB2cMarketV10Request.php | 242 +++ .../TransferB2cMarketV10RequestMarshaller.php | 104 + .../Model/TransferB2cMarketV10Response.php | 34 + ...ansferB2cMarketV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/TransferB2cQueryRequest.php | 117 ++ .../TransferB2cQueryRequestMarshaller.php | 89 + .../Model/TransferB2cQueryResponse.php | 34 + .../TransferB2cQueryResponseUnMarshaller.php | 39 + .../Model/TransferB2cQueryV10Request.php | 117 ++ .../TransferB2cQueryV10RequestMarshaller.php | 89 + .../Model/TransferB2cQueryV10Response.php | 34 + ...ransferB2cQueryV10ResponseUnMarshaller.php | 39 + .../WalletAdapterRequestURLResponseDTO.php | 363 ++++ .../MWallet/Model/WalletCancelRequest.php | 92 + .../Model/WalletCancelRequestMarshaller.php | 86 + .../MWallet/Model/WalletCancelResponse.php | 34 + .../WalletCancelResponseUnMarshaller.php | 39 + .../MWallet/Model/WalletCancelV10Request.php | 92 + .../WalletCancelV10RequestMarshaller.php | 86 + .../MWallet/Model/WalletCancelV10Response.php | 34 + .../WalletCancelV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/WalletIndexV20Request.php | 292 +++ .../Model/WalletIndexV20RequestMarshaller.php | 110 ++ .../MWallet/Model/WalletIndexV20Response.php | 34 + .../WalletIndexV20ResponseUnMarshaller.php | 39 + .../MWallet/Model/WalletIndexV2Request.php | 292 +++ .../Model/WalletIndexV2RequestMarshaller.php | 110 ++ .../MWallet/Model/WalletIndexV2Response.php | 34 + .../WalletIndexV2ResponseUnMarshaller.php | 39 + .../MWallet/Model/WalletMemberResponseDTO.php | 573 ++++++ .../Model/WalletOpenByFaceResponseDTO.php | 517 +++++ .../Model/WalletQueryWithdrawResultDTO.php | 783 ++++++++ .../Model/WalletRequestRecordResponseDTO.php | 423 ++++ .../Model/WalletTransferB2CResponseDTO.php | 453 +++++ .../Model/Web3AgreementNotifyRequest.php | 192 ++ .../Web3AgreementNotifyRequestMarshaller.php | 98 + .../Model/Web3AgreementNotifyResponse.php | 34 + ...eb3AgreementNotifyResponseUnMarshaller.php | 39 + .../Web3AgreementPaymentCancelRequest.php | 192 ++ ...greementPaymentCancelRequestMarshaller.php | 98 + .../Web3AgreementPaymentCancelResponse.php | 34 + ...ementPaymentCancelResponseUnMarshaller.php | 39 + .../Web3AgreementPaymentQueryRequest.php | 117 ++ ...AgreementPaymentQueryRequestMarshaller.php | 89 + .../Web3AgreementPaymentQueryResponse.php | 34 + ...eementPaymentQueryResponseUnMarshaller.php | 39 + .../Model/Web3AgreementPaymentSignRequest.php | 192 ++ ...3AgreementPaymentSignRequestMarshaller.php | 98 + .../Web3AgreementPaymentSignResponse.php | 34 + ...reementPaymentSignResponseUnMarshaller.php | 39 + .../Model/Web3CouponListQueryRequest.php | 242 +++ .../Web3CouponListQueryRequestMarshaller.php | 104 + .../Model/Web3CouponListQueryResponse.php | 34 + ...eb3CouponListQueryResponseUnMarshaller.php | 39 + .../Model/Web3PaymentManageRequest.php | 142 ++ .../Web3PaymentManageRequestMarshaller.php | 92 + .../Model/Web3PaymentManageResponse.php | 34 + .../Web3PaymentManageResponseUnMarshaller.php | 39 + .../MWallet/Model/WithdrawInitiateRequest.php | 242 +++ .../WithdrawInitiateRequestMarshaller.php | 104 + .../Model/WithdrawInitiateResponse.php | 34 + .../WithdrawInitiateResponseUnMarshaller.php | 39 + .../Model/WithdrawInitiateV10Request.php | 242 +++ .../WithdrawInitiateV10RequestMarshaller.php | 104 + .../Model/WithdrawInitiateV10Response.php | 34 + ...ithdrawInitiateV10ResponseUnMarshaller.php | 39 + .../MWallet/Model/WithdrawQueryRequest.php | 92 + .../Model/WithdrawQueryRequestMarshaller.php | 86 + .../MWallet/Model/WithdrawQueryResponse.php | 34 + .../WithdrawQueryResponseUnMarshaller.php | 39 + .../MWallet/Model/WithdrawQueryV10Request.php | 92 + .../WithdrawQueryV10RequestMarshaller.php | 86 + .../Model/WithdrawQueryV10Response.php | 34 + .../WithdrawQueryV10ResponseUnMarshaller.php | 39 + .../YopQueryMemberBalanceQuotaRespDTO.php | 483 +++++ .../AuthStateQueryV2IdentityAuthDtoResult.php | 423 ++++ ...teQueryV2IdentityAuthStateResDtoResult.php | 362 ++++ .../Mer/Model/AuthStateQueryV2Request.php | 92 + .../AuthStateQueryV2RequestMarshaller.php | 86 + .../Mer/Model/AuthStateQueryV2Response.php | 34 + .../AuthStateQueryV2ResponseUnMarshaller.php | 39 + ...oModifyMerchantInfoModifyRespDTOResult.php | 392 ++++ .../Mer/Model/MerchantInfoModifyRequest.php | 267 +++ .../MerchantInfoModifyRequestMarshaller.php | 107 + .../Mer/Model/MerchantInfoModifyResponse.php | 34 + ...MerchantInfoModifyResponseUnMarshaller.php | 39 + ...ationQueryQueryMopQuaInfoRespDTOResult.php | 362 ++++ ...antSupplementQualificationQueryRequest.php | 42 + ...entQualificationQueryRequestMarshaller.php | 80 + ...ntSupplementQualificationQueryResponse.php | 34 + ...QualificationQueryResponseUnMarshaller.php | 39 + ...ntSupplementQualificationSubmitRequest.php | 67 + ...ntQualificationSubmitRequestMarshaller.php | 83 + ...tSupplementQualificationSubmitResponse.php | 34 + ...ualificationSubmitResponseUnMarshaller.php | 39 + ...ionSubmitSubmitMopQuaInfoRespDTOResult.php | 332 ++++ ...MerchantNetInRepeatNotifyRespDtoResult.php | 392 ++++ .../Mer/Model/NotifyRepeatV2Request.php | 92 + .../Model/NotifyRepeatV2RequestMarshaller.php | 86 + .../Mer/Model/NotifyRepeatV2Response.php | 34 + .../NotifyRepeatV2ResponseUnMarshaller.php | 39 + ...eModifyV2ModifyProductFeeRespDtoResult.php | 452 +++++ .../Mer/Model/ProductFeeModifyV2Request.php | 242 +++ .../ProductFeeModifyV2RequestMarshaller.php | 104 + .../Mer/Model/ProductFeeModifyV2Response.php | 34 + ...ProductFeeModifyV2ResponseUnMarshaller.php | 39 + ...FeeQueryV2QueryProductFeeRespDtoResult.php | 362 ++++ .../Mer/Model/ProductFeeQueryV2Request.php | 92 + .../ProductFeeQueryV2RequestMarshaller.php | 86 + .../Mer/Model/ProductFeeQueryV2Response.php | 34 + .../ProductFeeQueryV2ResponseUnMarshaller.php | 39 + ...AddIncrementSettleProductRespDtoResult.php | 422 ++++ .../ProductIncrementSettleOpenV2Request.php | 117 ++ ...IncrementSettleOpenV2RequestMarshaller.php | 89 + .../ProductIncrementSettleOpenV2Response.php | 34 + ...rementSettleOpenV2ResponseUnMarshaller.php | 39 + ...roductModifyProgressQueryRespDtoResult.php | 512 +++++ .../Mer/Model/ProductModifyQueryV2Request.php | 42 + .../ProductModifyQueryV2RequestMarshaller.php | 80 + .../Model/ProductModifyQueryV2Response.php | 34 + ...oductModifyQueryV2ResponseUnMarshaller.php | 39 + ...QueryV2NetInProgressQueryRespDtoResult.php | 512 +++++ .../Mer/Model/RegisterQueryV2Request.php | 42 + .../RegisterQueryV2RequestMarshaller.php | 80 + .../Mer/Model/RegisterQueryV2Response.php | 34 + .../RegisterQueryV2ResponseUnMarshaller.php | 39 + .../Mer/Model/RegisterSaasIndexV2Request.php | 217 +++ .../RegisterSaasIndexV2RequestMarshaller.php | 101 + .../Mer/Model/RegisterSaasIndexV2Response.php | 34 + ...egisterSaasIndexV2ResponseUnMarshaller.php | 39 + ...aasIndexV2UserPreRegisterRespDtoResult.php | 362 ++++ ...V2ContributeMerchantNetInRespDtoResult.php | 452 +++++ .../Model/RegisterSaasMerchantV2Request.php | 367 ++++ ...egisterSaasMerchantV2RequestMarshaller.php | 119 ++ .../Model/RegisterSaasMerchantV2Response.php | 34 + ...sterSaasMerchantV2ResponseUnMarshaller.php | 39 + ...tributeMicroMerchantNetInRespDtoResult.php | 452 +++++ .../Mer/Model/RegisterSaasMicroV2Request.php | 317 +++ .../RegisterSaasMicroV2RequestMarshaller.php | 113 ++ .../Mer/Model/RegisterSaasMicroV2Response.php | 34 + ...egisterSaasMicroV2ResponseUnMarshaller.php | 39 + ...sWebIndexV2CreateNetInUrlRespDTOResult.php | 362 ++++ .../Model/RegisterSaasWebIndexV2Request.php | 267 +++ ...egisterSaasWebIndexV2RequestMarshaller.php | 107 + .../Model/RegisterSaasWebIndexV2Response.php | 34 + ...sterSaasWebIndexV2ResponseUnMarshaller.php | 39 + .../Model/OrderOrderResponseDTOResult.php | 392 ++++ lib/Service/Netpay/Model/OrderRequest.php | 517 +++++ .../Netpay/Model/OrderRequestMarshaller.php | 137 ++ lib/Service/Netpay/Model/OrderResponse.php | 34 + .../Model/OrderResponseUnMarshaller.php | 39 + .../Netpay/Model/OrderSdkPayOrderRequest.php | 442 +++++ .../OrderSdkPayOrderRequestMarshaller.php | 128 ++ .../Netpay/Model/OrderSdkPayOrderResponse.php | 34 + .../OrderSdkPayOrderResponseUnMarshaller.php | 39 + ...erSdkPayOrderSdkOrderResponseDTOResult.php | 542 ++++++ lib/Service/Netpay/NetpayClient.php | 57 + lib/Service/Netpay/NetpayClientBuilder.php | 69 + lib/Service/Offline/Model/BindRequest.php | 42 + .../Offline/Model/BindRequestMarshaller.php | 80 + .../Offline/Model/BindRequestTerminalInfo.php | 336 ++++ lib/Service/Offline/Model/BindResponse.php | 34 + .../Model/BindResponseTerminalInfo.php | 534 +++++ .../Model/BindResponseUnMarshaller.php | 39 + .../Offline/Model/CreateShopRequest.php | 242 +++ .../Model/CreateShopRequestMarshaller.php | 104 + .../Offline/Model/CreateShopResponse.php | 34 + .../Model/CreateShopResponseUnMarshaller.php | 39 + lib/Service/Offline/Model/GetShopRequest.php | 142 ++ .../Model/GetShopRequestMarshaller.php | 92 + lib/Service/Offline/Model/GetShopResponse.php | 34 + .../Model/GetShopResponseUnMarshaller.php | 39 + lib/Service/Offline/Model/GetShopRspDTO.php | 768 ++++++++ .../Offline/Model/OperateShopRequest.php | 117 ++ .../Model/OperateShopRequestMarshaller.php | 89 + .../Offline/Model/OperateShopResponse.php | 34 + .../Model/OperateShopResponseUnMarshaller.php | 39 + .../Offline/Model/QueryAgentListRequest.php | 117 ++ .../Model/QueryAgentListRequestMarshaller.php | 89 + .../Offline/Model/QueryAgentListResponse.php | 34 + .../QueryAgentListResponseUnMarshaller.php | 39 + .../Offline/Model/QueryOrderInfoRequest.php | 67 + .../Model/QueryOrderInfoRequestMarshaller.php | 83 + .../Offline/Model/QueryOrderInfoResponse.php | 34 + .../QueryOrderInfoResponseUnMarshaller.php | 39 + .../Offline/Model/QueryPosTrxInfoRequest.php | 67 + .../QueryPosTrxInfoRequestMarshaller.php | 83 + .../Offline/Model/QueryPosTrxInfoResponse.php | 34 + .../QueryPosTrxInfoResponseUnMarshaller.php | 39 + .../Model/QueryShopBindListRequest.php | 92 + .../QueryShopBindListRequestMarshaller.php | 86 + .../Model/QueryShopBindListResponse.php | 34 + .../QueryShopBindListResponseUnMarshaller.php | 39 + lib/Service/Offline/Model/UnbindRequest.php | 42 + .../Offline/Model/UnbindRequestMarshaller.php | 80 + lib/Service/Offline/Model/UnbindResponse.php | 34 + .../Model/UnbindResponseUnMarshaller.php | 39 + .../Offline/Model/UpdateShopRequest.php | 167 ++ .../Model/UpdateShopRequestMarshaller.php | 95 + .../Offline/Model/UpdateShopResponse.php | 34 + .../Model/UpdateShopResponseUnMarshaller.php | 39 + lib/Service/Offline/Model/YopBaseRspDTO.php | 372 ++++ .../Model/YopBindTerminalRequestDto.php | 369 ++++ .../Model/YopBindTerminalResponseDto.php | 372 ++++ .../Offline/Model/YopCreateShopRspDTO.php | 372 ++++ .../Offline/Model/YopGetShopRspDTO.php | 372 ++++ .../Offline/Model/YopQueryAgentResponse.php | 405 ++++ .../Offline/Model/YopQueryAgentRspDto.php | 372 ++++ .../Model/YopQueryOrderInfoRespDTO.php | 723 +++++++ .../Model/YopQueryShopBindResponse.php | 471 +++++ .../Offline/Model/YopQueryShopBindRspDto.php | 369 ++++ .../Model/YopUnBindTerminalRequestDto.php | 372 ++++ .../Model/YopUnBindTerminalResponseDto.php | 372 ++++ lib/Service/Offline/OfflineClient.php | 190 ++ lib/Service/Offline/OfflineClientBuilder.php | 77 + ...nceAccountCompCustOpenAcctRspDTOResult.php | 452 +++++ ...countQueryCompCustOpenAcctRspDTOResult.php | 452 +++++ .../CompanyFinanceAccountQueryRequest.php | 92 + ...nyFinanceAccountQueryRequestMarshaller.php | 86 + .../CompanyFinanceAccountQueryResponse.php | 34 + ...inanceAccountQueryResponseUnMarshaller.php | 39 + .../Model/CompanyFinanceAccountRequest.php | 742 +++++++ ...CompanyFinanceAccountRequestMarshaller.php | 164 ++ .../Model/CompanyFinanceAccountResponse.php | 34 + ...panyFinanceAccountResponseUnMarshaller.php | 39 + ...sQueryCompQueryAssetsResponseDTOResult.php | 512 +++++ .../CompanyFinanceAssetsQueryRequest.php | 92 + ...anyFinanceAssetsQueryRequestMarshaller.php | 86 + .../CompanyFinanceAssetsQueryResponse.php | 34 + ...FinanceAssetsQueryResponseUnMarshaller.php | 39 + ...yCompQueryOrderStatusResponseDTOResult.php | 422 ++++ .../Model/CompanyFinanceOrderQueryRequest.php | 117 ++ ...panyFinanceOrderQueryRequestMarshaller.php | 89 + .../CompanyFinanceOrderQueryResponse.php | 34 + ...yFinanceOrderQueryResponseUnMarshaller.php | 39 + ...chaseOrderCompTranPurchaseRspDTOResult.php | 422 ++++ .../CompanyFinancePurchaseOrderRequest.php | 167 ++ ...yFinancePurchaseOrderRequestMarshaller.php | 95 + .../CompanyFinancePurchaseOrderResponse.php | 34 + ...nancePurchaseOrderResponseUnMarshaller.php | 39 + ...eRedeemOrderCompTranRedeemRspDTOResult.php | 422 ++++ .../CompanyFinanceRedeemOrderRequest.php | 267 +++ ...anyFinanceRedeemOrderRequestMarshaller.php | 107 + .../CompanyFinanceRedeemOrderResponse.php | 34 + ...FinanceRedeemOrderResponseUnMarshaller.php | 39 + ...entCompCustOpenAcctConfirmRspDTOResult.php | 422 ++++ .../CompanyFinanceSmallPaymentRequest.php | 117 ++ ...nyFinanceSmallPaymentRequestMarshaller.php | 89 + .../CompanyFinanceSmallPaymentResponse.php | 34 + ...inanceSmallPaymentResponseUnMarshaller.php | 39 + ...pQueryTransactionListResponseDTOResult.php | 452 +++++ ...ransactionQueryCompTransactionVOResult.php | 423 ++++ .../CompanyFinanceTransactionQueryRequest.php | 142 ++ ...nanceTransactionQueryRequestMarshaller.php | 92 + ...CompanyFinanceTransactionQueryResponse.php | 34 + ...ceTransactionQueryResponseUnMarshaller.php | 39 + ...eUploadCustFileUploadResponseDTOResult.php | 572 ++++++ lib/Service/P2f/Model/FileUploadRequest.php | 192 ++ .../P2f/Model/FileUploadRequestMarshaller.php | 98 + lib/Service/P2f/Model/FileUploadResponse.php | 34 + .../Model/FileUploadResponseUnMarshaller.php | 39 + .../ZzdfOrderRechargeAndPayRspDTOResult.php | 482 +++++ lib/Service/P2f/Model/ZzdfOrderRequest.php | 567 ++++++ .../P2f/Model/ZzdfOrderRequestMarshaller.php | 143 ++ lib/Service/P2f/Model/ZzdfOrderResponse.php | 34 + .../Model/ZzdfOrderResponseUnMarshaller.php | 39 + ...dfQueryQueryRechargeAndPayRspDTOResult.php | 1202 ++++++++++++ lib/Service/P2f/Model/ZzdfQueryRequest.php | 117 ++ .../P2f/Model/ZzdfQueryRequestMarshaller.php | 89 + lib/Service/P2f/Model/ZzdfQueryResponse.php | 34 + .../Model/ZzdfQueryResponseUnMarshaller.php | 39 + lib/Service/P2f/P2fClient.php | 234 +++ lib/Service/P2f/P2fClientBuilder.php | 78 + .../Model/GetPosInfoDtosPosInfoDtoResult.php | 692 +++++++ ...tPosInfoDtosPosInfoResponseParamResult.php | 362 ++++ .../Pos/Model/GetPosInfoDtosRequest.php | 117 ++ .../Model/GetPosInfoDtosRequestMarshaller.php | 89 + .../Pos/Model/GetPosInfoDtosResponse.php | 34 + .../GetPosInfoDtosResponseUnMarshaller.php | 39 + ...ProductInstallPosWithProductParamParam.php | 543 ++++++ .../InstallPosWithProductPrePosParam.php | 333 ++++ .../InstallPosWithProductPreShopParam.php | 723 +++++++ .../Model/InstallPosWithProductRequest.php | 42 + ...InstallPosWithProductRequestMarshaller.php | 80 + .../Model/InstallPosWithProductResponse.php | 34 + ...tallPosWithProductResponseUnMarshaller.php | 39 + lib/Service/Pos/Model/UnSynBindPosRequest.php | 67 + .../Model/UnSynBindPosRequestMarshaller.php | 83 + .../Pos/Model/UnSynBindPosResponse.php | 34 + .../UnSynBindPosResponseUnMarshaller.php | 39 + lib/Service/Pos/PosClient.php | 74 + lib/Service/Pos/PosClientBuilder.php | 70 + ...eryActivityPageListQueryResponseResult.php | 362 ++++ ...tivityListQueryActivityQueryInfoResult.php | 1023 ++++++++++ .../Model/ActivityListQueryRequest.php | 167 ++ .../ActivityListQueryRequestMarshaller.php | 95 + .../Model/ActivityListQueryResponse.php | 34 + .../ActivityListQueryResponseUnMarshaller.php | 39 + .../Promtion/Model/AddRightsRequest.php | 367 ++++ .../Model/AddRightsRequestMarshaller.php | 119 ++ .../Promtion/Model/AddRightsResponse.php | 34 + .../Model/AddRightsResponseUnMarshaller.php | 39 + lib/Service/Promtion/Model/BaseResponse.php | 333 ++++ .../CouponApplyCouponApplyResponseResult.php | 362 ++++ .../Promtion/Model/CouponApplyRequest.php | 142 ++ .../Model/CouponApplyRequestMarshaller.php | 92 + .../Promtion/Model/CouponApplyResponse.php | 34 + .../Model/CouponApplyResponseUnMarshaller.php | 39 + ...QueryCouponPageListQueryResponseResult.php | 422 ++++ ...CouponListQueryCouponProductRuleResult.php | 333 ++++ .../CouponListQueryCouponQueryInfoResult.php | 663 +++++++ .../Promtion/Model/CouponListQueryRequest.php | 217 +++ .../CouponListQueryRequestMarshaller.php | 101 + .../Model/CouponListQueryResponse.php | 34 + .../CouponListQueryResponseUnMarshaller.php | 39 + .../CreateRightsQrCodeAdapterRespDTO.php | 513 +++++ .../CreateRightsQrcodeAdapterRequest.php | 117 ++ ...teRightsQrcodeAdapterRequestMarshaller.php | 89 + .../CreateRightsQrcodeAdapterResponse.php | 34 + ...ightsQrcodeAdapterResponseUnMarshaller.php | 39 + .../Promtion/Model/FrozenRightsRequest.php | 67 + .../Model/FrozenRightsRequestMarshaller.php | 83 + .../Promtion/Model/FrozenRightsResponse.php | 34 + .../FrozenRightsResponseUnMarshaller.php | 39 + ...ntCreateAccountCreateResponseDTOResult.php | 512 +++++ .../Promtion/Model/PointCreateRequest.php | 92 + .../Model/PointCreateRequestMarshaller.php | 86 + .../Promtion/Model/PointCreateResponse.php | 34 + .../Model/PointCreateResponseUnMarshaller.php | 39 + ...tePointAccountOperateResponseDTOResult.php | 392 ++++ .../Promtion/Model/PointOperateRequest.php | 192 ++ .../Model/PointOperateRequestMarshaller.php | 98 + .../Promtion/Model/PointOperateResponse.php | 34 + .../PointOperateResponseUnMarshaller.php | 39 + ...ueryPointAccountQueryResponseDTOResult.php | 542 ++++++ .../Promtion/Model/PointQueryRequest.php | 92 + .../Model/PointQueryRequestMarshaller.php | 86 + .../Promtion/Model/PointQueryResponse.php | 34 + .../Model/PointQueryResponseUnMarshaller.php | 39 + .../QueryConsumeRecordAdapterRequest.php | 192 ++ ...yConsumeRecordAdapterRequestMarshaller.php | 98 + .../QueryConsumeRecordAdapterResponse.php | 34 + ...nsumeRecordAdapterResponseUnMarshaller.php | 39 + .../QueryRightsConsumeAdapterRespDTO.php | 363 ++++ .../Model/QueryRightsListAdapterRespDTO.php | 363 ++++ .../Promtion/Model/QueryRightsRequest.php | 142 ++ .../Model/QueryRightsRequestMarshaller.php | 92 + .../Promtion/Model/QueryRightsResponse.php | 34 + .../Model/QueryRightsResponseUnMarshaller.php | 39 + .../Promtion/Model/RightsConsumeDto.php | 453 +++++ .../Model/RightsCreateQrcodeRequest.php | 117 ++ .../RightsCreateQrcodeRequestMarshaller.php | 89 + .../Model/RightsCreateQrcodeResponse.php | 34 + ...RightsCreateQrcodeResponseUnMarshaller.php | 39 + lib/Service/Promtion/Model/RightsDto.php | 423 ++++ .../Model/RightsFrozenRightsRequest.php | 67 + .../RightsFrozenRightsRequestMarshaller.php | 83 + .../Model/RightsFrozenRightsResponse.php | 34 + ...RightsFrozenRightsResponseUnMarshaller.php | 39 + .../RightsQueryConsumeRecordsRequest.php | 192 ++ ...tsQueryConsumeRecordsRequestMarshaller.php | 98 + .../RightsQueryConsumeRecordsResponse.php | 34 + ...ueryConsumeRecordsResponseUnMarshaller.php | 39 + .../Model/RightsQueryRightsRequest.php | 142 ++ .../RightsQueryRightsRequestMarshaller.php | 92 + .../Model/RightsQueryRightsResponse.php | 34 + .../RightsQueryRightsResponseUnMarshaller.php | 39 + .../Promtion/Model/RightsTransferRequest.php | 92 + .../Model/RightsTransferRequestMarshaller.php | 86 + .../Promtion/Model/RightsTransferResponse.php | 34 + .../RightsTransferResponseUnMarshaller.php | 39 + .../Promtion/Model/SubsidyApplyRequest.php | 217 +++ .../Model/SubsidyApplyRequestMarshaller.php | 101 + .../Promtion/Model/SubsidyApplyResponse.php | 34 + .../SubsidyApplyResponseUnMarshaller.php | 39 + .../SubsidyApplyYopSubsidyResDTOResult.php | 482 +++++ .../Model/SubsidyBackQueryRequest.php | 117 ++ .../SubsidyBackQueryRequestMarshaller.php | 89 + .../Model/SubsidyBackQueryResponse.php | 34 + .../SubsidyBackQueryResponseUnMarshaller.php | 39 + ...ckQueryYopQuerySubsidyBackResDTOResult.php | 452 +++++ .../Promtion/Model/SubsidyBackRequest.php | 217 +++ .../Model/SubsidyBackRequestMarshaller.php | 101 + .../Promtion/Model/SubsidyBackResponse.php | 34 + .../Model/SubsidyBackResponseUnMarshaller.php | 39 + .../SubsidyBackYopSubsidyBackResDTOResult.php | 482 +++++ .../Promtion/Model/SubsidyQueryRequest.php | 117 ++ .../Model/SubsidyQueryRequestMarshaller.php | 89 + .../Promtion/Model/SubsidyQueryResponse.php | 34 + .../SubsidyQueryResponseUnMarshaller.php | 39 + ...ubsidyQueryYopQuerySubsidyResDTOResult.php | 512 +++++ lib/Service/Promtion/PromtionClient.php | 370 ++++ .../Promtion/PromtionClientBuilder.php | 89 + ...ountQueryQueryBankAccountRespDTOResult.php | 452 +++++ .../Model/BankAccountQueryRequest.php | 117 ++ .../BankAccountQueryRequestMarshaller.php | 89 + .../Model/BankAccountQueryResponse.php | 34 + .../BankAccountQueryResponseUnMarshaller.php | 39 + lib/Service/Recharge/RechargeClient.php | 55 + .../Recharge/RechargeClientBuilder.php | 68 + .../Settle/Model/ReceiptApplyRequest.php | 42 + .../Model/ReceiptApplyRequestMarshaller.php | 80 + .../Settle/Model/ReceiptApplyResponse.php | 34 + .../ReceiptApplyResponseUnMarshaller.php | 39 + .../Settle/Model/ReceiptGetRequest.php | 92 + .../Model/ReceiptGetRequestMarshaller.php | 87 + .../Settle/Model/RecordsOrderQueryRequest.php | 192 ++ .../RecordsOrderQueryRequestMarshaller.php | 98 + .../Model/RecordsOrderQueryResponse.php | 34 + .../RecordsOrderQueryResponseUnMarshaller.php | 39 + .../Model/SettleReceiptApplyV10Request.php | 42 + ...SettleReceiptApplyV10RequestMarshaller.php | 80 + .../Model/SettleReceiptApplyV10Response.php | 34 + ...tleReceiptApplyV10ResponseUnMarshaller.php | 39 + .../Model/SettleReceiptGetV10Request.php | 92 + .../SettleReceiptGetV10RequestMarshaller.php | 87 + .../Model/SettleRecodOrderQueryV10Request.php | 192 ++ ...tleRecodOrderQueryV10RequestMarshaller.php | 98 + .../SettleRecodOrderQueryV10Response.php | 34 + ...RecodOrderQueryV10ResponseUnMarshaller.php | 39 + .../Settle/Model/SettleRecordDetailsDto.php | 603 ++++++ .../SettleRecordOrderQueryResponseDto.php | 393 ++++ .../Settle/Model/SettleRecordQueryDto.php | 543 ++++++ ...tioModifySettleWayRatioRequestDtoParam.php | 393 ++++ ...oModifySettleWayRatioResponseDtoResult.php | 422 ++++ .../Model/SettleWayModifyRatioRequest.php | 42 + .../SettleWayModifyRatioRequestMarshaller.php | 80 + .../Model/SettleWayModifyRatioResponse.php | 34 + ...ttleWayModifyRatioResponseUnMarshaller.php | 39 + ...odifyRatioSettleWayRatioDetailDtoParam.php | 362 ++++ ...ueryMerchantSettleWayQueryYOPDtoResult.php | 392 ++++ .../Settle/Model/SettleWayQueryRequest.php | 67 + .../Model/SettleWayQueryRequestMarshaller.php | 83 + .../Settle/Model/SettleWayQueryResponse.php | 34 + .../SettleWayQueryResponseUnMarshaller.php | 39 + ...uerySettleWayQueryYOPResponseDtoResult.php | 452 +++++ .../Model/YopSettleReceiptRequestDTO.php | 462 +++++ .../Model/YopSettleReceiptResponseDTO.php | 456 +++++ ...lGenerationEndBalanceResponseDTOResult.php | 392 ++++ .../BillFundbillEndbalanceApplyRequest.php | 117 ++ ...ndbillEndbalanceApplyRequestMarshaller.php | 89 + .../BillFundbillEndbalanceApplyResponse.php | 34 + ...illEndbalanceApplyResponseUnMarshaller.php | 39 + ...llFlowQueryFundBillFlowDetailDTOResult.php | 1112 +++++++++++ .../Model/BillFundbillFlowQueryRequest.php | 217 +++ ...BillFundbillFlowQueryRequestMarshaller.php | 101 + .../Model/BillFundbillFlowQueryResponse.php | 34 + ...lFundbillFlowQueryResponseUnMarshaller.php | 39 + ...yYopQueryFundBillFlowResponseDTOResult.php | 392 ++++ .../Std/Model/BillFundbillFlowSumRequest.php | 167 ++ .../BillFundbillFlowSumRequestMarshaller.php | 95 + .../Std/Model/BillFundbillFlowSumResponse.php | 34 + ...illFundbillFlowSumResponseUnMarshaller.php | 39 + ...umYopQueryFundBillSumResponseDTOResult.php | 542 ++++++ .../Model/BillSettlebillDownloadRequest.php | 92 + ...illSettlebillDownloadRequestMarshaller.php | 87 + .../Model/CertOrderAuthResponseDTOResult.php | 482 +++++ lib/Service/Std/Model/CertOrderRequest.php | 317 +++ .../Std/Model/CertOrderRequestMarshaller.php | 113 ++ lib/Service/Std/Model/CertOrderResponse.php | 34 + .../Model/CertOrderResponseUnMarshaller.php | 39 + .../Std/Model/EndBalanceQueryRequest.php | 67 + .../EndBalanceQueryRequestMarshaller.php | 83 + .../Std/Model/EndBalanceQueryResponse.php | 34 + .../EndBalanceQueryResponseUnMarshaller.php | 39 + .../Std/Model/EndBalanceQueryV10Request.php | 67 + .../EndBalanceQueryV10RequestMarshaller.php | 83 + .../Std/Model/EndBalanceQueryV10Response.php | 34 + ...EndBalanceQueryV10ResponseUnMarshaller.php | 39 + .../Std/Model/YopQueryBalanceResponseDTO.php | 393 ++++ .../Model/BillDownloadRequest.php | 42 + .../Model/BillDownloadRequestMarshaller.php | 81 + .../SupplierRemit/SupplierRemitClient.php | 48 + .../SupplierRemitClientBuilder.php | 68 + ...teBatchGenerateQrCodeResponseDTOResult.php | 392 ++++ ...QrcodeBatchGenerateQrCodeApiInfoResult.php | 452 +++++ .../Model/QrcodeBatchGenerateRequest.php | 142 ++ .../QrcodeBatchGenerateRequestMarshaller.php | 92 + .../Model/QrcodeBatchGenerateResponse.php | 34 + ...rcodeBatchGenerateResponseUnMarshaller.php | 39 + .../Model/QrcodeQueryQrCodeApiInfoResult.php | 452 +++++ ...deQueryQueryQrCodeApiResponseDTOResult.php | 422 ++++ .../TelPay/Model/QrcodeQueryRequest.php | 242 +++ .../Model/QrcodeQueryRequestMarshaller.php | 104 + .../TelPay/Model/QrcodeQueryResponse.php | 34 + .../Model/QrcodeQueryResponseUnMarshaller.php | 39 + lib/Service/TelPay/TelPayClient.php | 72 + lib/Service/TelPay/TelPayClientBuilder.php | 69 + ...erCombineQueryYpPromotionInfoDTOResult.php | 452 +++++ .../Model/OrderQueryEnterpriseInfoResult.php | 332 ++++ .../OrderQueryEnterprisePayInfoResult.php | 332 ++++ .../Model/OrderQueryInstallmentInfoResult.php | 303 +++ ...eceiptDownloadReceiptResponseDTOResult.php | 362 ++++ .../Model/RefundReceiptDownloadRequest.php | 117 ++ ...RefundReceiptDownloadRequestMarshaller.php | 89 + .../Model/RefundReceiptDownloadResponse.php | 34 + ...undReceiptDownloadResponseUnMarshaller.php | 39 + .../Model/CinemaOrderRequestDTO.php | 753 ++++++++ .../Model/CreateOrderRequest.php | 42 + .../Model/CreateOrderRequestMarshaller.php | 80 + .../Model/CreateOrderResponse.php | 34 + .../Model/CreateOrderResponseUnMarshaller.php | 39 + .../Model/KfcOrder0Request.php | 42 + .../Model/KfcOrder0RequestMarshaller.php | 80 + .../Model/KfcOrder0Response.php | 34 + .../Model/KfcOrder0ResponseUnMarshaller.php | 39 + .../TravelResources/Model/KfcOrderRequest.php | 42 + .../Model/KfcOrderRequestDTO.php | 498 +++++ .../Model/KfcOrderRequestMarshaller.php | 80 + .../Model/KfcOrderResponse.php | 34 + .../Model/KfcOrderResponseUnMarshaller.php | 39 + .../Model/OrderBaseResponseDTO.php | 777 ++++++++ .../Model/QuerKfcOrderDataBeanDTO.php | 1254 ++++++++++++ .../Model/QueryCinemaOrderCouponBeanDTO.php | 453 +++++ .../Model/QueryCinemaOrderDataBeanDTO.php | 1461 ++++++++++++++ .../Model/QueryCinemaOrderRequest.php | 42 + .../QueryCinemaOrderRequestMarshaller.php | 80 + .../Model/QueryCinemaOrderResponse.php | 34 + .../Model/QueryCinemaOrderResponseDTO.php | 831 ++++++++ .../QueryCinemaOrderResponseUnMarshaller.php | 39 + .../Model/QueryKfcItemsBean.php | 483 +++++ .../Model/QueryKfcOptiionItemsBean.php | 363 ++++ .../Model/QueryKfcOrderRequest.php | 42 + .../Model/QueryKfcOrderRequestMarshaller.php | 80 + .../Model/QueryKfcOrderResponse.php | 34 + .../Model/QueryKfcOrderResponseDTO.php | 837 ++++++++ .../QueryKfcOrderResponseUnMarshaller.php | 39 + .../Model/QueryKfcPlaceOrderBean.php | 453 +++++ .../Model/QueryOrderRequest.php | 42 + .../Model/QueryOrderRequestDTO.php | 402 ++++ .../Model/QueryOrderRequestMarshaller.php | 80 + .../Model/QueryOrderResponse.php | 34 + .../Model/QueryOrderResponseUnMarshaller.php | 39 + .../TravelResources/TravelResourcesClient.php | 113 ++ .../TravelResourcesClientBuilder.php | 73 + src/Commands/Account.php | 80 +- src/Commands/Aggpay.php | 189 +- src/Commands/Trade.php | 170 +- 1291 files changed, 220566 insertions(+), 169 deletions(-) create mode 100644 lib/Service/Account/Model/AccountBookQueryRefundQueryAccountBookRefundRespDTOResult.php create mode 100644 lib/Service/Account/Model/AccountBookQueryRefundRequest.php create mode 100644 lib/Service/Account/Model/AccountBookQueryRefundRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountBookQueryRefundResponse.php create mode 100644 lib/Service/Account/Model/AccountBookQueryRefundResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountBookRefundAccountBookRefundRespDTOResult.php create mode 100644 lib/Service/Account/Model/AccountBookRefundRequest.php create mode 100644 lib/Service/Account/Model/AccountBookRefundRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountBookRefundResponse.php create mode 100644 lib/Service/Account/Model/AccountBookRefundResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountIndividualApplyRequest.php create mode 100644 lib/Service/Account/Model/AccountIndividualApplyRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountIndividualApplyResponse.php create mode 100644 lib/Service/Account/Model/AccountIndividualApplyResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryProgressRequest.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryProgressRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryProgressResponse.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryProgressResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryRequest.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryResponse.php create mode 100644 lib/Service/Account/Model/AccountIndividualQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageAccountOpenAccountBookCreateResponseDtoResult.php create mode 100644 lib/Service/Account/Model/AccountManageAccountOpenRequest.php create mode 100644 lib/Service/Account/Model/AccountManageAccountOpenRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageAccountOpenResponse.php create mode 100644 lib/Service/Account/Model/AccountManageAccountOpenResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageAccountQueryAccountBalanceQueryResponseDtoResult.php create mode 100644 lib/Service/Account/Model/AccountManageAccountQueryRequest.php create mode 100644 lib/Service/Account/Model/AccountManageAccountQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageAccountQueryResponse.php create mode 100644 lib/Service/Account/Model/AccountManageAccountQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountOpenRequest.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountOpenRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountOpenResponse.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountOpenResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryRequest.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryResponse.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryV10Request.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryV10RequestMarshaller.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryV10Response.php create mode 100644 lib/Service/Account/Model/AccountManageBankAccountQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/ApplyIndivdualProgressRespDTO.php create mode 100644 lib/Service/Account/Model/ApplyIndividualRespDTO.php create mode 100644 lib/Service/Account/Model/BankAccountAuthApplyRequest.php create mode 100644 lib/Service/Account/Model/BankAccountAuthApplyRequestMarshaller.php create mode 100644 lib/Service/Account/Model/BankAccountAuthApplyResponse.php create mode 100644 lib/Service/Account/Model/BankAccountAuthApplyResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/BankAccountAuthConfirmRequest.php create mode 100644 lib/Service/Account/Model/BankAccountAuthConfirmRequestMarshaller.php create mode 100644 lib/Service/Account/Model/BankAccountAuthConfirmResponse.php create mode 100644 lib/Service/Account/Model/BankAccountAuthConfirmResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentPayerInfoDtoParam.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRequestDtoParam.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRespDtoResult.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderOrderInfoDtoParam.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderRequest.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderRequestMarshaller.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderResponse.php create mode 100644 lib/Service/Account/Model/BankPaymentOrderResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/BenefitInfoReqDTO.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderOrderInfoDtoParam.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequest.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequestMarshaller.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponse.php create mode 100644 lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/EnterpriseTokenPayOrderRequest.php create mode 100644 lib/Service/Account/Model/EnterpriseTokenPayOrderRequestMarshaller.php create mode 100644 lib/Service/Account/Model/EnterpriseTokenPayOrderResponse.php create mode 100644 lib/Service/Account/Model/EnterpriseTokenPayOrderResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/EnterpriseTokenPayOrderTokenPaymentResponseDtoResult.php create mode 100644 lib/Service/Account/Model/ExternalOrderExternalOrderSubmitOrderRespDtoResult.php create mode 100644 lib/Service/Account/Model/ExternalOrderRequest.php create mode 100644 lib/Service/Account/Model/ExternalOrderRequestMarshaller.php create mode 100644 lib/Service/Account/Model/ExternalOrderResponse.php create mode 100644 lib/Service/Account/Model/ExternalOrderResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/HtbOpenAccountDTO.php create mode 100644 lib/Service/Account/Model/IndividualApplyRequest.php create mode 100644 lib/Service/Account/Model/IndividualApplyRequestMarshaller.php create mode 100644 lib/Service/Account/Model/IndividualApplyResponse.php create mode 100644 lib/Service/Account/Model/IndividualApplyResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/IndividualDTO.php create mode 100644 lib/Service/Account/Model/IndividualQueryProgressRequest.php create mode 100644 lib/Service/Account/Model/IndividualQueryProgressRequestMarshaller.php create mode 100644 lib/Service/Account/Model/IndividualQueryProgressResponse.php create mode 100644 lib/Service/Account/Model/IndividualQueryProgressResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/IndividualQueryRequest.php create mode 100644 lib/Service/Account/Model/IndividualQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/IndividualQueryResponse.php create mode 100644 lib/Service/Account/Model/IndividualQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/JsbcOpenAccountDTO.php create mode 100644 lib/Service/Account/Model/OpenAccountAuthApplyRespDTO.php create mode 100644 lib/Service/Account/Model/OpenAccountAuthConfirmRespDTO.php create mode 100644 lib/Service/Account/Model/PayBatchOrderBatchRemitExtInfoDTOParam.php create mode 100644 lib/Service/Account/Model/PayBatchOrderBatchRemitReqDTOParam.php create mode 100644 lib/Service/Account/Model/PayBatchOrderBatchRemitRespDTOResult.php create mode 100644 lib/Service/Account/Model/PayBatchOrderRemitDetailDTOParam.php create mode 100644 lib/Service/Account/Model/PayBatchOrderRemitDetailRespDTOResult.php create mode 100644 lib/Service/Account/Model/PayBatchOrderRequest.php create mode 100644 lib/Service/Account/Model/PayBatchOrderRequestMarshaller.php create mode 100644 lib/Service/Account/Model/PayBatchOrderResponse.php create mode 100644 lib/Service/Account/Model/PayBatchOrderResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/PayBatchQueryBatchRemitQueryRespDTOResult.php create mode 100644 lib/Service/Account/Model/PayBatchQueryRemitOrderQueryDTOResult.php create mode 100644 lib/Service/Account/Model/PayBatchQueryRequest.php create mode 100644 lib/Service/Account/Model/PayBatchQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/PayBatchQueryResponse.php create mode 100644 lib/Service/Account/Model/PayBatchQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/PaySystemQueryRemitOrderQueryRespDTOResult.php create mode 100644 lib/Service/Account/Model/PaySystemQueryRequest.php create mode 100644 lib/Service/Account/Model/PaySystemQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/PaySystemQueryResponse.php create mode 100644 lib/Service/Account/Model/PaySystemQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/QueryIndividualRespDTO.php create mode 100644 lib/Service/Account/Model/ReceiptGatherBatchReceiptRespDTOResult.php create mode 100644 lib/Service/Account/Model/ReceiptGatherRequest.php create mode 100644 lib/Service/Account/Model/ReceiptGatherRequestMarshaller.php create mode 100644 lib/Service/Account/Model/ReceiptGatherResponse.php create mode 100644 lib/Service/Account/Model/ReceiptGatherResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/RechargeAccountBookQueryRechargeOrderApiDtoResult.php create mode 100644 lib/Service/Account/Model/RechargeAccountBookQueryRechargePageQueryResponseDTOResult.php create mode 100644 lib/Service/Account/Model/RechargeAccountBookQueryRequest.php create mode 100644 lib/Service/Account/Model/RechargeAccountBookQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/RechargeAccountBookQueryResponse.php create mode 100644 lib/Service/Account/Model/RechargeAccountBookQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/RechargeBankPayRequestDTOParam.php create mode 100644 lib/Service/Account/Model/RechargeBatchQueryRechargeOrderApiDtoResult.php create mode 100644 lib/Service/Account/Model/RechargeBatchQueryRechargeQueryMultiApiRespDTOResult.php create mode 100644 lib/Service/Account/Model/RechargeBatchQueryRequest.php create mode 100644 lib/Service/Account/Model/RechargeBatchQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/RechargeBatchQueryResponse.php create mode 100644 lib/Service/Account/Model/RechargeBatchQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/RechargeEBankRequestDTOParam.php create mode 100644 lib/Service/Account/Model/RechargeQuickPublicRequestDTOParam.php create mode 100644 lib/Service/Account/Model/RechargeRechargeApiV2RequestDTOParam.php create mode 100644 lib/Service/Account/Model/RechargeRechargeApiV2ResponseDTOResult.php create mode 100644 lib/Service/Account/Model/RechargeRequest.php create mode 100644 lib/Service/Account/Model/RechargeRequestMarshaller.php create mode 100644 lib/Service/Account/Model/RechargeResponse.php create mode 100644 lib/Service/Account/Model/RechargeResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/SetWithdrawRuleRequest.php create mode 100644 lib/Service/Account/Model/SetWithdrawRuleRequestMarshaller.php create mode 100644 lib/Service/Account/Model/SetWithdrawRuleResponse.php create mode 100644 lib/Service/Account/Model/SetWithdrawRuleResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/SetWithdrawRuleWithdrawRuleRespDTOResult.php create mode 100644 lib/Service/Account/Model/ShareHolderInfoReqDTO.php create mode 100644 lib/Service/Account/Model/SnOpenAccountDTO.php create mode 100644 lib/Service/Account/Model/StandardOpenAccountQueryResponseDTO.php create mode 100644 lib/Service/Account/Model/StandardOpenAccountRequestDTO.php create mode 100644 lib/Service/Account/Model/StandardOpenAccountResponseDTO.php create mode 100644 lib/Service/Account/Model/TransferSystemQueryMgTransferOrderQueryRespDTOResult.php create mode 100644 lib/Service/Account/Model/TransferSystemQueryRequest.php create mode 100644 lib/Service/Account/Model/TransferSystemQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/TransferSystemQueryResponse.php create mode 100644 lib/Service/Account/Model/TransferSystemQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/TransferWechatOrderRequest.php create mode 100644 lib/Service/Account/Model/TransferWechatOrderRequestMarshaller.php create mode 100644 lib/Service/Account/Model/TransferWechatOrderResponse.php create mode 100644 lib/Service/Account/Model/TransferWechatOrderResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/TransferWechatOrderWechatTransferRespDTOResult.php create mode 100644 lib/Service/Account/Model/TransferWechatQueryQueryWechatTransferRespDTOResult.php create mode 100644 lib/Service/Account/Model/TransferWechatQueryRequest.php create mode 100644 lib/Service/Account/Model/TransferWechatQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/TransferWechatQueryResponse.php create mode 100644 lib/Service/Account/Model/TransferWechatQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/WhzbbOpenAccountDTO.php create mode 100644 lib/Service/Account/Model/WithdrawSystemQueryMGWithdrawOrderQueryRespDTOResult.php create mode 100644 lib/Service/Account/Model/WithdrawSystemQueryRequest.php create mode 100644 lib/Service/Account/Model/WithdrawSystemQueryRequestMarshaller.php create mode 100644 lib/Service/Account/Model/WithdrawSystemQueryResponse.php create mode 100644 lib/Service/Account/Model/WithdrawSystemQueryResponseUnMarshaller.php create mode 100644 lib/Service/Account/Model/XibOpenAccountDTO.php create mode 100644 lib/Service/Account/Model/XwbOpenAccountDTO.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDetailsRequest.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDetailsRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDetailsResponse.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDetailsResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequest.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponse.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatFeedbackBaseResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequest.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponse.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatListRequest.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatListRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatListResponse.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatListResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatListWechatComplaintListFlatResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequest.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponse.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatSuccessBaseResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatSuccessRequest.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatSuccessRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatSuccessResponse.php create mode 100644 lib/Service/Aggpay/Model/ComplaintWechatSuccessResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/PayLinkOrderCodeResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/PayLinkRequest.php create mode 100644 lib/Service/Aggpay/Model/PayLinkRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/PayLinkResponse.php create mode 100644 lib/Service/Aggpay/Model/PayLinkResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/QueryUseridPassiveGetUserIdResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/QueryUseridRequest.php create mode 100644 lib/Service/Aggpay/Model/QueryUseridRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/QueryUseridResponse.php create mode 100644 lib/Service/Aggpay/Model/QueryUseridResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenGenerateAliShareTokenResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenGenerateRequest.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenGenerateRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenGenerateResponse.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenGenerateResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenMarketQueryAliMarketQueryResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenMarketQueryRequest.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenMarketQueryRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenMarketQueryResponse.php create mode 100644 lib/Service/Aggpay/Model/ShareTokenMarketQueryResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/TutelagePrePayRequest.php create mode 100644 lib/Service/Aggpay/Model/TutelagePrePayRequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/TutelagePrePayResponse.php create mode 100644 lib/Service/Aggpay/Model/TutelagePrePayResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/TutelagePrePayWrapPrePayOrderResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigAddV2Request.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigAddV2RequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigAddV2Response.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigAddV2ResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigAddV2WechatConfigFlatResponseDTOResult.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigQueryV2Request.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigQueryV2RequestMarshaller.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigQueryV2Response.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigQueryV2ResponseUnMarshaller.php create mode 100644 lib/Service/Aggpay/Model/WechatConfigQueryV2WechatConfigFlatResponseDTOResult.php create mode 100644 lib/Service/AtVcc/AtVccClient.php create mode 100644 lib/Service/AtVcc/AtVccClientBuilder.php create mode 100644 lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportDetailResponseDTOResult.php create mode 100644 lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportQueryResponseDTOResult.php create mode 100644 lib/Service/AtVcc/Model/UnionPayOrderQueryRequest.php create mode 100644 lib/Service/AtVcc/Model/UnionPayOrderQueryRequestMarshaller.php create mode 100644 lib/Service/AtVcc/Model/UnionPayOrderQueryResponse.php create mode 100644 lib/Service/AtVcc/Model/UnionPayOrderQueryResponseUnMarshaller.php create mode 100644 lib/Service/Auth/AuthClient.php create mode 100644 lib/Service/Auth/AuthClientBuilder.php create mode 100644 lib/Service/Auth/Model/FaceAuthFaceAuthResponseDTOResult.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycFaceAuthResponseDTOResult.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycQueryRequest.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycQueryRequestMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycQueryResponse.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycQueryResponseUnMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycRequest.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycRequestMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycResponse.php create mode 100644 lib/Service/Auth/Model/FaceAuthKycResponseUnMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthRequest.php create mode 100644 lib/Service/Auth/Model/FaceAuthRequestMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthResponse.php create mode 100644 lib/Service/Auth/Model/FaceAuthResponseUnMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult.php create mode 100644 lib/Service/Auth/Model/FaceAuthResultQueryRequest.php create mode 100644 lib/Service/Auth/Model/FaceAuthResultQueryRequestMarshaller.php create mode 100644 lib/Service/Auth/Model/FaceAuthResultQueryResponse.php create mode 100644 lib/Service/Auth/Model/FaceAuthResultQueryResponseUnMarshaller.php create mode 100644 lib/Service/Auth/Model/MultipleAuthAuthResponseDTOResult.php create mode 100644 lib/Service/Auth/Model/MultipleAuthRequest.php create mode 100644 lib/Service/Auth/Model/MultipleAuthRequestMarshaller.php create mode 100644 lib/Service/Auth/Model/MultipleAuthResponse.php create mode 100644 lib/Service/Auth/Model/MultipleAuthResponseUnMarshaller.php create mode 100644 lib/Service/Cashier/Model/UnifiedOrderRequest.php create mode 100644 lib/Service/Cashier/Model/UnifiedOrderRequestMarshaller.php create mode 100644 lib/Service/Cashier/Model/UnifiedOrderResponse.php create mode 100644 lib/Service/Cashier/Model/UnifiedOrderResponseUnMarshaller.php create mode 100644 lib/Service/Cashier/Model/UnifiedOrderUnifiedCashierOrderResponseDTOResult.php create mode 100644 lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentApiInfoResult.php create mode 100644 lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentPayResponseDTOResult.php create mode 100644 lib/Service/Cnppay/Model/InstallmentPayRequestRequest.php create mode 100644 lib/Service/Cnppay/Model/InstallmentPayRequestRequestMarshaller.php create mode 100644 lib/Service/Cnppay/Model/InstallmentPayRequestResponse.php create mode 100644 lib/Service/Cnppay/Model/InstallmentPayRequestResponseUnMarshaller.php create mode 100644 lib/Service/Cnppay/Model/InstallmentQuerybankcfgInstallmentBankCfgInfoResult.php create mode 100644 lib/Service/Cnppay/Model/InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult.php create mode 100644 lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequest.php create mode 100644 lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequestMarshaller.php create mode 100644 lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponse.php create mode 100644 lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponseUnMarshaller.php create mode 100644 lib/Service/Divide/Model/BackReceiptDownloadReceiptResponseDTOResult.php create mode 100644 lib/Service/Divide/Model/BackReceiptDownloadRequest.php create mode 100644 lib/Service/Divide/Model/BackReceiptDownloadRequestMarshaller.php create mode 100644 lib/Service/Divide/Model/BackReceiptDownloadResponse.php create mode 100644 lib/Service/Divide/Model/BackReceiptDownloadResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/AgreementNosmsbindAgreementBindCardResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/AgreementNosmsbindRequest.php create mode 100644 lib/Service/Frontcashier/Model/AgreementNosmsbindRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/AgreementNosmsbindResponse.php create mode 100644 lib/Service/Frontcashier/Model/AgreementNosmsbindResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/BindcardConfirmV2Request.php create mode 100644 lib/Service/Frontcashier/Model/BindcardConfirmV2RequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardConfirmV2Response.php create mode 100644 lib/Service/Frontcashier/Model/BindcardConfirmV2ResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam.php create mode 100644 lib/Service/Frontcashier/Model/BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/BindcardPayerrequestRequest.php create mode 100644 lib/Service/Frontcashier/Model/BindcardPayerrequestRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardPayerrequestResponse.php create mode 100644 lib/Service/Frontcashier/Model/BindcardPayerrequestResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequest.php create mode 100644 lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponse.php create mode 100644 lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardRequestV2OpenAuthBindCardResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/BindcardRequestV2Request.php create mode 100644 lib/Service/Frontcashier/Model/BindcardRequestV2RequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardRequestV2Response.php create mode 100644 lib/Service/Frontcashier/Model/BindcardRequestV2ResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/BindcardResendsmsV2Request.php create mode 100644 lib/Service/Frontcashier/Model/BindcardResendsmsV2RequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardResendsmsV2Response.php create mode 100644 lib/Service/Frontcashier/Model/BindcardResendsmsV2ResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardUnbindcardRequest.php create mode 100644 lib/Service/Frontcashier/Model/BindcardUnbindcardRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardUnbindcardResponse.php create mode 100644 lib/Service/Frontcashier/Model/BindcardUnbindcardResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/BindcardUnbindcardUnBindCardResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/FastbindcardRequestRequest.php create mode 100644 lib/Service/Frontcashier/Model/FastbindcardRequestRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/FastbindcardRequestResponse.php create mode 100644 lib/Service/Frontcashier/Model/FastbindcardRequestResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanPayOpenActiveScanPayResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanPayRequest.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanPayRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanPayResponse.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanPayResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequest.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponse.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequest.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponse.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequest.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponse.php create mode 100644 lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponseUnMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopPassivescanValidateOpenPassiveValidateResponseDTOResult.php create mode 100644 lib/Service/Frontcashier/Model/UpopPassivescanValidateRequest.php create mode 100644 lib/Service/Frontcashier/Model/UpopPassivescanValidateRequestMarshaller.php create mode 100644 lib/Service/Frontcashier/Model/UpopPassivescanValidateResponse.php create mode 100644 lib/Service/Frontcashier/Model/UpopPassivescanValidateResponseUnMarshaller.php create mode 100644 lib/Service/Insurance/InsuranceClient.php create mode 100644 lib/Service/Insurance/InsuranceClientBuilder.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthCommonInsurRequestDTOParam.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthCommonInsurResponseDTOResult.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthCustomerDataDTOResult.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthRequest.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthRequestMarshaller.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthResponse.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthResponseUnMarshaller.php create mode 100644 lib/Service/Insurance/Model/RealnameAuthTradingBackDataDTOParam.php create mode 100644 lib/Service/Insurance/Model/RealnameNotifyCommonNoticeResponseDTOResult.php create mode 100644 lib/Service/Insurance/Model/RealnameNotifyRequest.php create mode 100644 lib/Service/Insurance/Model/RealnameNotifyRequestMarshaller.php create mode 100644 lib/Service/Insurance/Model/RealnameNotifyResponse.php create mode 100644 lib/Service/Insurance/Model/RealnameNotifyResponseUnMarshaller.php create mode 100644 lib/Service/Invoice/InvoiceClient.php create mode 100644 lib/Service/Invoice/InvoiceClientBuilder.php create mode 100644 lib/Service/Invoice/Model/ApplyApplyInvoiceYOPResponseDtoResult.php create mode 100644 lib/Service/Invoice/Model/ApplyIssueInvoiceDtoResult.php create mode 100644 lib/Service/Invoice/Model/ApplyRequest.php create mode 100644 lib/Service/Invoice/Model/ApplyRequestMarshaller.php create mode 100644 lib/Service/Invoice/Model/ApplyResponse.php create mode 100644 lib/Service/Invoice/Model/ApplyResponseUnMarshaller.php create mode 100644 lib/Service/Invoice/Model/FeeQueryGetFeeResponseDtoResult.php create mode 100644 lib/Service/Invoice/Model/FeeQueryRequest.php create mode 100644 lib/Service/Invoice/Model/FeeQueryRequestMarshaller.php create mode 100644 lib/Service/Invoice/Model/FeeQueryResponse.php create mode 100644 lib/Service/Invoice/Model/FeeQueryResponseUnMarshaller.php create mode 100644 lib/Service/Invoice/Model/InfoModifyAddOrModifyInvoiceInfoResponseDtoResult.php create mode 100644 lib/Service/Invoice/Model/InfoModifyRequest.php create mode 100644 lib/Service/Invoice/Model/InfoModifyRequestMarshaller.php create mode 100644 lib/Service/Invoice/Model/InfoModifyResponse.php create mode 100644 lib/Service/Invoice/Model/InfoModifyResponseUnMarshaller.php create mode 100644 lib/Service/Invoice/Model/InfoQueryQueryInvoiceInfoYOPResponseDtoResult.php create mode 100644 lib/Service/Invoice/Model/InfoQueryRequest.php create mode 100644 lib/Service/Invoice/Model/InfoQueryRequestMarshaller.php create mode 100644 lib/Service/Invoice/Model/InfoQueryResponse.php create mode 100644 lib/Service/Invoice/Model/InfoQueryResponseUnMarshaller.php create mode 100644 lib/Service/Invoice/Model/RecordQueryApplyInvoiceYOPResponseDtoResult.php create mode 100644 lib/Service/Invoice/Model/RecordQueryIssueInvoiceDtoResult.php create mode 100644 lib/Service/Invoice/Model/RecordQueryQueryApplyInvoiceResponseDTOResult.php create mode 100644 lib/Service/Invoice/Model/RecordQueryRequest.php create mode 100644 lib/Service/Invoice/Model/RecordQueryRequestMarshaller.php create mode 100644 lib/Service/Invoice/Model/RecordQueryResponse.php create mode 100644 lib/Service/Invoice/Model/RecordQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/MWalletClient.php create mode 100644 lib/Service/MWallet/MWalletClientBuilder.php create mode 100644 lib/Service/MWallet/Model/APIWalletPayResponseDTO.php create mode 100644 lib/Service/MWallet/Model/AccountFaceCertifyOpenRequest.php create mode 100644 lib/Service/MWallet/Model/AccountFaceCertifyOpenRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountFaceCertifyOpenResponse.php create mode 100644 lib/Service/MWallet/Model/AccountFaceCertifyOpenResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountMemberDTO.php create mode 100644 lib/Service/MWallet/Model/AccountOpenNotifyRequest.php create mode 100644 lib/Service/MWallet/Model/AccountOpenNotifyRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountOpenNotifyResponse.php create mode 100644 lib/Service/MWallet/Model/AccountOpenNotifyResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountOpenRequest.php create mode 100644 lib/Service/MWallet/Model/AccountOpenRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountOpenResponse.php create mode 100644 lib/Service/MWallet/Model/AccountOpenResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountOpenV10Request.php create mode 100644 lib/Service/MWallet/Model/AccountOpenV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountOpenV10Response.php create mode 100644 lib/Service/MWallet/Model/AccountOpenV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryBalanceQueryAccountInfoDTOResult.php create mode 100644 lib/Service/MWallet/Model/AccountQueryBalanceQueryBalanceResponseDTOResult.php create mode 100644 lib/Service/MWallet/Model/AccountQueryBalanceRequest.php create mode 100644 lib/Service/MWallet/Model/AccountQueryBalanceRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryBalanceResponse.php create mode 100644 lib/Service/MWallet/Model/AccountQueryBalanceResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryQuotaRequest.php create mode 100644 lib/Service/MWallet/Model/AccountQueryQuotaRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryQuotaResponse.php create mode 100644 lib/Service/MWallet/Model/AccountQueryQuotaResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryRequest.php create mode 100644 lib/Service/MWallet/Model/AccountQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryResponse.php create mode 100644 lib/Service/MWallet/Model/AccountQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryV10Request.php create mode 100644 lib/Service/MWallet/Model/AccountQueryV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AccountQueryV10Response.php create mode 100644 lib/Service/MWallet/Model/AccountQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelRequest.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelResponse.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelV10Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelV10Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryRequest.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryResponse.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestRequest.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestResponse.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestV1Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestV1RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestV1Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentRequestV1ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignRequest.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignResponse.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignV10Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignV10Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Request.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Response.php create mode 100644 lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionCreateRequest.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionCreateRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionCreateResponse.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionCreateResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionQueryRequest.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionQueryResponse.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionQueryResponseDTO.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoDeductionResponseDTO.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawQueryRequest.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawQueryResponse.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawQueryResponseDTO.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawRequest.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawResponse.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawResponseDTO.php create mode 100644 lib/Service/MWallet/Model/AutoWithdrawResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountConfirmV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountOpenV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryActivationV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryComplaintV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryOpenResultV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryTradeV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountQueryWithdrawV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountRequestDTO.php create mode 100644 lib/Service/MWallet/Model/BankAccountResponseDTO.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountSendMsgV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountTradeDTO.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithDrawRespDTO.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawRequest.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawResponse.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawV10Request.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawV10Response.php create mode 100644 lib/Service/MWallet/Model/BankAccountWithdrawV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BankKeyWordsResponseDTO.php create mode 100644 lib/Service/MWallet/Model/BankShortMsgResponseDTO.php create mode 100644 lib/Service/MWallet/Model/BillDetailResponseDto.php create mode 100644 lib/Service/MWallet/Model/BillListDetailDto.php create mode 100644 lib/Service/MWallet/Model/BillListResponseDto.php create mode 100644 lib/Service/MWallet/Model/BillOverviewDetailDto.php create mode 100644 lib/Service/MWallet/Model/BillOverviewDto.php create mode 100644 lib/Service/MWallet/Model/BillOverviewResponseDto.php create mode 100644 lib/Service/MWallet/Model/BillQueryDetailRequest.php create mode 100644 lib/Service/MWallet/Model/BillQueryDetailRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryDetailResponse.php create mode 100644 lib/Service/MWallet/Model/BillQueryDetailResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryListRequest.php create mode 100644 lib/Service/MWallet/Model/BillQueryListRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryListResponse.php create mode 100644 lib/Service/MWallet/Model/BillQueryListResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryListV2Request.php create mode 100644 lib/Service/MWallet/Model/BillQueryListV2RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryListV2Response.php create mode 100644 lib/Service/MWallet/Model/BillQueryListV2ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryOverviewRequest.php create mode 100644 lib/Service/MWallet/Model/BillQueryOverviewRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/BillQueryOverviewResponse.php create mode 100644 lib/Service/MWallet/Model/BillQueryOverviewResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/BindCardInfo.php create mode 100644 lib/Service/MWallet/Model/CardQueryRequest.php create mode 100644 lib/Service/MWallet/Model/CardQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/CardQueryResponse.php create mode 100644 lib/Service/MWallet/Model/CardQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/CardQueryV10Request.php create mode 100644 lib/Service/MWallet/Model/CardQueryV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/CardQueryV10Response.php create mode 100644 lib/Service/MWallet/Model/CardQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/ConfirmBankAccountResponseDTO.php create mode 100644 lib/Service/MWallet/Model/CouponInfoDTO.php create mode 100644 lib/Service/MWallet/Model/CouponListQueryWeb3Request.php create mode 100644 lib/Service/MWallet/Model/CouponListQueryWeb3RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/CouponListQueryWeb3Response.php create mode 100644 lib/Service/MWallet/Model/CouponListQueryWeb3ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/CouponQueryResponseDTO.php create mode 100644 lib/Service/MWallet/Model/FreeSecretCancelRespDTO.php create mode 100644 lib/Service/MWallet/Model/FreeSecretCancelResponseDTO.php create mode 100644 lib/Service/MWallet/Model/FreeSecretNotifyRespDTO.php create mode 100644 lib/Service/MWallet/Model/FreeSecretQueryRespDTO.php create mode 100644 lib/Service/MWallet/Model/FreeSecretQueryResponseDTO.php create mode 100644 lib/Service/MWallet/Model/FreeSecretSignRespDTO.php create mode 100644 lib/Service/MWallet/Model/ManageFeeDeductQueryRespDTO.php create mode 100644 lib/Service/MWallet/Model/ManageFeeDeductResult.php create mode 100644 lib/Service/MWallet/Model/ManageFeeQueryDeductRequest.php create mode 100644 lib/Service/MWallet/Model/ManageFeeQueryDeductRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/ManageFeeQueryDeductResponse.php create mode 100644 lib/Service/MWallet/Model/ManageFeeQueryDeductResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/MarketingInfoModel.php create mode 100644 lib/Service/MWallet/Model/MemberCancelResponseDTO.php create mode 100644 lib/Service/MWallet/Model/MemberCardListRequest.php create mode 100644 lib/Service/MWallet/Model/MemberCardListRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/MemberCardListResponse.php create mode 100644 lib/Service/MWallet/Model/MemberCardListResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/MemberQueryBindCardListResponseDTO.php create mode 100644 lib/Service/MWallet/Model/MemberQueryRequest.php create mode 100644 lib/Service/MWallet/Model/MemberQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/MemberQueryResponse.php create mode 100644 lib/Service/MWallet/Model/MemberQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/MemberQueryV10Request.php create mode 100644 lib/Service/MWallet/Model/MemberQueryV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/MemberQueryV10Response.php create mode 100644 lib/Service/MWallet/Model/MemberQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/MemberSubscribeNotifyInfo.php create mode 100644 lib/Service/MWallet/Model/MemberTradOrderResp.php create mode 100644 lib/Service/MWallet/Model/OpenSuccessNotifyResponseDTO.php create mode 100644 lib/Service/MWallet/Model/PasswordManageRequest.php create mode 100644 lib/Service/MWallet/Model/PasswordManageRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/PasswordManageResponse.php create mode 100644 lib/Service/MWallet/Model/PasswordManageResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/PasswordManageV10Request.php create mode 100644 lib/Service/MWallet/Model/PasswordManageV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/PasswordManageV10Response.php create mode 100644 lib/Service/MWallet/Model/PasswordManageV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/PaymentManageWeb3V10Request.php create mode 100644 lib/Service/MWallet/Model/PaymentManageWeb3V10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/PaymentManageWeb3V10Response.php create mode 100644 lib/Service/MWallet/Model/PaymentManageWeb3V10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/QueryBankAccountActivationRespDTO.php create mode 100644 lib/Service/MWallet/Model/QueryBankAccountTradeRespDTO.php create mode 100644 lib/Service/MWallet/Model/QueryBankAccountWithDrawRespDTO.php create mode 100644 lib/Service/MWallet/Model/QueryComplaintOrderRespDTO.php create mode 100644 lib/Service/MWallet/Model/QueryMGB2CResponseDTO.php create mode 100644 lib/Service/MWallet/Model/QueryMemberInfoResponseDTO.php create mode 100644 lib/Service/MWallet/Model/QueryOpenResultResponseDTO.php create mode 100644 lib/Service/MWallet/Model/QueryRechargeResponseDTO.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateRequest.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateResponse.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateV10Request.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateV10Response.php create mode 100644 lib/Service/MWallet/Model/RechargeInitiateV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryRequest.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryResponse.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryV10Request.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryV10Response.php create mode 100644 lib/Service/MWallet/Model/RechargeQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/RequestURLResponseDTO.php create mode 100644 lib/Service/MWallet/Model/SubscribeExpireNotifyRequest.php create mode 100644 lib/Service/MWallet/Model/SubscribeExpireNotifyRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/SubscribeExpireNotifyResponse.php create mode 100644 lib/Service/MWallet/Model/SubscribeExpireNotifyResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/SubscribeNotifyRequestDTO.php create mode 100644 lib/Service/MWallet/Model/SubscribeNotifyResponseDTO.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionCreateRequest.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionCreateRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionCreateResponse.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionCreateResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionQueryRequest.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionQueryResponse.php create mode 100644 lib/Service/MWallet/Model/TradeAutoDeductionQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderRequest.php create mode 100644 lib/Service/MWallet/Model/TradeOrderRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderResponse.php create mode 100644 lib/Service/MWallet/Model/TradeOrderResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV10Request.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV10Response.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV20Request.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV20RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV20Response.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV20ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV2Request.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV2RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV2Response.php create mode 100644 lib/Service/MWallet/Model/TradeOrderV2ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateRequest.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateResponse.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateV10Request.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateV10Response.php create mode 100644 lib/Service/MWallet/Model/TransferB2cInitiateV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketRequest.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketResponse.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketV10Request.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketV10Response.php create mode 100644 lib/Service/MWallet/Model/TransferB2cMarketV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryRequest.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryResponse.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryV10Request.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryV10Response.php create mode 100644 lib/Service/MWallet/Model/TransferB2cQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletAdapterRequestURLResponseDTO.php create mode 100644 lib/Service/MWallet/Model/WalletCancelRequest.php create mode 100644 lib/Service/MWallet/Model/WalletCancelRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletCancelResponse.php create mode 100644 lib/Service/MWallet/Model/WalletCancelResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletCancelV10Request.php create mode 100644 lib/Service/MWallet/Model/WalletCancelV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletCancelV10Response.php create mode 100644 lib/Service/MWallet/Model/WalletCancelV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV20Request.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV20RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV20Response.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV20ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV2Request.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV2RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV2Response.php create mode 100644 lib/Service/MWallet/Model/WalletIndexV2ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WalletMemberResponseDTO.php create mode 100644 lib/Service/MWallet/Model/WalletOpenByFaceResponseDTO.php create mode 100644 lib/Service/MWallet/Model/WalletQueryWithdrawResultDTO.php create mode 100644 lib/Service/MWallet/Model/WalletRequestRecordResponseDTO.php create mode 100644 lib/Service/MWallet/Model/WalletTransferB2CResponseDTO.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementNotifyRequest.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementNotifyRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementNotifyResponse.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementNotifyResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentCancelRequest.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentCancelRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponse.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentQueryRequest.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponse.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentSignRequest.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentSignRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentSignResponse.php create mode 100644 lib/Service/MWallet/Model/Web3AgreementPaymentSignResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3CouponListQueryRequest.php create mode 100644 lib/Service/MWallet/Model/Web3CouponListQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3CouponListQueryResponse.php create mode 100644 lib/Service/MWallet/Model/Web3CouponListQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3PaymentManageRequest.php create mode 100644 lib/Service/MWallet/Model/Web3PaymentManageRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/Web3PaymentManageResponse.php create mode 100644 lib/Service/MWallet/Model/Web3PaymentManageResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateRequest.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateResponse.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateV10Request.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateV10Response.php create mode 100644 lib/Service/MWallet/Model/WithdrawInitiateV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryRequest.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryRequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryResponse.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryV10Request.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryV10RequestMarshaller.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryV10Response.php create mode 100644 lib/Service/MWallet/Model/WithdrawQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/MWallet/Model/YopQueryMemberBalanceQuotaRespDTO.php create mode 100644 lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthDtoResult.php create mode 100644 lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthStateResDtoResult.php create mode 100644 lib/Service/Mer/Model/AuthStateQueryV2Request.php create mode 100644 lib/Service/Mer/Model/AuthStateQueryV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/AuthStateQueryV2Response.php create mode 100644 lib/Service/Mer/Model/AuthStateQueryV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantInfoModifyMerchantInfoModifyRespDTOResult.php create mode 100644 lib/Service/Mer/Model/MerchantInfoModifyRequest.php create mode 100644 lib/Service/Mer/Model/MerchantInfoModifyRequestMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantInfoModifyResponse.php create mode 100644 lib/Service/Mer/Model/MerchantInfoModifyResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequest.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequestMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponse.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationSubmitRequest.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationSubmitRequestMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponse.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult.php create mode 100644 lib/Service/Mer/Model/NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult.php create mode 100644 lib/Service/Mer/Model/NotifyRepeatV2Request.php create mode 100644 lib/Service/Mer/Model/NotifyRepeatV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/NotifyRepeatV2Response.php create mode 100644 lib/Service/Mer/Model/NotifyRepeatV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductFeeModifyV2ModifyProductFeeRespDtoResult.php create mode 100644 lib/Service/Mer/Model/ProductFeeModifyV2Request.php create mode 100644 lib/Service/Mer/Model/ProductFeeModifyV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductFeeModifyV2Response.php create mode 100644 lib/Service/Mer/Model/ProductFeeModifyV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductFeeQueryV2QueryProductFeeRespDtoResult.php create mode 100644 lib/Service/Mer/Model/ProductFeeQueryV2Request.php create mode 100644 lib/Service/Mer/Model/ProductFeeQueryV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductFeeQueryV2Response.php create mode 100644 lib/Service/Mer/Model/ProductFeeQueryV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult.php create mode 100644 lib/Service/Mer/Model/ProductIncrementSettleOpenV2Request.php create mode 100644 lib/Service/Mer/Model/ProductIncrementSettleOpenV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductIncrementSettleOpenV2Response.php create mode 100644 lib/Service/Mer/Model/ProductIncrementSettleOpenV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult.php create mode 100644 lib/Service/Mer/Model/ProductModifyQueryV2Request.php create mode 100644 lib/Service/Mer/Model/ProductModifyQueryV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/ProductModifyQueryV2Response.php create mode 100644 lib/Service/Mer/Model/ProductModifyQueryV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterQueryV2NetInProgressQueryRespDtoResult.php create mode 100644 lib/Service/Mer/Model/RegisterQueryV2Request.php create mode 100644 lib/Service/Mer/Model/RegisterQueryV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterQueryV2Response.php create mode 100644 lib/Service/Mer/Model/RegisterQueryV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasIndexV2Request.php create mode 100644 lib/Service/Mer/Model/RegisterSaasIndexV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasIndexV2Response.php create mode 100644 lib/Service/Mer/Model/RegisterSaasIndexV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasIndexV2UserPreRegisterRespDtoResult.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMerchantV2Request.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMerchantV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMerchantV2Response.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMerchantV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMicroV2Request.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMicroV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMicroV2Response.php create mode 100644 lib/Service/Mer/Model/RegisterSaasMicroV2ResponseUnMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult.php create mode 100644 lib/Service/Mer/Model/RegisterSaasWebIndexV2Request.php create mode 100644 lib/Service/Mer/Model/RegisterSaasWebIndexV2RequestMarshaller.php create mode 100644 lib/Service/Mer/Model/RegisterSaasWebIndexV2Response.php create mode 100644 lib/Service/Mer/Model/RegisterSaasWebIndexV2ResponseUnMarshaller.php create mode 100644 lib/Service/Netpay/Model/OrderOrderResponseDTOResult.php create mode 100644 lib/Service/Netpay/Model/OrderRequest.php create mode 100644 lib/Service/Netpay/Model/OrderRequestMarshaller.php create mode 100644 lib/Service/Netpay/Model/OrderResponse.php create mode 100644 lib/Service/Netpay/Model/OrderResponseUnMarshaller.php create mode 100644 lib/Service/Netpay/Model/OrderSdkPayOrderRequest.php create mode 100644 lib/Service/Netpay/Model/OrderSdkPayOrderRequestMarshaller.php create mode 100644 lib/Service/Netpay/Model/OrderSdkPayOrderResponse.php create mode 100644 lib/Service/Netpay/Model/OrderSdkPayOrderResponseUnMarshaller.php create mode 100644 lib/Service/Netpay/Model/OrderSdkPayOrderSdkOrderResponseDTOResult.php create mode 100644 lib/Service/Netpay/NetpayClient.php create mode 100644 lib/Service/Netpay/NetpayClientBuilder.php create mode 100644 lib/Service/Offline/Model/BindRequest.php create mode 100644 lib/Service/Offline/Model/BindRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/BindRequestTerminalInfo.php create mode 100644 lib/Service/Offline/Model/BindResponse.php create mode 100644 lib/Service/Offline/Model/BindResponseTerminalInfo.php create mode 100644 lib/Service/Offline/Model/BindResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/CreateShopRequest.php create mode 100644 lib/Service/Offline/Model/CreateShopRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/CreateShopResponse.php create mode 100644 lib/Service/Offline/Model/CreateShopResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/GetShopRequest.php create mode 100644 lib/Service/Offline/Model/GetShopRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/GetShopResponse.php create mode 100644 lib/Service/Offline/Model/GetShopResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/GetShopRspDTO.php create mode 100644 lib/Service/Offline/Model/OperateShopRequest.php create mode 100644 lib/Service/Offline/Model/OperateShopRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/OperateShopResponse.php create mode 100644 lib/Service/Offline/Model/OperateShopResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryAgentListRequest.php create mode 100644 lib/Service/Offline/Model/QueryAgentListRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryAgentListResponse.php create mode 100644 lib/Service/Offline/Model/QueryAgentListResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryOrderInfoRequest.php create mode 100644 lib/Service/Offline/Model/QueryOrderInfoRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryOrderInfoResponse.php create mode 100644 lib/Service/Offline/Model/QueryOrderInfoResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryPosTrxInfoRequest.php create mode 100644 lib/Service/Offline/Model/QueryPosTrxInfoRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryPosTrxInfoResponse.php create mode 100644 lib/Service/Offline/Model/QueryPosTrxInfoResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryShopBindListRequest.php create mode 100644 lib/Service/Offline/Model/QueryShopBindListRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/QueryShopBindListResponse.php create mode 100644 lib/Service/Offline/Model/QueryShopBindListResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/UnbindRequest.php create mode 100644 lib/Service/Offline/Model/UnbindRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/UnbindResponse.php create mode 100644 lib/Service/Offline/Model/UnbindResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/UpdateShopRequest.php create mode 100644 lib/Service/Offline/Model/UpdateShopRequestMarshaller.php create mode 100644 lib/Service/Offline/Model/UpdateShopResponse.php create mode 100644 lib/Service/Offline/Model/UpdateShopResponseUnMarshaller.php create mode 100644 lib/Service/Offline/Model/YopBaseRspDTO.php create mode 100644 lib/Service/Offline/Model/YopBindTerminalRequestDto.php create mode 100644 lib/Service/Offline/Model/YopBindTerminalResponseDto.php create mode 100644 lib/Service/Offline/Model/YopCreateShopRspDTO.php create mode 100644 lib/Service/Offline/Model/YopGetShopRspDTO.php create mode 100644 lib/Service/Offline/Model/YopQueryAgentResponse.php create mode 100644 lib/Service/Offline/Model/YopQueryAgentRspDto.php create mode 100644 lib/Service/Offline/Model/YopQueryOrderInfoRespDTO.php create mode 100644 lib/Service/Offline/Model/YopQueryShopBindResponse.php create mode 100644 lib/Service/Offline/Model/YopQueryShopBindRspDto.php create mode 100644 lib/Service/Offline/Model/YopUnBindTerminalRequestDto.php create mode 100644 lib/Service/Offline/Model/YopUnBindTerminalResponseDto.php create mode 100644 lib/Service/Offline/OfflineClient.php create mode 100644 lib/Service/Offline/OfflineClientBuilder.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountCompCustOpenAcctRspDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountQueryRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountQueryRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountQueryResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountQueryResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAccountResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAssetsQueryCompQueryAssetsResponseDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceOrderQueryCompQueryOrderStatusResponseDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceOrderQueryRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceOrderQueryRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceOrderQueryResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceOrderQueryResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinancePurchaseOrderCompTranPurchaseRspDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceRedeemOrderCompTranRedeemRspDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceSmallPaymentCompCustOpenAcctConfirmRspDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceTransactionQueryCompQueryTransactionListResponseDTOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceTransactionQueryCompTransactionVOResult.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequest.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponse.php create mode 100644 lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/FileUploadCustFileUploadResponseDTOResult.php create mode 100644 lib/Service/P2f/Model/FileUploadRequest.php create mode 100644 lib/Service/P2f/Model/FileUploadRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/FileUploadResponse.php create mode 100644 lib/Service/P2f/Model/FileUploadResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/ZzdfOrderRechargeAndPayRspDTOResult.php create mode 100644 lib/Service/P2f/Model/ZzdfOrderRequest.php create mode 100644 lib/Service/P2f/Model/ZzdfOrderRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/ZzdfOrderResponse.php create mode 100644 lib/Service/P2f/Model/ZzdfOrderResponseUnMarshaller.php create mode 100644 lib/Service/P2f/Model/ZzdfQueryQueryRechargeAndPayRspDTOResult.php create mode 100644 lib/Service/P2f/Model/ZzdfQueryRequest.php create mode 100644 lib/Service/P2f/Model/ZzdfQueryRequestMarshaller.php create mode 100644 lib/Service/P2f/Model/ZzdfQueryResponse.php create mode 100644 lib/Service/P2f/Model/ZzdfQueryResponseUnMarshaller.php create mode 100644 lib/Service/P2f/P2fClient.php create mode 100644 lib/Service/P2f/P2fClientBuilder.php create mode 100644 lib/Service/Pos/Model/GetPosInfoDtosPosInfoDtoResult.php create mode 100644 lib/Service/Pos/Model/GetPosInfoDtosPosInfoResponseParamResult.php create mode 100644 lib/Service/Pos/Model/GetPosInfoDtosRequest.php create mode 100644 lib/Service/Pos/Model/GetPosInfoDtosRequestMarshaller.php create mode 100644 lib/Service/Pos/Model/GetPosInfoDtosResponse.php create mode 100644 lib/Service/Pos/Model/GetPosInfoDtosResponseUnMarshaller.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductInstallPosWithProductParamParam.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductPrePosParam.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductPreShopParam.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductRequest.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductRequestMarshaller.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductResponse.php create mode 100644 lib/Service/Pos/Model/InstallPosWithProductResponseUnMarshaller.php create mode 100644 lib/Service/Pos/Model/UnSynBindPosRequest.php create mode 100644 lib/Service/Pos/Model/UnSynBindPosRequestMarshaller.php create mode 100644 lib/Service/Pos/Model/UnSynBindPosResponse.php create mode 100644 lib/Service/Pos/Model/UnSynBindPosResponseUnMarshaller.php create mode 100644 lib/Service/Pos/PosClient.php create mode 100644 lib/Service/Pos/PosClientBuilder.php create mode 100644 lib/Service/Promtion/Model/ActivityListQueryActivityPageListQueryResponseResult.php create mode 100644 lib/Service/Promtion/Model/ActivityListQueryActivityQueryInfoResult.php create mode 100644 lib/Service/Promtion/Model/ActivityListQueryRequest.php create mode 100644 lib/Service/Promtion/Model/ActivityListQueryRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/ActivityListQueryResponse.php create mode 100644 lib/Service/Promtion/Model/ActivityListQueryResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/AddRightsRequest.php create mode 100644 lib/Service/Promtion/Model/AddRightsRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/AddRightsResponse.php create mode 100644 lib/Service/Promtion/Model/AddRightsResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/BaseResponse.php create mode 100644 lib/Service/Promtion/Model/CouponApplyCouponApplyResponseResult.php create mode 100644 lib/Service/Promtion/Model/CouponApplyRequest.php create mode 100644 lib/Service/Promtion/Model/CouponApplyRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/CouponApplyResponse.php create mode 100644 lib/Service/Promtion/Model/CouponApplyResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryCouponPageListQueryResponseResult.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryCouponProductRuleResult.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryCouponQueryInfoResult.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryRequest.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryResponse.php create mode 100644 lib/Service/Promtion/Model/CouponListQueryResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/CreateRightsQrCodeAdapterRespDTO.php create mode 100644 lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequest.php create mode 100644 lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponse.php create mode 100644 lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/FrozenRightsRequest.php create mode 100644 lib/Service/Promtion/Model/FrozenRightsRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/FrozenRightsResponse.php create mode 100644 lib/Service/Promtion/Model/FrozenRightsResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/PointCreateAccountCreateResponseDTOResult.php create mode 100644 lib/Service/Promtion/Model/PointCreateRequest.php create mode 100644 lib/Service/Promtion/Model/PointCreateRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/PointCreateResponse.php create mode 100644 lib/Service/Promtion/Model/PointCreateResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/PointOperatePointAccountOperateResponseDTOResult.php create mode 100644 lib/Service/Promtion/Model/PointOperateRequest.php create mode 100644 lib/Service/Promtion/Model/PointOperateRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/PointOperateResponse.php create mode 100644 lib/Service/Promtion/Model/PointOperateResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/PointQueryPointAccountQueryResponseDTOResult.php create mode 100644 lib/Service/Promtion/Model/PointQueryRequest.php create mode 100644 lib/Service/Promtion/Model/PointQueryRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/PointQueryResponse.php create mode 100644 lib/Service/Promtion/Model/PointQueryResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/QueryConsumeRecordAdapterRequest.php create mode 100644 lib/Service/Promtion/Model/QueryConsumeRecordAdapterRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponse.php create mode 100644 lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/QueryRightsConsumeAdapterRespDTO.php create mode 100644 lib/Service/Promtion/Model/QueryRightsListAdapterRespDTO.php create mode 100644 lib/Service/Promtion/Model/QueryRightsRequest.php create mode 100644 lib/Service/Promtion/Model/QueryRightsRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/QueryRightsResponse.php create mode 100644 lib/Service/Promtion/Model/QueryRightsResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsConsumeDto.php create mode 100644 lib/Service/Promtion/Model/RightsCreateQrcodeRequest.php create mode 100644 lib/Service/Promtion/Model/RightsCreateQrcodeRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsCreateQrcodeResponse.php create mode 100644 lib/Service/Promtion/Model/RightsCreateQrcodeResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsDto.php create mode 100644 lib/Service/Promtion/Model/RightsFrozenRightsRequest.php create mode 100644 lib/Service/Promtion/Model/RightsFrozenRightsRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsFrozenRightsResponse.php create mode 100644 lib/Service/Promtion/Model/RightsFrozenRightsResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsQueryConsumeRecordsRequest.php create mode 100644 lib/Service/Promtion/Model/RightsQueryConsumeRecordsRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponse.php create mode 100644 lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsQueryRightsRequest.php create mode 100644 lib/Service/Promtion/Model/RightsQueryRightsRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsQueryRightsResponse.php create mode 100644 lib/Service/Promtion/Model/RightsQueryRightsResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsTransferRequest.php create mode 100644 lib/Service/Promtion/Model/RightsTransferRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/RightsTransferResponse.php create mode 100644 lib/Service/Promtion/Model/RightsTransferResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyApplyRequest.php create mode 100644 lib/Service/Promtion/Model/SubsidyApplyRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyApplyResponse.php create mode 100644 lib/Service/Promtion/Model/SubsidyApplyResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyApplyYopSubsidyResDTOResult.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackQueryRequest.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackQueryRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackQueryResponse.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackQueryResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackQueryYopQuerySubsidyBackResDTOResult.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackRequest.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackResponse.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyBackYopSubsidyBackResDTOResult.php create mode 100644 lib/Service/Promtion/Model/SubsidyQueryRequest.php create mode 100644 lib/Service/Promtion/Model/SubsidyQueryRequestMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyQueryResponse.php create mode 100644 lib/Service/Promtion/Model/SubsidyQueryResponseUnMarshaller.php create mode 100644 lib/Service/Promtion/Model/SubsidyQueryYopQuerySubsidyResDTOResult.php create mode 100644 lib/Service/Promtion/PromtionClient.php create mode 100644 lib/Service/Promtion/PromtionClientBuilder.php create mode 100644 lib/Service/Recharge/Model/BankAccountQueryQueryBankAccountRespDTOResult.php create mode 100644 lib/Service/Recharge/Model/BankAccountQueryRequest.php create mode 100644 lib/Service/Recharge/Model/BankAccountQueryRequestMarshaller.php create mode 100644 lib/Service/Recharge/Model/BankAccountQueryResponse.php create mode 100644 lib/Service/Recharge/Model/BankAccountQueryResponseUnMarshaller.php create mode 100644 lib/Service/Recharge/RechargeClient.php create mode 100644 lib/Service/Recharge/RechargeClientBuilder.php create mode 100644 lib/Service/Settle/Model/ReceiptApplyRequest.php create mode 100644 lib/Service/Settle/Model/ReceiptApplyRequestMarshaller.php create mode 100644 lib/Service/Settle/Model/ReceiptApplyResponse.php create mode 100644 lib/Service/Settle/Model/ReceiptApplyResponseUnMarshaller.php create mode 100644 lib/Service/Settle/Model/ReceiptGetRequest.php create mode 100644 lib/Service/Settle/Model/ReceiptGetRequestMarshaller.php create mode 100644 lib/Service/Settle/Model/RecordsOrderQueryRequest.php create mode 100644 lib/Service/Settle/Model/RecordsOrderQueryRequestMarshaller.php create mode 100644 lib/Service/Settle/Model/RecordsOrderQueryResponse.php create mode 100644 lib/Service/Settle/Model/RecordsOrderQueryResponseUnMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleReceiptApplyV10Request.php create mode 100644 lib/Service/Settle/Model/SettleReceiptApplyV10RequestMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleReceiptApplyV10Response.php create mode 100644 lib/Service/Settle/Model/SettleReceiptApplyV10ResponseUnMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleReceiptGetV10Request.php create mode 100644 lib/Service/Settle/Model/SettleReceiptGetV10RequestMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleRecodOrderQueryV10Request.php create mode 100644 lib/Service/Settle/Model/SettleRecodOrderQueryV10RequestMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleRecodOrderQueryV10Response.php create mode 100644 lib/Service/Settle/Model/SettleRecodOrderQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleRecordDetailsDto.php create mode 100644 lib/Service/Settle/Model/SettleRecordOrderQueryResponseDto.php create mode 100644 lib/Service/Settle/Model/SettleRecordQueryDto.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioRequestDtoParam.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioResponseDtoResult.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioRequest.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioRequestMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioResponse.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioResponseUnMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleWayModifyRatioSettleWayRatioDetailDtoParam.php create mode 100644 lib/Service/Settle/Model/SettleWayQueryMerchantSettleWayQueryYOPDtoResult.php create mode 100644 lib/Service/Settle/Model/SettleWayQueryRequest.php create mode 100644 lib/Service/Settle/Model/SettleWayQueryRequestMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleWayQueryResponse.php create mode 100644 lib/Service/Settle/Model/SettleWayQueryResponseUnMarshaller.php create mode 100644 lib/Service/Settle/Model/SettleWayQuerySettleWayQueryYOPResponseDtoResult.php create mode 100644 lib/Service/Settle/Model/YopSettleReceiptRequestDTO.php create mode 100644 lib/Service/Settle/Model/YopSettleReceiptResponseDTO.php create mode 100644 lib/Service/Std/Model/BillFundbillEndbalanceApplyManualGenerationEndBalanceResponseDTOResult.php create mode 100644 lib/Service/Std/Model/BillFundbillEndbalanceApplyRequest.php create mode 100644 lib/Service/Std/Model/BillFundbillEndbalanceApplyRequestMarshaller.php create mode 100644 lib/Service/Std/Model/BillFundbillEndbalanceApplyResponse.php create mode 100644 lib/Service/Std/Model/BillFundbillEndbalanceApplyResponseUnMarshaller.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowQueryFundBillFlowDetailDTOResult.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowQueryRequest.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowQueryRequestMarshaller.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowQueryResponse.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowQueryResponseUnMarshaller.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowQueryYopQueryFundBillFlowResponseDTOResult.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowSumRequest.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowSumRequestMarshaller.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowSumResponse.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowSumResponseUnMarshaller.php create mode 100644 lib/Service/Std/Model/BillFundbillFlowSumYopQueryFundBillSumResponseDTOResult.php create mode 100644 lib/Service/Std/Model/BillSettlebillDownloadRequest.php create mode 100644 lib/Service/Std/Model/BillSettlebillDownloadRequestMarshaller.php create mode 100644 lib/Service/Std/Model/CertOrderAuthResponseDTOResult.php create mode 100644 lib/Service/Std/Model/CertOrderRequest.php create mode 100644 lib/Service/Std/Model/CertOrderRequestMarshaller.php create mode 100644 lib/Service/Std/Model/CertOrderResponse.php create mode 100644 lib/Service/Std/Model/CertOrderResponseUnMarshaller.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryRequest.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryRequestMarshaller.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryResponse.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryResponseUnMarshaller.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryV10Request.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryV10RequestMarshaller.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryV10Response.php create mode 100644 lib/Service/Std/Model/EndBalanceQueryV10ResponseUnMarshaller.php create mode 100644 lib/Service/Std/Model/YopQueryBalanceResponseDTO.php create mode 100644 lib/Service/SupplierRemit/Model/BillDownloadRequest.php create mode 100644 lib/Service/SupplierRemit/Model/BillDownloadRequestMarshaller.php create mode 100644 lib/Service/SupplierRemit/SupplierRemitClient.php create mode 100644 lib/Service/SupplierRemit/SupplierRemitClientBuilder.php create mode 100644 lib/Service/TelPay/Model/QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult.php create mode 100644 lib/Service/TelPay/Model/QrcodeBatchGenerateQrCodeApiInfoResult.php create mode 100644 lib/Service/TelPay/Model/QrcodeBatchGenerateRequest.php create mode 100644 lib/Service/TelPay/Model/QrcodeBatchGenerateRequestMarshaller.php create mode 100644 lib/Service/TelPay/Model/QrcodeBatchGenerateResponse.php create mode 100644 lib/Service/TelPay/Model/QrcodeBatchGenerateResponseUnMarshaller.php create mode 100644 lib/Service/TelPay/Model/QrcodeQueryQrCodeApiInfoResult.php create mode 100644 lib/Service/TelPay/Model/QrcodeQueryQueryQrCodeApiResponseDTOResult.php create mode 100644 lib/Service/TelPay/Model/QrcodeQueryRequest.php create mode 100644 lib/Service/TelPay/Model/QrcodeQueryRequestMarshaller.php create mode 100644 lib/Service/TelPay/Model/QrcodeQueryResponse.php create mode 100644 lib/Service/TelPay/Model/QrcodeQueryResponseUnMarshaller.php create mode 100644 lib/Service/TelPay/TelPayClient.php create mode 100644 lib/Service/TelPay/TelPayClientBuilder.php create mode 100644 lib/Service/Trade/Model/OrderCombineQueryYpPromotionInfoDTOResult.php create mode 100644 lib/Service/Trade/Model/OrderQueryEnterpriseInfoResult.php create mode 100644 lib/Service/Trade/Model/OrderQueryEnterprisePayInfoResult.php create mode 100644 lib/Service/Trade/Model/OrderQueryInstallmentInfoResult.php create mode 100644 lib/Service/Trade/Model/RefundReceiptDownloadReceiptResponseDTOResult.php create mode 100644 lib/Service/Trade/Model/RefundReceiptDownloadRequest.php create mode 100644 lib/Service/Trade/Model/RefundReceiptDownloadRequestMarshaller.php create mode 100644 lib/Service/Trade/Model/RefundReceiptDownloadResponse.php create mode 100644 lib/Service/Trade/Model/RefundReceiptDownloadResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/Model/CinemaOrderRequestDTO.php create mode 100644 lib/Service/TravelResources/Model/CreateOrderRequest.php create mode 100644 lib/Service/TravelResources/Model/CreateOrderRequestMarshaller.php create mode 100644 lib/Service/TravelResources/Model/CreateOrderResponse.php create mode 100644 lib/Service/TravelResources/Model/CreateOrderResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/Model/KfcOrder0Request.php create mode 100644 lib/Service/TravelResources/Model/KfcOrder0RequestMarshaller.php create mode 100644 lib/Service/TravelResources/Model/KfcOrder0Response.php create mode 100644 lib/Service/TravelResources/Model/KfcOrder0ResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/Model/KfcOrderRequest.php create mode 100644 lib/Service/TravelResources/Model/KfcOrderRequestDTO.php create mode 100644 lib/Service/TravelResources/Model/KfcOrderRequestMarshaller.php create mode 100644 lib/Service/TravelResources/Model/KfcOrderResponse.php create mode 100644 lib/Service/TravelResources/Model/KfcOrderResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/Model/OrderBaseResponseDTO.php create mode 100644 lib/Service/TravelResources/Model/QuerKfcOrderDataBeanDTO.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderCouponBeanDTO.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderDataBeanDTO.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderRequest.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderRequestMarshaller.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderResponse.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderResponseDTO.php create mode 100644 lib/Service/TravelResources/Model/QueryCinemaOrderResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcItemsBean.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcOptiionItemsBean.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcOrderRequest.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcOrderRequestMarshaller.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcOrderResponse.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcOrderResponseDTO.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcOrderResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/Model/QueryKfcPlaceOrderBean.php create mode 100644 lib/Service/TravelResources/Model/QueryOrderRequest.php create mode 100644 lib/Service/TravelResources/Model/QueryOrderRequestDTO.php create mode 100644 lib/Service/TravelResources/Model/QueryOrderRequestMarshaller.php create mode 100644 lib/Service/TravelResources/Model/QueryOrderResponse.php create mode 100644 lib/Service/TravelResources/Model/QueryOrderResponseUnMarshaller.php create mode 100644 lib/Service/TravelResources/TravelResourcesClient.php create mode 100644 lib/Service/TravelResources/TravelResourcesClientBuilder.php diff --git a/lib/Auth/Signer/RsaSigner.php b/lib/Auth/Signer/RsaSigner.php index de8aa09..fe2f715 100644 --- a/lib/Auth/Signer/RsaSigner.php +++ b/lib/Auth/Signer/RsaSigner.php @@ -18,15 +18,15 @@ use Yeepay\Yop\Sdk\Utils\Http\HttpUtils; class RsaSigner implements Signer { - private static $yopAuthVersion = 'yop-auth-v3'; + private static $yopAuthVersion = 'yop-auth-v3'; private static $defaultHeadersToSign; - private static $headerJoiner = "\n"; + private static $headerJoiner = "\n"; private static $signedHeaderStringJoiner = ';'; - private $logger; + private $logger; public static function __init() { @@ -41,7 +41,6 @@ class RsaSigner implements Signer strtolower(Headers::YOP_CONTENT_SHA256), strtolower(Headers::YOP_HASH_CRC64ECMA), ]; - } public function sign(Request $request, YopRsaCredentials $credentials = null, SignOptions $options = null) @@ -64,11 +63,11 @@ class RsaSigner implements Signer $signedHeaders = strtolower(trim(implode(self::$signedHeaderStringJoiner, array_keys($headersToSign)))); $authString = self::$yopAuthVersion.'/'.$accessKeyId.'/'.DateUtils::formatAlternateIso8601Date($timestamp).'/' - .$options->getExpirationInSeconds(); + .$options->getExpirationInSeconds(); $canonicalURI = $this->getCanonicalURIPath($request->getResourcePath()); $canonicalRequest = $authString.self::$headerJoiner.$request->getHttpMethod().self::$headerJoiner.$canonicalURI - .self::$headerJoiner.$canonicalQueryString.self::$headerJoiner.$canonicalHeader; + .self::$headerJoiner.$canonicalQueryString.self::$headerJoiner.$canonicalHeader; $signature = $this->computeSignature($canonicalRequest, $credentials->getPrivateKey(), $options->getDigestAlg()); @@ -138,8 +137,8 @@ class RsaSigner implements Signer $v = ''; } $headerStrings[] = rawurlencode( - strtolower(trim($k)) - ).':'.rawurlencode(trim($v)); + strtolower(trim($k)) + ).':'.rawurlencode(trim($v)); } sort($headerStrings); @@ -187,6 +186,8 @@ class RsaSigner implements Signer public function checkSignature(YopHttpResponse $httpResponse, $signature, $publicKey, SignOptions $options) { $content = $httpResponse->readContent(); + \Log::channel('yeepay')->info($content); + $content = str_replace([" ", "\n", "\t"], "", $content); if (openssl_verify($content, base64_decode($signature), $publicKey, $options->getDigestAlg()) == 1) { return; diff --git a/lib/Client/ClientHandler.php b/lib/Client/ClientHandler.php index ed96999..d611ee1 100644 --- a/lib/Client/ClientHandler.php +++ b/lib/Client/ClientHandler.php @@ -37,6 +37,7 @@ class ClientHandler /** * ClientHandler constructor. + * * @param ClientParams $clientParams */ public function __construct(ClientParams $clientParams) @@ -57,9 +58,9 @@ class ClientHandler */ public function execute(ClientExecutionParams $executionParams) { - $executionContext = $this->getExecutionContext($executionParams); $request = $executionParams->getRequestMarshaller()->marshal($executionParams->getRequest()); + \Log::channel('yeepay')->info(json_encode($request->getParameters())); /** @var ExecutionContext $httpExecutionContext */ $httpExecutionContext = $executionContext[0]; @@ -81,41 +82,41 @@ class ClientHandler { $httpExecutionContext = new ExecutionContext(); $ResponseUnMarshalParams = new ResponseUnMarshalParams(); + $request = $executionParams->getRequest(); + $authorizationReq = $this->authorizationReqRegistry->getAuthorizationReq($request::getOperationId()); - $request = $executionParams->getRequest(); - $authorizationReq = $this->authorizationReqRegistry->getAuthorizationReq($request::getOperationId()); if (isset($authorizationReq)) { $signer = SignerFactory::getSigner($authorizationReq->getSignerType()); $signOptions = new SignOptions($authorizationReq->getDigestAlg(), $authorizationReq->getProtocolPrefix()); $httpExecutionContext->setSigner($signer)->setSignOptions($signOptions); $ResponseUnMarshalParams->setSigner($signer)->setSignOptions($signOptions) - ->setPublicKey($this->credentialsProvider->getYopPublicKey($authorizationReq->getCredentialType())); + ->setPublicKey($this->credentialsProvider->getYopPublicKey($authorizationReq->getCredentialType())); $credentials = null; $requestConfig = $request->getRequestConfig(); $needEncrypt = false; if (isset($requestConfig)) { - if (!empty($requestConfig->getCredentials())) { + if (! empty($requestConfig->getCredentials())) { $credentials = $requestConfig->getCredentials(); } else { $customAppKey = $requestConfig->getAppKey(); - if (!empty($customAppKey)) { + if (! empty($customAppKey)) { $credentials = $this->credentialsProvider->getCredential($customAppKey, $authorizationReq->getCredentialType()); - if (!isset($credentials)) { + if (! isset($credentials)) { throw new YopClientException('no credentials specified, appKey:'.$customAppKey - .', credentialType:'.$authorizationReq->getCredentialType()); + .', credentialType:'.$authorizationReq->getCredentialType()); } } } $needEncrypt = $requestConfig->isNeedEncrypt(); } - if (!isset($credentials)) { + if (! isset($credentials)) { $credentials = $this->credentialsProvider->getDefaultAppCredential($authorizationReq->getCredentialType()); } - if (!isset($credentials)) { + if (! isset($credentials)) { throw new YopClientException('no credentials specified for defaultAppKey, credentialType:' - .$authorizationReq->getCredentialType()); + .$authorizationReq->getCredentialType()); } $httpExecutionContext->setCredentials($credentials); if ($needEncrypt) { diff --git a/lib/Model/Transform/BaseResponseUnMarshaller.php b/lib/Model/Transform/BaseResponseUnMarshaller.php index 3805d72..9afbbed 100644 --- a/lib/Model/Transform/BaseResponseUnMarshaller.php +++ b/lib/Model/Transform/BaseResponseUnMarshaller.php @@ -51,7 +51,7 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller { $responseMetadata->setYopRequestId($yopHttpResponse->getHeader(Headers::YOP_REQUEST_ID)); $responseMetadata->setYopContentSha256($yopHttpResponse->getHeader(Headers::YOP_CONTENT_SHA256)); - $responseMetadata->setYopSign($yopHttpResponse->getHeader(Headers::YOP_SIGN)); +// $responseMetadata->setYopSign($yopHttpResponse->getHeader(Headers::YOP_SIGN)); $responseMetadata->setYopVia($yopHttpResponse->getHeader(Headers::YOP_VIA)); $responseMetadata->setContentDisposition($yopHttpResponse->getHeader(Headers::CONTENT_DISPOSITION)); $responseMetadata->setContentEncoding($yopHttpResponse->getHeader(Headers::CONTENT_ENCODING)); @@ -71,14 +71,13 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller if ($responseMetadata->getYopVia() == YopConstants::DEFAULT_SANDBOX_VIA) { self::$logger->info('response from sandbox-gateway'); } - } private function checkSignature(YopHttpResponse $yopHttpResponse, $signature, ResponseUnMarshalParams $params) { if (isset($signature)) { $params->getSigner() - ->checkSignature($yopHttpResponse, $signature, $params->getPublicKey(), $params->getSignOptions()); + ->checkSignature($yopHttpResponse, $signature, $params->getPublicKey(), $params->getSignOptions()); } } @@ -124,7 +123,7 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller YopHttpResponse $yopHttpResponse ) { $yopServiceException = null; - if (!empty($content)) { + if (! empty($content)) { try { $data = json_decode($content, true); dd($data); @@ -136,7 +135,7 @@ abstract class BaseResponseUnMarshaller implements ResponseUnMarshaller self::$logger->error("unable to parse error response, content".$content); } } - if (!isset($yopServiceException)) { + if (! isset($yopServiceException)) { $yopServiceException = new YopServiceException($yopHttpResponse->getStatusText()); $yopServiceException->setRequestId($responseMetadata->getYopRequestId()); } diff --git a/lib/Service/Account/Model/AccountBookQueryRefundQueryAccountBookRefundRespDTOResult.php b/lib/Service/Account/Model/AccountBookQueryRefundQueryAccountBookRefundRespDTOResult.php new file mode 100644 index 0000000..a8ff5f7 --- /dev/null +++ b/lib/Service/Account/Model/AccountBookQueryRefundQueryAccountBookRefundRespDTOResult.php @@ -0,0 +1,512 @@ + 'string', + 'returnMsg' => 'string', + 'refundStatus' => 'string', + 'refundAmount' => 'float', + 'merchantRefundRequestNo' => 'string', + 'merchantOriginalRequestNo' => 'string', + 'refundOrderNo' => 'string', + 'bankPostscrip' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'refundStatus' => null, + 'refundAmount' => null, + 'merchantRefundRequestNo' => null, + 'merchantOriginalRequestNo' => null, + 'refundOrderNo' => null, + 'bankPostscrip' => 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', + 'refundStatus' => 'refundStatus', + 'refundAmount' => 'refundAmount', + 'merchantRefundRequestNo' => 'merchantRefundRequestNo', + 'merchantOriginalRequestNo' => 'merchantOriginalRequestNo', + 'refundOrderNo' => 'refundOrderNo', + 'bankPostscrip' => 'bankPostscrip' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'refundStatus' => 'setRefundStatus', + 'refundAmount' => 'setRefundAmount', + 'merchantRefundRequestNo' => 'setMerchantRefundRequestNo', + 'merchantOriginalRequestNo' => 'setMerchantOriginalRequestNo', + 'refundOrderNo' => 'setRefundOrderNo', + 'bankPostscrip' => 'setBankPostscrip' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'refundStatus' => 'getRefundStatus', + 'refundAmount' => 'getRefundAmount', + 'merchantRefundRequestNo' => 'getMerchantRefundRequestNo', + 'merchantOriginalRequestNo' => 'getMerchantOriginalRequestNo', + 'refundOrderNo' => 'getRefundOrderNo', + 'bankPostscrip' => 'getBankPostscrip' + ]; + + /** + * 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['refundStatus'] = isset($data['refundStatus']) ? $data['refundStatus'] : null; + $this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null; + $this->container['merchantRefundRequestNo'] = isset($data['merchantRefundRequestNo']) ? $data['merchantRefundRequestNo'] : null; + $this->container['merchantOriginalRequestNo'] = isset($data['merchantOriginalRequestNo']) ? $data['merchantOriginalRequestNo'] : null; + $this->container['refundOrderNo'] = isset($data['refundOrderNo']) ? $data['refundOrderNo'] : null; + $this->container['bankPostscrip'] = isset($data['bankPostscrip']) ? $data['bankPostscrip'] : 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 refundStatus + * + * @return string + */ + public function getRefundStatus() + { + return $this->container['refundStatus']; + } + + /** + * Sets refundStatus + * + * @param string $refundStatus 退款状态 + * + * @return $this + */ + public function setRefundStatus($refundStatus) + { + $this->container['refundStatus'] = $refundStatus; + + return $this; + } + + /** + * Gets refundAmount + * + * @return float + */ + public function getRefundAmount() + { + return $this->container['refundAmount']; + } + + /** + * Sets refundAmount + * + * @param float $refundAmount 退款金额 + * + * @return $this + */ + public function setRefundAmount($refundAmount) + { + $this->container['refundAmount'] = $refundAmount; + + return $this; + } + + /** + * Gets merchantRefundRequestNo + * + * @return string + */ + public function getMerchantRefundRequestNo() + { + return $this->container['merchantRefundRequestNo']; + } + + /** + * Sets merchantRefundRequestNo + * + * @param string $merchantRefundRequestNo 商户退款请求号 + * + * @return $this + */ + public function setMerchantRefundRequestNo($merchantRefundRequestNo) + { + $this->container['merchantRefundRequestNo'] = $merchantRefundRequestNo; + + return $this; + } + + /** + * Gets merchantOriginalRequestNo + * + * @return string + */ + public function getMerchantOriginalRequestNo() + { + return $this->container['merchantOriginalRequestNo']; + } + + /** + * Sets merchantOriginalRequestNo + * + * @param string $merchantOriginalRequestNo 商户原单请求号 + * + * @return $this + */ + public function setMerchantOriginalRequestNo($merchantOriginalRequestNo) + { + $this->container['merchantOriginalRequestNo'] = $merchantOriginalRequestNo; + + return $this; + } + + /** + * Gets refundOrderNo + * + * @return string + */ + public function getRefundOrderNo() + { + return $this->container['refundOrderNo']; + } + + /** + * Sets refundOrderNo + * + * @param string $refundOrderNo 易宝退款单号 + * + * @return $this + */ + public function setRefundOrderNo($refundOrderNo) + { + $this->container['refundOrderNo'] = $refundOrderNo; + + return $this; + } + + /** + * Gets bankPostscrip + * + * @return string + */ + public function getBankPostscrip() + { + return $this->container['bankPostscrip']; + } + + /** + * Sets bankPostscrip + * + * @param string $bankPostscrip 银行附言 + * + * @return $this + */ + public function setBankPostscrip($bankPostscrip) + { + $this->container['bankPostscrip'] = $bankPostscrip; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/AccountBookQueryRefundRequest.php b/lib/Service/Account/Model/AccountBookQueryRefundRequest.php new file mode 100644 index 0000000..801a635 --- /dev/null +++ b/lib/Service/Account/Model/AccountBookQueryRefundRequest.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountBookQueryRefundRequest + */ + 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 AccountBookQueryRefundRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets merchantRefundRequestNo + * + * @return string + */ + public function getMerchantRefundRequestNo() + { + return $this->merchantRefundRequestNo; + } + + /** + * Sets merchantRefundRequestNo + * + * @param string $merchantRefundRequestNo + * @return AccountBookQueryRefundRequest + */ + public function setMerchantRefundRequestNo($merchantRefundRequestNo) + { + $this->merchantRefundRequestNo = $merchantRefundRequestNo; + return $this; + } + + public static function getOperationId() + { + return 'accountBookQueryRefund'; + } + + +} diff --git a/lib/Service/Account/Model/AccountBookQueryRefundRequestMarshaller.php b/lib/Service/Account/Model/AccountBookQueryRefundRequestMarshaller.php new file mode 100644 index 0000000..bf54dc0 --- /dev/null +++ b/lib/Service/Account/Model/AccountBookQueryRefundRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantRefundRequestNo() != null){ + $internalRequest->addParameter('merchantRefundRequestNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantRefundRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountBookQueryRefundRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountBookQueryRefundResponse.php b/lib/Service/Account/Model/AccountBookQueryRefundResponse.php new file mode 100644 index 0000000..ef942c1 --- /dev/null +++ b/lib/Service/Account/Model/AccountBookQueryRefundResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AccountBookQueryRefundQueryAccountBookRefundRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountBookQueryRefundResponseUnMarshaller.php b/lib/Service/Account/Model/AccountBookQueryRefundResponseUnMarshaller.php new file mode 100644 index 0000000..5f34bfd --- /dev/null +++ b/lib/Service/Account/Model/AccountBookQueryRefundResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'refundStatus' => 'string', + 'refundAmount' => 'float', + 'merchantRefundRequestNo' => 'string', + 'merchantOriginalRequestNo' => 'string', + 'refundOrderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'refundStatus' => null, + 'refundAmount' => null, + 'merchantRefundRequestNo' => null, + 'merchantOriginalRequestNo' => null, + 'refundOrderNo' => 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', + 'refundStatus' => 'refundStatus', + 'refundAmount' => 'refundAmount', + 'merchantRefundRequestNo' => 'merchantRefundRequestNo', + 'merchantOriginalRequestNo' => 'merchantOriginalRequestNo', + 'refundOrderNo' => 'refundOrderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'refundStatus' => 'setRefundStatus', + 'refundAmount' => 'setRefundAmount', + 'merchantRefundRequestNo' => 'setMerchantRefundRequestNo', + 'merchantOriginalRequestNo' => 'setMerchantOriginalRequestNo', + 'refundOrderNo' => 'setRefundOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'refundStatus' => 'getRefundStatus', + 'refundAmount' => 'getRefundAmount', + 'merchantRefundRequestNo' => 'getMerchantRefundRequestNo', + 'merchantOriginalRequestNo' => 'getMerchantOriginalRequestNo', + 'refundOrderNo' => 'getRefundOrderNo' + ]; + + /** + * 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['refundStatus'] = isset($data['refundStatus']) ? $data['refundStatus'] : null; + $this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null; + $this->container['merchantRefundRequestNo'] = isset($data['merchantRefundRequestNo']) ? $data['merchantRefundRequestNo'] : null; + $this->container['merchantOriginalRequestNo'] = isset($data['merchantOriginalRequestNo']) ? $data['merchantOriginalRequestNo'] : null; + $this->container['refundOrderNo'] = isset($data['refundOrderNo']) ? $data['refundOrderNo'] : 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 refundStatus + * + * @return string + */ + public function getRefundStatus() + { + return $this->container['refundStatus']; + } + + /** + * Sets refundStatus + * + * @param string $refundStatus 退款状态 + * + * @return $this + */ + public function setRefundStatus($refundStatus) + { + $this->container['refundStatus'] = $refundStatus; + + return $this; + } + + /** + * Gets refundAmount + * + * @return float + */ + public function getRefundAmount() + { + return $this->container['refundAmount']; + } + + /** + * Sets refundAmount + * + * @param float $refundAmount 退款金额 + * + * @return $this + */ + public function setRefundAmount($refundAmount) + { + $this->container['refundAmount'] = $refundAmount; + + return $this; + } + + /** + * Gets merchantRefundRequestNo + * + * @return string + */ + public function getMerchantRefundRequestNo() + { + return $this->container['merchantRefundRequestNo']; + } + + /** + * Sets merchantRefundRequestNo + * + * @param string $merchantRefundRequestNo 商户退款请求号 + * + * @return $this + */ + public function setMerchantRefundRequestNo($merchantRefundRequestNo) + { + $this->container['merchantRefundRequestNo'] = $merchantRefundRequestNo; + + return $this; + } + + /** + * Gets merchantOriginalRequestNo + * + * @return string + */ + public function getMerchantOriginalRequestNo() + { + return $this->container['merchantOriginalRequestNo']; + } + + /** + * Sets merchantOriginalRequestNo + * + * @param string $merchantOriginalRequestNo 商户原单请求号 + * + * @return $this + */ + public function setMerchantOriginalRequestNo($merchantOriginalRequestNo) + { + $this->container['merchantOriginalRequestNo'] = $merchantOriginalRequestNo; + + return $this; + } + + /** + * Gets refundOrderNo + * + * @return string + */ + public function getRefundOrderNo() + { + return $this->container['refundOrderNo']; + } + + /** + * Sets refundOrderNo + * + * @param string $refundOrderNo 易宝退款单号 + * + * @return $this + */ + public function setRefundOrderNo($refundOrderNo) + { + $this->container['refundOrderNo'] = $refundOrderNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/AccountBookRefundRequest.php b/lib/Service/Account/Model/AccountBookRefundRequest.php new file mode 100644 index 0000000..f7b8da8 --- /dev/null +++ b/lib/Service/Account/Model/AccountBookRefundRequest.php @@ -0,0 +1,192 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountBookRefundRequest + */ + 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 AccountBookRefundRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets merchantRefundRequestNo + * + * @return string + */ + public function getMerchantRefundRequestNo() + { + return $this->merchantRefundRequestNo; + } + + /** + * Sets merchantRefundRequestNo + * + * @param string $merchantRefundRequestNo + * @return AccountBookRefundRequest + */ + public function setMerchantRefundRequestNo($merchantRefundRequestNo) + { + $this->merchantRefundRequestNo = $merchantRefundRequestNo; + return $this; + } + /** + * Gets originalOrderNo + * + * @return string + */ + public function getOriginalOrderNo() + { + return $this->originalOrderNo; + } + + /** + * Sets originalOrderNo + * + * @param string $originalOrderNo + * @return AccountBookRefundRequest + */ + public function setOriginalOrderNo($originalOrderNo) + { + $this->originalOrderNo = $originalOrderNo; + return $this; + } + /** + * Gets refundAmount + * + * @return float + */ + public function getRefundAmount() + { + return $this->refundAmount; + } + + /** + * Sets refundAmount + * + * @param float $refundAmount + * @return AccountBookRefundRequest + */ + public function setRefundAmount($refundAmount) + { + $this->refundAmount = $refundAmount; + return $this; + } + /** + * Gets bankPostscrip + * + * @return string + */ + public function getBankPostscrip() + { + return $this->bankPostscrip; + } + + /** + * Sets bankPostscrip + * + * @param string $bankPostscrip + * @return AccountBookRefundRequest + */ + public function setBankPostscrip($bankPostscrip) + { + $this->bankPostscrip = $bankPostscrip; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AccountBookRefundRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'accountBookRefund'; + } + + +} diff --git a/lib/Service/Account/Model/AccountBookRefundRequestMarshaller.php b/lib/Service/Account/Model/AccountBookRefundRequestMarshaller.php new file mode 100644 index 0000000..c9c10d4 --- /dev/null +++ b/lib/Service/Account/Model/AccountBookRefundRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantRefundRequestNo() != null){ + $internalRequest->addParameter('merchantRefundRequestNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantRefundRequestNo(), 'string')); + } + if($request->getOriginalOrderNo() != null){ + $internalRequest->addParameter('originalOrderNo', ObjectSerializer::sanitizeForSerialization($request->getOriginalOrderNo(), 'string')); + } + if($request->getRefundAmount() != null){ + $internalRequest->addParameter('refundAmount', ObjectSerializer::sanitizeForSerialization($request->getRefundAmount(), 'float')); + } + if($request->getBankPostscrip() != null){ + $internalRequest->addParameter('bankPostscrip', ObjectSerializer::sanitizeForSerialization($request->getBankPostscrip(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountBookRefundRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountBookRefundResponse.php b/lib/Service/Account/Model/AccountBookRefundResponse.php new file mode 100644 index 0000000..eee227d --- /dev/null +++ b/lib/Service/Account/Model/AccountBookRefundResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AccountBookRefundAccountBookRefundRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountBookRefundResponseUnMarshaller.php b/lib/Service/Account/Model/AccountBookRefundResponseUnMarshaller.php new file mode 100644 index 0000000..b2669cb --- /dev/null +++ b/lib/Service/Account/Model/AccountBookRefundResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountIndividualApplyRequest + */ + 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 AccountIndividualApplyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return AccountIndividualApplyRequest + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return AccountIndividualApplyRequest + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return AccountIndividualApplyRequest + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * Sets phone + * + * @param string $phone + * @return AccountIndividualApplyRequest + */ + public function setPhone($phone) + { + $this->phone = $phone; + return $this; + } + /** + * Gets frontUrl + * + * @return string + */ + public function getFrontUrl() + { + return $this->frontUrl; + } + + /** + * Sets frontUrl + * + * @param string $frontUrl + * @return AccountIndividualApplyRequest + */ + public function setFrontUrl($frontUrl) + { + $this->frontUrl = $frontUrl; + return $this; + } + /** + * Gets contraryUrl + * + * @return string + */ + public function getContraryUrl() + { + return $this->contraryUrl; + } + + /** + * Sets contraryUrl + * + * @param string $contraryUrl + * @return AccountIndividualApplyRequest + */ + public function setContraryUrl($contraryUrl) + { + $this->contraryUrl = $contraryUrl; + return $this; + } + + public static function getOperationId() + { + return 'account_individual_apply'; + } + + +} diff --git a/lib/Service/Account/Model/AccountIndividualApplyRequestMarshaller.php b/lib/Service/Account/Model/AccountIndividualApplyRequestMarshaller.php new file mode 100644 index 0000000..9469e1c --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualApplyRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string', 'enum')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getPhone() != null){ + $internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string')); + } + if($request->getFrontUrl() != null){ + $internalRequest->addParameter('frontUrl', ObjectSerializer::sanitizeForSerialization($request->getFrontUrl(), 'string')); + } + if($request->getContraryUrl() != null){ + $internalRequest->addParameter('contraryUrl', ObjectSerializer::sanitizeForSerialization($request->getContraryUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountIndividualApplyRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountIndividualApplyResponse.php b/lib/Service/Account/Model/AccountIndividualApplyResponse.php new file mode 100644 index 0000000..5edd34b --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ApplyIndividualRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountIndividualApplyResponseUnMarshaller.php b/lib/Service/Account/Model/AccountIndividualApplyResponseUnMarshaller.php new file mode 100644 index 0000000..72add7e --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountIndividualQueryProgressRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'account_individual_query_progress'; + } + + +} diff --git a/lib/Service/Account/Model/AccountIndividualQueryProgressRequestMarshaller.php b/lib/Service/Account/Model/AccountIndividualQueryProgressRequestMarshaller.php new file mode 100644 index 0000000..72fd783 --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualQueryProgressRequestMarshaller.php @@ -0,0 +1,80 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountIndividualQueryProgressRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountIndividualQueryProgressResponse.php b/lib/Service/Account/Model/AccountIndividualQueryProgressResponse.php new file mode 100644 index 0000000..3f4e4f8 --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualQueryProgressResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ApplyIndivdualProgressRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountIndividualQueryProgressResponseUnMarshaller.php b/lib/Service/Account/Model/AccountIndividualQueryProgressResponseUnMarshaller.php new file mode 100644 index 0000000..30e69e4 --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualQueryProgressResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountIndividualQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'account_individual_query'; + } + + +} diff --git a/lib/Service/Account/Model/AccountIndividualQueryRequestMarshaller.php b/lib/Service/Account/Model/AccountIndividualQueryRequestMarshaller.php new file mode 100644 index 0000000..a8d57ec --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualQueryRequestMarshaller.php @@ -0,0 +1,80 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountIndividualQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountIndividualQueryResponse.php b/lib/Service/Account/Model/AccountIndividualQueryResponse.php new file mode 100644 index 0000000..366def9 --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryIndividualRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountIndividualQueryResponseUnMarshaller.php b/lib/Service/Account/Model/AccountIndividualQueryResponseUnMarshaller.php new file mode 100644 index 0000000..61df7a1 --- /dev/null +++ b/lib/Service/Account/Model/AccountIndividualQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'merchantNo' => 'string', + 'merchantAccountBookNo' => 'string', + 'ypAccountBookNo' => 'string', + 'status' => 'string', + 'createTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'merchantNo' => null, + 'merchantAccountBookNo' => null, + 'ypAccountBookNo' => null, + 'status' => null, + 'createTime' => 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', + 'merchantAccountBookNo' => 'merchantAccountBookNo', + 'ypAccountBookNo' => 'ypAccountBookNo', + 'status' => 'status', + 'createTime' => 'createTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'merchantNo' => 'setMerchantNo', + 'merchantAccountBookNo' => 'setMerchantAccountBookNo', + 'ypAccountBookNo' => 'setYpAccountBookNo', + 'status' => 'setStatus', + 'createTime' => 'setCreateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'merchantNo' => 'getMerchantNo', + 'merchantAccountBookNo' => 'getMerchantAccountBookNo', + 'ypAccountBookNo' => 'getYpAccountBookNo', + 'status' => 'getStatus', + 'createTime' => 'getCreateTime' + ]; + + /** + * 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['merchantAccountBookNo'] = isset($data['merchantAccountBookNo']) ? $data['merchantAccountBookNo'] : null; + $this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : 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 merchantAccountBookNo + * + * @return string + */ + public function getMerchantAccountBookNo() + { + return $this->container['merchantAccountBookNo']; + } + + /** + * Sets merchantAccountBookNo + * + * @param string $merchantAccountBookNo 商户侧记账簿编号 + * + * @return $this + */ + public function setMerchantAccountBookNo($merchantAccountBookNo) + { + $this->container['merchantAccountBookNo'] = $merchantAccountBookNo; + + return $this; + } + + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->container['ypAccountBookNo']; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo 易宝记账薄编号 + * + * @return $this + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->container['ypAccountBookNo'] = $ypAccountBookNo; + + 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/AccountManageAccountOpenRequest.php b/lib/Service/Account/Model/AccountManageAccountOpenRequest.php new file mode 100644 index 0000000..17acb84 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountOpenRequest.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountManageAccountOpenRequest + */ + 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 AccountManageAccountOpenRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantAccountBookNo + * + * @return string + */ + public function getMerchantAccountBookNo() + { + return $this->merchantAccountBookNo; + } + + /** + * Sets merchantAccountBookNo + * + * @param string $merchantAccountBookNo + * @return AccountManageAccountOpenRequest + */ + public function setMerchantAccountBookNo($merchantAccountBookNo) + { + $this->merchantAccountBookNo = $merchantAccountBookNo; + return $this; + } + /** + * Gets merchantAccountBookName + * + * @return string + */ + public function getMerchantAccountBookName() + { + return $this->merchantAccountBookName; + } + + /** + * Sets merchantAccountBookName + * + * @param string $merchantAccountBookName + * @return AccountManageAccountOpenRequest + */ + public function setMerchantAccountBookName($merchantAccountBookName) + { + $this->merchantAccountBookName = $merchantAccountBookName; + return $this; + } + + public static function getOperationId() + { + return 'accountManageAccountOpen'; + } + + +} diff --git a/lib/Service/Account/Model/AccountManageAccountOpenRequestMarshaller.php b/lib/Service/Account/Model/AccountManageAccountOpenRequestMarshaller.php new file mode 100644 index 0000000..f6c6aff --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountOpenRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getMerchantAccountBookNo() != null){ + $internalRequest->addParameter('merchantAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantAccountBookNo(), 'string')); + } + if($request->getMerchantAccountBookName() != null){ + $internalRequest->addParameter('merchantAccountBookName', ObjectSerializer::sanitizeForSerialization($request->getMerchantAccountBookName(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountManageAccountOpenRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountManageAccountOpenResponse.php b/lib/Service/Account/Model/AccountManageAccountOpenResponse.php new file mode 100644 index 0000000..2cdf06e --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountOpenResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AccountManageAccountOpenAccountBookCreateResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountManageAccountOpenResponseUnMarshaller.php b/lib/Service/Account/Model/AccountManageAccountOpenResponseUnMarshaller.php new file mode 100644 index 0000000..5cf0b17 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountOpenResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'merchantNo' => 'string', + 'merchantAccountBookNo' => 'string', + 'ypAccountBookNo' => 'string', + 'balance' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'merchantNo' => null, + 'merchantAccountBookNo' => null, + 'ypAccountBookNo' => null, + 'balance' => 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', + 'merchantAccountBookNo' => 'merchantAccountBookNo', + 'ypAccountBookNo' => 'ypAccountBookNo', + 'balance' => 'balance' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'merchantNo' => 'setMerchantNo', + 'merchantAccountBookNo' => 'setMerchantAccountBookNo', + 'ypAccountBookNo' => 'setYpAccountBookNo', + 'balance' => 'setBalance' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'merchantNo' => 'getMerchantNo', + 'merchantAccountBookNo' => 'getMerchantAccountBookNo', + 'ypAccountBookNo' => 'getYpAccountBookNo', + 'balance' => 'getBalance' + ]; + + /** + * 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['merchantAccountBookNo'] = isset($data['merchantAccountBookNo']) ? $data['merchantAccountBookNo'] : null; + $this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : 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 merchantAccountBookNo + * + * @return string + */ + public function getMerchantAccountBookNo() + { + return $this->container['merchantAccountBookNo']; + } + + /** + * Sets merchantAccountBookNo + * + * @param string $merchantAccountBookNo 商户侧记账簿编号 + * + * @return $this + */ + public function setMerchantAccountBookNo($merchantAccountBookNo) + { + $this->container['merchantAccountBookNo'] = $merchantAccountBookNo; + + return $this; + } + + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->container['ypAccountBookNo']; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo 易宝记账薄编号 + * + * @return $this + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->container['ypAccountBookNo'] = $ypAccountBookNo; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/AccountManageAccountQueryRequest.php b/lib/Service/Account/Model/AccountManageAccountQueryRequest.php new file mode 100644 index 0000000..03535ba --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountQueryRequest.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountManageAccountQueryRequest + */ + 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 AccountManageAccountQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantAccountBookNo + * + * @return string + */ + public function getMerchantAccountBookNo() + { + return $this->merchantAccountBookNo; + } + + /** + * Sets merchantAccountBookNo + * + * @param string $merchantAccountBookNo + * @return AccountManageAccountQueryRequest + */ + public function setMerchantAccountBookNo($merchantAccountBookNo) + { + $this->merchantAccountBookNo = $merchantAccountBookNo; + return $this; + } + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->ypAccountBookNo; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo + * @return AccountManageAccountQueryRequest + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->ypAccountBookNo = $ypAccountBookNo; + return $this; + } + + public static function getOperationId() + { + return 'accountManageAccountQuery'; + } + + +} diff --git a/lib/Service/Account/Model/AccountManageAccountQueryRequestMarshaller.php b/lib/Service/Account/Model/AccountManageAccountQueryRequestMarshaller.php new file mode 100644 index 0000000..6682749 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getMerchantAccountBookNo() != null){ + $internalRequest->addParameter('merchantAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantAccountBookNo(), 'string')); + } + if($request->getYpAccountBookNo() != null){ + $internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountManageAccountQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountManageAccountQueryResponse.php b/lib/Service/Account/Model/AccountManageAccountQueryResponse.php new file mode 100644 index 0000000..0d47d70 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AccountManageAccountQueryAccountBalanceQueryResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountManageAccountQueryResponseUnMarshaller.php b/lib/Service/Account/Model/AccountManageAccountQueryResponseUnMarshaller.php new file mode 100644 index 0000000..9afbc34 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageAccountQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return AccountManageBankAccountOpenRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'accountManageBankAccountOpen'; + } + + +} diff --git a/lib/Service/Account/Model/AccountManageBankAccountOpenRequestMarshaller.php b/lib/Service/Account/Model/AccountManageBankAccountOpenRequestMarshaller.php new file mode 100644 index 0000000..1cfefc3 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountOpenRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountManageBankAccountOpenRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountManageBankAccountOpenResponse.php b/lib/Service/Account/Model/AccountManageBankAccountOpenResponse.php new file mode 100644 index 0000000..d7325d7 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountOpenResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return StandardOpenAccountResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountManageBankAccountOpenResponseUnMarshaller.php b/lib/Service/Account/Model/AccountManageBankAccountOpenResponseUnMarshaller.php new file mode 100644 index 0000000..52191d0 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountOpenResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountManageBankAccountQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountManageBankAccountQueryRequest + */ + 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 AccountManageBankAccountQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'accountManageBankAccountQuery'; + } + + +} diff --git a/lib/Service/Account/Model/AccountManageBankAccountQueryRequestMarshaller.php b/lib/Service/Account/Model/AccountManageBankAccountQueryRequestMarshaller.php new file mode 100644 index 0000000..d93868f --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountManageBankAccountQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountManageBankAccountQueryResponse.php b/lib/Service/Account/Model/AccountManageBankAccountQueryResponse.php new file mode 100644 index 0000000..d0fcb02 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return StandardOpenAccountQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountManageBankAccountQueryResponseUnMarshaller.php b/lib/Service/Account/Model/AccountManageBankAccountQueryResponseUnMarshaller.php new file mode 100644 index 0000000..5923647 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountManageBankAccountQueryV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountManageBankAccountQueryV10Request + */ + 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 AccountManageBankAccountQueryV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'account_manage_bank_account_query_v1_0'; + } + + +} diff --git a/lib/Service/Account/Model/AccountManageBankAccountQueryV10RequestMarshaller.php b/lib/Service/Account/Model/AccountManageBankAccountQueryV10RequestMarshaller.php new file mode 100644 index 0000000..c5cd911 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountQueryV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountManageBankAccountQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/AccountManageBankAccountQueryV10Response.php b/lib/Service/Account/Model/AccountManageBankAccountQueryV10Response.php new file mode 100644 index 0000000..d52839f --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return StandardOpenAccountQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/AccountManageBankAccountQueryV10ResponseUnMarshaller.php b/lib/Service/Account/Model/AccountManageBankAccountQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..360d7b1 --- /dev/null +++ b/lib/Service/Account/Model/AccountManageBankAccountQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'id' => 'int', + 'finishTime' => '\DateTime', + 'applicationStatus' => 'string', + 'failReason' => 'string', + 'requestNo' => 'string', + 'applyTime' => '\DateTime', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'id' => 'int64', + 'finishTime' => 'date-time', + 'applicationStatus' => 'enum', + 'failReason' => null, + 'requestNo' => null, + 'applyTime' => 'date-time', + 'merchantNo' => 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', + 'id' => 'id', + 'finishTime' => 'finishTime', + 'applicationStatus' => 'applicationStatus', + 'failReason' => 'failReason', + 'requestNo' => 'requestNo', + 'applyTime' => 'applyTime', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'id' => 'setId', + 'finishTime' => 'setFinishTime', + 'applicationStatus' => 'setApplicationStatus', + 'failReason' => 'setFailReason', + 'requestNo' => 'setRequestNo', + 'applyTime' => 'setApplyTime', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'id' => 'getId', + 'finishTime' => 'getFinishTime', + 'applicationStatus' => 'getApplicationStatus', + 'failReason' => 'getFailReason', + 'requestNo' => 'getRequestNo', + 'applyTime' => 'getApplyTime', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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; + } + + const APPLICATION_STATUS_SUCCESS = 'SUCCESS'; + const APPLICATION_STATUS_REJECT = 'REJECT'; + const APPLICATION_STATUS_RECEIVE = 'RECEIVE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getApplicationStatusAllowableValues() + { + return [ + self::APPLICATION_STATUS_SUCCESS, + self::APPLICATION_STATUS_REJECT, + self::APPLICATION_STATUS_RECEIVE, + ]; + } + + + /** + * 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['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['applyTime'] = isset($data['applyTime']) ? $data['applyTime'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['returnCode'] === null) { + $invalidProperties[] = "'returnCode' can't be null"; + } + $allowedValues = $this->getApplicationStatusAllowableValues(); + if (!is_null($this->container['applicationStatus']) && !in_array($this->container['applicationStatus'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'applicationStatus', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + 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

返回码,响应成功时返回UA00000

+ * + * @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 id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id

收款方id

+ * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets finishTime + * + * @return \DateTime + */ + public function getFinishTime() + { + return $this->container['finishTime']; + } + + /** + * Sets finishTime + * + * @param \DateTime $finishTime

完成时间

+ * + * @return $this + */ + public function setFinishTime($finishTime) + { + $this->container['finishTime'] = $finishTime; + + return $this; + } + + /** + * Gets applicationStatus + * + * @return string + */ + public function getApplicationStatus() + { + return $this->container['applicationStatus']; + } + + /** + * Sets applicationStatus + * + * @param string $applicationStatus

申请状态

可选项如下: SUCCESS:成功 REJECT:失败 RECEIVE:处理中 + * + * @return $this + */ + public function setApplicationStatus($applicationStatus) + { + $allowedValues = $this->getApplicationStatusAllowableValues(); + if (!is_null($applicationStatus) && !in_array($applicationStatus, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'applicationStatus', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['applicationStatus'] = $applicationStatus; + + 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 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 applyTime + * + * @return \DateTime + */ + public function getApplyTime() + { + return $this->container['applyTime']; + } + + /** + * Sets applyTime + * + * @param \DateTime $applyTime

申请时间

+ * + * @return $this + */ + public function setApplyTime($applyTime) + { + $this->container['applyTime'] = $applyTime; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/ApplyIndividualRespDTO.php b/lib/Service/Account/Model/ApplyIndividualRespDTO.php new file mode 100644 index 0000000..3ebc3bb --- /dev/null +++ b/lib/Service/Account/Model/ApplyIndividualRespDTO.php @@ -0,0 +1,499 @@ + 'string', + 'returnMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'applicationStatus' => 'string', + 'id' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'applicationStatus' => 'enum', + 'id' => 'int64' + ]; + + /** + * 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', + 'requestNo' => 'requestNo', + 'applicationStatus' => 'applicationStatus', + 'id' => 'id' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'applicationStatus' => 'setApplicationStatus', + 'id' => 'setId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'applicationStatus' => 'getApplicationStatus', + 'id' => 'getId' + ]; + + /** + * 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; + } + + const APPLICATION_STATUS_SUCCESS = 'SUCCESS'; + const APPLICATION_STATUS_REJECT = 'REJECT'; + const APPLICATION_STATUS_RECEIVE = 'RECEIVE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getApplicationStatusAllowableValues() + { + return [ + self::APPLICATION_STATUS_SUCCESS, + self::APPLICATION_STATUS_REJECT, + self::APPLICATION_STATUS_RECEIVE, + ]; + } + + + /** + * 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['returnCode'] === null) { + $invalidProperties[] = "'returnCode' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['requestNo'] === null) { + $invalidProperties[] = "'requestNo' can't be null"; + } + if ($this->container['applicationStatus'] === null) { + $invalidProperties[] = "'applicationStatus' can't be null"; + } + $allowedValues = $this->getApplicationStatusAllowableValues(); + if (!is_null($this->container['applicationStatus']) && !in_array($this->container['applicationStatus'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'applicationStatus', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + 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

返回码,响应成功时返回UA00000

+ * + * @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 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 applicationStatus + * + * @return string + */ + public function getApplicationStatus() + { + return $this->container['applicationStatus']; + } + + /** + * Sets applicationStatus + * + * @param string $applicationStatus

申请状态

可选项如下: SUCCESS:成功 REJECT:失败 RECEIVE:处理中 + * + * @return $this + */ + public function setApplicationStatus($applicationStatus) + { + $allowedValues = $this->getApplicationStatusAllowableValues(); + if (!in_array($applicationStatus, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'applicationStatus', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['applicationStatus'] = $applicationStatus; + + return $this; + } + + /** + * Gets id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id

收款方id,申请成功时返回

+ * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/BankAccountAuthApplyRequest.php b/lib/Service/Account/Model/BankAccountAuthApplyRequest.php new file mode 100644 index 0000000..9fee16e --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthApplyRequest.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountAuthApplyRequest + */ + 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 BankAccountAuthApplyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BankAccountAuthApplyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_auth_apply'; + } + + +} diff --git a/lib/Service/Account/Model/BankAccountAuthApplyRequestMarshaller.php b/lib/Service/Account/Model/BankAccountAuthApplyRequestMarshaller.php new file mode 100644 index 0000000..f8bace0 --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthApplyRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountAuthApplyRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/BankAccountAuthApplyResponse.php b/lib/Service/Account/Model/BankAccountAuthApplyResponse.php new file mode 100644 index 0000000..f95c346 --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OpenAccountAuthApplyRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/BankAccountAuthApplyResponseUnMarshaller.php b/lib/Service/Account/Model/BankAccountAuthApplyResponseUnMarshaller.php new file mode 100644 index 0000000..5e48457 --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +authCode; + } + + /** + * Sets authCode + * + * @param string $authCode + * @return BankAccountAuthConfirmRequest + */ + public function setAuthCode($authCode) + { + $this->authCode = $authCode; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountAuthConfirmRequest + */ + 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 BankAccountAuthConfirmRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BankAccountAuthConfirmRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_auth_confirm'; + } + + +} diff --git a/lib/Service/Account/Model/BankAccountAuthConfirmRequestMarshaller.php b/lib/Service/Account/Model/BankAccountAuthConfirmRequestMarshaller.php new file mode 100644 index 0000000..faa7c40 --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthConfirmRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getAuthCode() != null){ + $internalRequest->addParameter('authCode', ObjectSerializer::sanitizeForSerialization($request->getAuthCode(), '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->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountAuthConfirmRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/BankAccountAuthConfirmResponse.php b/lib/Service/Account/Model/BankAccountAuthConfirmResponse.php new file mode 100644 index 0000000..2706f65 --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthConfirmResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OpenAccountAuthConfirmRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/BankAccountAuthConfirmResponseUnMarshaller.php b/lib/Service/Account/Model/BankAccountAuthConfirmResponseUnMarshaller.php new file mode 100644 index 0000000..2c7bc5f --- /dev/null +++ b/lib/Service/Account/Model/BankAccountAuthConfirmResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'payerMerchantNo' => 'string', + 'payerBankAccountNo' => 'string', + 'payerBankAccountName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bankCode' => null, + 'payerMerchantNo' => null, + 'payerBankAccountNo' => null, + 'payerBankAccountName' => 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 = [ + 'bankCode' => 'bankCode', + 'payerMerchantNo' => 'payerMerchantNo', + 'payerBankAccountNo' => 'payerBankAccountNo', + 'payerBankAccountName' => 'payerBankAccountName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bankCode' => 'setBankCode', + 'payerMerchantNo' => 'setPayerMerchantNo', + 'payerBankAccountNo' => 'setPayerBankAccountNo', + 'payerBankAccountName' => 'setPayerBankAccountName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bankCode' => 'getBankCode', + 'payerMerchantNo' => 'getPayerMerchantNo', + 'payerBankAccountNo' => 'getPayerBankAccountNo', + 'payerBankAccountName' => 'getPayerBankAccountName' + ]; + + /** + * 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['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['payerMerchantNo'] = isset($data['payerMerchantNo']) ? $data['payerMerchantNo'] : null; + $this->container['payerBankAccountNo'] = isset($data['payerBankAccountNo']) ? $data['payerBankAccountNo'] : null; + $this->container['payerBankAccountName'] = isset($data['payerBankAccountName']) ? $data['payerBankAccountName'] : 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 bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string $bankCode bankCode + * + * @return $this + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + 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 payerBankAccountNo + * + * @return string + */ + public function getPayerBankAccountNo() + { + return $this->container['payerBankAccountNo']; + } + + /** + * Sets payerBankAccountNo + * + * @param string $payerBankAccountNo payerBankAccountNo + * + * @return $this + */ + public function setPayerBankAccountNo($payerBankAccountNo) + { + $this->container['payerBankAccountNo'] = $payerBankAccountNo; + + return $this; + } + + /** + * Gets payerBankAccountName + * + * @return string + */ + public function getPayerBankAccountName() + { + return $this->container['payerBankAccountName']; + } + + /** + * Sets payerBankAccountName + * + * @param string $payerBankAccountName payerBankAccountName + * + * @return $this + */ + public function setPayerBankAccountName($payerBankAccountName) + { + $this->container['payerBankAccountName'] = $payerBankAccountName; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRequestDtoParam.php b/lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRequestDtoParam.php new file mode 100644 index 0000000..83165d2 --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRequestDtoParam.php @@ -0,0 +1,603 @@ + 'string', + 'yopMerchantNo' => 'string', + 'marketingProductCode' => 'string', + 'requestIp' => 'string', + 'appKey' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'orderInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderOrderInfoDtoParam', + 'payerInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentPayerInfoDtoParam', + 'batchNos' => 'string[]', + 'tradeScene' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'businessMarket' => null, + 'yopMerchantNo' => null, + 'marketingProductCode' => null, + 'requestIp' => null, + 'appKey' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'orderInfo' => null, + 'payerInfo' => null, + 'batchNos' => null, + 'tradeScene' => 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 = [ + 'businessMarket' => 'businessMarket', + 'yopMerchantNo' => 'yopMerchantNo', + 'marketingProductCode' => 'marketingProductCode', + 'requestIp' => 'requestIp', + 'appKey' => 'appKey', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'orderInfo' => 'orderInfo', + 'payerInfo' => 'payerInfo', + 'batchNos' => 'batchNos', + 'tradeScene' => 'tradeScene' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'businessMarket' => 'setBusinessMarket', + 'yopMerchantNo' => 'setYopMerchantNo', + 'marketingProductCode' => 'setMarketingProductCode', + 'requestIp' => 'setRequestIp', + 'appKey' => 'setAppKey', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'orderInfo' => 'setOrderInfo', + 'payerInfo' => 'setPayerInfo', + 'batchNos' => 'setBatchNos', + 'tradeScene' => 'setTradeScene' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'businessMarket' => 'getBusinessMarket', + 'yopMerchantNo' => 'getYopMerchantNo', + 'marketingProductCode' => 'getMarketingProductCode', + 'requestIp' => 'getRequestIp', + 'appKey' => 'getAppKey', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'orderInfo' => 'getOrderInfo', + 'payerInfo' => 'getPayerInfo', + 'batchNos' => 'getBatchNos', + 'tradeScene' => 'getTradeScene' + ]; + + /** + * 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['businessMarket'] = isset($data['businessMarket']) ? $data['businessMarket'] : null; + $this->container['yopMerchantNo'] = isset($data['yopMerchantNo']) ? $data['yopMerchantNo'] : null; + $this->container['marketingProductCode'] = isset($data['marketingProductCode']) ? $data['marketingProductCode'] : null; + $this->container['requestIp'] = isset($data['requestIp']) ? $data['requestIp'] : null; + $this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['orderInfo'] = isset($data['orderInfo']) ? $data['orderInfo'] : null; + $this->container['payerInfo'] = isset($data['payerInfo']) ? $data['payerInfo'] : null; + $this->container['batchNos'] = isset($data['batchNos']) ? $data['batchNos'] : null; + $this->container['tradeScene'] = isset($data['tradeScene']) ? $data['tradeScene'] : 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 businessMarket + * + * @return string + */ + public function getBusinessMarket() + { + return $this->container['businessMarket']; + } + + /** + * Sets businessMarket + * + * @param string $businessMarket businessMarket + * + * @return $this + */ + public function setBusinessMarket($businessMarket) + { + $this->container['businessMarket'] = $businessMarket; + + 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 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 requestIp + * + * @return string + */ + public function getRequestIp() + { + return $this->container['requestIp']; + } + + /** + * Sets requestIp + * + * @param string $requestIp requestIp + * + * @return $this + */ + public function setRequestIp($requestIp) + { + $this->container['requestIp'] = $requestIp; + + 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 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 orderInfo + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderOrderInfoDtoParam + */ + public function getOrderInfo() + { + return $this->container['orderInfo']; + } + + /** + * Sets orderInfo + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderOrderInfoDtoParam $orderInfo orderInfo + * + * @return $this + */ + public function setOrderInfo($orderInfo) + { + $this->container['orderInfo'] = $orderInfo; + + return $this; + } + + /** + * Gets payerInfo + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentPayerInfoDtoParam + */ + public function getPayerInfo() + { + return $this->container['payerInfo']; + } + + /** + * Sets payerInfo + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\BankPaymentOrderBankAccountPaymentPayerInfoDtoParam $payerInfo payerInfo + * + * @return $this + */ + public function setPayerInfo($payerInfo) + { + $this->container['payerInfo'] = $payerInfo; + + return $this; + } + + /** + * Gets batchNos + * + * @return string[] + */ + public function getBatchNos() + { + return $this->container['batchNos']; + } + + /** + * Sets batchNos + * + * @param string[] $batchNos batchNos + * + * @return $this + */ + public function setBatchNos($batchNos) + { + $this->container['batchNos'] = $batchNos; + + return $this; + } + + /** + * Gets tradeScene + * + * @return string + */ + public function getTradeScene() + { + return $this->container['tradeScene']; + } + + /** + * Sets tradeScene + * + * @param string $tradeScene tradeScene + * + * @return $this + */ + public function setTradeScene($tradeScene) + { + $this->container['tradeScene'] = $tradeScene; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRespDtoResult.php b/lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRespDtoResult.php new file mode 100644 index 0000000..00e5041 --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderBankAccountPaymentRespDtoResult.php @@ -0,0 +1,452 @@ + 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string', + 'orderId' => 'string', + 'orderStatus' => 'string', + 'paymentUniqueOrderNo' => '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, + 'paymentUniqueOrderNo' => 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', + 'paymentUniqueOrderNo' => 'paymentUniqueOrderNo' + ]; + + /** + * 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', + 'paymentUniqueOrderNo' => 'setPaymentUniqueOrderNo' + ]; + + /** + * 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', + 'paymentUniqueOrderNo' => 'getPaymentUniqueOrderNo' + ]; + + /** + * 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; + $this->container['paymentUniqueOrderNo'] = isset($data['paymentUniqueOrderNo']) ? $data['paymentUniqueOrderNo'] : 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; + } + + /** + * Gets paymentUniqueOrderNo + * + * @return string + */ + public function getPaymentUniqueOrderNo() + { + return $this->container['paymentUniqueOrderNo']; + } + + /** + * Sets paymentUniqueOrderNo + * + * @param string $paymentUniqueOrderNo 支付订单号 + * + * @return $this + */ + public function setPaymentUniqueOrderNo($paymentUniqueOrderNo) + { + $this->container['paymentUniqueOrderNo'] = $paymentUniqueOrderNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/BankPaymentOrderOrderInfoDtoParam.php b/lib/Service/Account/Model/BankPaymentOrderOrderInfoDtoParam.php new file mode 100644 index 0000000..a6d319d --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderOrderInfoDtoParam.php @@ -0,0 +1,543 @@ + 'string', + 'orderAmount' => 'float', + 'fundProcessType' => 'string', + 'goodsName' => 'string', + 'expiredTime' => 'string', + 'notifyUrl' => 'string', + 'memo' => 'string', + 'businessInfo' => 'string', + 'csNotifyUrl' => '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, + 'businessInfo' => null, + 'csNotifyUrl' => 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', + 'businessInfo' => 'businessInfo', + 'csNotifyUrl' => 'csNotifyUrl' + ]; + + /** + * 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', + 'businessInfo' => 'setBusinessInfo', + 'csNotifyUrl' => 'setCsNotifyUrl' + ]; + + /** + * 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', + 'businessInfo' => 'getBusinessInfo', + 'csNotifyUrl' => 'getCsNotifyUrl' + ]; + + /** + * 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; + $this->container['businessInfo'] = isset($data['businessInfo']) ? $data['businessInfo'] : null; + $this->container['csNotifyUrl'] = isset($data['csNotifyUrl']) ? $data['csNotifyUrl'] : 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; + } + + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->container['businessInfo']; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo businessInfo + * + * @return $this + */ + public function setBusinessInfo($businessInfo) + { + $this->container['businessInfo'] = $businessInfo; + + return $this; + } + + /** + * Gets csNotifyUrl + * + * @return string + */ + public function getCsNotifyUrl() + { + return $this->container['csNotifyUrl']; + } + + /** + * Sets csNotifyUrl + * + * @param string $csNotifyUrl csNotifyUrl + * + * @return $this + */ + public function setCsNotifyUrl($csNotifyUrl) + { + $this->container['csNotifyUrl'] = $csNotifyUrl; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/BankPaymentOrderRequest.php b/lib/Service/Account/Model/BankPaymentOrderRequest.php new file mode 100644 index 0000000..370c9bf --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return BankPaymentOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'bankPaymentOrder'; + } + + +} diff --git a/lib/Service/Account/Model/BankPaymentOrderRequestMarshaller.php b/lib/Service/Account/Model/BankPaymentOrderRequestMarshaller.php new file mode 100644 index 0000000..2812458 --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankPaymentOrderRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/BankPaymentOrderResponse.php b/lib/Service/Account/Model/BankPaymentOrderResponse.php new file mode 100644 index 0000000..a57e716 --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankPaymentOrderBankAccountPaymentRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/BankPaymentOrderResponseUnMarshaller.php b/lib/Service/Account/Model/BankPaymentOrderResponseUnMarshaller.php new file mode 100644 index 0000000..138802b --- /dev/null +++ b/lib/Service/Account/Model/BankPaymentOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'benefitMobileNo' => 'string', + 'benefitIdType' => 'string', + 'benefitIdNo' => 'string', + 'benefitStartDate' => 'string', + 'benefitExpireDate' => 'string', + 'benefitIncomeType' => 'string', + 'benefitImageFont' => 'string', + 'benefitImageBack' => 'string', + 'benefitAddress' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'benefitName' => null, + 'benefitMobileNo' => null, + 'benefitIdType' => null, + 'benefitIdNo' => null, + 'benefitStartDate' => null, + 'benefitExpireDate' => null, + 'benefitIncomeType' => null, + 'benefitImageFont' => null, + 'benefitImageBack' => null, + 'benefitAddress' => 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 = [ + 'benefitName' => 'benefitName', + 'benefitMobileNo' => 'benefitMobileNo', + 'benefitIdType' => 'benefitIdType', + 'benefitIdNo' => 'benefitIdNo', + 'benefitStartDate' => 'benefitStartDate', + 'benefitExpireDate' => 'benefitExpireDate', + 'benefitIncomeType' => 'benefitIncomeType', + 'benefitImageFont' => 'benefitImageFont', + 'benefitImageBack' => 'benefitImageBack', + 'benefitAddress' => 'benefitAddress' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'benefitName' => 'setBenefitName', + 'benefitMobileNo' => 'setBenefitMobileNo', + 'benefitIdType' => 'setBenefitIdType', + 'benefitIdNo' => 'setBenefitIdNo', + 'benefitStartDate' => 'setBenefitStartDate', + 'benefitExpireDate' => 'setBenefitExpireDate', + 'benefitIncomeType' => 'setBenefitIncomeType', + 'benefitImageFont' => 'setBenefitImageFont', + 'benefitImageBack' => 'setBenefitImageBack', + 'benefitAddress' => 'setBenefitAddress' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'benefitName' => 'getBenefitName', + 'benefitMobileNo' => 'getBenefitMobileNo', + 'benefitIdType' => 'getBenefitIdType', + 'benefitIdNo' => 'getBenefitIdNo', + 'benefitStartDate' => 'getBenefitStartDate', + 'benefitExpireDate' => 'getBenefitExpireDate', + 'benefitIncomeType' => 'getBenefitIncomeType', + 'benefitImageFont' => 'getBenefitImageFont', + 'benefitImageBack' => 'getBenefitImageBack', + 'benefitAddress' => 'getBenefitAddress' + ]; + + /** + * 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['benefitName'] = isset($data['benefitName']) ? $data['benefitName'] : null; + $this->container['benefitMobileNo'] = isset($data['benefitMobileNo']) ? $data['benefitMobileNo'] : null; + $this->container['benefitIdType'] = isset($data['benefitIdType']) ? $data['benefitIdType'] : null; + $this->container['benefitIdNo'] = isset($data['benefitIdNo']) ? $data['benefitIdNo'] : null; + $this->container['benefitStartDate'] = isset($data['benefitStartDate']) ? $data['benefitStartDate'] : null; + $this->container['benefitExpireDate'] = isset($data['benefitExpireDate']) ? $data['benefitExpireDate'] : null; + $this->container['benefitIncomeType'] = isset($data['benefitIncomeType']) ? $data['benefitIncomeType'] : null; + $this->container['benefitImageFont'] = isset($data['benefitImageFont']) ? $data['benefitImageFont'] : null; + $this->container['benefitImageBack'] = isset($data['benefitImageBack']) ? $data['benefitImageBack'] : null; + $this->container['benefitAddress'] = isset($data['benefitAddress']) ? $data['benefitAddress'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['benefitName'] === null) { + $invalidProperties[] = "'benefitName' can't be null"; + } + if ($this->container['benefitMobileNo'] === null) { + $invalidProperties[] = "'benefitMobileNo' can't be null"; + } + if ($this->container['benefitIdType'] === null) { + $invalidProperties[] = "'benefitIdType' can't be null"; + } + if ($this->container['benefitIdNo'] === null) { + $invalidProperties[] = "'benefitIdNo' can't be null"; + } + if ($this->container['benefitStartDate'] === null) { + $invalidProperties[] = "'benefitStartDate' can't be null"; + } + if ($this->container['benefitExpireDate'] === null) { + $invalidProperties[] = "'benefitExpireDate' can't be null"; + } + if ($this->container['benefitIncomeType'] === null) { + $invalidProperties[] = "'benefitIncomeType' can't be null"; + } + if ($this->container['benefitImageFont'] === null) { + $invalidProperties[] = "'benefitImageFont' can't be null"; + } + if ($this->container['benefitImageBack'] === null) { + $invalidProperties[] = "'benefitImageBack' can't be null"; + } + if ($this->container['benefitAddress'] === null) { + $invalidProperties[] = "'benefitAddress' can't be null"; + } + 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 benefitName + * + * @return string + */ + public function getBenefitName() + { + return $this->container['benefitName']; + } + + /** + * Sets benefitName + * + * @param string $benefitName 受益人姓名 + * + * @return $this + */ + public function setBenefitName($benefitName) + { + $this->container['benefitName'] = $benefitName; + + return $this; + } + + /** + * Gets benefitMobileNo + * + * @return string + */ + public function getBenefitMobileNo() + { + return $this->container['benefitMobileNo']; + } + + /** + * Sets benefitMobileNo + * + * @param string $benefitMobileNo 受益人手机号 + * + * @return $this + */ + public function setBenefitMobileNo($benefitMobileNo) + { + $this->container['benefitMobileNo'] = $benefitMobileNo; + + return $this; + } + + /** + * Gets benefitIdType + * + * @return string + */ + public function getBenefitIdType() + { + return $this->container['benefitIdType']; + } + + /** + * Sets benefitIdType + * + * @param string $benefitIdType 受益人证件类型
可选项如下:
ID_CARD:身份证 + * + * @return $this + */ + public function setBenefitIdType($benefitIdType) + { + $this->container['benefitIdType'] = $benefitIdType; + + return $this; + } + + /** + * Gets benefitIdNo + * + * @return string + */ + public function getBenefitIdNo() + { + return $this->container['benefitIdNo']; + } + + /** + * Sets benefitIdNo + * + * @param string $benefitIdNo 受益人证件号码
填写身份证号码 + * + * @return $this + */ + public function setBenefitIdNo($benefitIdNo) + { + $this->container['benefitIdNo'] = $benefitIdNo; + + return $this; + } + + /** + * Gets benefitStartDate + * + * @return string + */ + public function getBenefitStartDate() + { + return $this->container['benefitStartDate']; + } + + /** + * Sets benefitStartDate + * + * @param string $benefitStartDate 受益人证件生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setBenefitStartDate($benefitStartDate) + { + $this->container['benefitStartDate'] = $benefitStartDate; + + return $this; + } + + /** + * Gets benefitExpireDate + * + * @return string + */ + public function getBenefitExpireDate() + { + return $this->container['benefitExpireDate']; + } + + /** + * Sets benefitExpireDate + * + * @param string $benefitExpireDate 受益人证件失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setBenefitExpireDate($benefitExpireDate) + { + $this->container['benefitExpireDate'] = $benefitExpireDate; + + return $this; + } + + /** + * Gets benefitIncomeType + * + * @return string + */ + public function getBenefitIncomeType() + { + return $this->container['benefitIncomeType']; + } + + /** + * Sets benefitIncomeType + * + * @param string $benefitIncomeType 最终受益人受益方式
可选项如下:
A01:直接或间接控股25%(含)以上
A02:通过人事、财务等其他方式对公司进行控制
A03:高级管理人员
A04:法人或公司负责人
A05:其他 + * + * @return $this + */ + public function setBenefitIncomeType($benefitIncomeType) + { + $this->container['benefitIncomeType'] = $benefitIncomeType; + + return $this; + } + + /** + * Gets benefitImageFont + * + * @return string + */ + public function getBenefitImageFont() + { + return $this->container['benefitImageFont']; + } + + /** + * Sets benefitImageFont + * + * @param string $benefitImageFont 受益人证件照正面 + * + * @return $this + */ + public function setBenefitImageFont($benefitImageFont) + { + $this->container['benefitImageFont'] = $benefitImageFont; + + return $this; + } + + /** + * Gets benefitImageBack + * + * @return string + */ + public function getBenefitImageBack() + { + return $this->container['benefitImageBack']; + } + + /** + * Sets benefitImageBack + * + * @param string $benefitImageBack 受益人证件照反面 + * + * @return $this + */ + public function setBenefitImageBack($benefitImageBack) + { + $this->container['benefitImageBack'] = $benefitImageBack; + + return $this; + } + + /** + * Gets benefitAddress + * + * @return string + */ + public function getBenefitAddress() + { + return $this->container['benefitAddress']; + } + + /** + * Sets benefitAddress + * + * @param string $benefitAddress 受益人地址 + * + * @return $this + */ + public function setBenefitAddress($benefitAddress) + { + $this->container['benefitAddress'] = $benefitAddress; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam.php new file mode 100644 index 0000000..46b8298 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRequestDtoParam.php @@ -0,0 +1,543 @@ + 'string', + 'appKey' => 'string', + 'yopMerchantNo' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'ypAccountBookNo' => 'string', + 'marketingProductCode' => 'string', + 'orderInfo' => '\Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountBookPayOrderOrderInfoDtoParam', + 'merchantRequestIp' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'businessMarket' => null, + 'appKey' => null, + 'yopMerchantNo' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'ypAccountBookNo' => 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 = [ + 'businessMarket' => 'businessMarket', + 'appKey' => 'appKey', + 'yopMerchantNo' => 'yopMerchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'ypAccountBookNo' => 'ypAccountBookNo', + 'marketingProductCode' => 'marketingProductCode', + 'orderInfo' => 'orderInfo', + 'merchantRequestIp' => 'merchantRequestIp' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'businessMarket' => 'setBusinessMarket', + 'appKey' => 'setAppKey', + 'yopMerchantNo' => 'setYopMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'ypAccountBookNo' => 'setYpAccountBookNo', + 'marketingProductCode' => 'setMarketingProductCode', + 'orderInfo' => 'setOrderInfo', + 'merchantRequestIp' => 'setMerchantRequestIp' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'businessMarket' => 'getBusinessMarket', + 'appKey' => 'getAppKey', + 'yopMerchantNo' => 'getYopMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'ypAccountBookNo' => 'getYpAccountBookNo', + '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['businessMarket'] = isset($data['businessMarket']) ? $data['businessMarket'] : 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['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : 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 businessMarket + * + * @return string + */ + public function getBusinessMarket() + { + return $this->container['businessMarket']; + } + + /** + * Sets businessMarket + * + * @param string $businessMarket businessMarket + * + * @return $this + */ + public function setBusinessMarket($businessMarket) + { + $this->container['businessMarket'] = $businessMarket; + + 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 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 ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->container['ypAccountBookNo']; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo ypAccountBookNo + * + * @return $this + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->container['ypAccountBookNo'] = $ypAccountBookNo; + + 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\EnterpriseAccountBookPayOrderOrderInfoDtoParam + */ + public function getOrderInfo() + { + return $this->container['orderInfo']; + } + + /** + * Sets orderInfo + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\EnterpriseAccountBookPayOrderOrderInfoDtoParam $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)); + } +} + + diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult.php new file mode 100644 index 0000000..bb580fe --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult.php @@ -0,0 +1,422 @@ + '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)); + } +} + + diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderOrderInfoDtoParam.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderOrderInfoDtoParam.php new file mode 100644 index 0000000..67e9f62 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderOrderInfoDtoParam.php @@ -0,0 +1,543 @@ + 'string', + 'orderAmount' => 'float', + 'fundProcessType' => 'string', + 'goodsName' => 'string', + 'expiredTime' => 'string', + 'notifyUrl' => 'string', + 'memo' => 'string', + 'csUrl' => 'string', + 'businessInfo' => '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, + 'csUrl' => null, + 'businessInfo' => 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', + 'csUrl' => 'csUrl', + 'businessInfo' => 'businessInfo' + ]; + + /** + * 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', + 'csUrl' => 'setCsUrl', + 'businessInfo' => 'setBusinessInfo' + ]; + + /** + * 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', + 'csUrl' => 'getCsUrl', + 'businessInfo' => 'getBusinessInfo' + ]; + + /** + * 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; + $this->container['csUrl'] = isset($data['csUrl']) ? $data['csUrl'] : null; + $this->container['businessInfo'] = isset($data['businessInfo']) ? $data['businessInfo'] : 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; + } + + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->container['csUrl']; + } + + /** + * Sets csUrl + * + * @param string $csUrl csUrl + * + * @return $this + */ + public function setCsUrl($csUrl) + { + $this->container['csUrl'] = $csUrl; + + return $this; + } + + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->container['businessInfo']; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo businessInfo + * + * @return $this + */ + public function setBusinessInfo($businessInfo) + { + $this->container['businessInfo'] = $businessInfo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequest.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequest.php new file mode 100644 index 0000000..67d90b5 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return EnterpriseAccountBookPayOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'enterpriseAccountBookPayOrder'; + } + + +} diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequestMarshaller.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequestMarshaller.php new file mode 100644 index 0000000..ae6c158 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +EnterpriseAccountBookPayOrderRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponse.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponse.php new file mode 100644 index 0000000..2864cc5 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return EnterpriseAccountBookPayOrderAccountBookPaymentRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponseUnMarshaller.php b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponseUnMarshaller.php new file mode 100644 index 0000000..e164a3c --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseAccountBookPayOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return EnterpriseTokenPayOrderRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Sets token + * + * @param string $token + * @return EnterpriseTokenPayOrderRequest + */ + public function setToken($token) + { + $this->token = $token; + return $this; + } + /** + * Gets payerMerchantNo + * + * @return string + */ + public function getPayerMerchantNo() + { + return $this->payerMerchantNo; + } + + /** + * Sets payerMerchantNo + * + * @param string $payerMerchantNo + * @return EnterpriseTokenPayOrderRequest + */ + public function setPayerMerchantNo($payerMerchantNo) + { + $this->payerMerchantNo = $payerMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'enterpriseTokenPayOrder'; + } + + +} diff --git a/lib/Service/Account/Model/EnterpriseTokenPayOrderRequestMarshaller.php b/lib/Service/Account/Model/EnterpriseTokenPayOrderRequestMarshaller.php new file mode 100644 index 0000000..7fb8c2e --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseTokenPayOrderRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getToken() != null){ + $internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string')); + } + if($request->getPayerMerchantNo() != null){ + $internalRequest->addParameter('payerMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getPayerMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +EnterpriseTokenPayOrderRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/EnterpriseTokenPayOrderResponse.php b/lib/Service/Account/Model/EnterpriseTokenPayOrderResponse.php new file mode 100644 index 0000000..baeee56 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseTokenPayOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return EnterpriseTokenPayOrderTokenPaymentResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/EnterpriseTokenPayOrderResponseUnMarshaller.php b/lib/Service/Account/Model/EnterpriseTokenPayOrderResponseUnMarshaller.php new file mode 100644 index 0000000..36c7df6 --- /dev/null +++ b/lib/Service/Account/Model/EnterpriseTokenPayOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'token' => 'string', + 'orderStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'token' => 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', + 'token' => 'token', + 'orderStatus' => 'orderStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'token' => 'setToken', + 'orderStatus' => 'setOrderStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'token' => 'getToken', + '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['token'] = isset($data['token']) ? $data['token'] : 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 token + * + * @return string + */ + public function getToken() + { + return $this->container['token']; + } + + /** + * Sets token + * + * @param string $token token + * + * @return $this + */ + public function setToken($token) + { + $this->container['token'] = $token; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/ExternalOrderExternalOrderSubmitOrderRespDtoResult.php b/lib/Service/Account/Model/ExternalOrderExternalOrderSubmitOrderRespDtoResult.php new file mode 100644 index 0000000..ed6985e --- /dev/null +++ b/lib/Service/Account/Model/ExternalOrderExternalOrderSubmitOrderRespDtoResult.php @@ -0,0 +1,332 @@ + 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/ExternalOrderRequest.php b/lib/Service/Account/Model/ExternalOrderRequest.php new file mode 100644 index 0000000..51bde77 --- /dev/null +++ b/lib/Service/Account/Model/ExternalOrderRequest.php @@ -0,0 +1,467 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return ExternalOrderRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return ExternalOrderRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets channelName + * + * @return string + */ + public function getChannelName() + { + return $this->channelName; + } + + /** + * Sets channelName + * + * @param string $channelName + * @return ExternalOrderRequest + */ + public function setChannelName($channelName) + { + $this->channelName = $channelName; + return $this; + } + /** + * Gets orderId + * + * @return string + */ + public function getOrderId() + { + return $this->orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return ExternalOrderRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets merchantName + * + * @return string + */ + public function getMerchantName() + { + return $this->merchantName; + } + + /** + * Sets merchantName + * + * @param string $merchantName + * @return ExternalOrderRequest + */ + public function setMerchantName($merchantName) + { + $this->merchantName = $merchantName; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return ExternalOrderRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets trxDate + * + * @return string + */ + public function getTrxDate() + { + return $this->trxDate; + } + + /** + * Sets trxDate + * + * @param string $trxDate + * @return ExternalOrderRequest + */ + public function setTrxDate($trxDate) + { + $this->trxDate = $trxDate; + return $this; + } + /** + * Gets finishDate + * + * @return string + */ + public function getFinishDate() + { + return $this->finishDate; + } + + /** + * Sets finishDate + * + * @param string $finishDate + * @return ExternalOrderRequest + */ + public function setFinishDate($finishDate) + { + $this->finishDate = $finishDate; + return $this; + } + /** + * Gets orderAmount + * + * @return float + */ + public function getOrderAmount() + { + return $this->orderAmount; + } + + /** + * Sets orderAmount + * + * @param float $orderAmount + * @return ExternalOrderRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets realAmount + * + * @return float + */ + public function getRealAmount() + { + return $this->realAmount; + } + + /** + * Sets realAmount + * + * @param float $realAmount + * @return ExternalOrderRequest + */ + public function setRealAmount($realAmount) + { + $this->realAmount = $realAmount; + return $this; + } + /** + * Gets payerUserId + * + * @return string + */ + public function getPayerUserId() + { + return $this->payerUserId; + } + + /** + * Sets payerUserId + * + * @param string $payerUserId + * @return ExternalOrderRequest + */ + public function setPayerUserId($payerUserId) + { + $this->payerUserId = $payerUserId; + return $this; + } + /** + * Gets payWay + * + * @return string + */ + public function getPayWay() + { + return $this->payWay; + } + + /** + * Sets payWay + * + * @param string $payWay + * @return ExternalOrderRequest + */ + public function setPayWay($payWay) + { + $this->payWay = $payWay; + return $this; + } + /** + * Gets payCardNo + * + * @return string + */ + public function getPayCardNo() + { + return $this->payCardNo; + } + + /** + * Sets payCardNo + * + * @param string $payCardNo + * @return ExternalOrderRequest + */ + public function setPayCardNo($payCardNo) + { + $this->payCardNo = $payCardNo; + return $this; + } + /** + * Gets payCardType + * + * @return string + */ + public function getPayCardType() + { + return $this->payCardType; + } + + /** + * Sets payCardType + * + * @param string $payCardType + * @return ExternalOrderRequest + */ + public function setPayCardType($payCardType) + { + $this->payCardType = $payCardType; + return $this; + } + /** + * Gets userRequestIp + * + * @return string + */ + public function getUserRequestIp() + { + return $this->userRequestIp; + } + + /** + * Sets userRequestIp + * + * @param string $userRequestIp + * @return ExternalOrderRequest + */ + public function setUserRequestIp($userRequestIp) + { + $this->userRequestIp = $userRequestIp; + return $this; + } + /** + * Gets trxType + * + * @return string + */ + public function getTrxType() + { + return $this->trxType; + } + + /** + * Sets trxType + * + * @param string $trxType + * @return ExternalOrderRequest + */ + public function setTrxType($trxType) + { + $this->trxType = $trxType; + return $this; + } + /** + * Gets batchNo + * + * @return string + */ + public function getBatchNo() + { + return $this->batchNo; + } + + /** + * Sets batchNo + * + * @param string $batchNo + * @return ExternalOrderRequest + */ + public function setBatchNo($batchNo) + { + $this->batchNo = $batchNo; + return $this; + } + /** + * Gets channelExtInfo + * + * @return string + */ + public function getChannelExtInfo() + { + return $this->channelExtInfo; + } + + /** + * Sets channelExtInfo + * + * @param string $channelExtInfo + * @return ExternalOrderRequest + */ + public function setChannelExtInfo($channelExtInfo) + { + $this->channelExtInfo = $channelExtInfo; + return $this; + } + + public static function getOperationId() + { + return 'externalOrder'; + } + + +} diff --git a/lib/Service/Account/Model/ExternalOrderRequestMarshaller.php b/lib/Service/Account/Model/ExternalOrderRequestMarshaller.php new file mode 100644 index 0000000..9176cf7 --- /dev/null +++ b/lib/Service/Account/Model/ExternalOrderRequestMarshaller.php @@ -0,0 +1,131 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getChannelName() != null){ + $internalRequest->addParameter('channelName', ObjectSerializer::sanitizeForSerialization($request->getChannelName(), 'string')); + } + if($request->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getMerchantName() != null){ + $internalRequest->addParameter('merchantName', ObjectSerializer::sanitizeForSerialization($request->getMerchantName(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getTrxDate() != null){ + $internalRequest->addParameter('trxDate', ObjectSerializer::sanitizeForSerialization($request->getTrxDate(), 'string')); + } + if($request->getFinishDate() != null){ + $internalRequest->addParameter('finishDate', ObjectSerializer::sanitizeForSerialization($request->getFinishDate(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getRealAmount() != null){ + $internalRequest->addParameter('realAmount', ObjectSerializer::sanitizeForSerialization($request->getRealAmount(), 'float')); + } + if($request->getPayerUserId() != null){ + $internalRequest->addParameter('payerUserId', ObjectSerializer::sanitizeForSerialization($request->getPayerUserId(), 'string')); + } + if($request->getPayWay() != null){ + $internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string')); + } + if($request->getPayCardNo() != null){ + $internalRequest->addParameter('payCardNo', ObjectSerializer::sanitizeForSerialization($request->getPayCardNo(), 'string')); + } + if($request->getPayCardType() != null){ + $internalRequest->addParameter('payCardType', ObjectSerializer::sanitizeForSerialization($request->getPayCardType(), 'string')); + } + if($request->getUserRequestIp() != null){ + $internalRequest->addParameter('userRequestIp', ObjectSerializer::sanitizeForSerialization($request->getUserRequestIp(), 'string')); + } + if($request->getTrxType() != null){ + $internalRequest->addParameter('trxType', ObjectSerializer::sanitizeForSerialization($request->getTrxType(), 'string')); + } + if($request->getBatchNo() != null){ + $internalRequest->addParameter('batchNo', ObjectSerializer::sanitizeForSerialization($request->getBatchNo(), 'string')); + } + if($request->getChannelExtInfo() != null){ + $internalRequest->addParameter('channelExtInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelExtInfo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ExternalOrderRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/ExternalOrderResponse.php b/lib/Service/Account/Model/ExternalOrderResponse.php new file mode 100644 index 0000000..aed0c9d --- /dev/null +++ b/lib/Service/Account/Model/ExternalOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ExternalOrderExternalOrderSubmitOrderRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/ExternalOrderResponseUnMarshaller.php b/lib/Service/Account/Model/ExternalOrderResponseUnMarshaller.php new file mode 100644 index 0000000..dcd0bbd --- /dev/null +++ b/lib/Service/Account/Model/ExternalOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'businessLicenceExpirationDate' => 'string', + 'enterpriseEmail' => 'string', + 'mobileNo' => 'string', + 'legalLicenceEffectiveDate' => 'string', + 'legalLicenceExpirationDate' => 'string', + 'legalMobileNo' => 'string', + 'shareholderName' => 'string', + 'shareholderCertificateType' => 'string', + 'shareholderCertificateNo' => 'string', + 'shareholderEffectiveDate' => 'string', + 'shareholderExpirationDate' => 'string', + 'shareholderMobileNo' => 'string', + 'benefitName' => 'string', + 'benefitCertificateType' => 'string', + 'benefitCertificateNo' => 'string', + 'benefitEffectiveDate' => 'string', + 'benefitExpirationDate' => 'string', + 'benefitAddress' => 'string', + 'benefitMobileNo' => 'string', + 'registerProvince' => 'string', + 'registerCity' => 'string', + 'registerDistinct' => 'string', + 'registerAddress' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'businessLicenceEffectiveDate' => null, + 'businessLicenceExpirationDate' => null, + 'enterpriseEmail' => null, + 'mobileNo' => null, + 'legalLicenceEffectiveDate' => null, + 'legalLicenceExpirationDate' => null, + 'legalMobileNo' => null, + 'shareholderName' => null, + 'shareholderCertificateType' => null, + 'shareholderCertificateNo' => null, + 'shareholderEffectiveDate' => null, + 'shareholderExpirationDate' => null, + 'shareholderMobileNo' => null, + 'benefitName' => null, + 'benefitCertificateType' => null, + 'benefitCertificateNo' => null, + 'benefitEffectiveDate' => null, + 'benefitExpirationDate' => null, + 'benefitAddress' => null, + 'benefitMobileNo' => null, + 'registerProvince' => null, + 'registerCity' => null, + 'registerDistinct' => null, + 'registerAddress' => 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 = [ + 'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'businessLicenceExpirationDate', + 'enterpriseEmail' => 'enterpriseEmail', + 'mobileNo' => 'mobileNo', + 'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'legalLicenceExpirationDate', + 'legalMobileNo' => 'legalMobileNo', + 'shareholderName' => 'shareholderName', + 'shareholderCertificateType' => 'shareholderCertificateType', + 'shareholderCertificateNo' => 'shareholderCertificateNo', + 'shareholderEffectiveDate' => 'shareholderEffectiveDate', + 'shareholderExpirationDate' => 'shareholderExpirationDate', + 'shareholderMobileNo' => 'shareholderMobileNo', + 'benefitName' => 'benefitName', + 'benefitCertificateType' => 'benefitCertificateType', + 'benefitCertificateNo' => 'benefitCertificateNo', + 'benefitEffectiveDate' => 'benefitEffectiveDate', + 'benefitExpirationDate' => 'benefitExpirationDate', + 'benefitAddress' => 'benefitAddress', + 'benefitMobileNo' => 'benefitMobileNo', + 'registerProvince' => 'registerProvince', + 'registerCity' => 'registerCity', + 'registerDistinct' => 'registerDistinct', + 'registerAddress' => 'registerAddress' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate', + 'enterpriseEmail' => 'setEnterpriseEmail', + 'mobileNo' => 'setMobileNo', + 'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate', + 'legalMobileNo' => 'setLegalMobileNo', + 'shareholderName' => 'setShareholderName', + 'shareholderCertificateType' => 'setShareholderCertificateType', + 'shareholderCertificateNo' => 'setShareholderCertificateNo', + 'shareholderEffectiveDate' => 'setShareholderEffectiveDate', + 'shareholderExpirationDate' => 'setShareholderExpirationDate', + 'shareholderMobileNo' => 'setShareholderMobileNo', + 'benefitName' => 'setBenefitName', + 'benefitCertificateType' => 'setBenefitCertificateType', + 'benefitCertificateNo' => 'setBenefitCertificateNo', + 'benefitEffectiveDate' => 'setBenefitEffectiveDate', + 'benefitExpirationDate' => 'setBenefitExpirationDate', + 'benefitAddress' => 'setBenefitAddress', + 'benefitMobileNo' => 'setBenefitMobileNo', + 'registerProvince' => 'setRegisterProvince', + 'registerCity' => 'setRegisterCity', + 'registerDistinct' => 'setRegisterDistinct', + 'registerAddress' => 'setRegisterAddress' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate', + 'enterpriseEmail' => 'getEnterpriseEmail', + 'mobileNo' => 'getMobileNo', + 'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate', + 'legalMobileNo' => 'getLegalMobileNo', + 'shareholderName' => 'getShareholderName', + 'shareholderCertificateType' => 'getShareholderCertificateType', + 'shareholderCertificateNo' => 'getShareholderCertificateNo', + 'shareholderEffectiveDate' => 'getShareholderEffectiveDate', + 'shareholderExpirationDate' => 'getShareholderExpirationDate', + 'shareholderMobileNo' => 'getShareholderMobileNo', + 'benefitName' => 'getBenefitName', + 'benefitCertificateType' => 'getBenefitCertificateType', + 'benefitCertificateNo' => 'getBenefitCertificateNo', + 'benefitEffectiveDate' => 'getBenefitEffectiveDate', + 'benefitExpirationDate' => 'getBenefitExpirationDate', + 'benefitAddress' => 'getBenefitAddress', + 'benefitMobileNo' => 'getBenefitMobileNo', + 'registerProvince' => 'getRegisterProvince', + 'registerCity' => 'getRegisterCity', + 'registerDistinct' => 'getRegisterDistinct', + 'registerAddress' => 'getRegisterAddress' + ]; + + /** + * 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['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null; + $this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null; + $this->container['enterpriseEmail'] = isset($data['enterpriseEmail']) ? $data['enterpriseEmail'] : null; + $this->container['mobileNo'] = isset($data['mobileNo']) ? $data['mobileNo'] : null; + $this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null; + $this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null; + $this->container['legalMobileNo'] = isset($data['legalMobileNo']) ? $data['legalMobileNo'] : null; + $this->container['shareholderName'] = isset($data['shareholderName']) ? $data['shareholderName'] : null; + $this->container['shareholderCertificateType'] = isset($data['shareholderCertificateType']) ? $data['shareholderCertificateType'] : null; + $this->container['shareholderCertificateNo'] = isset($data['shareholderCertificateNo']) ? $data['shareholderCertificateNo'] : null; + $this->container['shareholderEffectiveDate'] = isset($data['shareholderEffectiveDate']) ? $data['shareholderEffectiveDate'] : null; + $this->container['shareholderExpirationDate'] = isset($data['shareholderExpirationDate']) ? $data['shareholderExpirationDate'] : null; + $this->container['shareholderMobileNo'] = isset($data['shareholderMobileNo']) ? $data['shareholderMobileNo'] : null; + $this->container['benefitName'] = isset($data['benefitName']) ? $data['benefitName'] : null; + $this->container['benefitCertificateType'] = isset($data['benefitCertificateType']) ? $data['benefitCertificateType'] : null; + $this->container['benefitCertificateNo'] = isset($data['benefitCertificateNo']) ? $data['benefitCertificateNo'] : null; + $this->container['benefitEffectiveDate'] = isset($data['benefitEffectiveDate']) ? $data['benefitEffectiveDate'] : null; + $this->container['benefitExpirationDate'] = isset($data['benefitExpirationDate']) ? $data['benefitExpirationDate'] : null; + $this->container['benefitAddress'] = isset($data['benefitAddress']) ? $data['benefitAddress'] : null; + $this->container['benefitMobileNo'] = isset($data['benefitMobileNo']) ? $data['benefitMobileNo'] : null; + $this->container['registerProvince'] = isset($data['registerProvince']) ? $data['registerProvince'] : null; + $this->container['registerCity'] = isset($data['registerCity']) ? $data['registerCity'] : null; + $this->container['registerDistinct'] = isset($data['registerDistinct']) ? $data['registerDistinct'] : null; + $this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['businessLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'businessLicenceEffectiveDate' can't be null"; + } + if ($this->container['businessLicenceExpirationDate'] === null) { + $invalidProperties[] = "'businessLicenceExpirationDate' can't be null"; + } + if ($this->container['enterpriseEmail'] === null) { + $invalidProperties[] = "'enterpriseEmail' can't be null"; + } + if ($this->container['mobileNo'] === null) { + $invalidProperties[] = "'mobileNo' can't be null"; + } + if ($this->container['legalLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'legalLicenceEffectiveDate' can't be null"; + } + if ($this->container['legalLicenceExpirationDate'] === null) { + $invalidProperties[] = "'legalLicenceExpirationDate' can't be null"; + } + if ($this->container['legalMobileNo'] === null) { + $invalidProperties[] = "'legalMobileNo' can't be null"; + } + if ($this->container['shareholderName'] === null) { + $invalidProperties[] = "'shareholderName' can't be null"; + } + if ($this->container['shareholderCertificateType'] === null) { + $invalidProperties[] = "'shareholderCertificateType' can't be null"; + } + if ($this->container['shareholderCertificateNo'] === null) { + $invalidProperties[] = "'shareholderCertificateNo' can't be null"; + } + if ($this->container['shareholderEffectiveDate'] === null) { + $invalidProperties[] = "'shareholderEffectiveDate' can't be null"; + } + if ($this->container['shareholderExpirationDate'] === null) { + $invalidProperties[] = "'shareholderExpirationDate' can't be null"; + } + if ($this->container['shareholderMobileNo'] === null) { + $invalidProperties[] = "'shareholderMobileNo' can't be null"; + } + if ($this->container['benefitName'] === null) { + $invalidProperties[] = "'benefitName' can't be null"; + } + if ($this->container['benefitCertificateType'] === null) { + $invalidProperties[] = "'benefitCertificateType' can't be null"; + } + if ($this->container['benefitCertificateNo'] === null) { + $invalidProperties[] = "'benefitCertificateNo' can't be null"; + } + if ($this->container['benefitEffectiveDate'] === null) { + $invalidProperties[] = "'benefitEffectiveDate' can't be null"; + } + if ($this->container['benefitExpirationDate'] === null) { + $invalidProperties[] = "'benefitExpirationDate' can't be null"; + } + if ($this->container['benefitAddress'] === null) { + $invalidProperties[] = "'benefitAddress' can't be null"; + } + if ($this->container['benefitMobileNo'] === null) { + $invalidProperties[] = "'benefitMobileNo' can't be null"; + } + if ($this->container['registerProvince'] === null) { + $invalidProperties[] = "'registerProvince' can't be null"; + } + if ($this->container['registerCity'] === null) { + $invalidProperties[] = "'registerCity' can't be null"; + } + if ($this->container['registerDistinct'] === null) { + $invalidProperties[] = "'registerDistinct' can't be null"; + } + if ($this->container['registerAddress'] === null) { + $invalidProperties[] = "'registerAddress' can't be null"; + } + 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 businessLicenceEffectiveDate + * + * @return string + */ + public function getBusinessLicenceEffectiveDate() + { + return $this->container['businessLicenceEffectiveDate']; + } + + /** + * Sets businessLicenceEffectiveDate + * + * @param string $businessLicenceEffectiveDate 营业执照生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate) + { + $this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate; + + return $this; + } + + /** + * Gets businessLicenceExpirationDate + * + * @return string + */ + public function getBusinessLicenceExpirationDate() + { + return $this->container['businessLicenceExpirationDate']; + } + + /** + * Sets businessLicenceExpirationDate + * + * @param string $businessLicenceExpirationDate 营业执照失效日期
格式:yyyyMMdd
长期有效:forever + * + * @return $this + */ + public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate) + { + $this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate; + + return $this; + } + + /** + * Gets enterpriseEmail + * + * @return string + */ + public function getEnterpriseEmail() + { + return $this->container['enterpriseEmail']; + } + + /** + * Sets enterpriseEmail + * + * @param string $enterpriseEmail 企业邮箱 + * + * @return $this + */ + public function setEnterpriseEmail($enterpriseEmail) + { + $this->container['enterpriseEmail'] = $enterpriseEmail; + + return $this; + } + + /** + * Gets mobileNo + * + * @return string + */ + public function getMobileNo() + { + return $this->container['mobileNo']; + } + + /** + * Sets mobileNo + * + * @param string $mobileNo 经办人手机号 + * + * @return $this + */ + public function setMobileNo($mobileNo) + { + $this->container['mobileNo'] = $mobileNo; + + return $this; + } + + /** + * Gets legalLicenceEffectiveDate + * + * @return string + */ + public function getLegalLicenceEffectiveDate() + { + return $this->container['legalLicenceEffectiveDate']; + } + + /** + * Sets legalLicenceEffectiveDate + * + * @param string $legalLicenceEffectiveDate 法人证件生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate) + { + $this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate; + + return $this; + } + + /** + * Gets legalLicenceExpirationDate + * + * @return string + */ + public function getLegalLicenceExpirationDate() + { + return $this->container['legalLicenceExpirationDate']; + } + + /** + * Sets legalLicenceExpirationDate + * + * @param string $legalLicenceExpirationDate 法人证件失效日期
格式:yyyyMMdd
长期有效:forever + * + * @return $this + */ + public function setLegalLicenceExpirationDate($legalLicenceExpirationDate) + { + $this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate; + + return $this; + } + + /** + * Gets legalMobileNo + * + * @return string + */ + public function getLegalMobileNo() + { + return $this->container['legalMobileNo']; + } + + /** + * Sets legalMobileNo + * + * @param string $legalMobileNo 法人手机号 + * + * @return $this + */ + public function setLegalMobileNo($legalMobileNo) + { + $this->container['legalMobileNo'] = $legalMobileNo; + + return $this; + } + + /** + * Gets shareholderName + * + * @return string + */ + public function getShareholderName() + { + return $this->container['shareholderName']; + } + + /** + * Sets shareholderName + * + * @param string $shareholderName 股东或实际控制人姓名 + * + * @return $this + */ + public function setShareholderName($shareholderName) + { + $this->container['shareholderName'] = $shareholderName; + + return $this; + } + + /** + * Gets shareholderCertificateType + * + * @return string + */ + public function getShareholderCertificateType() + { + return $this->container['shareholderCertificateType']; + } + + /** + * Sets shareholderCertificateType + * + * @param string $shareholderCertificateType 股东或实际控制人证件类型
可选项如下:
ID_CARD:身份证 + * + * @return $this + */ + public function setShareholderCertificateType($shareholderCertificateType) + { + $this->container['shareholderCertificateType'] = $shareholderCertificateType; + + return $this; + } + + /** + * Gets shareholderCertificateNo + * + * @return string + */ + public function getShareholderCertificateNo() + { + return $this->container['shareholderCertificateNo']; + } + + /** + * Sets shareholderCertificateNo + * + * @param string $shareholderCertificateNo 股东或实际控制人证件号 + * + * @return $this + */ + public function setShareholderCertificateNo($shareholderCertificateNo) + { + $this->container['shareholderCertificateNo'] = $shareholderCertificateNo; + + return $this; + } + + /** + * Gets shareholderEffectiveDate + * + * @return string + */ + public function getShareholderEffectiveDate() + { + return $this->container['shareholderEffectiveDate']; + } + + /** + * Sets shareholderEffectiveDate + * + * @param string $shareholderEffectiveDate 股东或实际控制人证件生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setShareholderEffectiveDate($shareholderEffectiveDate) + { + $this->container['shareholderEffectiveDate'] = $shareholderEffectiveDate; + + return $this; + } + + /** + * Gets shareholderExpirationDate + * + * @return string + */ + public function getShareholderExpirationDate() + { + return $this->container['shareholderExpirationDate']; + } + + /** + * Sets shareholderExpirationDate + * + * @param string $shareholderExpirationDate 股东或实际控制人证件失效日期
格式:yyyyMMdd
长期有效:forever + * + * @return $this + */ + public function setShareholderExpirationDate($shareholderExpirationDate) + { + $this->container['shareholderExpirationDate'] = $shareholderExpirationDate; + + return $this; + } + + /** + * Gets shareholderMobileNo + * + * @return string + */ + public function getShareholderMobileNo() + { + return $this->container['shareholderMobileNo']; + } + + /** + * Sets shareholderMobileNo + * + * @param string $shareholderMobileNo 股东或实际控制人手机号 + * + * @return $this + */ + public function setShareholderMobileNo($shareholderMobileNo) + { + $this->container['shareholderMobileNo'] = $shareholderMobileNo; + + return $this; + } + + /** + * Gets benefitName + * + * @return string + */ + public function getBenefitName() + { + return $this->container['benefitName']; + } + + /** + * Sets benefitName + * + * @param string $benefitName 受益人姓名 + * + * @return $this + */ + public function setBenefitName($benefitName) + { + $this->container['benefitName'] = $benefitName; + + return $this; + } + + /** + * Gets benefitCertificateType + * + * @return string + */ + public function getBenefitCertificateType() + { + return $this->container['benefitCertificateType']; + } + + /** + * Sets benefitCertificateType + * + * @param string $benefitCertificateType 受益人证件类型
可选项如下:
ID_CARD:身份证 + * + * @return $this + */ + public function setBenefitCertificateType($benefitCertificateType) + { + $this->container['benefitCertificateType'] = $benefitCertificateType; + + return $this; + } + + /** + * Gets benefitCertificateNo + * + * @return string + */ + public function getBenefitCertificateNo() + { + return $this->container['benefitCertificateNo']; + } + + /** + * Sets benefitCertificateNo + * + * @param string $benefitCertificateNo 受益人证件号 + * + * @return $this + */ + public function setBenefitCertificateNo($benefitCertificateNo) + { + $this->container['benefitCertificateNo'] = $benefitCertificateNo; + + return $this; + } + + /** + * Gets benefitEffectiveDate + * + * @return string + */ + public function getBenefitEffectiveDate() + { + return $this->container['benefitEffectiveDate']; + } + + /** + * Sets benefitEffectiveDate + * + * @param string $benefitEffectiveDate 受益人证件生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setBenefitEffectiveDate($benefitEffectiveDate) + { + $this->container['benefitEffectiveDate'] = $benefitEffectiveDate; + + return $this; + } + + /** + * Gets benefitExpirationDate + * + * @return string + */ + public function getBenefitExpirationDate() + { + return $this->container['benefitExpirationDate']; + } + + /** + * Sets benefitExpirationDate + * + * @param string $benefitExpirationDate 受益人证件失效日期
格式:yyyyMMdd
长期有效:forever + * + * @return $this + */ + public function setBenefitExpirationDate($benefitExpirationDate) + { + $this->container['benefitExpirationDate'] = $benefitExpirationDate; + + return $this; + } + + /** + * Gets benefitAddress + * + * @return string + */ + public function getBenefitAddress() + { + return $this->container['benefitAddress']; + } + + /** + * Sets benefitAddress + * + * @param string $benefitAddress 受益人住址 + * + * @return $this + */ + public function setBenefitAddress($benefitAddress) + { + $this->container['benefitAddress'] = $benefitAddress; + + return $this; + } + + /** + * Gets benefitMobileNo + * + * @return string + */ + public function getBenefitMobileNo() + { + return $this->container['benefitMobileNo']; + } + + /** + * Sets benefitMobileNo + * + * @param string $benefitMobileNo 受益人手机号 + * + * @return $this + */ + public function setBenefitMobileNo($benefitMobileNo) + { + $this->container['benefitMobileNo'] = $benefitMobileNo; + + return $this; + } + + /** + * Gets registerProvince + * + * @return string + */ + public function getRegisterProvince() + { + return $this->container['registerProvince']; + } + + /** + * Sets registerProvince + * + * @param string $registerProvince 商户注册省编码
详见《省市区编码》 + * + * @return $this + */ + public function setRegisterProvince($registerProvince) + { + $this->container['registerProvince'] = $registerProvince; + + return $this; + } + + /** + * Gets registerCity + * + * @return string + */ + public function getRegisterCity() + { + return $this->container['registerCity']; + } + + /** + * Sets registerCity + * + * @param string $registerCity 商户注册市编码
详见
《省市区编码》 + * + * @return $this + */ + public function setRegisterCity($registerCity) + { + $this->container['registerCity'] = $registerCity; + + return $this; + } + + /** + * Gets registerDistinct + * + * @return string + */ + public function getRegisterDistinct() + { + return $this->container['registerDistinct']; + } + + /** + * Sets registerDistinct + * + * @param string $registerDistinct 商户注册区编码
详见
《省市区编码》 + * + * @return $this + */ + public function setRegisterDistinct($registerDistinct) + { + $this->container['registerDistinct'] = $registerDistinct; + + return $this; + } + + /** + * Gets registerAddress + * + * @return string + */ + public function getRegisterAddress() + { + return $this->container['registerAddress']; + } + + /** + * Sets registerAddress + * + * @param string $registerAddress 商户注册地址 + * + * @return $this + */ + public function setRegisterAddress($registerAddress) + { + $this->container['registerAddress'] = $registerAddress; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/IndividualApplyRequest.php b/lib/Service/Account/Model/IndividualApplyRequest.php new file mode 100644 index 0000000..b21f32f --- /dev/null +++ b/lib/Service/Account/Model/IndividualApplyRequest.php @@ -0,0 +1,217 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return IndividualApplyRequest + */ + 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 IndividualApplyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return IndividualApplyRequest + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return IndividualApplyRequest + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return IndividualApplyRequest + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * Sets phone + * + * @param string $phone + * @return IndividualApplyRequest + */ + public function setPhone($phone) + { + $this->phone = $phone; + return $this; + } + /** + * Gets frontUrl + * + * @return string + */ + public function getFrontUrl() + { + return $this->frontUrl; + } + + /** + * Sets frontUrl + * + * @param string $frontUrl + * @return IndividualApplyRequest + */ + public function setFrontUrl($frontUrl) + { + $this->frontUrl = $frontUrl; + return $this; + } + /** + * Gets contraryUrl + * + * @return string + */ + public function getContraryUrl() + { + return $this->contraryUrl; + } + + /** + * Sets contraryUrl + * + * @param string $contraryUrl + * @return IndividualApplyRequest + */ + public function setContraryUrl($contraryUrl) + { + $this->contraryUrl = $contraryUrl; + return $this; + } + + public static function getOperationId() + { + return 'individualApply'; + } + + +} diff --git a/lib/Service/Account/Model/IndividualApplyRequestMarshaller.php b/lib/Service/Account/Model/IndividualApplyRequestMarshaller.php new file mode 100644 index 0000000..1e0894c --- /dev/null +++ b/lib/Service/Account/Model/IndividualApplyRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string', 'enum')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getPhone() != null){ + $internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string')); + } + if($request->getFrontUrl() != null){ + $internalRequest->addParameter('frontUrl', ObjectSerializer::sanitizeForSerialization($request->getFrontUrl(), 'string')); + } + if($request->getContraryUrl() != null){ + $internalRequest->addParameter('contraryUrl', ObjectSerializer::sanitizeForSerialization($request->getContraryUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +IndividualApplyRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/IndividualApplyResponse.php b/lib/Service/Account/Model/IndividualApplyResponse.php new file mode 100644 index 0000000..f51ec9e --- /dev/null +++ b/lib/Service/Account/Model/IndividualApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ApplyIndividualRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/IndividualApplyResponseUnMarshaller.php b/lib/Service/Account/Model/IndividualApplyResponseUnMarshaller.php new file mode 100644 index 0000000..5b40974 --- /dev/null +++ b/lib/Service/Account/Model/IndividualApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'id' => 'int', + 'name' => 'string', + 'phone' => 'string', + 'certificateType' => 'string', + 'certificateNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'id' => 'int64', + 'name' => null, + 'phone' => null, + 'certificateType' => null, + 'certificateNo' => 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 = [ + 'merchantNo' => 'merchantNo', + 'id' => 'id', + 'name' => 'name', + 'phone' => 'phone', + 'certificateType' => 'certificateType', + 'certificateNo' => 'certificateNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'id' => 'setId', + 'name' => 'setName', + 'phone' => 'setPhone', + 'certificateType' => 'setCertificateType', + 'certificateNo' => 'setCertificateNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'id' => 'getId', + 'name' => 'getName', + 'phone' => 'getPhone', + 'certificateType' => 'getCertificateType', + 'certificateNo' => 'getCertificateNo' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['id'] = isset($data['id']) ? $data['id'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; + $this->container['certificateType'] = isset($data['certificateType']) ? $data['certificateType'] : null; + $this->container['certificateNo'] = isset($data['certificateNo']) ? $data['certificateNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['phone'] === null) { + $invalidProperties[] = "'phone' can't be null"; + } + if ($this->container['certificateType'] === null) { + $invalidProperties[] = "'certificateType' can't be null"; + } + if ($this->container['certificateNo'] === null) { + $invalidProperties[] = "'certificateNo' can't be null"; + } + 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 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 id + * + * @return int + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param int $id

收款方id

+ * + * @return $this + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name
个人姓名
+ * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->container['phone']; + } + + /** + * Sets phone + * + * @param string $phone

手机号

+ * + * @return $this + */ + public function setPhone($phone) + { + $this->container['phone'] = $phone; + + return $this; + } + + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->container['certificateType']; + } + + /** + * Sets certificateType + * + * @param string $certificateType

证件类型

+ * + * @return $this + */ + public function setCertificateType($certificateType) + { + $this->container['certificateType'] = $certificateType; + + return $this; + } + + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->container['certificateNo']; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo

证件号

+ * + * @return $this + */ + public function setCertificateNo($certificateNo) + { + $this->container['certificateNo'] = $certificateNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/IndividualQueryProgressRequest.php b/lib/Service/Account/Model/IndividualQueryProgressRequest.php new file mode 100644 index 0000000..35199c1 --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryProgressRequest.php @@ -0,0 +1,42 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return IndividualQueryProgressRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'individualQueryProgress'; + } + + +} diff --git a/lib/Service/Account/Model/IndividualQueryProgressRequestMarshaller.php b/lib/Service/Account/Model/IndividualQueryProgressRequestMarshaller.php new file mode 100644 index 0000000..daea63d --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryProgressRequestMarshaller.php @@ -0,0 +1,80 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +IndividualQueryProgressRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/IndividualQueryProgressResponse.php b/lib/Service/Account/Model/IndividualQueryProgressResponse.php new file mode 100644 index 0000000..e3a96c4 --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryProgressResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ApplyIndivdualProgressRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/IndividualQueryProgressResponseUnMarshaller.php b/lib/Service/Account/Model/IndividualQueryProgressResponseUnMarshaller.php new file mode 100644 index 0000000..d6e71c0 --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryProgressResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return IndividualQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'individualQuery'; + } + + +} diff --git a/lib/Service/Account/Model/IndividualQueryRequestMarshaller.php b/lib/Service/Account/Model/IndividualQueryRequestMarshaller.php new file mode 100644 index 0000000..bbe15f1 --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryRequestMarshaller.php @@ -0,0 +1,80 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +IndividualQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/IndividualQueryResponse.php b/lib/Service/Account/Model/IndividualQueryResponse.php new file mode 100644 index 0000000..780c701 --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryIndividualRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/IndividualQueryResponseUnMarshaller.php b/lib/Service/Account/Model/IndividualQueryResponseUnMarshaller.php new file mode 100644 index 0000000..f2a319a --- /dev/null +++ b/lib/Service/Account/Model/IndividualQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'bindCardType' => 'string', + 'bindCardNo' => 'string', + 'bindBankCode' => 'string', + 'bindAccountName' => 'string', + 'businessLicenceEffectiveDate' => 'string', + 'businessLicenceExpirationDate' => 'string', + 'legalLicenceEffectiveDate' => 'string', + 'legalLicenceExpirationDate' => 'string', + 'registerAddress' => 'string', + 'organizationNo' => 'string', + 'organizationStart' => 'string', + 'organizationNoEnd' => 'string', + 'taxNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accountType' => null, + 'bindCardType' => null, + 'bindCardNo' => null, + 'bindBankCode' => null, + 'bindAccountName' => null, + 'businessLicenceEffectiveDate' => null, + 'businessLicenceExpirationDate' => null, + 'legalLicenceEffectiveDate' => null, + 'legalLicenceExpirationDate' => null, + 'registerAddress' => null, + 'organizationNo' => null, + 'organizationStart' => null, + 'organizationNoEnd' => null, + 'taxNo' => 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', + 'bindCardType' => 'bindCardType', + 'bindCardNo' => 'bindCardNo', + 'bindBankCode' => 'bindBankCode', + 'bindAccountName' => 'bindAccountName', + 'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'businessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'legalLicenceExpirationDate', + 'registerAddress' => 'registerAddress', + 'organizationNo' => 'organizationNo', + 'organizationStart' => 'organizationStart', + 'organizationNoEnd' => 'organizationNoEnd', + 'taxNo' => 'taxNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountType' => 'setAccountType', + 'bindCardType' => 'setBindCardType', + 'bindCardNo' => 'setBindCardNo', + 'bindBankCode' => 'setBindBankCode', + 'bindAccountName' => 'setBindAccountName', + 'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate', + 'registerAddress' => 'setRegisterAddress', + 'organizationNo' => 'setOrganizationNo', + 'organizationStart' => 'setOrganizationStart', + 'organizationNoEnd' => 'setOrganizationNoEnd', + 'taxNo' => 'setTaxNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountType' => 'getAccountType', + 'bindCardType' => 'getBindCardType', + 'bindCardNo' => 'getBindCardNo', + 'bindBankCode' => 'getBindBankCode', + 'bindAccountName' => 'getBindAccountName', + 'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate', + 'registerAddress' => 'getRegisterAddress', + 'organizationNo' => 'getOrganizationNo', + 'organizationStart' => 'getOrganizationStart', + 'organizationNoEnd' => 'getOrganizationNoEnd', + 'taxNo' => 'getTaxNo' + ]; + + /** + * 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['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null; + $this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null; + $this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null; + $this->container['bindAccountName'] = isset($data['bindAccountName']) ? $data['bindAccountName'] : null; + $this->container['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null; + $this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null; + $this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null; + $this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null; + $this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null; + $this->container['organizationNo'] = isset($data['organizationNo']) ? $data['organizationNo'] : null; + $this->container['organizationStart'] = isset($data['organizationStart']) ? $data['organizationStart'] : null; + $this->container['organizationNoEnd'] = isset($data['organizationNoEnd']) ? $data['organizationNoEnd'] : null; + $this->container['taxNo'] = isset($data['taxNo']) ? $data['taxNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accountType'] === null) { + $invalidProperties[] = "'accountType' can't be null"; + } + if ($this->container['businessLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'businessLicenceEffectiveDate' can't be null"; + } + if ($this->container['businessLicenceExpirationDate'] === null) { + $invalidProperties[] = "'businessLicenceExpirationDate' can't be null"; + } + if ($this->container['legalLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'legalLicenceEffectiveDate' can't be null"; + } + if ($this->container['legalLicenceExpirationDate'] === null) { + $invalidProperties[] = "'legalLicenceExpirationDate' can't be null"; + } + if ($this->container['registerAddress'] === null) { + $invalidProperties[] = "'registerAddress' can't be null"; + } + 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 账户类型
可选项如下:
FUND_ACCOUNT:资金账户
ADVANCE_ACCOUNT:预收账户 + * + * @return $this + */ + public function setAccountType($accountType) + { + $this->container['accountType'] = $accountType; + + return $this; + } + + /** + * Gets bindCardType + * + * @return string + */ + public function getBindCardType() + { + return $this->container['bindCardType']; + } + + /** + * Sets bindCardType + * + * @param string $bindCardType 绑定卡类型
可选项如下:
PUBLIC_CARD:对公卡
PRIVATE_CARD:对私卡 + * + * @return $this + */ + public function setBindCardType($bindCardType) + { + $this->container['bindCardType'] = $bindCardType; + + return $this; + } + + /** + * Gets bindCardNo + * + * @return string + */ + public function getBindCardNo() + { + return $this->container['bindCardNo']; + } + + /** + * Sets bindCardNo + * + * @param string $bindCardNo 绑定银行卡号 + * + * @return $this + */ + public function setBindCardNo($bindCardNo) + { + $this->container['bindCardNo'] = $bindCardNo; + + return $this; + } + + /** + * Gets bindBankCode + * + * @return string + */ + public function getBindBankCode() + { + return $this->container['bindBankCode']; + } + + /** + * Sets bindBankCode + * + * @param string $bindBankCode 绑定银行编码 + * + * @return $this + */ + public function setBindBankCode($bindBankCode) + { + $this->container['bindBankCode'] = $bindBankCode; + + return $this; + } + + /** + * Gets bindAccountName + * + * @return string + */ + public function getBindAccountName() + { + return $this->container['bindAccountName']; + } + + /** + * Sets bindAccountName + * + * @param string $bindAccountName 绑定账户名称 + * + * @return $this + */ + public function setBindAccountName($bindAccountName) + { + $this->container['bindAccountName'] = $bindAccountName; + + return $this; + } + + /** + * Gets businessLicenceEffectiveDate + * + * @return string + */ + public function getBusinessLicenceEffectiveDate() + { + return $this->container['businessLicenceEffectiveDate']; + } + + /** + * Sets businessLicenceEffectiveDate + * + * @param string $businessLicenceEffectiveDate 营业执照生效日期
格式为yyyyMMdd + * + * @return $this + */ + public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate) + { + $this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate; + + return $this; + } + + /** + * Gets businessLicenceExpirationDate + * + * @return string + */ + public function getBusinessLicenceExpirationDate() + { + return $this->container['businessLicenceExpirationDate']; + } + + /** + * Sets businessLicenceExpirationDate + * + * @param string $businessLicenceExpirationDate 营业执照失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate) + { + $this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate; + + return $this; + } + + /** + * Gets legalLicenceEffectiveDate + * + * @return string + */ + public function getLegalLicenceEffectiveDate() + { + return $this->container['legalLicenceEffectiveDate']; + } + + /** + * Sets legalLicenceEffectiveDate + * + * @param string $legalLicenceEffectiveDate 法人证件生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate) + { + $this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate; + + return $this; + } + + /** + * Gets legalLicenceExpirationDate + * + * @return string + */ + public function getLegalLicenceExpirationDate() + { + return $this->container['legalLicenceExpirationDate']; + } + + /** + * Sets legalLicenceExpirationDate + * + * @param string $legalLicenceExpirationDate 法人证件失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setLegalLicenceExpirationDate($legalLicenceExpirationDate) + { + $this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate; + + return $this; + } + + /** + * Gets registerAddress + * + * @return string + */ + public function getRegisterAddress() + { + return $this->container['registerAddress']; + } + + /** + * Sets registerAddress + * + * @param string $registerAddress 商户注册地址不能超过512位 + * + * @return $this + */ + public function setRegisterAddress($registerAddress) + { + $this->container['registerAddress'] = $registerAddress; + + return $this; + } + + /** + * Gets organizationNo + * + * @return string + */ + public function getOrganizationNo() + { + return $this->container['organizationNo']; + } + + /** + * Sets organizationNo + * + * @param string $organizationNo 组织机构代码 + * + * @return $this + */ + public function setOrganizationNo($organizationNo) + { + $this->container['organizationNo'] = $organizationNo; + + return $this; + } + + /** + * Gets organizationStart + * + * @return string + */ + public function getOrganizationStart() + { + return $this->container['organizationStart']; + } + + /** + * Sets organizationStart + * + * @param string $organizationStart 组织机构代码生效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setOrganizationStart($organizationStart) + { + $this->container['organizationStart'] = $organizationStart; + + return $this; + } + + /** + * Gets organizationNoEnd + * + * @return string + */ + public function getOrganizationNoEnd() + { + return $this->container['organizationNoEnd']; + } + + /** + * Sets organizationNoEnd + * + * @param string $organizationNoEnd 组织机构代码失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setOrganizationNoEnd($organizationNoEnd) + { + $this->container['organizationNoEnd'] = $organizationNoEnd; + + return $this; + } + + /** + * Gets taxNo + * + * @return string + */ + public function getTaxNo() + { + return $this->container['taxNo']; + } + + /** + * Sets taxNo + * + * @param string $taxNo 税务登记号 + * + * @return $this + */ + public function setTaxNo($taxNo) + { + $this->container['taxNo'] = $taxNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/OpenAccountAuthApplyRespDTO.php b/lib/Service/Account/Model/OpenAccountAuthApplyRespDTO.php new file mode 100644 index 0000000..423a9d2 --- /dev/null +++ b/lib/Service/Account/Model/OpenAccountAuthApplyRespDTO.php @@ -0,0 +1,399 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => 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', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + '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['status'] = isset($data['status']) ? $data['status'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['returnCode'] === null) { + $invalidProperties[] = "'returnCode' can't be null"; + } + if ($this->container['requestNo'] === null) { + $invalidProperties[] = "'requestNo' can't be null"; + } + 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

返回码,响应成功时返回UA00000

+ * + * @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 status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status

响应状态:

SUCCESS 成功 FAIL 失败
+ * + * @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)); + } +} + + diff --git a/lib/Service/Account/Model/OpenAccountAuthConfirmRespDTO.php b/lib/Service/Account/Model/OpenAccountAuthConfirmRespDTO.php new file mode 100644 index 0000000..d3cd2b2 --- /dev/null +++ b/lib/Service/Account/Model/OpenAccountAuthConfirmRespDTO.php @@ -0,0 +1,402 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => 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', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + '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['status'] = isset($data['status']) ? $data['status'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['returnCode'] === null) { + $invalidProperties[] = "'returnCode' can't be null"; + } + if ($this->container['requestNo'] === null) { + $invalidProperties[] = "'requestNo' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + 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

返回码,响应成功时返回UA00000

+ * + * @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 status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status

响应状态:

SUCCESS 成功
FAIL 失败
+ * + * @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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchOrderBatchRemitExtInfoDTOParam.php b/lib/Service/Account/Model/PayBatchOrderBatchRemitExtInfoDTOParam.php new file mode 100644 index 0000000..6bedf83 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderBatchRemitExtInfoDTOParam.php @@ -0,0 +1,333 @@ + 'string', + 'terminalType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'requestIP' => null, + 'terminalType' => 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 = [ + 'requestIP' => 'requestIP', + 'terminalType' => 'terminalType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestIP' => 'setRequestIP', + 'terminalType' => 'setTerminalType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestIP' => 'getRequestIP', + 'terminalType' => 'getTerminalType' + ]; + + /** + * 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['requestIP'] = isset($data['requestIP']) ? $data['requestIP'] : null; + $this->container['terminalType'] = isset($data['terminalType']) ? $data['terminalType'] : 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 requestIP + * + * @return string + */ + public function getRequestIP() + { + return $this->container['requestIP']; + } + + /** + * Sets requestIP + * + * @param string $requestIP requestIP + * + * @return $this + */ + public function setRequestIP($requestIP) + { + $this->container['requestIP'] = $requestIP; + + return $this; + } + + /** + * Gets terminalType + * + * @return string + */ + public function getTerminalType() + { + return $this->container['terminalType']; + } + + /** + * Sets terminalType + * + * @param string $terminalType terminalType + * + * @return $this + */ + public function setTerminalType($terminalType) + { + $this->container['terminalType'] = $terminalType; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchOrderBatchRemitReqDTOParam.php b/lib/Service/Account/Model/PayBatchOrderBatchRemitReqDTOParam.php new file mode 100644 index 0000000..c962581 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderBatchRemitReqDTOParam.php @@ -0,0 +1,723 @@ + 'string', + 'saleProductCode' => 'string', + 'initiateMerchantNo' => 'string', + 'merchantNo' => 'string', + 'parentMerchantNo' => 'string', + 'batchNo' => 'string', + 'receiveType' => 'string', + 'detailList' => '\Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailDTOParam[]', + 'notifyUrl' => 'string', + 'requestSource' => 'string', + 'firstProductCode' => 'string', + 'secondProductCode' => 'string', + 'thirdProductCode' => 'string', + 'extInfoDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderBatchRemitExtInfoDTOParam', + 'skipErrorDetail' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'appKey' => null, + 'saleProductCode' => null, + 'initiateMerchantNo' => null, + 'merchantNo' => null, + 'parentMerchantNo' => null, + 'batchNo' => null, + 'receiveType' => null, + 'detailList' => null, + 'notifyUrl' => null, + 'requestSource' => null, + 'firstProductCode' => null, + 'secondProductCode' => null, + 'thirdProductCode' => null, + 'extInfoDTO' => null, + 'skipErrorDetail' => 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', + 'saleProductCode' => 'saleProductCode', + 'initiateMerchantNo' => 'initiateMerchantNo', + 'merchantNo' => 'merchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'batchNo' => 'batchNo', + 'receiveType' => 'receiveType', + 'detailList' => 'detailList', + 'notifyUrl' => 'notifyUrl', + 'requestSource' => 'requestSource', + 'firstProductCode' => 'firstProductCode', + 'secondProductCode' => 'secondProductCode', + 'thirdProductCode' => 'thirdProductCode', + 'extInfoDTO' => 'extInfoDTO', + 'skipErrorDetail' => 'skipErrorDetail' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'appKey' => 'setAppKey', + 'saleProductCode' => 'setSaleProductCode', + 'initiateMerchantNo' => 'setInitiateMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'batchNo' => 'setBatchNo', + 'receiveType' => 'setReceiveType', + 'detailList' => 'setDetailList', + 'notifyUrl' => 'setNotifyUrl', + 'requestSource' => 'setRequestSource', + 'firstProductCode' => 'setFirstProductCode', + 'secondProductCode' => 'setSecondProductCode', + 'thirdProductCode' => 'setThirdProductCode', + 'extInfoDTO' => 'setExtInfoDTO', + 'skipErrorDetail' => 'setSkipErrorDetail' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'appKey' => 'getAppKey', + 'saleProductCode' => 'getSaleProductCode', + 'initiateMerchantNo' => 'getInitiateMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'batchNo' => 'getBatchNo', + 'receiveType' => 'getReceiveType', + 'detailList' => 'getDetailList', + 'notifyUrl' => 'getNotifyUrl', + 'requestSource' => 'getRequestSource', + 'firstProductCode' => 'getFirstProductCode', + 'secondProductCode' => 'getSecondProductCode', + 'thirdProductCode' => 'getThirdProductCode', + 'extInfoDTO' => 'getExtInfoDTO', + 'skipErrorDetail' => 'getSkipErrorDetail' + ]; + + /** + * 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['saleProductCode'] = isset($data['saleProductCode']) ? $data['saleProductCode'] : null; + $this->container['initiateMerchantNo'] = isset($data['initiateMerchantNo']) ? $data['initiateMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['batchNo'] = isset($data['batchNo']) ? $data['batchNo'] : null; + $this->container['receiveType'] = isset($data['receiveType']) ? $data['receiveType'] : null; + $this->container['detailList'] = isset($data['detailList']) ? $data['detailList'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; + $this->container['requestSource'] = isset($data['requestSource']) ? $data['requestSource'] : null; + $this->container['firstProductCode'] = isset($data['firstProductCode']) ? $data['firstProductCode'] : null; + $this->container['secondProductCode'] = isset($data['secondProductCode']) ? $data['secondProductCode'] : null; + $this->container['thirdProductCode'] = isset($data['thirdProductCode']) ? $data['thirdProductCode'] : null; + $this->container['extInfoDTO'] = isset($data['extInfoDTO']) ? $data['extInfoDTO'] : null; + $this->container['skipErrorDetail'] = isset($data['skipErrorDetail']) ? $data['skipErrorDetail'] : 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 saleProductCode + * + * @return string + */ + public function getSaleProductCode() + { + return $this->container['saleProductCode']; + } + + /** + * Sets saleProductCode + * + * @param string $saleProductCode saleProductCode + * + * @return $this + */ + public function setSaleProductCode($saleProductCode) + { + $this->container['saleProductCode'] = $saleProductCode; + + 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 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 batchNo + * + * @return string + */ + public function getBatchNo() + { + return $this->container['batchNo']; + } + + /** + * Sets batchNo + * + * @param string $batchNo batchNo + * + * @return $this + */ + public function setBatchNo($batchNo) + { + $this->container['batchNo'] = $batchNo; + + return $this; + } + + /** + * Gets receiveType + * + * @return string + */ + public function getReceiveType() + { + return $this->container['receiveType']; + } + + /** + * Sets receiveType + * + * @param string $receiveType receiveType + * + * @return $this + */ + public function setReceiveType($receiveType) + { + $this->container['receiveType'] = $receiveType; + + return $this; + } + + /** + * Gets detailList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailDTOParam[] + */ + public function getDetailList() + { + return $this->container['detailList']; + } + + /** + * Sets detailList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailDTOParam[] $detailList detailList + * + * @return $this + */ + public function setDetailList($detailList) + { + $this->container['detailList'] = $detailList; + + 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 requestSource + * + * @return string + */ + public function getRequestSource() + { + return $this->container['requestSource']; + } + + /** + * Sets requestSource + * + * @param string $requestSource requestSource + * + * @return $this + */ + public function setRequestSource($requestSource) + { + $this->container['requestSource'] = $requestSource; + + return $this; + } + + /** + * Gets firstProductCode + * + * @return string + */ + public function getFirstProductCode() + { + return $this->container['firstProductCode']; + } + + /** + * Sets firstProductCode + * + * @param string $firstProductCode firstProductCode + * + * @return $this + */ + public function setFirstProductCode($firstProductCode) + { + $this->container['firstProductCode'] = $firstProductCode; + + return $this; + } + + /** + * Gets secondProductCode + * + * @return string + */ + public function getSecondProductCode() + { + return $this->container['secondProductCode']; + } + + /** + * Sets secondProductCode + * + * @param string $secondProductCode secondProductCode + * + * @return $this + */ + public function setSecondProductCode($secondProductCode) + { + $this->container['secondProductCode'] = $secondProductCode; + + return $this; + } + + /** + * Gets thirdProductCode + * + * @return string + */ + public function getThirdProductCode() + { + return $this->container['thirdProductCode']; + } + + /** + * Sets thirdProductCode + * + * @param string $thirdProductCode thirdProductCode + * + * @return $this + */ + public function setThirdProductCode($thirdProductCode) + { + $this->container['thirdProductCode'] = $thirdProductCode; + + return $this; + } + + /** + * Gets extInfoDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderBatchRemitExtInfoDTOParam + */ + public function getExtInfoDTO() + { + return $this->container['extInfoDTO']; + } + + /** + * Sets extInfoDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderBatchRemitExtInfoDTOParam $extInfoDTO extInfoDTO + * + * @return $this + */ + public function setExtInfoDTO($extInfoDTO) + { + $this->container['extInfoDTO'] = $extInfoDTO; + + return $this; + } + + /** + * Gets skipErrorDetail + * + * @return bool + */ + public function getSkipErrorDetail() + { + return $this->container['skipErrorDetail']; + } + + /** + * Sets skipErrorDetail + * + * @param bool $skipErrorDetail skipErrorDetail + * + * @return $this + */ + public function setSkipErrorDetail($skipErrorDetail) + { + $this->container['skipErrorDetail'] = $skipErrorDetail; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchOrderBatchRemitRespDTOResult.php b/lib/Service/Account/Model/PayBatchOrderBatchRemitRespDTOResult.php new file mode 100644 index 0000000..c8c9b21 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderBatchRemitRespDTOResult.php @@ -0,0 +1,422 @@ + 'string', + 'returnMsg' => 'string', + 'batchNo' => 'string', + 'batchErrorDetailList' => '\Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailRespDTOResult[]', + 'batchAcceptDetailList' => '\Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailRespDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'batchNo' => null, + 'batchErrorDetailList' => null, + 'batchAcceptDetailList' => 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', + 'batchNo' => 'batchNo', + 'batchErrorDetailList' => 'batchErrorDetailList', + 'batchAcceptDetailList' => 'batchAcceptDetailList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'batchNo' => 'setBatchNo', + 'batchErrorDetailList' => 'setBatchErrorDetailList', + 'batchAcceptDetailList' => 'setBatchAcceptDetailList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'batchNo' => 'getBatchNo', + 'batchErrorDetailList' => 'getBatchErrorDetailList', + 'batchAcceptDetailList' => 'getBatchAcceptDetailList' + ]; + + /** + * 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['batchNo'] = isset($data['batchNo']) ? $data['batchNo'] : null; + $this->container['batchErrorDetailList'] = isset($data['batchErrorDetailList']) ? $data['batchErrorDetailList'] : null; + $this->container['batchAcceptDetailList'] = isset($data['batchAcceptDetailList']) ? $data['batchAcceptDetailList'] : 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 batchNo + * + * @return string + */ + public function getBatchNo() + { + return $this->container['batchNo']; + } + + /** + * Sets batchNo + * + * @param string $batchNo 批次号 + * + * @return $this + */ + public function setBatchNo($batchNo) + { + $this->container['batchNo'] = $batchNo; + + return $this; + } + + /** + * Gets batchErrorDetailList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailRespDTOResult[] + */ + public function getBatchErrorDetailList() + { + return $this->container['batchErrorDetailList']; + } + + /** + * Sets batchErrorDetailList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailRespDTOResult[] $batchErrorDetailList 校验不通过明细 + * + * @return $this + */ + public function setBatchErrorDetailList($batchErrorDetailList) + { + $this->container['batchErrorDetailList'] = $batchErrorDetailList; + + return $this; + } + + /** + * Gets batchAcceptDetailList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailRespDTOResult[] + */ + public function getBatchAcceptDetailList() + { + return $this->container['batchAcceptDetailList']; + } + + /** + * Sets batchAcceptDetailList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchOrderRemitDetailRespDTOResult[] $batchAcceptDetailList 受理明细 + * + * @return $this + */ + public function setBatchAcceptDetailList($batchAcceptDetailList) + { + $this->container['batchAcceptDetailList'] = $batchAcceptDetailList; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchOrderRemitDetailDTOParam.php b/lib/Service/Account/Model/PayBatchOrderRemitDetailDTOParam.php new file mode 100644 index 0000000..34cb3b9 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderRemitDetailDTOParam.php @@ -0,0 +1,573 @@ + 'string', + 'receiverAccountNo' => 'string', + 'receiverAccountName' => 'string', + 'receiverBankCode' => 'string', + 'orderAmount' => 'float', + 'comments' => 'string', + 'bankAccountType' => 'string', + 'branchBankCode' => 'string', + 'feeChargeSide' => 'string', + 'remark' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'requestNo' => null, + 'receiverAccountNo' => null, + 'receiverAccountName' => null, + 'receiverBankCode' => null, + 'orderAmount' => null, + 'comments' => null, + 'bankAccountType' => null, + 'branchBankCode' => null, + 'feeChargeSide' => 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 = [ + 'requestNo' => 'requestNo', + 'receiverAccountNo' => 'receiverAccountNo', + 'receiverAccountName' => 'receiverAccountName', + 'receiverBankCode' => 'receiverBankCode', + 'orderAmount' => 'orderAmount', + 'comments' => 'comments', + 'bankAccountType' => 'bankAccountType', + 'branchBankCode' => 'branchBankCode', + 'feeChargeSide' => 'feeChargeSide', + 'remark' => 'remark' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestNo' => 'setRequestNo', + 'receiverAccountNo' => 'setReceiverAccountNo', + 'receiverAccountName' => 'setReceiverAccountName', + 'receiverBankCode' => 'setReceiverBankCode', + 'orderAmount' => 'setOrderAmount', + 'comments' => 'setComments', + 'bankAccountType' => 'setBankAccountType', + 'branchBankCode' => 'setBranchBankCode', + 'feeChargeSide' => 'setFeeChargeSide', + 'remark' => 'setRemark' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestNo' => 'getRequestNo', + 'receiverAccountNo' => 'getReceiverAccountNo', + 'receiverAccountName' => 'getReceiverAccountName', + 'receiverBankCode' => 'getReceiverBankCode', + 'orderAmount' => 'getOrderAmount', + 'comments' => 'getComments', + 'bankAccountType' => 'getBankAccountType', + 'branchBankCode' => 'getBranchBankCode', + 'feeChargeSide' => 'getFeeChargeSide', + '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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['comments'] = isset($data['comments']) ? $data['comments'] : null; + $this->container['bankAccountType'] = isset($data['bankAccountType']) ? $data['bankAccountType'] : null; + $this->container['branchBankCode'] = isset($data['branchBankCode']) ? $data['branchBankCode'] : null; + $this->container['feeChargeSide'] = isset($data['feeChargeSide']) ? $data['feeChargeSide'] : 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 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 receiverAccountNo + * + * @return string + */ + public function getReceiverAccountNo() + { + return $this->container['receiverAccountNo']; + } + + /** + * Sets receiverAccountNo + * + * @param string $receiverAccountNo 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 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 receiverBankCode + * + * @return $this + */ + public function setReceiverBankCode($receiverBankCode) + { + $this->container['receiverBankCode'] = $receiverBankCode; + + 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 comments + * + * @return string + */ + public function getComments() + { + return $this->container['comments']; + } + + /** + * Sets comments + * + * @param string $comments comments + * + * @return $this + */ + public function setComments($comments) + { + $this->container['comments'] = $comments; + + return $this; + } + + /** + * Gets bankAccountType + * + * @return string + */ + public function getBankAccountType() + { + return $this->container['bankAccountType']; + } + + /** + * Sets bankAccountType + * + * @param string $bankAccountType bankAccountType + * + * @return $this + */ + public function setBankAccountType($bankAccountType) + { + $this->container['bankAccountType'] = $bankAccountType; + + return $this; + } + + /** + * Gets branchBankCode + * + * @return string + */ + public function getBranchBankCode() + { + return $this->container['branchBankCode']; + } + + /** + * Sets branchBankCode + * + * @param string $branchBankCode branchBankCode + * + * @return $this + */ + public function setBranchBankCode($branchBankCode) + { + $this->container['branchBankCode'] = $branchBankCode; + + return $this; + } + + /** + * Gets feeChargeSide + * + * @return string + */ + public function getFeeChargeSide() + { + return $this->container['feeChargeSide']; + } + + /** + * Sets feeChargeSide + * + * @param string $feeChargeSide feeChargeSide + * + * @return $this + */ + public function setFeeChargeSide($feeChargeSide) + { + $this->container['feeChargeSide'] = $feeChargeSide; + + return $this; + } + + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->container['remark']; + } + + /** + * Sets remark + * + * @param string $remark 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchOrderRemitDetailRespDTOResult.php b/lib/Service/Account/Model/PayBatchOrderRemitDetailRespDTOResult.php new file mode 100644 index 0000000..f32055c --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderRemitDetailRespDTOResult.php @@ -0,0 +1,392 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'orderNo' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo' + ]; + + /** + * 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchOrderRequest.php b/lib/Service/Account/Model/PayBatchOrderRequest.php new file mode 100644 index 0000000..8bdf0c8 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return PayBatchOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'payBatchOrder'; + } + + +} diff --git a/lib/Service/Account/Model/PayBatchOrderRequestMarshaller.php b/lib/Service/Account/Model/PayBatchOrderRequestMarshaller.php new file mode 100644 index 0000000..a173d66 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PayBatchOrderRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/PayBatchOrderResponse.php b/lib/Service/Account/Model/PayBatchOrderResponse.php new file mode 100644 index 0000000..d365bc1 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PayBatchOrderBatchRemitRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/PayBatchOrderResponseUnMarshaller.php b/lib/Service/Account/Model/PayBatchOrderResponseUnMarshaller.php new file mode 100644 index 0000000..0aeed03 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'batchNo' => 'string', + 'batchStatus' => 'string', + 'remitOrderQueryDTOList' => '\Yeepay\Yop\Sdk\Service\Account\Model\PayBatchQueryRemitOrderQueryDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'batchNo' => null, + 'batchStatus' => null, + 'remitOrderQueryDTOList' => 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', + 'batchNo' => 'batchNo', + 'batchStatus' => 'batchStatus', + 'remitOrderQueryDTOList' => 'remitOrderQueryDTOList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'batchNo' => 'setBatchNo', + 'batchStatus' => 'setBatchStatus', + 'remitOrderQueryDTOList' => 'setRemitOrderQueryDTOList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'batchNo' => 'getBatchNo', + 'batchStatus' => 'getBatchStatus', + 'remitOrderQueryDTOList' => 'getRemitOrderQueryDTOList' + ]; + + /** + * 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['batchNo'] = isset($data['batchNo']) ? $data['batchNo'] : null; + $this->container['batchStatus'] = isset($data['batchStatus']) ? $data['batchStatus'] : null; + $this->container['remitOrderQueryDTOList'] = isset($data['remitOrderQueryDTOList']) ? $data['remitOrderQueryDTOList'] : 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 batchNo + * + * @return string + */ + public function getBatchNo() + { + return $this->container['batchNo']; + } + + /** + * Sets batchNo + * + * @param string $batchNo 批次号 + * + * @return $this + */ + public function setBatchNo($batchNo) + { + $this->container['batchNo'] = $batchNo; + + return $this; + } + + /** + * Gets batchStatus + * + * @return string + */ + public function getBatchStatus() + { + return $this->container['batchStatus']; + } + + /** + * Sets batchStatus + * + * @param string $batchStatus 批次状态 + * + * @return $this + */ + public function setBatchStatus($batchStatus) + { + $this->container['batchStatus'] = $batchStatus; + + return $this; + } + + /** + * Gets remitOrderQueryDTOList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchQueryRemitOrderQueryDTOResult[] + */ + public function getRemitOrderQueryDTOList() + { + return $this->container['remitOrderQueryDTOList']; + } + + /** + * Sets remitOrderQueryDTOList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\PayBatchQueryRemitOrderQueryDTOResult[] $remitOrderQueryDTOList 批次明细 + * + * @return $this + */ + public function setRemitOrderQueryDTOList($remitOrderQueryDTOList) + { + $this->container['remitOrderQueryDTOList'] = $remitOrderQueryDTOList; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchQueryRemitOrderQueryDTOResult.php b/lib/Service/Account/Model/PayBatchQueryRemitOrderQueryDTOResult.php new file mode 100644 index 0000000..a941af4 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchQueryRemitOrderQueryDTOResult.php @@ -0,0 +1,902 @@ + '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', + 'batchNo' => 'string', + 'cancelReason' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + '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', + 'batchNo' => null, + 'cancelReason' => 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', + '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', + 'batchNo' => 'batchNo', + 'cancelReason' => 'cancelReason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + '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', + 'batchNo' => 'setBatchNo', + 'cancelReason' => 'setCancelReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + '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', + 'batchNo' => 'getBatchNo', + 'cancelReason' => 'getCancelReason' + ]; + + /** + * 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['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; + $this->container['batchNo'] = isset($data['batchNo']) ? $data['batchNo'] : null; + $this->container['cancelReason'] = isset($data['cancelReason']) ? $data['cancelReason'] : 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 商户请求号 + * + * @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; + } + + /** + * Gets batchNo + * + * @return string + */ + public function getBatchNo() + { + return $this->container['batchNo']; + } + + /** + * Sets batchNo + * + * @param string $batchNo 批次号 + * + * @return $this + */ + public function setBatchNo($batchNo) + { + $this->container['batchNo'] = $batchNo; + + return $this; + } + + /** + * Gets cancelReason + * + * @return string + */ + public function getCancelReason() + { + return $this->container['cancelReason']; + } + + /** + * Sets cancelReason + * + * @param string $cancelReason 撤销原因 + * + * @return $this + */ + public function setCancelReason($cancelReason) + { + $this->container['cancelReason'] = $cancelReason; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/PayBatchQueryRequest.php b/lib/Service/Account/Model/PayBatchQueryRequest.php new file mode 100644 index 0000000..3ff28f1 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchQueryRequest.php @@ -0,0 +1,42 @@ +batchNo; + } + + /** + * Sets batchNo + * + * @param string $batchNo + * @return PayBatchQueryRequest + */ + public function setBatchNo($batchNo) + { + $this->batchNo = $batchNo; + return $this; + } + + public static function getOperationId() + { + return 'payBatchQuery'; + } + + +} diff --git a/lib/Service/Account/Model/PayBatchQueryRequestMarshaller.php b/lib/Service/Account/Model/PayBatchQueryRequestMarshaller.php new file mode 100644 index 0000000..6c1d1d5 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchQueryRequestMarshaller.php @@ -0,0 +1,80 @@ +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->getBatchNo() != null){ + $internalRequest->addParameter('batchNo', ObjectSerializer::sanitizeForSerialization($request->getBatchNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PayBatchQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/PayBatchQueryResponse.php b/lib/Service/Account/Model/PayBatchQueryResponse.php new file mode 100644 index 0000000..aec698c --- /dev/null +++ b/lib/Service/Account/Model/PayBatchQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PayBatchQueryBatchRemitQueryRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/PayBatchQueryResponseUnMarshaller.php b/lib/Service/Account/Model/PayBatchQueryResponseUnMarshaller.php new file mode 100644 index 0000000..5a23642 --- /dev/null +++ b/lib/Service/Account/Model/PayBatchQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + '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)); + } +} + + diff --git a/lib/Service/Account/Model/PaySystemQueryRequest.php b/lib/Service/Account/Model/PaySystemQueryRequest.php new file mode 100644 index 0000000..f68b8dd --- /dev/null +++ b/lib/Service/Account/Model/PaySystemQueryRequest.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return PaySystemQueryRequest + */ + 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 PaySystemQueryRequest + */ + 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 PaySystemQueryRequest + */ + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + return $this; + } + + public static function getOperationId() + { + return 'paySystemQuery'; + } + + +} diff --git a/lib/Service/Account/Model/PaySystemQueryRequestMarshaller.php b/lib/Service/Account/Model/PaySystemQueryRequestMarshaller.php new file mode 100644 index 0000000..fe64fa4 --- /dev/null +++ b/lib/Service/Account/Model/PaySystemQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderNo() != null){ + $internalRequest->addParameter('orderNo', ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PaySystemQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/PaySystemQueryResponse.php b/lib/Service/Account/Model/PaySystemQueryResponse.php new file mode 100644 index 0000000..ce102f1 --- /dev/null +++ b/lib/Service/Account/Model/PaySystemQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PaySystemQueryRemitOrderQueryRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/PaySystemQueryResponseUnMarshaller.php b/lib/Service/Account/Model/PaySystemQueryResponseUnMarshaller.php new file mode 100644 index 0000000..09f7ea9 --- /dev/null +++ b/lib/Service/Account/Model/PaySystemQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'resultList' => '\Yeepay\Yop\Sdk\Service\Account\Model\IndividualDTO[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'resultList' => 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', + 'resultList' => 'resultList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'resultList' => 'setResultList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'resultList' => 'getResultList' + ]; + + /** + * 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['resultList'] = isset($data['resultList']) ? $data['resultList'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['returnCode'] === null) { + $invalidProperties[] = "'returnCode' can't be null"; + } + 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

返回码,响应成功时返回UA00000

+ * + * @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 resultList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\IndividualDTO[] + */ + public function getResultList() + { + return $this->container['resultList']; + } + + /** + * Sets resultList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\IndividualDTO[] $resultList

返回详情

+ * + * @return $this + */ + public function setResultList($resultList) + { + $this->container['resultList'] = $resultList; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/ReceiptGatherBatchReceiptRespDTOResult.php b/lib/Service/Account/Model/ReceiptGatherBatchReceiptRespDTOResult.php new file mode 100644 index 0000000..12590cf --- /dev/null +++ b/lib/Service/Account/Model/ReceiptGatherBatchReceiptRespDTOResult.php @@ -0,0 +1,362 @@ + '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)); + } +} + + diff --git a/lib/Service/Account/Model/ReceiptGatherRequest.php b/lib/Service/Account/Model/ReceiptGatherRequest.php new file mode 100644 index 0000000..690f313 --- /dev/null +++ b/lib/Service/Account/Model/ReceiptGatherRequest.php @@ -0,0 +1,142 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return ReceiptGatherRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return ReceiptGatherRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets counterpartyNo + * + * @return string + */ + public function getCounterpartyNo() + { + return $this->counterpartyNo; + } + + /** + * Sets counterpartyNo + * + * @param string $counterpartyNo + * @return ReceiptGatherRequest + */ + public function setCounterpartyNo($counterpartyNo) + { + $this->counterpartyNo = $counterpartyNo; + return $this; + } + /** + * Gets orderNos + * + * @return string + */ + public function getOrderNos() + { + return $this->orderNos; + } + + /** + * Sets orderNos + * + * @param string $orderNos + * @return ReceiptGatherRequest + */ + public function setOrderNos($orderNos) + { + $this->orderNos = $orderNos; + return $this; + } + /** + * Gets bizDate + * + * @return string + */ + public function getBizDate() + { + return $this->bizDate; + } + + /** + * Sets bizDate + * + * @param string $bizDate + * @return ReceiptGatherRequest + */ + public function setBizDate($bizDate) + { + $this->bizDate = $bizDate; + return $this; + } + + public static function getOperationId() + { + return 'receiptGather'; + } + + +} diff --git a/lib/Service/Account/Model/ReceiptGatherRequestMarshaller.php b/lib/Service/Account/Model/ReceiptGatherRequestMarshaller.php new file mode 100644 index 0000000..7d176bd --- /dev/null +++ b/lib/Service/Account/Model/ReceiptGatherRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getCounterpartyNo() != null){ + $internalRequest->addParameter('counterpartyNo', ObjectSerializer::sanitizeForSerialization($request->getCounterpartyNo(), 'string')); + } + if($request->getOrderNos() != null){ + $internalRequest->addParameter('orderNos', ObjectSerializer::sanitizeForSerialization($request->getOrderNos(), 'string')); + } + if($request->getBizDate() != null){ + $internalRequest->addParameter('bizDate', ObjectSerializer::sanitizeForSerialization($request->getBizDate(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ReceiptGatherRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/ReceiptGatherResponse.php b/lib/Service/Account/Model/ReceiptGatherResponse.php new file mode 100644 index 0000000..1897db6 --- /dev/null +++ b/lib/Service/Account/Model/ReceiptGatherResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ReceiptGatherBatchReceiptRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/ReceiptGatherResponseUnMarshaller.php b/lib/Service/Account/Model/ReceiptGatherResponseUnMarshaller.php new file mode 100644 index 0000000..c3907f4 --- /dev/null +++ b/lib/Service/Account/Model/ReceiptGatherResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'merchantNo' => 'string', + 'orderAmount' => 'float', + 'creditAmount' => 'float', + 'fee' => 'float', + 'payType' => 'string', + 'bankCode' => 'string', + 'bankName' => 'string', + 'payerAccountNo' => 'string', + 'payerAccountName' => 'string', + 'remark' => 'string', + 'finishTime' => 'string', + 'reason' => 'string', + 'ypAccountBookNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'createTime' => null, + 'requestNo' => null, + 'orderNo' => null, + 'status' => null, + 'merchantNo' => null, + 'orderAmount' => null, + 'creditAmount' => null, + 'fee' => null, + 'payType' => null, + 'bankCode' => null, + 'bankName' => null, + 'payerAccountNo' => null, + 'payerAccountName' => null, + 'remark' => null, + 'finishTime' => null, + 'reason' => null, + 'ypAccountBookNo' => 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 = [ + 'createTime' => 'createTime', + 'requestNo' => 'requestNo', + 'orderNo' => 'orderNo', + 'status' => 'status', + 'merchantNo' => 'merchantNo', + 'orderAmount' => 'orderAmount', + 'creditAmount' => 'creditAmount', + 'fee' => 'fee', + 'payType' => 'payType', + 'bankCode' => 'bankCode', + 'bankName' => 'bankName', + 'payerAccountNo' => 'payerAccountNo', + 'payerAccountName' => 'payerAccountName', + 'remark' => 'remark', + 'finishTime' => 'finishTime', + 'reason' => 'reason', + 'ypAccountBookNo' => 'ypAccountBookNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'createTime' => 'setCreateTime', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'status' => 'setStatus', + 'merchantNo' => 'setMerchantNo', + 'orderAmount' => 'setOrderAmount', + 'creditAmount' => 'setCreditAmount', + 'fee' => 'setFee', + 'payType' => 'setPayType', + 'bankCode' => 'setBankCode', + 'bankName' => 'setBankName', + 'payerAccountNo' => 'setPayerAccountNo', + 'payerAccountName' => 'setPayerAccountName', + 'remark' => 'setRemark', + 'finishTime' => 'setFinishTime', + 'reason' => 'setReason', + 'ypAccountBookNo' => 'setYpAccountBookNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'createTime' => 'getCreateTime', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'status' => 'getStatus', + 'merchantNo' => 'getMerchantNo', + 'orderAmount' => 'getOrderAmount', + 'creditAmount' => 'getCreditAmount', + 'fee' => 'getFee', + 'payType' => 'getPayType', + 'bankCode' => 'getBankCode', + 'bankName' => 'getBankName', + 'payerAccountNo' => 'getPayerAccountNo', + 'payerAccountName' => 'getPayerAccountName', + 'remark' => 'getRemark', + 'finishTime' => 'getFinishTime', + 'reason' => 'getReason', + 'ypAccountBookNo' => 'getYpAccountBookNo' + ]; + + /** + * 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['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['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['reason'] = isset($data['reason']) ? $data['reason'] : null; + $this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : 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 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 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 reason + * + * @return string + */ + public function getReason() + { + return $this->container['reason']; + } + + /** + * Sets reason + * + * @param string $reason 失败原因 + * + * @return $this + */ + public function setReason($reason) + { + $this->container['reason'] = $reason; + + return $this; + } + + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->container['ypAccountBookNo']; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo 记账薄编号 + * + * @return $this + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->container['ypAccountBookNo'] = $ypAccountBookNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeAccountBookQueryRechargePageQueryResponseDTOResult.php b/lib/Service/Account/Model/RechargeAccountBookQueryRechargePageQueryResponseDTOResult.php new file mode 100644 index 0000000..2eac856 --- /dev/null +++ b/lib/Service/Account/Model/RechargeAccountBookQueryRechargePageQueryResponseDTOResult.php @@ -0,0 +1,392 @@ + 'string', + 'returnMsg' => 'string', + 'totalCount' => 'int', + 'list' => '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeAccountBookQueryRechargeOrderApiDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'totalCount' => 'int64', + 'list' => 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', + 'totalCount' => 'totalCount', + 'list' => 'list' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'totalCount' => 'setTotalCount', + 'list' => 'setList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'totalCount' => 'getTotalCount', + 'list' => 'getList' + ]; + + /** + * 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['totalCount'] = isset($data['totalCount']) ? $data['totalCount'] : null; + $this->container['list'] = isset($data['list']) ? $data['list'] : 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 totalCount + * + * @return int + */ + public function getTotalCount() + { + return $this->container['totalCount']; + } + + /** + * Sets totalCount + * + * @param int $totalCount 总笔数 + * + * @return $this + */ + public function setTotalCount($totalCount) + { + $this->container['totalCount'] = $totalCount; + + return $this; + } + + /** + * Gets list + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\RechargeAccountBookQueryRechargeOrderApiDtoResult[] + */ + public function getList() + { + return $this->container['list']; + } + + /** + * Sets list + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\RechargeAccountBookQueryRechargeOrderApiDtoResult[] $list 列表 + * + * @return $this + */ + public function setList($list) + { + $this->container['list'] = $list; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeAccountBookQueryRequest.php b/lib/Service/Account/Model/RechargeAccountBookQueryRequest.php new file mode 100644 index 0000000..9ae5b92 --- /dev/null +++ b/lib/Service/Account/Model/RechargeAccountBookQueryRequest.php @@ -0,0 +1,192 @@ +ypAccountBookNo; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo + * @return RechargeAccountBookQueryRequest + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->ypAccountBookNo = $ypAccountBookNo; + return $this; + } + /** + * Gets queryStartDate + * + * @return string + */ + public function getQueryStartDate() + { + return $this->queryStartDate; + } + + /** + * Sets queryStartDate + * + * @param string $queryStartDate + * @return RechargeAccountBookQueryRequest + */ + public function setQueryStartDate($queryStartDate) + { + $this->queryStartDate = $queryStartDate; + return $this; + } + /** + * Gets queryEndDate + * + * @return string + */ + public function getQueryEndDate() + { + return $this->queryEndDate; + } + + /** + * Sets queryEndDate + * + * @param string $queryEndDate + * @return RechargeAccountBookQueryRequest + */ + public function setQueryEndDate($queryEndDate) + { + $this->queryEndDate = $queryEndDate; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RechargeAccountBookQueryRequest + */ + 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 RechargeAccountBookQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return RechargeAccountBookQueryRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return RechargeAccountBookQueryRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + + public static function getOperationId() + { + return 'rechargeAccountBookQuery'; + } + + +} diff --git a/lib/Service/Account/Model/RechargeAccountBookQueryRequestMarshaller.php b/lib/Service/Account/Model/RechargeAccountBookQueryRequestMarshaller.php new file mode 100644 index 0000000..7fe5ac7 --- /dev/null +++ b/lib/Service/Account/Model/RechargeAccountBookQueryRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getYpAccountBookNo() != null){ + $internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string')); + } + if($request->getQueryStartDate() != null){ + $internalRequest->addParameter('queryStartDate', ObjectSerializer::sanitizeForSerialization($request->getQueryStartDate(), 'string')); + } + if($request->getQueryEndDate() != null){ + $internalRequest->addParameter('queryEndDate', ObjectSerializer::sanitizeForSerialization($request->getQueryEndDate(), 'string')); + } + 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->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeAccountBookQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/RechargeAccountBookQueryResponse.php b/lib/Service/Account/Model/RechargeAccountBookQueryResponse.php new file mode 100644 index 0000000..07d5199 --- /dev/null +++ b/lib/Service/Account/Model/RechargeAccountBookQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RechargeAccountBookQueryRechargePageQueryResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/RechargeAccountBookQueryResponseUnMarshaller.php b/lib/Service/Account/Model/RechargeAccountBookQueryResponseUnMarshaller.php new file mode 100644 index 0000000..b01e327 --- /dev/null +++ b/lib/Service/Account/Model/RechargeAccountBookQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'bankPayCertificate' => 'string', + 'userRequestIP' => 'string', + 'bankUsage' => 'string', + 'bankAccountNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bankCode' => null, + 'bankPayCertificate' => null, + 'userRequestIP' => null, + 'bankUsage' => null, + 'bankAccountNo' => 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 = [ + 'bankCode' => 'bankCode', + 'bankPayCertificate' => 'bankPayCertificate', + 'userRequestIP' => 'userRequestIP', + 'bankUsage' => 'bankUsage', + 'bankAccountNo' => 'bankAccountNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bankCode' => 'setBankCode', + 'bankPayCertificate' => 'setBankPayCertificate', + 'userRequestIP' => 'setUserRequestIP', + 'bankUsage' => 'setBankUsage', + 'bankAccountNo' => 'setBankAccountNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bankCode' => 'getBankCode', + 'bankPayCertificate' => 'getBankPayCertificate', + 'userRequestIP' => 'getUserRequestIP', + 'bankUsage' => 'getBankUsage', + 'bankAccountNo' => 'getBankAccountNo' + ]; + + /** + * 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['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['bankPayCertificate'] = isset($data['bankPayCertificate']) ? $data['bankPayCertificate'] : null; + $this->container['userRequestIP'] = isset($data['userRequestIP']) ? $data['userRequestIP'] : null; + $this->container['bankUsage'] = isset($data['bankUsage']) ? $data['bankUsage'] : null; + $this->container['bankAccountNo'] = isset($data['bankAccountNo']) ? $data['bankAccountNo'] : 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 bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string $bankCode bankCode + * + * @return $this + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + return $this; + } + + /** + * Gets bankPayCertificate + * + * @return string + */ + public function getBankPayCertificate() + { + return $this->container['bankPayCertificate']; + } + + /** + * Sets bankPayCertificate + * + * @param string $bankPayCertificate bankPayCertificate + * + * @return $this + */ + public function setBankPayCertificate($bankPayCertificate) + { + $this->container['bankPayCertificate'] = $bankPayCertificate; + + return $this; + } + + /** + * Gets userRequestIP + * + * @return string + */ + public function getUserRequestIP() + { + return $this->container['userRequestIP']; + } + + /** + * Sets userRequestIP + * + * @param string $userRequestIP userRequestIP + * + * @return $this + */ + public function setUserRequestIP($userRequestIP) + { + $this->container['userRequestIP'] = $userRequestIP; + + return $this; + } + + /** + * Gets bankUsage + * + * @return string + */ + public function getBankUsage() + { + return $this->container['bankUsage']; + } + + /** + * Sets bankUsage + * + * @param string $bankUsage bankUsage + * + * @return $this + */ + public function setBankUsage($bankUsage) + { + $this->container['bankUsage'] = $bankUsage; + + return $this; + } + + /** + * Gets bankAccountNo + * + * @return string + */ + public function getBankAccountNo() + { + return $this->container['bankAccountNo']; + } + + /** + * Sets bankAccountNo + * + * @param string $bankAccountNo bankAccountNo + * + * @return $this + */ + public function setBankAccountNo($bankAccountNo) + { + $this->container['bankAccountNo'] = $bankAccountNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeBatchQueryRechargeOrderApiDtoResult.php b/lib/Service/Account/Model/RechargeBatchQueryRechargeOrderApiDtoResult.php new file mode 100644 index 0000000..71dc6f1 --- /dev/null +++ b/lib/Service/Account/Model/RechargeBatchQueryRechargeOrderApiDtoResult.php @@ -0,0 +1,813 @@ + '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', + 'ypAccountBookNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'createTime' => null, + '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' => null, + 'failReason' => null, + 'ypAccountBookNo' => 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 = [ + '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', + 'ypAccountBookNo' => 'ypAccountBookNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + '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', + 'ypAccountBookNo' => 'setYpAccountBookNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + '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', + 'ypAccountBookNo' => 'getYpAccountBookNo' + ]; + + /** + * 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['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; + $this->container['ypAccountBookNo'] = isset($data['ypAccountBookNo']) ? $data['ypAccountBookNo'] : 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 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; + } + + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->container['ypAccountBookNo']; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo 记账薄编号 + * + * @return $this + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->container['ypAccountBookNo'] = $ypAccountBookNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeBatchQueryRechargeQueryMultiApiRespDTOResult.php b/lib/Service/Account/Model/RechargeBatchQueryRechargeQueryMultiApiRespDTOResult.php new file mode 100644 index 0000000..550a59d --- /dev/null +++ b/lib/Service/Account/Model/RechargeBatchQueryRechargeQueryMultiApiRespDTOResult.php @@ -0,0 +1,362 @@ + 'string', + 'returnMsg' => 'string', + 'list' => '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeBatchQueryRechargeOrderApiDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'list' => 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', + 'list' => 'list' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'list' => 'setList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'list' => 'getList' + ]; + + /** + * 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['list'] = isset($data['list']) ? $data['list'] : 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 list + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\RechargeBatchQueryRechargeOrderApiDtoResult[] + */ + public function getList() + { + return $this->container['list']; + } + + /** + * Sets list + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\RechargeBatchQueryRechargeOrderApiDtoResult[] $list 明细 + * + * @return $this + */ + public function setList($list) + { + $this->container['list'] = $list; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeBatchQueryRequest.php b/lib/Service/Account/Model/RechargeBatchQueryRequest.php new file mode 100644 index 0000000..a899079 --- /dev/null +++ b/lib/Service/Account/Model/RechargeBatchQueryRequest.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RechargeBatchQueryRequest + */ + 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 RechargeBatchQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets queryStartDate + * + * @return string + */ + public function getQueryStartDate() + { + return $this->queryStartDate; + } + + /** + * Sets queryStartDate + * + * @param string $queryStartDate + * @return RechargeBatchQueryRequest + */ + public function setQueryStartDate($queryStartDate) + { + $this->queryStartDate = $queryStartDate; + return $this; + } + /** + * Gets queryEndDate + * + * @return string + */ + public function getQueryEndDate() + { + return $this->queryEndDate; + } + + /** + * Sets queryEndDate + * + * @param string $queryEndDate + * @return RechargeBatchQueryRequest + */ + public function setQueryEndDate($queryEndDate) + { + $this->queryEndDate = $queryEndDate; + return $this; + } + + public static function getOperationId() + { + return 'rechargeBatchQuery'; + } + + +} diff --git a/lib/Service/Account/Model/RechargeBatchQueryRequestMarshaller.php b/lib/Service/Account/Model/RechargeBatchQueryRequestMarshaller.php new file mode 100644 index 0000000..2d60eaa --- /dev/null +++ b/lib/Service/Account/Model/RechargeBatchQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getQueryStartDate() != null){ + $internalRequest->addParameter('queryStartDate', ObjectSerializer::sanitizeForSerialization($request->getQueryStartDate(), 'string')); + } + if($request->getQueryEndDate() != null){ + $internalRequest->addParameter('queryEndDate', ObjectSerializer::sanitizeForSerialization($request->getQueryEndDate(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeBatchQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/RechargeBatchQueryResponse.php b/lib/Service/Account/Model/RechargeBatchQueryResponse.php new file mode 100644 index 0000000..0cbf49c --- /dev/null +++ b/lib/Service/Account/Model/RechargeBatchQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RechargeBatchQueryRechargeQueryMultiApiRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/RechargeBatchQueryResponseUnMarshaller.php b/lib/Service/Account/Model/RechargeBatchQueryResponseUnMarshaller.php new file mode 100644 index 0000000..8b7b158 --- /dev/null +++ b/lib/Service/Account/Model/RechargeBatchQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'redirectUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bankCode' => null, + 'redirectUrl' => 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 = [ + 'bankCode' => 'bankCode', + 'redirectUrl' => 'redirectUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bankCode' => 'setBankCode', + 'redirectUrl' => 'setRedirectUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bankCode' => 'getBankCode', + 'redirectUrl' => 'getRedirectUrl' + ]; + + /** + * 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['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['redirectUrl'] = isset($data['redirectUrl']) ? $data['redirectUrl'] : 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 bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string $bankCode bankCode + * + * @return $this + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + return $this; + } + + /** + * Gets redirectUrl + * + * @return string + */ + public function getRedirectUrl() + { + return $this->container['redirectUrl']; + } + + /** + * Sets redirectUrl + * + * @param string $redirectUrl redirectUrl + * + * @return $this + */ + public function setRedirectUrl($redirectUrl) + { + $this->container['redirectUrl'] = $redirectUrl; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeQuickPublicRequestDTOParam.php b/lib/Service/Account/Model/RechargeQuickPublicRequestDTOParam.php new file mode 100644 index 0000000..14f1229 --- /dev/null +++ b/lib/Service/Account/Model/RechargeQuickPublicRequestDTOParam.php @@ -0,0 +1,333 @@ + 'string', + 'bankCardNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bankCode' => null, + 'bankCardNo' => 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 = [ + 'bankCode' => 'bankCode', + 'bankCardNo' => 'bankCardNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bankCode' => 'setBankCode', + 'bankCardNo' => 'setBankCardNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bankCode' => 'getBankCode', + 'bankCardNo' => 'getBankCardNo' + ]; + + /** + * 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['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : 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 bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string $bankCode bankCode + * + * @return $this + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + return $this; + } + + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->container['bankCardNo']; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo bankCardNo + * + * @return $this + */ + public function setBankCardNo($bankCardNo) + { + $this->container['bankCardNo'] = $bankCardNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeRechargeApiV2RequestDTOParam.php b/lib/Service/Account/Model/RechargeRechargeApiV2RequestDTOParam.php new file mode 100644 index 0000000..77a4c6f --- /dev/null +++ b/lib/Service/Account/Model/RechargeRechargeApiV2RequestDTOParam.php @@ -0,0 +1,753 @@ + 'string', + 'initiateMerchantNo' => 'string', + 'parentMerchantNo' => 'string', + 'appKey' => 'string', + 'requestNo' => 'string', + 'payType' => 'string', + 'amount' => 'float', + 'accountType' => 'string', + 'remark' => 'string', + 'notifyUrl' => 'string', + 'marketProductCode' => 'string', + 'clientIp' => 'string', + 'feeType' => 'string', + 'requestExtParams4NetPay' => '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeEBankRequestDTOParam', + 'requestExtParams4BankPay' => '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeBankPayRequestDTOParam', + 'quickPublicRequestDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\RechargeQuickPublicRequestDTOParam' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'initiateMerchantNo' => null, + 'parentMerchantNo' => null, + 'appKey' => null, + 'requestNo' => null, + 'payType' => null, + 'amount' => null, + 'accountType' => null, + 'remark' => null, + 'notifyUrl' => null, + 'marketProductCode' => null, + 'clientIp' => null, + 'feeType' => null, + 'requestExtParams4NetPay' => null, + 'requestExtParams4BankPay' => null, + 'quickPublicRequestDTO' => 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 = [ + 'merchantNo' => 'merchantNo', + 'initiateMerchantNo' => 'initiateMerchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'appKey' => 'appKey', + 'requestNo' => 'requestNo', + 'payType' => 'payType', + 'amount' => 'amount', + 'accountType' => 'accountType', + 'remark' => 'remark', + 'notifyUrl' => 'notifyUrl', + 'marketProductCode' => 'marketProductCode', + 'clientIp' => 'clientIp', + 'feeType' => 'feeType', + 'requestExtParams4NetPay' => 'requestExtParams4NetPay', + 'requestExtParams4BankPay' => 'requestExtParams4BankPay', + 'quickPublicRequestDTO' => 'quickPublicRequestDTO' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'initiateMerchantNo' => 'setInitiateMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'appKey' => 'setAppKey', + 'requestNo' => 'setRequestNo', + 'payType' => 'setPayType', + 'amount' => 'setAmount', + 'accountType' => 'setAccountType', + 'remark' => 'setRemark', + 'notifyUrl' => 'setNotifyUrl', + 'marketProductCode' => 'setMarketProductCode', + 'clientIp' => 'setClientIp', + 'feeType' => 'setFeeType', + 'requestExtParams4NetPay' => 'setRequestExtParams4NetPay', + 'requestExtParams4BankPay' => 'setRequestExtParams4BankPay', + 'quickPublicRequestDTO' => 'setQuickPublicRequestDTO' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'initiateMerchantNo' => 'getInitiateMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'appKey' => 'getAppKey', + 'requestNo' => 'getRequestNo', + 'payType' => 'getPayType', + 'amount' => 'getAmount', + 'accountType' => 'getAccountType', + 'remark' => 'getRemark', + 'notifyUrl' => 'getNotifyUrl', + 'marketProductCode' => 'getMarketProductCode', + 'clientIp' => 'getClientIp', + 'feeType' => 'getFeeType', + 'requestExtParams4NetPay' => 'getRequestExtParams4NetPay', + 'requestExtParams4BankPay' => 'getRequestExtParams4BankPay', + 'quickPublicRequestDTO' => 'getQuickPublicRequestDTO' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['initiateMerchantNo'] = isset($data['initiateMerchantNo']) ? $data['initiateMerchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['payType'] = isset($data['payType']) ? $data['payType'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null; + $this->container['remark'] = isset($data['remark']) ? $data['remark'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; + $this->container['marketProductCode'] = isset($data['marketProductCode']) ? $data['marketProductCode'] : null; + $this->container['clientIp'] = isset($data['clientIp']) ? $data['clientIp'] : null; + $this->container['feeType'] = isset($data['feeType']) ? $data['feeType'] : null; + $this->container['requestExtParams4NetPay'] = isset($data['requestExtParams4NetPay']) ? $data['requestExtParams4NetPay'] : null; + $this->container['requestExtParams4BankPay'] = isset($data['requestExtParams4BankPay']) ? $data['requestExtParams4BankPay'] : null; + $this->container['quickPublicRequestDTO'] = isset($data['quickPublicRequestDTO']) ? $data['quickPublicRequestDTO'] : 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 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 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 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 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 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 payType + * + * @return string + */ + public function getPayType() + { + return $this->container['payType']; + } + + /** + * Sets payType + * + * @param string $payType payType + * + * @return $this + */ + public function setPayType($payType) + { + $this->container['payType'] = $payType; + + return $this; + } + + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param float $amount amount + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->container['accountType']; + } + + /** + * Sets accountType + * + * @param string $accountType accountType + * + * @return $this + */ + public function setAccountType($accountType) + { + $this->container['accountType'] = $accountType; + + return $this; + } + + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->container['remark']; + } + + /** + * Sets remark + * + * @param string $remark remark + * + * @return $this + */ + public function setRemark($remark) + { + $this->container['remark'] = $remark; + + 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 marketProductCode + * + * @return string + */ + public function getMarketProductCode() + { + return $this->container['marketProductCode']; + } + + /** + * Sets marketProductCode + * + * @param string $marketProductCode marketProductCode + * + * @return $this + */ + public function setMarketProductCode($marketProductCode) + { + $this->container['marketProductCode'] = $marketProductCode; + + return $this; + } + + /** + * Gets clientIp + * + * @return string + */ + public function getClientIp() + { + return $this->container['clientIp']; + } + + /** + * Sets clientIp + * + * @param string $clientIp clientIp + * + * @return $this + */ + public function setClientIp($clientIp) + { + $this->container['clientIp'] = $clientIp; + + return $this; + } + + /** + * Gets feeType + * + * @return string + */ + public function getFeeType() + { + return $this->container['feeType']; + } + + /** + * Sets feeType + * + * @param string $feeType feeType + * + * @return $this + */ + public function setFeeType($feeType) + { + $this->container['feeType'] = $feeType; + + return $this; + } + + /** + * Gets requestExtParams4NetPay + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\RechargeEBankRequestDTOParam + */ + public function getRequestExtParams4NetPay() + { + return $this->container['requestExtParams4NetPay']; + } + + /** + * Sets requestExtParams4NetPay + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\RechargeEBankRequestDTOParam $requestExtParams4NetPay requestExtParams4NetPay + * + * @return $this + */ + public function setRequestExtParams4NetPay($requestExtParams4NetPay) + { + $this->container['requestExtParams4NetPay'] = $requestExtParams4NetPay; + + return $this; + } + + /** + * Gets requestExtParams4BankPay + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\RechargeBankPayRequestDTOParam + */ + public function getRequestExtParams4BankPay() + { + return $this->container['requestExtParams4BankPay']; + } + + /** + * Sets requestExtParams4BankPay + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\RechargeBankPayRequestDTOParam $requestExtParams4BankPay requestExtParams4BankPay + * + * @return $this + */ + public function setRequestExtParams4BankPay($requestExtParams4BankPay) + { + $this->container['requestExtParams4BankPay'] = $requestExtParams4BankPay; + + return $this; + } + + /** + * Gets quickPublicRequestDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\RechargeQuickPublicRequestDTOParam + */ + public function getQuickPublicRequestDTO() + { + return $this->container['quickPublicRequestDTO']; + } + + /** + * Sets quickPublicRequestDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\RechargeQuickPublicRequestDTOParam $quickPublicRequestDTO quickPublicRequestDTO + * + * @return $this + */ + public function setQuickPublicRequestDTO($quickPublicRequestDTO) + { + $this->container['quickPublicRequestDTO'] = $quickPublicRequestDTO; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeRechargeApiV2ResponseDTOResult.php b/lib/Service/Account/Model/RechargeRechargeApiV2ResponseDTOResult.php new file mode 100644 index 0000000..e9747c5 --- /dev/null +++ b/lib/Service/Account/Model/RechargeRechargeApiV2ResponseDTOResult.php @@ -0,0 +1,542 @@ + 'string', + 'returnMsg' => 'string', + 'orderNo' => 'string', + 'requestNo' => 'string', + 'merchantNo' => 'string', + 'status' => 'string', + 'orderAmount' => 'float', + 'remitComment' => 'string', + '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, + 'remitComment' => 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', + 'remitComment' => 'remitComment', + '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', + 'remitComment' => 'setRemitComment', + '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', + 'remitComment' => 'getRemitComment', + '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['remitComment'] = isset($data['remitComment']) ? $data['remitComment'] : 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 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 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)); + } +} + + diff --git a/lib/Service/Account/Model/RechargeRequest.php b/lib/Service/Account/Model/RechargeRequest.php new file mode 100644 index 0000000..d23f6aa --- /dev/null +++ b/lib/Service/Account/Model/RechargeRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return RechargeRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'recharge'; + } + + +} diff --git a/lib/Service/Account/Model/RechargeRequestMarshaller.php b/lib/Service/Account/Model/RechargeRequestMarshaller.php new file mode 100644 index 0000000..87f69d8 --- /dev/null +++ b/lib/Service/Account/Model/RechargeRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/RechargeResponse.php b/lib/Service/Account/Model/RechargeResponse.php new file mode 100644 index 0000000..7fa2c8c --- /dev/null +++ b/lib/Service/Account/Model/RechargeResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RechargeRechargeApiV2ResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/RechargeResponseUnMarshaller.php b/lib/Service/Account/Model/RechargeResponseUnMarshaller.php new file mode 100644 index 0000000..15ccf57 --- /dev/null +++ b/lib/Service/Account/Model/RechargeResponseUnMarshaller.php @@ -0,0 +1,39 @@ +fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return SetWithdrawRuleRequest + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets tomerchantNo + * + * @return string + */ + public function getTomerchantNo() + { + return $this->tomerchantNo; + } + + /** + * Sets tomerchantNo + * + * @param string $tomerchantNo + * @return SetWithdrawRuleRequest + */ + public function setTomerchantNo($tomerchantNo) + { + $this->tomerchantNo = $tomerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'setWithdrawRule'; + } + + +} diff --git a/lib/Service/Account/Model/SetWithdrawRuleRequestMarshaller.php b/lib/Service/Account/Model/SetWithdrawRuleRequestMarshaller.php new file mode 100644 index 0000000..3689b6b --- /dev/null +++ b/lib/Service/Account/Model/SetWithdrawRuleRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getTomerchantNo() != null){ + $internalRequest->addParameter('tomerchantNo', ObjectSerializer::sanitizeForSerialization($request->getTomerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SetWithdrawRuleRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/SetWithdrawRuleResponse.php b/lib/Service/Account/Model/SetWithdrawRuleResponse.php new file mode 100644 index 0000000..b4a71f7 --- /dev/null +++ b/lib/Service/Account/Model/SetWithdrawRuleResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SetWithdrawRuleWithdrawRuleRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/SetWithdrawRuleResponseUnMarshaller.php b/lib/Service/Account/Model/SetWithdrawRuleResponseUnMarshaller.php new file mode 100644 index 0000000..327e39d --- /dev/null +++ b/lib/Service/Account/Model/SetWithdrawRuleResponseUnMarshaller.php @@ -0,0 +1,39 @@ + '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)); + } +} + + diff --git a/lib/Service/Account/Model/ShareHolderInfoReqDTO.php b/lib/Service/Account/Model/ShareHolderInfoReqDTO.php new file mode 100644 index 0000000..5ed88fb --- /dev/null +++ b/lib/Service/Account/Model/ShareHolderInfoReqDTO.php @@ -0,0 +1,438 @@ + 'string', + 'ownerIdType' => 'string', + 'ownerIdNo' => 'string', + 'ownerStartDate' => 'string', + 'ownerExpireDate' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'owner' => null, + 'ownerIdType' => null, + 'ownerIdNo' => null, + 'ownerStartDate' => null, + 'ownerExpireDate' => 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 = [ + 'owner' => 'owner', + 'ownerIdType' => 'ownerIdType', + 'ownerIdNo' => 'ownerIdNo', + 'ownerStartDate' => 'ownerStartDate', + 'ownerExpireDate' => 'ownerExpireDate' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'owner' => 'setOwner', + 'ownerIdType' => 'setOwnerIdType', + 'ownerIdNo' => 'setOwnerIdNo', + 'ownerStartDate' => 'setOwnerStartDate', + 'ownerExpireDate' => 'setOwnerExpireDate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'owner' => 'getOwner', + 'ownerIdType' => 'getOwnerIdType', + 'ownerIdNo' => 'getOwnerIdNo', + 'ownerStartDate' => 'getOwnerStartDate', + 'ownerExpireDate' => 'getOwnerExpireDate' + ]; + + /** + * 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['owner'] = isset($data['owner']) ? $data['owner'] : null; + $this->container['ownerIdType'] = isset($data['ownerIdType']) ? $data['ownerIdType'] : null; + $this->container['ownerIdNo'] = isset($data['ownerIdNo']) ? $data['ownerIdNo'] : null; + $this->container['ownerStartDate'] = isset($data['ownerStartDate']) ? $data['ownerStartDate'] : null; + $this->container['ownerExpireDate'] = isset($data['ownerExpireDate']) ? $data['ownerExpireDate'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['owner'] === null) { + $invalidProperties[] = "'owner' can't be null"; + } + if ($this->container['ownerIdType'] === null) { + $invalidProperties[] = "'ownerIdType' can't be null"; + } + if ($this->container['ownerIdNo'] === null) { + $invalidProperties[] = "'ownerIdNo' can't be null"; + } + if ($this->container['ownerStartDate'] === null) { + $invalidProperties[] = "'ownerStartDate' can't be null"; + } + if ($this->container['ownerExpireDate'] === null) { + $invalidProperties[] = "'ownerExpireDate' can't be null"; + } + 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 owner + * + * @return string + */ + public function getOwner() + { + return $this->container['owner']; + } + + /** + * Sets owner + * + * @param string $owner 股东/实际控制人名称 + * + * @return $this + */ + public function setOwner($owner) + { + $this->container['owner'] = $owner; + + return $this; + } + + /** + * Gets ownerIdType + * + * @return string + */ + public function getOwnerIdType() + { + return $this->container['ownerIdType']; + } + + /** + * Sets ownerIdType + * + * @param string $ownerIdType 股东/实际控制人证件类型
可选项如下:
ID_CARD:身份证 + * + * @return $this + */ + public function setOwnerIdType($ownerIdType) + { + $this->container['ownerIdType'] = $ownerIdType; + + return $this; + } + + /** + * Gets ownerIdNo + * + * @return string + */ + public function getOwnerIdNo() + { + return $this->container['ownerIdNo']; + } + + /** + * Sets ownerIdNo + * + * @param string $ownerIdNo 股东/实际控制人证件号
填写身份证号码 + * + * @return $this + */ + public function setOwnerIdNo($ownerIdNo) + { + $this->container['ownerIdNo'] = $ownerIdNo; + + return $this; + } + + /** + * Gets ownerStartDate + * + * @return string + */ + public function getOwnerStartDate() + { + return $this->container['ownerStartDate']; + } + + /** + * Sets ownerStartDate + * + * @param string $ownerStartDate 股东/实际控制人证件生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setOwnerStartDate($ownerStartDate) + { + $this->container['ownerStartDate'] = $ownerStartDate; + + return $this; + } + + /** + * Gets ownerExpireDate + * + * @return string + */ + public function getOwnerExpireDate() + { + return $this->container['ownerExpireDate']; + } + + /** + * Sets ownerExpireDate + * + * @param string $ownerExpireDate 股东/实际控制人证件失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setOwnerExpireDate($ownerExpireDate) + { + $this->container['ownerExpireDate'] = $ownerExpireDate; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/SnOpenAccountDTO.php b/lib/Service/Account/Model/SnOpenAccountDTO.php new file mode 100644 index 0000000..9c9bfd0 --- /dev/null +++ b/lib/Service/Account/Model/SnOpenAccountDTO.php @@ -0,0 +1,711 @@ + 'string', + 'bindCardType' => 'string', + 'bindCardNo' => 'string', + 'bindBankCode' => 'string', + 'bindAccountName' => 'string', + 'businessLicenceEffectiveDate' => 'string', + 'businessLicenceExpirationDate' => 'string', + 'legalLicenceEffectiveDate' => 'string', + 'legalLicenceExpirationDate' => 'string', + 'registerAddress' => 'string', + 'organizationNo' => 'string', + 'organizationStart' => 'string', + 'organizationNoEnd' => 'string', + 'taxNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accountType' => null, + 'bindCardType' => null, + 'bindCardNo' => null, + 'bindBankCode' => null, + 'bindAccountName' => null, + 'businessLicenceEffectiveDate' => null, + 'businessLicenceExpirationDate' => null, + 'legalLicenceEffectiveDate' => null, + 'legalLicenceExpirationDate' => null, + 'registerAddress' => null, + 'organizationNo' => null, + 'organizationStart' => null, + 'organizationNoEnd' => null, + 'taxNo' => 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', + 'bindCardType' => 'bindCardType', + 'bindCardNo' => 'bindCardNo', + 'bindBankCode' => 'bindBankCode', + 'bindAccountName' => 'bindAccountName', + 'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'businessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'legalLicenceExpirationDate', + 'registerAddress' => 'registerAddress', + 'organizationNo' => 'organizationNo', + 'organizationStart' => 'organizationStart', + 'organizationNoEnd' => 'organizationNoEnd', + 'taxNo' => 'taxNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountType' => 'setAccountType', + 'bindCardType' => 'setBindCardType', + 'bindCardNo' => 'setBindCardNo', + 'bindBankCode' => 'setBindBankCode', + 'bindAccountName' => 'setBindAccountName', + 'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate', + 'registerAddress' => 'setRegisterAddress', + 'organizationNo' => 'setOrganizationNo', + 'organizationStart' => 'setOrganizationStart', + 'organizationNoEnd' => 'setOrganizationNoEnd', + 'taxNo' => 'setTaxNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountType' => 'getAccountType', + 'bindCardType' => 'getBindCardType', + 'bindCardNo' => 'getBindCardNo', + 'bindBankCode' => 'getBindBankCode', + 'bindAccountName' => 'getBindAccountName', + 'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate', + 'registerAddress' => 'getRegisterAddress', + 'organizationNo' => 'getOrganizationNo', + 'organizationStart' => 'getOrganizationStart', + 'organizationNoEnd' => 'getOrganizationNoEnd', + 'taxNo' => 'getTaxNo' + ]; + + /** + * 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['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null; + $this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null; + $this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null; + $this->container['bindAccountName'] = isset($data['bindAccountName']) ? $data['bindAccountName'] : null; + $this->container['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null; + $this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null; + $this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null; + $this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null; + $this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null; + $this->container['organizationNo'] = isset($data['organizationNo']) ? $data['organizationNo'] : null; + $this->container['organizationStart'] = isset($data['organizationStart']) ? $data['organizationStart'] : null; + $this->container['organizationNoEnd'] = isset($data['organizationNoEnd']) ? $data['organizationNoEnd'] : null; + $this->container['taxNo'] = isset($data['taxNo']) ? $data['taxNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['accountType'] === null) { + $invalidProperties[] = "'accountType' can't be null"; + } + if ($this->container['businessLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'businessLicenceEffectiveDate' can't be null"; + } + if ($this->container['businessLicenceExpirationDate'] === null) { + $invalidProperties[] = "'businessLicenceExpirationDate' can't be null"; + } + if ($this->container['legalLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'legalLicenceEffectiveDate' can't be null"; + } + if ($this->container['legalLicenceExpirationDate'] === null) { + $invalidProperties[] = "'legalLicenceExpirationDate' can't be null"; + } + if ($this->container['registerAddress'] === null) { + $invalidProperties[] = "'registerAddress' can't be null"; + } + 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

账户类型
可选项如下:
FUND_ACCOUNT:资金账户
ADVANCE_ACCOUNT:预收账户

+ * + * @return $this + */ + public function setAccountType($accountType) + { + $this->container['accountType'] = $accountType; + + return $this; + } + + /** + * Gets bindCardType + * + * @return string + */ + public function getBindCardType() + { + return $this->container['bindCardType']; + } + + /** + * Sets bindCardType + * + * @param string $bindCardType

绑定卡类型
可选项如下:
PUBLIC_CARD:对公卡
PRIVATE_CARD:对私卡

+ * + * @return $this + */ + public function setBindCardType($bindCardType) + { + $this->container['bindCardType'] = $bindCardType; + + return $this; + } + + /** + * Gets bindCardNo + * + * @return string + */ + public function getBindCardNo() + { + return $this->container['bindCardNo']; + } + + /** + * Sets bindCardNo + * + * @param string $bindCardNo

绑定银行卡号

+ * + * @return $this + */ + public function setBindCardNo($bindCardNo) + { + $this->container['bindCardNo'] = $bindCardNo; + + return $this; + } + + /** + * Gets bindBankCode + * + * @return string + */ + public function getBindBankCode() + { + return $this->container['bindBankCode']; + } + + /** + * Sets bindBankCode + * + * @param string $bindBankCode

绑定银行编码

+ * + * @return $this + */ + public function setBindBankCode($bindBankCode) + { + $this->container['bindBankCode'] = $bindBankCode; + + return $this; + } + + /** + * Gets bindAccountName + * + * @return string + */ + public function getBindAccountName() + { + return $this->container['bindAccountName']; + } + + /** + * Sets bindAccountName + * + * @param string $bindAccountName

绑定账户名称

+ * + * @return $this + */ + public function setBindAccountName($bindAccountName) + { + $this->container['bindAccountName'] = $bindAccountName; + + return $this; + } + + /** + * Gets businessLicenceEffectiveDate + * + * @return string + */ + public function getBusinessLicenceEffectiveDate() + { + return $this->container['businessLicenceEffectiveDate']; + } + + /** + * Sets businessLicenceEffectiveDate + * + * @param string $businessLicenceEffectiveDate

营业执照生效日期
格式为yyyyMMdd

+ * + * @return $this + */ + public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate) + { + $this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate; + + return $this; + } + + /** + * Gets businessLicenceExpirationDate + * + * @return string + */ + public function getBusinessLicenceExpirationDate() + { + return $this->container['businessLicenceExpirationDate']; + } + + /** + * Sets businessLicenceExpirationDate + * + * @param string $businessLicenceExpirationDate

营业执照失效日期
参数格式为yyyyMMdd或者forever

+ * + * @return $this + */ + public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate) + { + $this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate; + + return $this; + } + + /** + * Gets legalLicenceEffectiveDate + * + * @return string + */ + public function getLegalLicenceEffectiveDate() + { + return $this->container['legalLicenceEffectiveDate']; + } + + /** + * Sets legalLicenceEffectiveDate + * + * @param string $legalLicenceEffectiveDate

法人证件生效日期
参数格式为yyyyMMdd

+ * + * @return $this + */ + public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate) + { + $this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate; + + return $this; + } + + /** + * Gets legalLicenceExpirationDate + * + * @return string + */ + public function getLegalLicenceExpirationDate() + { + return $this->container['legalLicenceExpirationDate']; + } + + /** + * Sets legalLicenceExpirationDate + * + * @param string $legalLicenceExpirationDate

法人证件失效日期
参数格式为yyyyMMdd或者forever

+ * + * @return $this + */ + public function setLegalLicenceExpirationDate($legalLicenceExpirationDate) + { + $this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate; + + return $this; + } + + /** + * Gets registerAddress + * + * @return string + */ + public function getRegisterAddress() + { + return $this->container['registerAddress']; + } + + /** + * Sets registerAddress + * + * @param string $registerAddress

商户注册地址

+ * + * @return $this + */ + public function setRegisterAddress($registerAddress) + { + $this->container['registerAddress'] = $registerAddress; + + return $this; + } + + /** + * Gets organizationNo + * + * @return string + */ + public function getOrganizationNo() + { + return $this->container['organizationNo']; + } + + /** + * Sets organizationNo + * + * @param string $organizationNo

组织机构代码

+ * + * @return $this + */ + public function setOrganizationNo($organizationNo) + { + $this->container['organizationNo'] = $organizationNo; + + return $this; + } + + /** + * Gets organizationStart + * + * @return string + */ + public function getOrganizationStart() + { + return $this->container['organizationStart']; + } + + /** + * Sets organizationStart + * + * @param string $organizationStart

组织机构代码生效日期
参数格式为yyyyMMdd或者forever

+ * + * @return $this + */ + public function setOrganizationStart($organizationStart) + { + $this->container['organizationStart'] = $organizationStart; + + return $this; + } + + /** + * Gets organizationNoEnd + * + * @return string + */ + public function getOrganizationNoEnd() + { + return $this->container['organizationNoEnd']; + } + + /** + * Sets organizationNoEnd + * + * @param string $organizationNoEnd

组织机构代码失效日期
参数格式为yyyyMMdd或者forever

+ * + * @return $this + */ + public function setOrganizationNoEnd($organizationNoEnd) + { + $this->container['organizationNoEnd'] = $organizationNoEnd; + + return $this; + } + + /** + * Gets taxNo + * + * @return string + */ + public function getTaxNo() + { + return $this->container['taxNo']; + } + + /** + * Sets taxNo + * + * @param string $taxNo

税务登记号

+ * + * @return $this + */ + public function setTaxNo($taxNo) + { + $this->container['taxNo'] = $taxNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/StandardOpenAccountQueryResponseDTO.php b/lib/Service/Account/Model/StandardOpenAccountQueryResponseDTO.php new file mode 100644 index 0000000..1ab8135 --- /dev/null +++ b/lib/Service/Account/Model/StandardOpenAccountQueryResponseDTO.php @@ -0,0 +1,633 @@ + 'string', + 'returnMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'bankAccountNo' => 'string', + 'bankCustomerNo' => 'string', + 'openRequestTime' => 'string', + 'openCompleteTime' => 'string', + 'failReason' => 'string', + 'authType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'orderNo' => null, + 'status' => null, + 'bankAccountNo' => null, + 'bankCustomerNo' => null, + 'openRequestTime' => null, + 'openCompleteTime' => null, + 'failReason' => null, + 'authType' => 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', + 'requestNo' => 'requestNo', + 'orderNo' => 'orderNo', + 'status' => 'status', + 'bankAccountNo' => 'bankAccountNo', + 'bankCustomerNo' => 'bankCustomerNo', + 'openRequestTime' => 'openRequestTime', + 'openCompleteTime' => 'openCompleteTime', + 'failReason' => 'failReason', + 'authType' => 'authType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'status' => 'setStatus', + 'bankAccountNo' => 'setBankAccountNo', + 'bankCustomerNo' => 'setBankCustomerNo', + 'openRequestTime' => 'setOpenRequestTime', + 'openCompleteTime' => 'setOpenCompleteTime', + 'failReason' => 'setFailReason', + 'authType' => 'setAuthType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'status' => 'getStatus', + 'bankAccountNo' => 'getBankAccountNo', + 'bankCustomerNo' => 'getBankCustomerNo', + 'openRequestTime' => 'getOpenRequestTime', + 'openCompleteTime' => 'getOpenCompleteTime', + 'failReason' => 'getFailReason', + 'authType' => 'getAuthType' + ]; + + /** + * 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['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['bankAccountNo'] = isset($data['bankAccountNo']) ? $data['bankAccountNo'] : null; + $this->container['bankCustomerNo'] = isset($data['bankCustomerNo']) ? $data['bankCustomerNo'] : null; + $this->container['openRequestTime'] = isset($data['openRequestTime']) ? $data['openRequestTime'] : null; + $this->container['openCompleteTime'] = isset($data['openCompleteTime']) ? $data['openCompleteTime'] : null; + $this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : null; + $this->container['authType'] = isset($data['authType']) ? $data['authType'] : 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 返回状态码AM00000 成功,其他请参考错误码 + * + * @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 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 开户状态
可选项如下:
SUCCESS:成功
FAIL:失败
PROCESS:请求已受理 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + 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 bankCustomerNo + * + * @return string + */ + public function getBankCustomerNo() + { + return $this->container['bankCustomerNo']; + } + + /** + * Sets bankCustomerNo + * + * @param string $bankCustomerNo

银行客户号(成功时返回)
此字段是银行收款所需账号,替换外部结算卡时请替换为此银行客户号,银行才能正常接收商户结算资金。

+ * + * @return $this + */ + public function setBankCustomerNo($bankCustomerNo) + { + $this->container['bankCustomerNo'] = $bankCustomerNo; + + return $this; + } + + /** + * Gets openRequestTime + * + * @return string + */ + public function getOpenRequestTime() + { + return $this->container['openRequestTime']; + } + + /** + * Sets openRequestTime + * + * @param string $openRequestTime 开户请求时间
格式:yyyy-MM-dd HH:mm:ss + * + * @return $this + */ + public function setOpenRequestTime($openRequestTime) + { + $this->container['openRequestTime'] = $openRequestTime; + + return $this; + } + + /** + * Gets openCompleteTime + * + * @return string + */ + public function getOpenCompleteTime() + { + return $this->container['openCompleteTime']; + } + + /** + * Sets openCompleteTime + * + * @param string $openCompleteTime 开户完成时间(成功时返回)
格式:yyyy-MM-dd HH:mm:ss + * + * @return $this + */ + public function setOpenCompleteTime($openCompleteTime) + { + $this->container['openCompleteTime'] = $openCompleteTime; + + 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 authType + * + * @return string + */ + public function getAuthType() + { + return $this->container['authType']; + } + + /** + * Sets authType + * + * @param string $authType 额外认证方式
可选项如下:
NO_AUTH:无须认证
SHORT_MSG_AUTH:短信认证 + * + * @return $this + */ + public function setAuthType($authType) + { + $this->container['authType'] = $authType; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/StandardOpenAccountRequestDTO.php b/lib/Service/Account/Model/StandardOpenAccountRequestDTO.php new file mode 100644 index 0000000..b2863f7 --- /dev/null +++ b/lib/Service/Account/Model/StandardOpenAccountRequestDTO.php @@ -0,0 +1,711 @@ + 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantName' => 'string', + 'openBankCode' => 'string', + 'certificateType' => 'string', + 'certificateNo' => 'string', + 'notifyUrl' => 'string', + 'xibOpenAccountDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\XibOpenAccountDTO', + 'htbOpenAccountDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\HtbOpenAccountDTO', + 'jsbcOpenAccountDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\JsbcOpenAccountDTO', + 'whzbbOpenAccountDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\WhzbbOpenAccountDTO', + 'xwbOpenAccountDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\XwbOpenAccountDTO', + 'snOpenAccountDTO' => '\Yeepay\Yop\Sdk\Service\Account\Model\SnOpenAccountDTO' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'requestNo' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantName' => null, + 'openBankCode' => null, + 'certificateType' => null, + 'certificateNo' => null, + 'notifyUrl' => null, + 'xibOpenAccountDTO' => null, + 'htbOpenAccountDTO' => null, + 'jsbcOpenAccountDTO' => null, + 'whzbbOpenAccountDTO' => null, + 'xwbOpenAccountDTO' => null, + 'snOpenAccountDTO' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantName' => 'merchantName', + 'openBankCode' => 'openBankCode', + 'certificateType' => 'certificateType', + 'certificateNo' => 'certificateNo', + 'notifyUrl' => 'notifyUrl', + 'xibOpenAccountDTO' => 'xibOpenAccountDTO', + 'htbOpenAccountDTO' => 'htbOpenAccountDTO', + 'jsbcOpenAccountDTO' => 'jsbcOpenAccountDTO', + 'whzbbOpenAccountDTO' => 'whzbbOpenAccountDTO', + 'xwbOpenAccountDTO' => 'xwbOpenAccountDTO', + 'snOpenAccountDTO' => 'snOpenAccountDTO' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestNo' => 'setRequestNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantName' => 'setMerchantName', + 'openBankCode' => 'setOpenBankCode', + 'certificateType' => 'setCertificateType', + 'certificateNo' => 'setCertificateNo', + 'notifyUrl' => 'setNotifyUrl', + 'xibOpenAccountDTO' => 'setXibOpenAccountDTO', + 'htbOpenAccountDTO' => 'setHtbOpenAccountDTO', + 'jsbcOpenAccountDTO' => 'setJsbcOpenAccountDTO', + 'whzbbOpenAccountDTO' => 'setWhzbbOpenAccountDTO', + 'xwbOpenAccountDTO' => 'setXwbOpenAccountDTO', + 'snOpenAccountDTO' => 'setSnOpenAccountDTO' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestNo' => 'getRequestNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantName' => 'getMerchantName', + 'openBankCode' => 'getOpenBankCode', + 'certificateType' => 'getCertificateType', + 'certificateNo' => 'getCertificateNo', + 'notifyUrl' => 'getNotifyUrl', + 'xibOpenAccountDTO' => 'getXibOpenAccountDTO', + 'htbOpenAccountDTO' => 'getHtbOpenAccountDTO', + 'jsbcOpenAccountDTO' => 'getJsbcOpenAccountDTO', + 'whzbbOpenAccountDTO' => 'getWhzbbOpenAccountDTO', + 'xwbOpenAccountDTO' => 'getXwbOpenAccountDTO', + 'snOpenAccountDTO' => 'getSnOpenAccountDTO' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantName'] = isset($data['merchantName']) ? $data['merchantName'] : null; + $this->container['openBankCode'] = isset($data['openBankCode']) ? $data['openBankCode'] : null; + $this->container['certificateType'] = isset($data['certificateType']) ? $data['certificateType'] : null; + $this->container['certificateNo'] = isset($data['certificateNo']) ? $data['certificateNo'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; + $this->container['xibOpenAccountDTO'] = isset($data['xibOpenAccountDTO']) ? $data['xibOpenAccountDTO'] : null; + $this->container['htbOpenAccountDTO'] = isset($data['htbOpenAccountDTO']) ? $data['htbOpenAccountDTO'] : null; + $this->container['jsbcOpenAccountDTO'] = isset($data['jsbcOpenAccountDTO']) ? $data['jsbcOpenAccountDTO'] : null; + $this->container['whzbbOpenAccountDTO'] = isset($data['whzbbOpenAccountDTO']) ? $data['whzbbOpenAccountDTO'] : null; + $this->container['xwbOpenAccountDTO'] = isset($data['xwbOpenAccountDTO']) ? $data['xwbOpenAccountDTO'] : null; + $this->container['snOpenAccountDTO'] = isset($data['snOpenAccountDTO']) ? $data['snOpenAccountDTO'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['requestNo'] === null) { + $invalidProperties[] = "'requestNo' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['merchantName'] === null) { + $invalidProperties[] = "'merchantName' can't be null"; + } + if ($this->container['openBankCode'] === null) { + $invalidProperties[] = "'openBankCode' can't be null"; + } + if ($this->container['notifyUrl'] === null) { + $invalidProperties[] = "'notifyUrl' can't be null"; + } + 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 商户订单号 + * + * @return $this + */ + public function setRequestNo($requestNo) + { + $this->container['requestNo'] = $requestNo; + + return $this; + } + + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号
易宝支付分配的的商户唯一标识 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantName + * + * @return string + */ + public function getMerchantName() + { + return $this->container['merchantName']; + } + + /** + * Sets merchantName + * + * @param string $merchantName 商编名称
请传商户编号对应的商户签约名,与营业执照保持一致 + * + * @return $this + */ + public function setMerchantName($merchantName) + { + $this->container['merchantName'] = $merchantName; + + return $this; + } + + /** + * Gets openBankCode + * + * @return string + */ + public function getOpenBankCode() + { + return $this->container['openBankCode']; + } + + /** + * Sets openBankCode + * + * @param string $openBankCode

开户银行编码
可选项如下:
XIB
FJHTB
JSBCHINA
WHZBB
XWB

SUNINGBANK
+ * + * @return $this + */ + public function setOpenBankCode($openBankCode) + { + $this->container['openBankCode'] = $openBankCode; + + return $this; + } + + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->container['certificateType']; + } + + /** + * Sets certificateType + * + * @param string $certificateType 证件类型
可选项如下:
BUSINESS_LICENCE:营业执照
(银行编码为XIB,FJHTB,WHZBB,XWB时必填) + * + * @return $this + */ + public function setCertificateType($certificateType) + { + $this->container['certificateType'] = $certificateType; + + return $this; + } + + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->container['certificateNo']; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo 证件号
(银行编码为XIB,FJHTB,WHZBB,XWB时必填) + * + * @return $this + */ + public function setCertificateNo($certificateNo) + { + $this->container['certificateNo'] = $certificateNo; + + return $this; + } + + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->container['notifyUrl']; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl 回调通知地址
回调内容请参看:开立银行账户结果通知 + * + * @return $this + */ + public function setNotifyUrl($notifyUrl) + { + $this->container['notifyUrl'] = $notifyUrl; + + return $this; + } + + /** + * Gets xibOpenAccountDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\XibOpenAccountDTO + */ + public function getXibOpenAccountDTO() + { + return $this->container['xibOpenAccountDTO']; + } + + /** + * Sets xibOpenAccountDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\XibOpenAccountDTO $xibOpenAccountDTO xibOpenAccountDTO + * + * @return $this + */ + public function setXibOpenAccountDTO($xibOpenAccountDTO) + { + $this->container['xibOpenAccountDTO'] = $xibOpenAccountDTO; + + return $this; + } + + /** + * Gets htbOpenAccountDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\HtbOpenAccountDTO + */ + public function getHtbOpenAccountDTO() + { + return $this->container['htbOpenAccountDTO']; + } + + /** + * Sets htbOpenAccountDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\HtbOpenAccountDTO $htbOpenAccountDTO htbOpenAccountDTO + * + * @return $this + */ + public function setHtbOpenAccountDTO($htbOpenAccountDTO) + { + $this->container['htbOpenAccountDTO'] = $htbOpenAccountDTO; + + return $this; + } + + /** + * Gets jsbcOpenAccountDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\JsbcOpenAccountDTO + */ + public function getJsbcOpenAccountDTO() + { + return $this->container['jsbcOpenAccountDTO']; + } + + /** + * Sets jsbcOpenAccountDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\JsbcOpenAccountDTO $jsbcOpenAccountDTO jsbcOpenAccountDTO + * + * @return $this + */ + public function setJsbcOpenAccountDTO($jsbcOpenAccountDTO) + { + $this->container['jsbcOpenAccountDTO'] = $jsbcOpenAccountDTO; + + return $this; + } + + /** + * Gets whzbbOpenAccountDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\WhzbbOpenAccountDTO + */ + public function getWhzbbOpenAccountDTO() + { + return $this->container['whzbbOpenAccountDTO']; + } + + /** + * Sets whzbbOpenAccountDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\WhzbbOpenAccountDTO $whzbbOpenAccountDTO whzbbOpenAccountDTO + * + * @return $this + */ + public function setWhzbbOpenAccountDTO($whzbbOpenAccountDTO) + { + $this->container['whzbbOpenAccountDTO'] = $whzbbOpenAccountDTO; + + return $this; + } + + /** + * Gets xwbOpenAccountDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\XwbOpenAccountDTO + */ + public function getXwbOpenAccountDTO() + { + return $this->container['xwbOpenAccountDTO']; + } + + /** + * Sets xwbOpenAccountDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\XwbOpenAccountDTO $xwbOpenAccountDTO xwbOpenAccountDTO + * + * @return $this + */ + public function setXwbOpenAccountDTO($xwbOpenAccountDTO) + { + $this->container['xwbOpenAccountDTO'] = $xwbOpenAccountDTO; + + return $this; + } + + /** + * Gets snOpenAccountDTO + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\SnOpenAccountDTO + */ + public function getSnOpenAccountDTO() + { + return $this->container['snOpenAccountDTO']; + } + + /** + * Sets snOpenAccountDTO + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\SnOpenAccountDTO $snOpenAccountDTO snOpenAccountDTO + * + * @return $this + */ + public function setSnOpenAccountDTO($snOpenAccountDTO) + { + $this->container['snOpenAccountDTO'] = $snOpenAccountDTO; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/StandardOpenAccountResponseDTO.php b/lib/Service/Account/Model/StandardOpenAccountResponseDTO.php new file mode 100644 index 0000000..c79646d --- /dev/null +++ b/lib/Service/Account/Model/StandardOpenAccountResponseDTO.php @@ -0,0 +1,483 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'signUrl' => 'string', + 'authType' => '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, + 'signUrl' => null, + 'authType' => 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', + 'signUrl' => 'signUrl', + 'authType' => 'authType' + ]; + + /** + * 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', + 'signUrl' => 'setSignUrl', + 'authType' => 'setAuthType' + ]; + + /** + * 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', + 'signUrl' => 'getSignUrl', + 'authType' => 'getAuthType' + ]; + + /** + * 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; + $this->container['signUrl'] = isset($data['signUrl']) ? $data['signUrl'] : null; + $this->container['authType'] = isset($data['authType']) ? $data['authType'] : 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 返回状态码
AM00000 成功,其他请参考错误码 + * + * @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 开户状态
可选项如下:
PROCESS:请求已受理
FAIL:失败 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets signUrl + * + * @return string + */ + public function getSignUrl() + { + return $this->container['signUrl']; + } + + /** + * Sets signUrl + * + * @param string $signUrl 签约地址 + * + * @return $this + */ + public function setSignUrl($signUrl) + { + $this->container['signUrl'] = $signUrl; + + return $this; + } + + /** + * Gets authType + * + * @return string + */ + public function getAuthType() + { + return $this->container['authType']; + } + + /** + * Sets authType + * + * @param string $authType 额外认证类型
可选项如下:
NO_AUTH:无须认证
SHORT_MSG_AUTH:短信认证 + * + * @return $this + */ + public function setAuthType($authType) + { + $this->container['authType'] = $authType; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/TransferSystemQueryMgTransferOrderQueryRespDTOResult.php b/lib/Service/Account/Model/TransferSystemQueryMgTransferOrderQueryRespDTOResult.php new file mode 100644 index 0000000..105b448 --- /dev/null +++ b/lib/Service/Account/Model/TransferSystemQueryMgTransferOrderQueryRespDTOResult.php @@ -0,0 +1,752 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'orderAmount' => 'string', + 'transferType' => 'string', + 'fromMerchantNo' => 'string', + 'toMerchantNo' => 'string', + 'transferStatus' => 'string', + 'usage' => 'string', + 'fee' => 'string', + 'createTime' => 'string', + 'finishTime' => 'string', + 'debitAmount' => 'string', + 'receiveAmount' => 'string', + 'feeMerchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'orderNo' => null, + 'orderAmount' => null, + 'transferType' => null, + 'fromMerchantNo' => null, + 'toMerchantNo' => null, + 'transferStatus' => null, + 'usage' => null, + 'fee' => null, + 'createTime' => null, + 'finishTime' => null, + 'debitAmount' => null, + 'receiveAmount' => null, + 'feeMerchantNo' => 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', + 'orderAmount' => 'orderAmount', + 'transferType' => 'transferType', + 'fromMerchantNo' => 'fromMerchantNo', + 'toMerchantNo' => 'toMerchantNo', + 'transferStatus' => 'transferStatus', + 'usage' => 'usage', + 'fee' => 'fee', + 'createTime' => 'createTime', + 'finishTime' => 'finishTime', + 'debitAmount' => 'debitAmount', + 'receiveAmount' => 'receiveAmount', + 'feeMerchantNo' => 'feeMerchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'orderAmount' => 'setOrderAmount', + 'transferType' => 'setTransferType', + 'fromMerchantNo' => 'setFromMerchantNo', + 'toMerchantNo' => 'setToMerchantNo', + 'transferStatus' => 'setTransferStatus', + 'usage' => 'setUsage', + 'fee' => 'setFee', + 'createTime' => 'setCreateTime', + 'finishTime' => 'setFinishTime', + 'debitAmount' => 'setDebitAmount', + 'receiveAmount' => 'setReceiveAmount', + 'feeMerchantNo' => 'setFeeMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'orderAmount' => 'getOrderAmount', + 'transferType' => 'getTransferType', + 'fromMerchantNo' => 'getFromMerchantNo', + 'toMerchantNo' => 'getToMerchantNo', + 'transferStatus' => 'getTransferStatus', + 'usage' => 'getUsage', + 'fee' => 'getFee', + 'createTime' => 'getCreateTime', + 'finishTime' => 'getFinishTime', + 'debitAmount' => 'getDebitAmount', + 'receiveAmount' => 'getReceiveAmount', + 'feeMerchantNo' => 'getFeeMerchantNo' + ]; + + /** + * 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['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['transferType'] = isset($data['transferType']) ? $data['transferType'] : null; + $this->container['fromMerchantNo'] = isset($data['fromMerchantNo']) ? $data['fromMerchantNo'] : null; + $this->container['toMerchantNo'] = isset($data['toMerchantNo']) ? $data['toMerchantNo'] : null; + $this->container['transferStatus'] = isset($data['transferStatus']) ? $data['transferStatus'] : null; + $this->container['usage'] = isset($data['usage']) ? $data['usage'] : null; + $this->container['fee'] = isset($data['fee']) ? $data['fee'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null; + $this->container['debitAmount'] = isset($data['debitAmount']) ? $data['debitAmount'] : null; + $this->container['receiveAmount'] = isset($data['receiveAmount']) ? $data['receiveAmount'] : null; + $this->container['feeMerchantNo'] = isset($data['feeMerchantNo']) ? $data['feeMerchantNo'] : 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 orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->container['orderAmount']; + } + + /** + * Sets orderAmount + * + * @param string $orderAmount 转账金额 + * + * @return $this + */ + public function setOrderAmount($orderAmount) + { + $this->container['orderAmount'] = $orderAmount; + + return $this; + } + + /** + * Gets transferType + * + * @return string + */ + public function getTransferType() + { + return $this->container['transferType']; + } + + /** + * Sets transferType + * + * @param string $transferType 转账类型 + * + * @return $this + */ + public function setTransferType($transferType) + { + $this->container['transferType'] = $transferType; + + return $this; + } + + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->container['fromMerchantNo']; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo 转出方商户编号 + * + * @return $this + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->container['fromMerchantNo'] = $fromMerchantNo; + + return $this; + } + + /** + * Gets toMerchantNo + * + * @return string + */ + public function getToMerchantNo() + { + return $this->container['toMerchantNo']; + } + + /** + * Sets toMerchantNo + * + * @param string $toMerchantNo 转入方商户编号 + * + * @return $this + */ + public function setToMerchantNo($toMerchantNo) + { + $this->container['toMerchantNo'] = $toMerchantNo; + + return $this; + } + + /** + * Gets transferStatus + * + * @return string + */ + public function getTransferStatus() + { + return $this->container['transferStatus']; + } + + /** + * Sets transferStatus + * + * @param string $transferStatus 转账状态 + * + * @return $this + */ + public function setTransferStatus($transferStatus) + { + $this->container['transferStatus'] = $transferStatus; + + return $this; + } + + /** + * Gets usage + * + * @return string + */ + public function getUsage() + { + return $this->container['usage']; + } + + /** + * Sets usage + * + * @param string $usage 用途 + * + * @return $this + */ + public function setUsage($usage) + { + $this->container['usage'] = $usage; + + return $this; + } + + /** + * Gets fee + * + * @return string + */ + public function getFee() + { + return $this->container['fee']; + } + + /** + * Sets fee + * + * @param string $fee 手续费 + * + * @return $this + */ + public function setFee($fee) + { + $this->container['fee'] = $fee; + + 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 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 debitAmount + * + * @return string + */ + public function getDebitAmount() + { + return $this->container['debitAmount']; + } + + /** + * Sets debitAmount + * + * @param string $debitAmount 扣账金额 + * + * @return $this + */ + public function setDebitAmount($debitAmount) + { + $this->container['debitAmount'] = $debitAmount; + + return $this; + } + + /** + * Gets receiveAmount + * + * @return string + */ + public function getReceiveAmount() + { + return $this->container['receiveAmount']; + } + + /** + * Sets receiveAmount + * + * @param string $receiveAmount 入账金额 + * + * @return $this + */ + public function setReceiveAmount($receiveAmount) + { + $this->container['receiveAmount'] = $receiveAmount; + + return $this; + } + + /** + * Gets feeMerchantNo + * + * @return string + */ + public function getFeeMerchantNo() + { + return $this->container['feeMerchantNo']; + } + + /** + * Sets feeMerchantNo + * + * @param string $feeMerchantNo 手续费承担方商户编号 + * + * @return $this + */ + public function setFeeMerchantNo($feeMerchantNo) + { + $this->container['feeMerchantNo'] = $feeMerchantNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/TransferSystemQueryRequest.php b/lib/Service/Account/Model/TransferSystemQueryRequest.php new file mode 100644 index 0000000..e0df98a --- /dev/null +++ b/lib/Service/Account/Model/TransferSystemQueryRequest.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return TransferSystemQueryRequest + */ + 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 TransferSystemQueryRequest + */ + 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 TransferSystemQueryRequest + */ + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + return $this; + } + + public static function getOperationId() + { + return 'transferSystemQuery'; + } + + +} diff --git a/lib/Service/Account/Model/TransferSystemQueryRequestMarshaller.php b/lib/Service/Account/Model/TransferSystemQueryRequestMarshaller.php new file mode 100644 index 0000000..6e17fbe --- /dev/null +++ b/lib/Service/Account/Model/TransferSystemQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderNo() != null){ + $internalRequest->addParameter('orderNo', ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferSystemQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/TransferSystemQueryResponse.php b/lib/Service/Account/Model/TransferSystemQueryResponse.php new file mode 100644 index 0000000..9f18926 --- /dev/null +++ b/lib/Service/Account/Model/TransferSystemQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return TransferSystemQueryMgTransferOrderQueryRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/TransferSystemQueryResponseUnMarshaller.php b/lib/Service/Account/Model/TransferSystemQueryResponseUnMarshaller.php new file mode 100644 index 0000000..806607b --- /dev/null +++ b/lib/Service/Account/Model/TransferSystemQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferWechatOrderRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return TransferWechatOrderRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Sets amount + * + * @param float $amount + * @return TransferWechatOrderRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets appId + * + * @return string + */ + public function getAppId() + { + return $this->appId; + } + + /** + * Sets appId + * + * @param string $appId + * @return TransferWechatOrderRequest + */ + public function setAppId($appId) + { + $this->appId = $appId; + return $this; + } + /** + * Gets scene + * + * @return string + */ + public function getScene() + { + return $this->scene; + } + + /** + * Sets scene + * + * @param string $scene + * @return TransferWechatOrderRequest + */ + public function setScene($scene) + { + $this->scene = $scene; + return $this; + } + /** + * Gets openId + * + * @return string + */ + public function getOpenId() + { + return $this->openId; + } + + /** + * Sets openId + * + * @param string $openId + * @return TransferWechatOrderRequest + */ + public function setOpenId($openId) + { + $this->openId = $openId; + return $this; + } + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->userName; + } + + /** + * Sets userName + * + * @param string $userName + * @return TransferWechatOrderRequest + */ + public function setUserName($userName) + { + $this->userName = $userName; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return TransferWechatOrderRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TransferWechatOrderRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferWechatOrderRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'transferWechatOrder'; + } + + +} diff --git a/lib/Service/Account/Model/TransferWechatOrderRequestMarshaller.php b/lib/Service/Account/Model/TransferWechatOrderRequestMarshaller.php new file mode 100644 index 0000000..303fc75 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatOrderRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float')); + } + if($request->getAppId() != null){ + $internalRequest->addParameter('appId', ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string')); + } + if($request->getScene() != null){ + $internalRequest->addParameter('scene', ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string')); + } + if($request->getOpenId() != null){ + $internalRequest->addParameter('openId', ObjectSerializer::sanitizeForSerialization($request->getOpenId(), 'string')); + } + if($request->getUserName() != null){ + $internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferWechatOrderRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/TransferWechatOrderResponse.php b/lib/Service/Account/Model/TransferWechatOrderResponse.php new file mode 100644 index 0000000..5c65fc8 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return TransferWechatOrderWechatTransferRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/TransferWechatOrderResponseUnMarshaller.php b/lib/Service/Account/Model/TransferWechatOrderResponseUnMarshaller.php new file mode 100644 index 0000000..5b17288 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'status' => 'string', + 'requestNo' => 'string', + 'merchantNo' => 'string', + 'amount' => 'float', + 'orderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'status' => null, + 'requestNo' => null, + 'merchantNo' => null, + 'amount' => null, + 'orderNo' => 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', + 'requestNo' => 'requestNo', + 'merchantNo' => 'merchantNo', + 'amount' => 'amount', + 'orderNo' => 'orderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'status' => 'setStatus', + 'requestNo' => 'setRequestNo', + 'merchantNo' => 'setMerchantNo', + 'amount' => 'setAmount', + 'orderNo' => 'setOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'status' => 'getStatus', + 'requestNo' => 'getRequestNo', + 'merchantNo' => 'getMerchantNo', + 'amount' => 'getAmount', + 'orderNo' => 'getOrderNo' + ]; + + /** + * 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; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : 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; + } + + /** + * 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 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/TransferWechatQueryQueryWechatTransferRespDTOResult.php b/lib/Service/Account/Model/TransferWechatQueryQueryWechatTransferRespDTOResult.php new file mode 100644 index 0000000..aa877f1 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatQueryQueryWechatTransferRespDTOResult.php @@ -0,0 +1,632 @@ + 'string', + 'returnMsg' => 'string', + 'status' => 'string', + 'requestNo' => 'string', + 'merchantNo' => 'string', + 'amount' => 'float', + 'orderNo' => 'string', + 'openId' => 'string', + 'userName' => 'string', + 'remark' => 'string', + 'finishTime' => 'string', + 'bankOrderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'status' => null, + 'requestNo' => null, + 'merchantNo' => null, + 'amount' => null, + 'orderNo' => null, + 'openId' => null, + 'userName' => null, + 'remark' => null, + 'finishTime' => null, + 'bankOrderNo' => 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', + 'requestNo' => 'requestNo', + 'merchantNo' => 'merchantNo', + 'amount' => 'amount', + 'orderNo' => 'orderNo', + 'openId' => 'openId', + 'userName' => 'userName', + 'remark' => 'remark', + 'finishTime' => 'finishTime', + 'bankOrderNo' => 'bankOrderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'status' => 'setStatus', + 'requestNo' => 'setRequestNo', + 'merchantNo' => 'setMerchantNo', + 'amount' => 'setAmount', + 'orderNo' => 'setOrderNo', + 'openId' => 'setOpenId', + 'userName' => 'setUserName', + 'remark' => 'setRemark', + 'finishTime' => 'setFinishTime', + 'bankOrderNo' => 'setBankOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'status' => 'getStatus', + 'requestNo' => 'getRequestNo', + 'merchantNo' => 'getMerchantNo', + 'amount' => 'getAmount', + 'orderNo' => 'getOrderNo', + 'openId' => 'getOpenId', + 'userName' => 'getUserName', + 'remark' => 'getRemark', + 'finishTime' => 'getFinishTime', + 'bankOrderNo' => 'getBankOrderNo' + ]; + + /** + * 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; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null; + $this->container['openId'] = isset($data['openId']) ? $data['openId'] : null; + $this->container['userName'] = isset($data['userName']) ? $data['userName'] : null; + $this->container['remark'] = isset($data['remark']) ? $data['remark'] : null; + $this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null; + $this->container['bankOrderNo'] = isset($data['bankOrderNo']) ? $data['bankOrderNo'] : 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; + } + + /** + * 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 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 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 openId + * + * @return string + */ + public function getOpenId() + { + return $this->container['openId']; + } + + /** + * Sets openId + * + * @param string $openId openId + * + * @return $this + */ + public function setOpenId($openId) + { + $this->container['openId'] = $openId; + + return $this; + } + + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->container['userName']; + } + + /** + * Sets userName + * + * @param string $userName 收款用户姓名 + * + * @return $this + */ + public function setUserName($userName) + { + $this->container['userName'] = $userName; + + 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 bankOrderNo + * + * @return string + */ + public function getBankOrderNo() + { + return $this->container['bankOrderNo']; + } + + /** + * Sets bankOrderNo + * + * @param string $bankOrderNo 微信侧订单号 + * + * @return $this + */ + public function setBankOrderNo($bankOrderNo) + { + $this->container['bankOrderNo'] = $bankOrderNo; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/TransferWechatQueryRequest.php b/lib/Service/Account/Model/TransferWechatQueryRequest.php new file mode 100644 index 0000000..9787be0 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatQueryRequest.php @@ -0,0 +1,117 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return TransferWechatQueryRequest + */ + 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 TransferWechatQueryRequest + */ + 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 TransferWechatQueryRequest + */ + 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 TransferWechatQueryRequest + */ + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + return $this; + } + + public static function getOperationId() + { + return 'transferWechatQuery'; + } + + +} diff --git a/lib/Service/Account/Model/TransferWechatQueryRequestMarshaller.php b/lib/Service/Account/Model/TransferWechatQueryRequestMarshaller.php new file mode 100644 index 0000000..c78c73a --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOrderNo() != null){ + $internalRequest->addParameter('orderNo', ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferWechatQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/TransferWechatQueryResponse.php b/lib/Service/Account/Model/TransferWechatQueryResponse.php new file mode 100644 index 0000000..9be63d3 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return TransferWechatQueryQueryWechatTransferRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/TransferWechatQueryResponseUnMarshaller.php b/lib/Service/Account/Model/TransferWechatQueryResponseUnMarshaller.php new file mode 100644 index 0000000..3ad7945 --- /dev/null +++ b/lib/Service/Account/Model/TransferWechatQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'bindCardNo' => 'string', + 'bindBankCode' => 'string', + 'bindAccountName' => 'string', + 'businessLicenceEffectiveDate' => 'string', + 'businessLicenceExpirationDate' => 'string', + 'legalLicenceEffectiveDate' => 'string', + 'legalLicenceExpirationDate' => 'string', + 'legalMobile' => 'string', + 'bcpNo' => 'string', + 'registerAddress' => 'string', + 'organizationNo' => 'string', + 'organizationStart' => 'string', + 'organizationEnd' => 'string', + 'organizationPicUrl' => 'string', + 'taxNo' => 'string', + 'taxPicUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bindCardType' => null, + 'bindCardNo' => null, + 'bindBankCode' => null, + 'bindAccountName' => null, + 'businessLicenceEffectiveDate' => null, + 'businessLicenceExpirationDate' => null, + 'legalLicenceEffectiveDate' => null, + 'legalLicenceExpirationDate' => null, + 'legalMobile' => null, + 'bcpNo' => null, + 'registerAddress' => null, + 'organizationNo' => null, + 'organizationStart' => null, + 'organizationEnd' => null, + 'organizationPicUrl' => null, + 'taxNo' => null, + 'taxPicUrl' => 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 = [ + 'bindCardType' => 'bindCardType', + 'bindCardNo' => 'bindCardNo', + 'bindBankCode' => 'bindBankCode', + 'bindAccountName' => 'bindAccountName', + 'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'businessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'legalLicenceExpirationDate', + 'legalMobile' => 'legalMobile', + 'bcpNo' => 'bcpNo', + 'registerAddress' => 'registerAddress', + 'organizationNo' => 'organizationNo', + 'organizationStart' => 'organizationStart', + 'organizationEnd' => 'organizationEnd', + 'organizationPicUrl' => 'organizationPicUrl', + 'taxNo' => 'taxNo', + 'taxPicUrl' => 'taxPicUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bindCardType' => 'setBindCardType', + 'bindCardNo' => 'setBindCardNo', + 'bindBankCode' => 'setBindBankCode', + 'bindAccountName' => 'setBindAccountName', + 'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate', + 'legalMobile' => 'setLegalMobile', + 'bcpNo' => 'setBcpNo', + 'registerAddress' => 'setRegisterAddress', + 'organizationNo' => 'setOrganizationNo', + 'organizationStart' => 'setOrganizationStart', + 'organizationEnd' => 'setOrganizationEnd', + 'organizationPicUrl' => 'setOrganizationPicUrl', + 'taxNo' => 'setTaxNo', + 'taxPicUrl' => 'setTaxPicUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bindCardType' => 'getBindCardType', + 'bindCardNo' => 'getBindCardNo', + 'bindBankCode' => 'getBindBankCode', + 'bindAccountName' => 'getBindAccountName', + 'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate', + 'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate', + 'legalMobile' => 'getLegalMobile', + 'bcpNo' => 'getBcpNo', + 'registerAddress' => 'getRegisterAddress', + 'organizationNo' => 'getOrganizationNo', + 'organizationStart' => 'getOrganizationStart', + 'organizationEnd' => 'getOrganizationEnd', + 'organizationPicUrl' => 'getOrganizationPicUrl', + 'taxNo' => 'getTaxNo', + 'taxPicUrl' => 'getTaxPicUrl' + ]; + + /** + * 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['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null; + $this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null; + $this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null; + $this->container['bindAccountName'] = isset($data['bindAccountName']) ? $data['bindAccountName'] : null; + $this->container['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null; + $this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null; + $this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null; + $this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null; + $this->container['legalMobile'] = isset($data['legalMobile']) ? $data['legalMobile'] : null; + $this->container['bcpNo'] = isset($data['bcpNo']) ? $data['bcpNo'] : null; + $this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null; + $this->container['organizationNo'] = isset($data['organizationNo']) ? $data['organizationNo'] : null; + $this->container['organizationStart'] = isset($data['organizationStart']) ? $data['organizationStart'] : null; + $this->container['organizationEnd'] = isset($data['organizationEnd']) ? $data['organizationEnd'] : null; + $this->container['organizationPicUrl'] = isset($data['organizationPicUrl']) ? $data['organizationPicUrl'] : null; + $this->container['taxNo'] = isset($data['taxNo']) ? $data['taxNo'] : null; + $this->container['taxPicUrl'] = isset($data['taxPicUrl']) ? $data['taxPicUrl'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bindCardType'] === null) { + $invalidProperties[] = "'bindCardType' can't be null"; + } + if ($this->container['bindCardNo'] === null) { + $invalidProperties[] = "'bindCardNo' can't be null"; + } + if ($this->container['bindBankCode'] === null) { + $invalidProperties[] = "'bindBankCode' can't be null"; + } + if ($this->container['bindAccountName'] === null) { + $invalidProperties[] = "'bindAccountName' can't be null"; + } + if ($this->container['businessLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'businessLicenceEffectiveDate' can't be null"; + } + if ($this->container['businessLicenceExpirationDate'] === null) { + $invalidProperties[] = "'businessLicenceExpirationDate' can't be null"; + } + if ($this->container['legalLicenceEffectiveDate'] === null) { + $invalidProperties[] = "'legalLicenceEffectiveDate' can't be null"; + } + if ($this->container['legalLicenceExpirationDate'] === null) { + $invalidProperties[] = "'legalLicenceExpirationDate' can't be null"; + } + if ($this->container['legalMobile'] === null) { + $invalidProperties[] = "'legalMobile' can't be null"; + } + if ($this->container['bcpNo'] === null) { + $invalidProperties[] = "'bcpNo' can't be null"; + } + if ($this->container['registerAddress'] === null) { + $invalidProperties[] = "'registerAddress' can't be null"; + } + 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 bindCardType + * + * @return string + */ + public function getBindCardType() + { + return $this->container['bindCardType']; + } + + /** + * Sets bindCardType + * + * @param string $bindCardType 绑定卡类型
可选项如下:
PUBLIC_CARD:对公卡
PRIVATE_CARD:对私卡 + * + * @return $this + */ + public function setBindCardType($bindCardType) + { + $this->container['bindCardType'] = $bindCardType; + + return $this; + } + + /** + * Gets bindCardNo + * + * @return string + */ + public function getBindCardNo() + { + return $this->container['bindCardNo']; + } + + /** + * Sets bindCardNo + * + * @param string $bindCardNo 绑定银行卡号 + * + * @return $this + */ + public function setBindCardNo($bindCardNo) + { + $this->container['bindCardNo'] = $bindCardNo; + + return $this; + } + + /** + * Gets bindBankCode + * + * @return string + */ + public function getBindBankCode() + { + return $this->container['bindBankCode']; + } + + /** + * Sets bindBankCode + * + * @param string $bindBankCode 绑定银行编码 + * + * @return $this + */ + public function setBindBankCode($bindBankCode) + { + $this->container['bindBankCode'] = $bindBankCode; + + return $this; + } + + /** + * Gets bindAccountName + * + * @return string + */ + public function getBindAccountName() + { + return $this->container['bindAccountName']; + } + + /** + * Sets bindAccountName + * + * @param string $bindAccountName 绑卡名称 + * + * @return $this + */ + public function setBindAccountName($bindAccountName) + { + $this->container['bindAccountName'] = $bindAccountName; + + return $this; + } + + /** + * Gets businessLicenceEffectiveDate + * + * @return string + */ + public function getBusinessLicenceEffectiveDate() + { + return $this->container['businessLicenceEffectiveDate']; + } + + /** + * Sets businessLicenceEffectiveDate + * + * @param string $businessLicenceEffectiveDate 营业执照生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate) + { + $this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate; + + return $this; + } + + /** + * Gets businessLicenceExpirationDate + * + * @return string + */ + public function getBusinessLicenceExpirationDate() + { + return $this->container['businessLicenceExpirationDate']; + } + + /** + * Sets businessLicenceExpirationDate + * + * @param string $businessLicenceExpirationDate 营业执照失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate) + { + $this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate; + + return $this; + } + + /** + * Gets legalLicenceEffectiveDate + * + * @return string + */ + public function getLegalLicenceEffectiveDate() + { + return $this->container['legalLicenceEffectiveDate']; + } + + /** + * Sets legalLicenceEffectiveDate + * + * @param string $legalLicenceEffectiveDate 法人证件生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate) + { + $this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate; + + return $this; + } + + /** + * Gets legalLicenceExpirationDate + * + * @return string + */ + public function getLegalLicenceExpirationDate() + { + return $this->container['legalLicenceExpirationDate']; + } + + /** + * Sets legalLicenceExpirationDate + * + * @param string $legalLicenceExpirationDate 法人证件失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setLegalLicenceExpirationDate($legalLicenceExpirationDate) + { + $this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate; + + return $this; + } + + /** + * Gets legalMobile + * + * @return string + */ + public function getLegalMobile() + { + return $this->container['legalMobile']; + } + + /** + * Sets legalMobile + * + * @param string $legalMobile 法人手机号码 + * + * @return $this + */ + public function setLegalMobile($legalMobile) + { + $this->container['legalMobile'] = $legalMobile; + + return $this; + } + + /** + * Gets bcpNo + * + * @return string + */ + public function getBcpNo() + { + return $this->container['bcpNo']; + } + + /** + * Sets bcpNo + * + * @param string $bcpNo 基本账户开户许可核准号 + * + * @return $this + */ + public function setBcpNo($bcpNo) + { + $this->container['bcpNo'] = $bcpNo; + + return $this; + } + + /** + * Gets registerAddress + * + * @return string + */ + public function getRegisterAddress() + { + return $this->container['registerAddress']; + } + + /** + * Sets registerAddress + * + * @param string $registerAddress 商户注册地址 + * + * @return $this + */ + public function setRegisterAddress($registerAddress) + { + $this->container['registerAddress'] = $registerAddress; + + return $this; + } + + /** + * Gets organizationNo + * + * @return string + */ + public function getOrganizationNo() + { + return $this->container['organizationNo']; + } + + /** + * Sets organizationNo + * + * @param string $organizationNo 组织机构代码 + * + * @return $this + */ + public function setOrganizationNo($organizationNo) + { + $this->container['organizationNo'] = $organizationNo; + + return $this; + } + + /** + * Gets organizationStart + * + * @return string + */ + public function getOrganizationStart() + { + return $this->container['organizationStart']; + } + + /** + * Sets organizationStart + * + * @param string $organizationStart 组织机构代码生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setOrganizationStart($organizationStart) + { + $this->container['organizationStart'] = $organizationStart; + + return $this; + } + + /** + * Gets organizationEnd + * + * @return string + */ + public function getOrganizationEnd() + { + return $this->container['organizationEnd']; + } + + /** + * Sets organizationEnd + * + * @param string $organizationEnd 组织机构代码失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setOrganizationEnd($organizationEnd) + { + $this->container['organizationEnd'] = $organizationEnd; + + return $this; + } + + /** + * Gets organizationPicUrl + * + * @return string + */ + public function getOrganizationPicUrl() + { + return $this->container['organizationPicUrl']; + } + + /** + * Sets organizationPicUrl + * + * @param string $organizationPicUrl 组织机构代码证照片 + * + * @return $this + */ + public function setOrganizationPicUrl($organizationPicUrl) + { + $this->container['organizationPicUrl'] = $organizationPicUrl; + + return $this; + } + + /** + * Gets taxNo + * + * @return string + */ + public function getTaxNo() + { + return $this->container['taxNo']; + } + + /** + * Sets taxNo + * + * @param string $taxNo 税务登记号 + * + * @return $this + */ + public function setTaxNo($taxNo) + { + $this->container['taxNo'] = $taxNo; + + return $this; + } + + /** + * Gets taxPicUrl + * + * @return string + */ + public function getTaxPicUrl() + { + return $this->container['taxPicUrl']; + } + + /** + * Sets taxPicUrl + * + * @param string $taxPicUrl 税务登记证照片 + * + * @return $this + */ + public function setTaxPicUrl($taxPicUrl) + { + $this->container['taxPicUrl'] = $taxPicUrl; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/WithdrawSystemQueryMGWithdrawOrderQueryRespDTOResult.php b/lib/Service/Account/Model/WithdrawSystemQueryMGWithdrawOrderQueryRespDTOResult.php new file mode 100644 index 0000000..933f445 --- /dev/null +++ b/lib/Service/Account/Model/WithdrawSystemQueryMGWithdrawOrderQueryRespDTOResult.php @@ -0,0 +1,902 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'merchantNo' => 'string', + 'orderAmount' => 'float', + 'receiveAmount' => 'float', + 'debitAmount' => 'float', + 'orderTime' => 'string', + 'finishTime' => 'string', + 'status' => 'string', + 'failReason' => 'string', + 'feeUndertakerMerchantNo' => 'string', + 'fee' => 'float', + 'receiveType' => 'string', + 'accountName' => 'string', + 'accountNo' => 'string', + 'bankName' => 'string', + 'isReversed' => 'bool', + 'reverseTime' => 'string', + 'remark' => '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', + 'status' => null, + 'failReason' => null, + 'feeUndertakerMerchantNo' => null, + 'fee' => null, + 'receiveType' => null, + 'accountName' => null, + 'accountNo' => null, + 'bankName' => null, + 'isReversed' => null, + 'reverseTime' => 'date-time', + '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 = [ + 'returnCode' => 'returnCode', + 'returnMsg' => 'returnMsg', + 'requestNo' => 'requestNo', + 'orderNo' => 'orderNo', + 'merchantNo' => 'merchantNo', + 'orderAmount' => 'orderAmount', + 'receiveAmount' => 'receiveAmount', + 'debitAmount' => 'debitAmount', + 'orderTime' => 'orderTime', + 'finishTime' => 'finishTime', + 'status' => 'status', + 'failReason' => 'failReason', + 'feeUndertakerMerchantNo' => 'feeUndertakerMerchantNo', + 'fee' => 'fee', + 'receiveType' => 'receiveType', + 'accountName' => 'accountName', + 'accountNo' => 'accountNo', + 'bankName' => 'bankName', + 'isReversed' => 'isReversed', + 'reverseTime' => 'reverseTime', + 'remark' => 'remark' + ]; + + /** + * 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', + 'status' => 'setStatus', + 'failReason' => 'setFailReason', + 'feeUndertakerMerchantNo' => 'setFeeUndertakerMerchantNo', + 'fee' => 'setFee', + 'receiveType' => 'setReceiveType', + 'accountName' => 'setAccountName', + 'accountNo' => 'setAccountNo', + 'bankName' => 'setBankName', + 'isReversed' => 'setIsReversed', + 'reverseTime' => 'setReverseTime', + 'remark' => 'setRemark' + ]; + + /** + * 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', + 'status' => 'getStatus', + 'failReason' => 'getFailReason', + 'feeUndertakerMerchantNo' => 'getFeeUndertakerMerchantNo', + 'fee' => 'getFee', + 'receiveType' => 'getReceiveType', + 'accountName' => 'getAccountName', + 'accountNo' => 'getAccountNo', + 'bankName' => 'getBankName', + 'isReversed' => 'getIsReversed', + 'reverseTime' => 'getReverseTime', + '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['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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['failReason'] = isset($data['failReason']) ? $data['failReason'] : null; + $this->container['feeUndertakerMerchantNo'] = isset($data['feeUndertakerMerchantNo']) ? $data['feeUndertakerMerchantNo'] : null; + $this->container['fee'] = isset($data['fee']) ? $data['fee'] : null; + $this->container['receiveType'] = isset($data['receiveType']) ? $data['receiveType'] : null; + $this->container['accountName'] = isset($data['accountName']) ? $data['accountName'] : null; + $this->container['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null; + $this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null; + $this->container['isReversed'] = isset($data['isReversed']) ? $data['isReversed'] : null; + $this->container['reverseTime'] = isset($data['reverseTime']) ? $data['reverseTime'] : 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 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 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 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 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 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 accountName + * + * @return string + */ + public function getAccountName() + { + return $this->container['accountName']; + } + + /** + * Sets accountName + * + * @param string $accountName 开户名 + * + * @return $this + */ + public function setAccountName($accountName) + { + $this->container['accountName'] = $accountName; + + 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 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 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; + } + + /** + * 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)); + } +} + + diff --git a/lib/Service/Account/Model/WithdrawSystemQueryRequest.php b/lib/Service/Account/Model/WithdrawSystemQueryRequest.php new file mode 100644 index 0000000..b88938a --- /dev/null +++ b/lib/Service/Account/Model/WithdrawSystemQueryRequest.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WithdrawSystemQueryRequest + */ + 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 WithdrawSystemQueryRequest + */ + 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 WithdrawSystemQueryRequest + */ + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + return $this; + } + + public static function getOperationId() + { + return 'withdrawSystemQuery'; + } + + +} diff --git a/lib/Service/Account/Model/WithdrawSystemQueryRequestMarshaller.php b/lib/Service/Account/Model/WithdrawSystemQueryRequestMarshaller.php new file mode 100644 index 0000000..8f1d2d5 --- /dev/null +++ b/lib/Service/Account/Model/WithdrawSystemQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderNo() != null){ + $internalRequest->addParameter('orderNo', ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WithdrawSystemQueryRequestMarshaller::__init(); diff --git a/lib/Service/Account/Model/WithdrawSystemQueryResponse.php b/lib/Service/Account/Model/WithdrawSystemQueryResponse.php new file mode 100644 index 0000000..fc4a1c1 --- /dev/null +++ b/lib/Service/Account/Model/WithdrawSystemQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WithdrawSystemQueryMGWithdrawOrderQueryRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Account/Model/WithdrawSystemQueryResponseUnMarshaller.php b/lib/Service/Account/Model/WithdrawSystemQueryResponseUnMarshaller.php new file mode 100644 index 0000000..5809c82 --- /dev/null +++ b/lib/Service/Account/Model/WithdrawSystemQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'bindCardNo' => 'string', + 'bindBankCode' => 'string', + 'bindCardType' => 'string', + 'returnUrl' => 'string', + 'businessLicenceEffectiveDate' => 'string', + 'businessLicenceExpirationDate' => 'string', + 'enterpriseEmail' => 'string', + 'registerAddress' => 'string', + 'legalGender' => 'string', + 'legalLicenceEffectiveDate' => 'string', + 'legalLicenceExpirationDate' => 'string', + 'shareholderName' => 'string', + 'benefitName' => 'string', + 'benefitCertificateType' => 'string', + 'benefitCertificateNo' => 'string', + 'benefitEffectiveDate' => 'string', + 'benefitExpirationDate' => 'string', + 'benefitAddress' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'mobileNo' => null, + 'bindCardNo' => null, + 'bindBankCode' => null, + 'bindCardType' => null, + 'returnUrl' => null, + 'businessLicenceEffectiveDate' => null, + 'businessLicenceExpirationDate' => null, + 'enterpriseEmail' => null, + 'registerAddress' => null, + 'legalGender' => null, + 'legalLicenceEffectiveDate' => null, + 'legalLicenceExpirationDate' => null, + 'shareholderName' => null, + 'benefitName' => null, + 'benefitCertificateType' => null, + 'benefitCertificateNo' => null, + 'benefitEffectiveDate' => null, + 'benefitExpirationDate' => null, + 'benefitAddress' => 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 = [ + 'mobileNo' => 'mobileNo', + 'bindCardNo' => 'bindCardNo', + 'bindBankCode' => 'bindBankCode', + 'bindCardType' => 'bindCardType', + 'returnUrl' => 'returnUrl', + 'businessLicenceEffectiveDate' => 'businessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'businessLicenceExpirationDate', + 'enterpriseEmail' => 'enterpriseEmail', + 'registerAddress' => 'registerAddress', + 'legalGender' => 'legalGender', + 'legalLicenceEffectiveDate' => 'legalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'legalLicenceExpirationDate', + 'shareholderName' => 'shareholderName', + 'benefitName' => 'benefitName', + 'benefitCertificateType' => 'benefitCertificateType', + 'benefitCertificateNo' => 'benefitCertificateNo', + 'benefitEffectiveDate' => 'benefitEffectiveDate', + 'benefitExpirationDate' => 'benefitExpirationDate', + 'benefitAddress' => 'benefitAddress' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'mobileNo' => 'setMobileNo', + 'bindCardNo' => 'setBindCardNo', + 'bindBankCode' => 'setBindBankCode', + 'bindCardType' => 'setBindCardType', + 'returnUrl' => 'setReturnUrl', + 'businessLicenceEffectiveDate' => 'setBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'setBusinessLicenceExpirationDate', + 'enterpriseEmail' => 'setEnterpriseEmail', + 'registerAddress' => 'setRegisterAddress', + 'legalGender' => 'setLegalGender', + 'legalLicenceEffectiveDate' => 'setLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'setLegalLicenceExpirationDate', + 'shareholderName' => 'setShareholderName', + 'benefitName' => 'setBenefitName', + 'benefitCertificateType' => 'setBenefitCertificateType', + 'benefitCertificateNo' => 'setBenefitCertificateNo', + 'benefitEffectiveDate' => 'setBenefitEffectiveDate', + 'benefitExpirationDate' => 'setBenefitExpirationDate', + 'benefitAddress' => 'setBenefitAddress' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'mobileNo' => 'getMobileNo', + 'bindCardNo' => 'getBindCardNo', + 'bindBankCode' => 'getBindBankCode', + 'bindCardType' => 'getBindCardType', + 'returnUrl' => 'getReturnUrl', + 'businessLicenceEffectiveDate' => 'getBusinessLicenceEffectiveDate', + 'businessLicenceExpirationDate' => 'getBusinessLicenceExpirationDate', + 'enterpriseEmail' => 'getEnterpriseEmail', + 'registerAddress' => 'getRegisterAddress', + 'legalGender' => 'getLegalGender', + 'legalLicenceEffectiveDate' => 'getLegalLicenceEffectiveDate', + 'legalLicenceExpirationDate' => 'getLegalLicenceExpirationDate', + 'shareholderName' => 'getShareholderName', + 'benefitName' => 'getBenefitName', + 'benefitCertificateType' => 'getBenefitCertificateType', + 'benefitCertificateNo' => 'getBenefitCertificateNo', + 'benefitEffectiveDate' => 'getBenefitEffectiveDate', + 'benefitExpirationDate' => 'getBenefitExpirationDate', + 'benefitAddress' => 'getBenefitAddress' + ]; + + /** + * 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['mobileNo'] = isset($data['mobileNo']) ? $data['mobileNo'] : null; + $this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null; + $this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null; + $this->container['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null; + $this->container['returnUrl'] = isset($data['returnUrl']) ? $data['returnUrl'] : null; + $this->container['businessLicenceEffectiveDate'] = isset($data['businessLicenceEffectiveDate']) ? $data['businessLicenceEffectiveDate'] : null; + $this->container['businessLicenceExpirationDate'] = isset($data['businessLicenceExpirationDate']) ? $data['businessLicenceExpirationDate'] : null; + $this->container['enterpriseEmail'] = isset($data['enterpriseEmail']) ? $data['enterpriseEmail'] : null; + $this->container['registerAddress'] = isset($data['registerAddress']) ? $data['registerAddress'] : null; + $this->container['legalGender'] = isset($data['legalGender']) ? $data['legalGender'] : null; + $this->container['legalLicenceEffectiveDate'] = isset($data['legalLicenceEffectiveDate']) ? $data['legalLicenceEffectiveDate'] : null; + $this->container['legalLicenceExpirationDate'] = isset($data['legalLicenceExpirationDate']) ? $data['legalLicenceExpirationDate'] : null; + $this->container['shareholderName'] = isset($data['shareholderName']) ? $data['shareholderName'] : null; + $this->container['benefitName'] = isset($data['benefitName']) ? $data['benefitName'] : null; + $this->container['benefitCertificateType'] = isset($data['benefitCertificateType']) ? $data['benefitCertificateType'] : null; + $this->container['benefitCertificateNo'] = isset($data['benefitCertificateNo']) ? $data['benefitCertificateNo'] : null; + $this->container['benefitEffectiveDate'] = isset($data['benefitEffectiveDate']) ? $data['benefitEffectiveDate'] : null; + $this->container['benefitExpirationDate'] = isset($data['benefitExpirationDate']) ? $data['benefitExpirationDate'] : null; + $this->container['benefitAddress'] = isset($data['benefitAddress']) ? $data['benefitAddress'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['mobileNo'] === null) { + $invalidProperties[] = "'mobileNo' can't be null"; + } + if ($this->container['bindCardNo'] === null) { + $invalidProperties[] = "'bindCardNo' can't be null"; + } + if ($this->container['bindBankCode'] === null) { + $invalidProperties[] = "'bindBankCode' can't be null"; + } + if ($this->container['bindCardType'] === null) { + $invalidProperties[] = "'bindCardType' can't be null"; + } + if ($this->container['returnUrl'] === null) { + $invalidProperties[] = "'returnUrl' can't be null"; + } + 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 mobileNo + * + * @return string + */ + public function getMobileNo() + { + return $this->container['mobileNo']; + } + + /** + * Sets mobileNo + * + * @param string $mobileNo 经办人手机号
该手机号用于接收银行打款验资的验证码,请务必谨慎填写 + * + * @return $this + */ + public function setMobileNo($mobileNo) + { + $this->container['mobileNo'] = $mobileNo; + + return $this; + } + + /** + * Gets bindCardNo + * + * @return string + */ + public function getBindCardNo() + { + return $this->container['bindCardNo']; + } + + /** + * Sets bindCardNo + * + * @param string $bindCardNo 绑定银行卡号 + * + * @return $this + */ + public function setBindCardNo($bindCardNo) + { + $this->container['bindCardNo'] = $bindCardNo; + + return $this; + } + + /** + * Gets bindBankCode + * + * @return string + */ + public function getBindBankCode() + { + return $this->container['bindBankCode']; + } + + /** + * Sets bindBankCode + * + * @param string $bindBankCode 绑定银行编码 + * + * @return $this + */ + public function setBindBankCode($bindBankCode) + { + $this->container['bindBankCode'] = $bindBankCode; + + return $this; + } + + /** + * Gets bindCardType + * + * @return string + */ + public function getBindCardType() + { + return $this->container['bindCardType']; + } + + /** + * Sets bindCardType + * + * @param string $bindCardType 绑定卡类型
可选项如下:
PUBLIC_CARD:对公 + * + * @return $this + */ + public function setBindCardType($bindCardType) + { + $this->container['bindCardType'] = $bindCardType; + + return $this; + } + + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->container['returnUrl']; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl 页面跳转地址 + * + * @return $this + */ + public function setReturnUrl($returnUrl) + { + $this->container['returnUrl'] = $returnUrl; + + return $this; + } + + /** + * Gets businessLicenceEffectiveDate + * + * @return string + */ + public function getBusinessLicenceEffectiveDate() + { + return $this->container['businessLicenceEffectiveDate']; + } + + /** + * Sets businessLicenceEffectiveDate + * + * @param string $businessLicenceEffectiveDate 营业执照生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setBusinessLicenceEffectiveDate($businessLicenceEffectiveDate) + { + $this->container['businessLicenceEffectiveDate'] = $businessLicenceEffectiveDate; + + return $this; + } + + /** + * Gets businessLicenceExpirationDate + * + * @return string + */ + public function getBusinessLicenceExpirationDate() + { + return $this->container['businessLicenceExpirationDate']; + } + + /** + * Sets businessLicenceExpirationDate + * + * @param string $businessLicenceExpirationDate 法人证件失效日期
格式:yyyyMMdd
长期有效: forever + * + * @return $this + */ + public function setBusinessLicenceExpirationDate($businessLicenceExpirationDate) + { + $this->container['businessLicenceExpirationDate'] = $businessLicenceExpirationDate; + + return $this; + } + + /** + * Gets enterpriseEmail + * + * @return string + */ + public function getEnterpriseEmail() + { + return $this->container['enterpriseEmail']; + } + + /** + * Sets enterpriseEmail + * + * @param string $enterpriseEmail 企业邮箱 + * + * @return $this + */ + public function setEnterpriseEmail($enterpriseEmail) + { + $this->container['enterpriseEmail'] = $enterpriseEmail; + + return $this; + } + + /** + * Gets registerAddress + * + * @return string + */ + public function getRegisterAddress() + { + return $this->container['registerAddress']; + } + + /** + * Sets registerAddress + * + * @param string $registerAddress 商户注册地址 + * + * @return $this + */ + public function setRegisterAddress($registerAddress) + { + $this->container['registerAddress'] = $registerAddress; + + return $this; + } + + /** + * Gets legalGender + * + * @return string + */ + public function getLegalGender() + { + return $this->container['legalGender']; + } + + /** + * Sets legalGender + * + * @param string $legalGender 法人性别
可选项如下:
MALE:男
FEMALE:女 + * + * @return $this + */ + public function setLegalGender($legalGender) + { + $this->container['legalGender'] = $legalGender; + + return $this; + } + + /** + * Gets legalLicenceEffectiveDate + * + * @return string + */ + public function getLegalLicenceEffectiveDate() + { + return $this->container['legalLicenceEffectiveDate']; + } + + /** + * Sets legalLicenceEffectiveDate + * + * @param string $legalLicenceEffectiveDate 法人证件生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setLegalLicenceEffectiveDate($legalLicenceEffectiveDate) + { + $this->container['legalLicenceEffectiveDate'] = $legalLicenceEffectiveDate; + + return $this; + } + + /** + * Gets legalLicenceExpirationDate + * + * @return string + */ + public function getLegalLicenceExpirationDate() + { + return $this->container['legalLicenceExpirationDate']; + } + + /** + * Sets legalLicenceExpirationDate + * + * @param string $legalLicenceExpirationDate 法人证件失效日期
格式:yyyyMMdd
长期有效: forever + * + * @return $this + */ + public function setLegalLicenceExpirationDate($legalLicenceExpirationDate) + { + $this->container['legalLicenceExpirationDate'] = $legalLicenceExpirationDate; + + return $this; + } + + /** + * Gets shareholderName + * + * @return string + */ + public function getShareholderName() + { + return $this->container['shareholderName']; + } + + /** + * Sets shareholderName + * + * @param string $shareholderName 股东或实际控制人姓名 + * + * @return $this + */ + public function setShareholderName($shareholderName) + { + $this->container['shareholderName'] = $shareholderName; + + return $this; + } + + /** + * Gets benefitName + * + * @return string + */ + public function getBenefitName() + { + return $this->container['benefitName']; + } + + /** + * Sets benefitName + * + * @param string $benefitName 受益人姓名 + * + * @return $this + */ + public function setBenefitName($benefitName) + { + $this->container['benefitName'] = $benefitName; + + return $this; + } + + /** + * Gets benefitCertificateType + * + * @return string + */ + public function getBenefitCertificateType() + { + return $this->container['benefitCertificateType']; + } + + /** + * Sets benefitCertificateType + * + * @param string $benefitCertificateType 受益人证件类型
可选项如下:
身份证:ID_CARD + * + * @return $this + */ + public function setBenefitCertificateType($benefitCertificateType) + { + $this->container['benefitCertificateType'] = $benefitCertificateType; + + return $this; + } + + /** + * Gets benefitCertificateNo + * + * @return string + */ + public function getBenefitCertificateNo() + { + return $this->container['benefitCertificateNo']; + } + + /** + * Sets benefitCertificateNo + * + * @param string $benefitCertificateNo 受益人证件号 + * + * @return $this + */ + public function setBenefitCertificateNo($benefitCertificateNo) + { + $this->container['benefitCertificateNo'] = $benefitCertificateNo; + + return $this; + } + + /** + * Gets benefitEffectiveDate + * + * @return string + */ + public function getBenefitEffectiveDate() + { + return $this->container['benefitEffectiveDate']; + } + + /** + * Sets benefitEffectiveDate + * + * @param string $benefitEffectiveDate 受益人证件生效日期
格式:yyyyMMdd + * + * @return $this + */ + public function setBenefitEffectiveDate($benefitEffectiveDate) + { + $this->container['benefitEffectiveDate'] = $benefitEffectiveDate; + + return $this; + } + + /** + * Gets benefitExpirationDate + * + * @return string + */ + public function getBenefitExpirationDate() + { + return $this->container['benefitExpirationDate']; + } + + /** + * Sets benefitExpirationDate + * + * @param string $benefitExpirationDate 受益人证件失效日期
格式:yyyyMMdd
长期有效: forever + * + * @return $this + */ + public function setBenefitExpirationDate($benefitExpirationDate) + { + $this->container['benefitExpirationDate'] = $benefitExpirationDate; + + return $this; + } + + /** + * Gets benefitAddress + * + * @return string + */ + public function getBenefitAddress() + { + return $this->container['benefitAddress']; + } + + /** + * Sets benefitAddress + * + * @param string $benefitAddress 受益人住址 + * + * @return $this + */ + public function setBenefitAddress($benefitAddress) + { + $this->container['benefitAddress'] = $benefitAddress; + + 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)); + } +} + + diff --git a/lib/Service/Account/Model/XwbOpenAccountDTO.php b/lib/Service/Account/Model/XwbOpenAccountDTO.php new file mode 100644 index 0000000..dfaff29 --- /dev/null +++ b/lib/Service/Account/Model/XwbOpenAccountDTO.php @@ -0,0 +1,963 @@ + 'string', + 'bindCardType' => 'string', + 'bindAccountName' => 'string', + 'bindCardNo' => 'string', + 'bindBankCode' => 'string', + 'businessScope' => 'string', + 'businessValidStart' => 'string', + 'businessValidEnd' => 'string', + 'legalMobile' => 'string', + 'contactName' => 'string', + 'contactMobile' => 'string', + 'contactCardNo' => 'string', + 'contactCardImageFont' => 'string', + 'contactCardImageBack' => 'string', + 'contactCardType' => 'string', + 'magAddress' => 'string', + 'caAuthorizationFile' => 'string', + 'legalAuthorizationFile' => 'string', + 'address' => 'string', + 'benefitInfoReqDTOList' => '\Yeepay\Yop\Sdk\Service\Account\Model\BenefitInfoReqDTO[]', + 'shareHolderInfoList' => '\Yeepay\Yop\Sdk\Service\Account\Model\ShareHolderInfoReqDTO[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'notifySmsUrl' => null, + 'bindCardType' => null, + 'bindAccountName' => null, + 'bindCardNo' => null, + 'bindBankCode' => null, + 'businessScope' => null, + 'businessValidStart' => null, + 'businessValidEnd' => null, + 'legalMobile' => null, + 'contactName' => null, + 'contactMobile' => null, + 'contactCardNo' => null, + 'contactCardImageFont' => null, + 'contactCardImageBack' => null, + 'contactCardType' => null, + 'magAddress' => null, + 'caAuthorizationFile' => null, + 'legalAuthorizationFile' => null, + 'address' => null, + 'benefitInfoReqDTOList' => null, + 'shareHolderInfoList' => 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 = [ + 'notifySmsUrl' => 'notifySmsUrl', + 'bindCardType' => 'bindCardType', + 'bindAccountName' => 'bindAccountName', + 'bindCardNo' => 'bindCardNo', + 'bindBankCode' => 'bindBankCode', + 'businessScope' => 'businessScope', + 'businessValidStart' => 'businessValidStart', + 'businessValidEnd' => 'businessValidEnd', + 'legalMobile' => 'legalMobile', + 'contactName' => 'contactName', + 'contactMobile' => 'contactMobile', + 'contactCardNo' => 'contactCardNo', + 'contactCardImageFont' => 'contactCardImageFont', + 'contactCardImageBack' => 'contactCardImageBack', + 'contactCardType' => 'contactCardType', + 'magAddress' => 'magAddress', + 'caAuthorizationFile' => 'caAuthorizationFile', + 'legalAuthorizationFile' => 'legalAuthorizationFile', + 'address' => 'address', + 'benefitInfoReqDTOList' => 'benefitInfoReqDTOList', + 'shareHolderInfoList' => 'shareHolderInfoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'notifySmsUrl' => 'setNotifySmsUrl', + 'bindCardType' => 'setBindCardType', + 'bindAccountName' => 'setBindAccountName', + 'bindCardNo' => 'setBindCardNo', + 'bindBankCode' => 'setBindBankCode', + 'businessScope' => 'setBusinessScope', + 'businessValidStart' => 'setBusinessValidStart', + 'businessValidEnd' => 'setBusinessValidEnd', + 'legalMobile' => 'setLegalMobile', + 'contactName' => 'setContactName', + 'contactMobile' => 'setContactMobile', + 'contactCardNo' => 'setContactCardNo', + 'contactCardImageFont' => 'setContactCardImageFont', + 'contactCardImageBack' => 'setContactCardImageBack', + 'contactCardType' => 'setContactCardType', + 'magAddress' => 'setMagAddress', + 'caAuthorizationFile' => 'setCaAuthorizationFile', + 'legalAuthorizationFile' => 'setLegalAuthorizationFile', + 'address' => 'setAddress', + 'benefitInfoReqDTOList' => 'setBenefitInfoReqDTOList', + 'shareHolderInfoList' => 'setShareHolderInfoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'notifySmsUrl' => 'getNotifySmsUrl', + 'bindCardType' => 'getBindCardType', + 'bindAccountName' => 'getBindAccountName', + 'bindCardNo' => 'getBindCardNo', + 'bindBankCode' => 'getBindBankCode', + 'businessScope' => 'getBusinessScope', + 'businessValidStart' => 'getBusinessValidStart', + 'businessValidEnd' => 'getBusinessValidEnd', + 'legalMobile' => 'getLegalMobile', + 'contactName' => 'getContactName', + 'contactMobile' => 'getContactMobile', + 'contactCardNo' => 'getContactCardNo', + 'contactCardImageFont' => 'getContactCardImageFont', + 'contactCardImageBack' => 'getContactCardImageBack', + 'contactCardType' => 'getContactCardType', + 'magAddress' => 'getMagAddress', + 'caAuthorizationFile' => 'getCaAuthorizationFile', + 'legalAuthorizationFile' => 'getLegalAuthorizationFile', + 'address' => 'getAddress', + 'benefitInfoReqDTOList' => 'getBenefitInfoReqDTOList', + 'shareHolderInfoList' => 'getShareHolderInfoList' + ]; + + /** + * 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['notifySmsUrl'] = isset($data['notifySmsUrl']) ? $data['notifySmsUrl'] : null; + $this->container['bindCardType'] = isset($data['bindCardType']) ? $data['bindCardType'] : null; + $this->container['bindAccountName'] = isset($data['bindAccountName']) ? $data['bindAccountName'] : null; + $this->container['bindCardNo'] = isset($data['bindCardNo']) ? $data['bindCardNo'] : null; + $this->container['bindBankCode'] = isset($data['bindBankCode']) ? $data['bindBankCode'] : null; + $this->container['businessScope'] = isset($data['businessScope']) ? $data['businessScope'] : null; + $this->container['businessValidStart'] = isset($data['businessValidStart']) ? $data['businessValidStart'] : null; + $this->container['businessValidEnd'] = isset($data['businessValidEnd']) ? $data['businessValidEnd'] : null; + $this->container['legalMobile'] = isset($data['legalMobile']) ? $data['legalMobile'] : null; + $this->container['contactName'] = isset($data['contactName']) ? $data['contactName'] : null; + $this->container['contactMobile'] = isset($data['contactMobile']) ? $data['contactMobile'] : null; + $this->container['contactCardNo'] = isset($data['contactCardNo']) ? $data['contactCardNo'] : null; + $this->container['contactCardImageFont'] = isset($data['contactCardImageFont']) ? $data['contactCardImageFont'] : null; + $this->container['contactCardImageBack'] = isset($data['contactCardImageBack']) ? $data['contactCardImageBack'] : null; + $this->container['contactCardType'] = isset($data['contactCardType']) ? $data['contactCardType'] : null; + $this->container['magAddress'] = isset($data['magAddress']) ? $data['magAddress'] : null; + $this->container['caAuthorizationFile'] = isset($data['caAuthorizationFile']) ? $data['caAuthorizationFile'] : null; + $this->container['legalAuthorizationFile'] = isset($data['legalAuthorizationFile']) ? $data['legalAuthorizationFile'] : null; + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['benefitInfoReqDTOList'] = isset($data['benefitInfoReqDTOList']) ? $data['benefitInfoReqDTOList'] : null; + $this->container['shareHolderInfoList'] = isset($data['shareHolderInfoList']) ? $data['shareHolderInfoList'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['notifySmsUrl'] === null) { + $invalidProperties[] = "'notifySmsUrl' can't be null"; + } + if ($this->container['bindCardType'] === null) { + $invalidProperties[] = "'bindCardType' can't be null"; + } + if ($this->container['bindAccountName'] === null) { + $invalidProperties[] = "'bindAccountName' can't be null"; + } + if ($this->container['bindCardNo'] === null) { + $invalidProperties[] = "'bindCardNo' can't be null"; + } + if ($this->container['bindBankCode'] === null) { + $invalidProperties[] = "'bindBankCode' can't be null"; + } + if ($this->container['businessScope'] === null) { + $invalidProperties[] = "'businessScope' can't be null"; + } + if ($this->container['businessValidStart'] === null) { + $invalidProperties[] = "'businessValidStart' can't be null"; + } + if ($this->container['businessValidEnd'] === null) { + $invalidProperties[] = "'businessValidEnd' can't be null"; + } + if ($this->container['legalMobile'] === null) { + $invalidProperties[] = "'legalMobile' can't be null"; + } + if ($this->container['contactName'] === null) { + $invalidProperties[] = "'contactName' can't be null"; + } + if ($this->container['contactMobile'] === null) { + $invalidProperties[] = "'contactMobile' can't be null"; + } + if ($this->container['contactCardNo'] === null) { + $invalidProperties[] = "'contactCardNo' can't be null"; + } + if ($this->container['contactCardImageFont'] === null) { + $invalidProperties[] = "'contactCardImageFont' can't be null"; + } + if ($this->container['contactCardImageBack'] === null) { + $invalidProperties[] = "'contactCardImageBack' can't be null"; + } + if ($this->container['contactCardType'] === null) { + $invalidProperties[] = "'contactCardType' can't be null"; + } + if ($this->container['magAddress'] === null) { + $invalidProperties[] = "'magAddress' can't be null"; + } + if ($this->container['caAuthorizationFile'] === null) { + $invalidProperties[] = "'caAuthorizationFile' can't be null"; + } + if ($this->container['address'] === null) { + $invalidProperties[] = "'address' can't be null"; + } + if ($this->container['benefitInfoReqDTOList'] === null) { + $invalidProperties[] = "'benefitInfoReqDTOList' can't be null"; + } + if ($this->container['shareHolderInfoList'] === null) { + $invalidProperties[] = "'shareHolderInfoList' can't be null"; + } + 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 notifySmsUrl + * + * @return string + */ + public function getNotifySmsUrl() + { + return $this->container['notifySmsUrl']; + } + + /** + * Sets notifySmsUrl + * + * @param string $notifySmsUrl 短验通知路径
开户申请银行审核后通知到该地址,商户接收后发起申请短验 + * + * @return $this + */ + public function setNotifySmsUrl($notifySmsUrl) + { + $this->container['notifySmsUrl'] = $notifySmsUrl; + + return $this; + } + + /** + * Gets bindCardType + * + * @return string + */ + public function getBindCardType() + { + return $this->container['bindCardType']; + } + + /** + * Sets bindCardType + * + * @param string $bindCardType 绑定卡类型
可选项如下:
PUBLIC_CARD:对公卡
PRIVATE_CARD:对私卡 + * + * @return $this + */ + public function setBindCardType($bindCardType) + { + $this->container['bindCardType'] = $bindCardType; + + return $this; + } + + /** + * Gets bindAccountName + * + * @return string + */ + public function getBindAccountName() + { + return $this->container['bindAccountName']; + } + + /** + * Sets bindAccountName + * + * @param string $bindAccountName 绑卡银行账户名称 + * + * @return $this + */ + public function setBindAccountName($bindAccountName) + { + $this->container['bindAccountName'] = $bindAccountName; + + return $this; + } + + /** + * Gets bindCardNo + * + * @return string + */ + public function getBindCardNo() + { + return $this->container['bindCardNo']; + } + + /** + * Sets bindCardNo + * + * @param string $bindCardNo 绑定银行卡号 + * + * @return $this + */ + public function setBindCardNo($bindCardNo) + { + $this->container['bindCardNo'] = $bindCardNo; + + return $this; + } + + /** + * Gets bindBankCode + * + * @return string + */ + public function getBindBankCode() + { + return $this->container['bindBankCode']; + } + + /** + * Sets bindBankCode + * + * @param string $bindBankCode 绑定银行编码 + * + * @return $this + */ + public function setBindBankCode($bindBankCode) + { + $this->container['bindBankCode'] = $bindBankCode; + + return $this; + } + + /** + * Gets businessScope + * + * @return string + */ + public function getBusinessScope() + { + return $this->container['businessScope']; + } + + /** + * Sets businessScope + * + * @param string $businessScope 经营范围 + * + * @return $this + */ + public function setBusinessScope($businessScope) + { + $this->container['businessScope'] = $businessScope; + + return $this; + } + + /** + * Gets businessValidStart + * + * @return string + */ + public function getBusinessValidStart() + { + return $this->container['businessValidStart']; + } + + /** + * Sets businessValidStart + * + * @param string $businessValidStart 企业证件生效日期
参数格式为yyyyMMdd + * + * @return $this + */ + public function setBusinessValidStart($businessValidStart) + { + $this->container['businessValidStart'] = $businessValidStart; + + return $this; + } + + /** + * Gets businessValidEnd + * + * @return string + */ + public function getBusinessValidEnd() + { + return $this->container['businessValidEnd']; + } + + /** + * Sets businessValidEnd + * + * @param string $businessValidEnd 企业证件失效日期
参数格式为yyyyMMdd或者forever + * + * @return $this + */ + public function setBusinessValidEnd($businessValidEnd) + { + $this->container['businessValidEnd'] = $businessValidEnd; + + return $this; + } + + /** + * Gets legalMobile + * + * @return string + */ + public function getLegalMobile() + { + return $this->container['legalMobile']; + } + + /** + * Sets legalMobile + * + * @param string $legalMobile 法人手机号码 + * + * @return $this + */ + public function setLegalMobile($legalMobile) + { + $this->container['legalMobile'] = $legalMobile; + + return $this; + } + + /** + * Gets contactName + * + * @return string + */ + public function getContactName() + { + return $this->container['contactName']; + } + + /** + * Sets contactName + * + * @param string $contactName 短验联系人姓名
用于开户过程中做短验申请和确认使用 + * + * @return $this + */ + public function setContactName($contactName) + { + $this->container['contactName'] = $contactName; + + return $this; + } + + /** + * Gets contactMobile + * + * @return string + */ + public function getContactMobile() + { + return $this->container['contactMobile']; + } + + /** + * Sets contactMobile + * + * @param string $contactMobile 短验联系人手机号
法人和联系人非同一人时,手机号不能是同一个 + * + * @return $this + */ + public function setContactMobile($contactMobile) + { + $this->container['contactMobile'] = $contactMobile; + + return $this; + } + + /** + * Gets contactCardNo + * + * @return string + */ + public function getContactCardNo() + { + return $this->container['contactCardNo']; + } + + /** + * Sets contactCardNo + * + * @param string $contactCardNo 短验联系人证件号码 + * + * @return $this + */ + public function setContactCardNo($contactCardNo) + { + $this->container['contactCardNo'] = $contactCardNo; + + return $this; + } + + /** + * Gets contactCardImageFont + * + * @return string + */ + public function getContactCardImageFont() + { + return $this->container['contactCardImageFont']; + } + + /** + * Sets contactCardImageFont + * + * @param string $contactCardImageFont 短验联系人证件照片正面地址 + * + * @return $this + */ + public function setContactCardImageFont($contactCardImageFont) + { + $this->container['contactCardImageFont'] = $contactCardImageFont; + + return $this; + } + + /** + * Gets contactCardImageBack + * + * @return string + */ + public function getContactCardImageBack() + { + return $this->container['contactCardImageBack']; + } + + /** + * Sets contactCardImageBack + * + * @param string $contactCardImageBack 短验联系人件照片反面地址 + * + * @return $this + */ + public function setContactCardImageBack($contactCardImageBack) + { + $this->container['contactCardImageBack'] = $contactCardImageBack; + + return $this; + } + + /** + * Gets contactCardType + * + * @return string + */ + public function getContactCardType() + { + return $this->container['contactCardType']; + } + + /** + * Sets contactCardType + * + * @param string $contactCardType 短验联系人证件类型
可选项如下:
ID_CARD:身份证 + * + * @return $this + */ + public function setContactCardType($contactCardType) + { + $this->container['contactCardType'] = $contactCardType; + + return $this; + } + + /** + * Gets magAddress + * + * @return string + */ + public function getMagAddress() + { + return $this->container['magAddress']; + } + + /** + * Sets magAddress + * + * @param string $magAddress 企业实际经营地址 + * + * @return $this + */ + public function setMagAddress($magAddress) + { + $this->container['magAddress'] = $magAddress; + + return $this; + } + + /** + * Gets caAuthorizationFile + * + * @return string + */ + public function getCaAuthorizationFile() + { + return $this->container['caAuthorizationFile']; + } + + /** + * Sets caAuthorizationFile + * + * @param string $caAuthorizationFile 企业CA证书及电子签名授权委托书路径 + * + * @return $this + */ + public function setCaAuthorizationFile($caAuthorizationFile) + { + $this->container['caAuthorizationFile'] = $caAuthorizationFile; + + return $this; + } + + /** + * Gets legalAuthorizationFile + * + * @return string + */ + public function getLegalAuthorizationFile() + { + return $this->container['legalAuthorizationFile']; + } + + /** + * Sets legalAuthorizationFile + * + * @param string $legalAuthorizationFile 法人委托授权书 + * + * @return $this + */ + public function setLegalAuthorizationFile($legalAuthorizationFile) + { + $this->container['legalAuthorizationFile'] = $legalAuthorizationFile; + + return $this; + } + + /** + * Gets address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address 办公地址 + * + * @return $this + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets benefitInfoReqDTOList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\BenefitInfoReqDTO[] + */ + public function getBenefitInfoReqDTOList() + { + return $this->container['benefitInfoReqDTOList']; + } + + /** + * Sets benefitInfoReqDTOList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\BenefitInfoReqDTO[] $benefitInfoReqDTOList 收益人信息
不能超过4个 + * + * @return $this + */ + public function setBenefitInfoReqDTOList($benefitInfoReqDTOList) + { + $this->container['benefitInfoReqDTOList'] = $benefitInfoReqDTOList; + + return $this; + } + + /** + * Gets shareHolderInfoList + * + * @return \Yeepay\Yop\Sdk\Service\Account\Model\ShareHolderInfoReqDTO[] + */ + public function getShareHolderInfoList() + { + return $this->container['shareHolderInfoList']; + } + + /** + * Sets shareHolderInfoList + * + * @param \Yeepay\Yop\Sdk\Service\Account\Model\ShareHolderInfoReqDTO[] $shareHolderInfoList 股东信息
不能超过4个 + * + * @return $this + */ + public function setShareHolderInfoList($shareHolderInfoList) + { + $this->container['shareHolderInfoList'] = $shareHolderInfoList; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/AggpayClient.php b/lib/Service/Aggpay/AggpayClient.php index 5fa0fe7..0b00814 100644 --- a/lib/Service/Aggpay/AggpayClient.php +++ b/lib/Service/Aggpay/AggpayClient.php @@ -18,6 +18,7 @@ class AggpayClient /** * AggpayClient constructor. + * * @param ClientParams $clientParams */ function __construct(ClientParams $clientParams) @@ -57,6 +58,22 @@ class AggpayClient return $this->clientHandler->execute($clientExecutionParams); } + /** + * @param Model\TutelagePrePayRequest $request + * @return Model\TutelagePrePayResponse + * @throws YopClientException + */ + public function tutelagePrePay(Model\TutelagePrePayRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, + Model\TutelagePrePayRequestMarshaller::getInstance(), + Model\TutelagePrePayResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** * @param Model\ViolationWechatChannelRequest $request * @return Model\ViolationWechatChannelResponse @@ -116,7 +133,6 @@ class AggpayClient $clientExecutionParams = new ClientExecutionParams($request, Model\WechatConfigAdd0RequestMarshaller::getInstance(), Model\WechatConfigAdd0ResponseUnMarshaller::getInstance()); - return $this->clientHandler->execute($clientExecutionParams); } diff --git a/lib/Service/Aggpay/AggpayClientBuilder.php b/lib/Service/Aggpay/AggpayClientBuilder.php index 19d80ef..0fd5435 100644 --- a/lib/Service/Aggpay/AggpayClientBuilder.php +++ b/lib/Service/Aggpay/AggpayClientBuilder.php @@ -27,6 +27,8 @@ class AggpayClientBuilder AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); self::$authorizationReqRegistry->register('prePay', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('tutelagePrePay', + AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); self::$authorizationReqRegistry->register('violationWechatChannel', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); self::$authorizationReqRegistry->register('wechatConfigAdd', @@ -46,6 +48,7 @@ class AggpayClientBuilder /** * AggpayClientBuilder constructor. + * * @param ClientParams $clientParams */ public function __construct(ClientParams $clientParams) diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDetailsRequest.php b/lib/Service/Aggpay/Model/ComplaintWechatDetailsRequest.php new file mode 100644 index 0000000..0ed0cab --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDetailsRequest.php @@ -0,0 +1,42 @@ +complaintNo; + } + + /** + * Sets complaintNo + * + * @param string $complaintNo + * @return ComplaintWechatDetailsRequest + */ + public function setComplaintNo($complaintNo) + { + $this->complaintNo = $complaintNo; + return $this; + } + + public static function getOperationId() + { + return 'complaintWechatDetails'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDetailsRequestMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatDetailsRequestMarshaller.php new file mode 100644 index 0000000..02704ac --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDetailsRequestMarshaller.php @@ -0,0 +1,80 @@ +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->getComplaintNo() != null){ + $internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ComplaintWechatDetailsRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDetailsResponse.php b/lib/Service/Aggpay/Model/ComplaintWechatDetailsResponse.php new file mode 100644 index 0000000..2ca2823 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDetailsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDetailsResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatDetailsResponseUnMarshaller.php new file mode 100644 index 0000000..11b1a7a --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDetailsResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ComplaintWechatDetailsWechatComplaintInfoFlatResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'complaintNo' => 'string', + 'complaintTime' => 'string', + 'complaintDetail' => 'string', + 'complaintState' => 'string', + 'complaintOpenId' => 'string', + 'complaintContact' => 'string', + 'complaintCount' => 'int', + 'wechatMerchantNo' => 'string', + 'merchantNo' => 'string', + 'isResponse' => 'bool', + 'wechatOrderNo' => 'string', + 'merchantOrderNo' => 'string', + 'amount' => 'string', + 'bankOrderNo' => 'string', + 'isFullRefunded' => 'bool', + 'tradeTime' => 'string', + 'complaintMediaDTOList' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'complaintNo' => null, + 'complaintTime' => null, + 'complaintDetail' => null, + 'complaintState' => null, + 'complaintOpenId' => null, + 'complaintContact' => null, + 'complaintCount' => 'int32', + 'wechatMerchantNo' => null, + 'merchantNo' => null, + 'isResponse' => null, + 'wechatOrderNo' => null, + 'merchantOrderNo' => null, + 'amount' => null, + 'bankOrderNo' => null, + 'isFullRefunded' => null, + 'tradeTime' => null, + 'complaintMediaDTOList' => 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', + 'complaintNo' => 'complaintNo', + 'complaintTime' => 'complaintTime', + 'complaintDetail' => 'complaintDetail', + 'complaintState' => 'complaintState', + 'complaintOpenId' => 'complaintOpenId', + 'complaintContact' => 'complaintContact', + 'complaintCount' => 'complaintCount', + 'wechatMerchantNo' => 'wechatMerchantNo', + 'merchantNo' => 'merchantNo', + 'isResponse' => 'isResponse', + 'wechatOrderNo' => 'wechatOrderNo', + 'merchantOrderNo' => 'merchantOrderNo', + 'amount' => 'amount', + 'bankOrderNo' => 'bankOrderNo', + 'isFullRefunded' => 'isFullRefunded', + 'tradeTime' => 'tradeTime', + 'complaintMediaDTOList' => 'complaintMediaDTOList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'complaintNo' => 'setComplaintNo', + 'complaintTime' => 'setComplaintTime', + 'complaintDetail' => 'setComplaintDetail', + 'complaintState' => 'setComplaintState', + 'complaintOpenId' => 'setComplaintOpenId', + 'complaintContact' => 'setComplaintContact', + 'complaintCount' => 'setComplaintCount', + 'wechatMerchantNo' => 'setWechatMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'isResponse' => 'setIsResponse', + 'wechatOrderNo' => 'setWechatOrderNo', + 'merchantOrderNo' => 'setMerchantOrderNo', + 'amount' => 'setAmount', + 'bankOrderNo' => 'setBankOrderNo', + 'isFullRefunded' => 'setIsFullRefunded', + 'tradeTime' => 'setTradeTime', + 'complaintMediaDTOList' => 'setComplaintMediaDTOList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'complaintNo' => 'getComplaintNo', + 'complaintTime' => 'getComplaintTime', + 'complaintDetail' => 'getComplaintDetail', + 'complaintState' => 'getComplaintState', + 'complaintOpenId' => 'getComplaintOpenId', + 'complaintContact' => 'getComplaintContact', + 'complaintCount' => 'getComplaintCount', + 'wechatMerchantNo' => 'getWechatMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'isResponse' => 'getIsResponse', + 'wechatOrderNo' => 'getWechatOrderNo', + 'merchantOrderNo' => 'getMerchantOrderNo', + 'amount' => 'getAmount', + 'bankOrderNo' => 'getBankOrderNo', + 'isFullRefunded' => 'getIsFullRefunded', + 'tradeTime' => 'getTradeTime', + 'complaintMediaDTOList' => 'getComplaintMediaDTOList' + ]; + + /** + * 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['complaintNo'] = isset($data['complaintNo']) ? $data['complaintNo'] : null; + $this->container['complaintTime'] = isset($data['complaintTime']) ? $data['complaintTime'] : null; + $this->container['complaintDetail'] = isset($data['complaintDetail']) ? $data['complaintDetail'] : null; + $this->container['complaintState'] = isset($data['complaintState']) ? $data['complaintState'] : null; + $this->container['complaintOpenId'] = isset($data['complaintOpenId']) ? $data['complaintOpenId'] : null; + $this->container['complaintContact'] = isset($data['complaintContact']) ? $data['complaintContact'] : null; + $this->container['complaintCount'] = isset($data['complaintCount']) ? $data['complaintCount'] : null; + $this->container['wechatMerchantNo'] = isset($data['wechatMerchantNo']) ? $data['wechatMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['isResponse'] = isset($data['isResponse']) ? $data['isResponse'] : null; + $this->container['wechatOrderNo'] = isset($data['wechatOrderNo']) ? $data['wechatOrderNo'] : null; + $this->container['merchantOrderNo'] = isset($data['merchantOrderNo']) ? $data['merchantOrderNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['bankOrderNo'] = isset($data['bankOrderNo']) ? $data['bankOrderNo'] : null; + $this->container['isFullRefunded'] = isset($data['isFullRefunded']) ? $data['isFullRefunded'] : null; + $this->container['tradeTime'] = isset($data['tradeTime']) ? $data['tradeTime'] : null; + $this->container['complaintMediaDTOList'] = isset($data['complaintMediaDTOList']) ? $data['complaintMediaDTOList'] : 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 complaintNo + * + * @return string + */ + public function getComplaintNo() + { + return $this->container['complaintNo']; + } + + /** + * Sets complaintNo + * + * @param string $complaintNo 投诉单号 + * + * @return $this + */ + public function setComplaintNo($complaintNo) + { + $this->container['complaintNo'] = $complaintNo; + + return $this; + } + + /** + * Gets complaintTime + * + * @return string + */ + public function getComplaintTime() + { + return $this->container['complaintTime']; + } + + /** + * Sets complaintTime + * + * @param string $complaintTime 投诉时间 + * + * @return $this + */ + public function setComplaintTime($complaintTime) + { + $this->container['complaintTime'] = $complaintTime; + + return $this; + } + + /** + * Gets complaintDetail + * + * @return string + */ + public function getComplaintDetail() + { + return $this->container['complaintDetail']; + } + + /** + * Sets complaintDetail + * + * @param string $complaintDetail 投诉详情 + * + * @return $this + */ + public function setComplaintDetail($complaintDetail) + { + $this->container['complaintDetail'] = $complaintDetail; + + return $this; + } + + /** + * Gets complaintState + * + * @return string + */ + public function getComplaintState() + { + return $this->container['complaintState']; + } + + /** + * Sets complaintState + * + * @param string $complaintState 投诉单状态 + * + * @return $this + */ + public function setComplaintState($complaintState) + { + $this->container['complaintState'] = $complaintState; + + return $this; + } + + /** + * Gets complaintOpenId + * + * @return string + */ + public function getComplaintOpenId() + { + return $this->container['complaintOpenId']; + } + + /** + * Sets complaintOpenId + * + * @param string $complaintOpenId 投诉人openid + * + * @return $this + */ + public function setComplaintOpenId($complaintOpenId) + { + $this->container['complaintOpenId'] = $complaintOpenId; + + return $this; + } + + /** + * Gets complaintContact + * + * @return string + */ + public function getComplaintContact() + { + return $this->container['complaintContact']; + } + + /** + * Sets complaintContact + * + * @param string $complaintContact 投诉人联系方式 + * + * @return $this + */ + public function setComplaintContact($complaintContact) + { + $this->container['complaintContact'] = $complaintContact; + + return $this; + } + + /** + * Gets complaintCount + * + * @return int + */ + public function getComplaintCount() + { + return $this->container['complaintCount']; + } + + /** + * Sets complaintCount + * + * @param int $complaintCount 用户投诉次数 + * + * @return $this + */ + public function setComplaintCount($complaintCount) + { + $this->container['complaintCount'] = $complaintCount; + + return $this; + } + + /** + * Gets wechatMerchantNo + * + * @return string + */ + public function getWechatMerchantNo() + { + return $this->container['wechatMerchantNo']; + } + + /** + * Sets wechatMerchantNo + * + * @param string $wechatMerchantNo 微信商户号 + * + * @return $this + */ + public function setWechatMerchantNo($wechatMerchantNo) + { + $this->container['wechatMerchantNo'] = $wechatMerchantNo; + + 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 isResponse + * + * @return bool + */ + public function getIsResponse() + { + return $this->container['isResponse']; + } + + /** + * Sets isResponse + * + * @param bool $isResponse 是否有待回复留言 + * + * @return $this + */ + public function setIsResponse($isResponse) + { + $this->container['isResponse'] = $isResponse; + + return $this; + } + + /** + * Gets wechatOrderNo + * + * @return string + */ + public function getWechatOrderNo() + { + return $this->container['wechatOrderNo']; + } + + /** + * Sets wechatOrderNo + * + * @param string $wechatOrderNo 微信订单号 + * + * @return $this + */ + public function setWechatOrderNo($wechatOrderNo) + { + $this->container['wechatOrderNo'] = $wechatOrderNo; + + return $this; + } + + /** + * Gets merchantOrderNo + * + * @return string + */ + public function getMerchantOrderNo() + { + return $this->container['merchantOrderNo']; + } + + /** + * Sets merchantOrderNo + * + * @param string $merchantOrderNo 易宝商户订单号 + * + * @return $this + */ + public function setMerchantOrderNo($merchantOrderNo) + { + $this->container['merchantOrderNo'] = $merchantOrderNo; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount 订单金额 + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets bankOrderNo + * + * @return string + */ + public function getBankOrderNo() + { + return $this->container['bankOrderNo']; + } + + /** + * Sets bankOrderNo + * + * @param string $bankOrderNo 银行订单号 + * + * @return $this + */ + public function setBankOrderNo($bankOrderNo) + { + $this->container['bankOrderNo'] = $bankOrderNo; + + return $this; + } + + /** + * Gets isFullRefunded + * + * @return bool + */ + public function getIsFullRefunded() + { + return $this->container['isFullRefunded']; + } + + /** + * Sets isFullRefunded + * + * @param bool $isFullRefunded 投诉单是否已全额退款 + * + * @return $this + */ + public function setIsFullRefunded($isFullRefunded) + { + $this->container['isFullRefunded'] = $isFullRefunded; + + return $this; + } + + /** + * Gets tradeTime + * + * @return string + */ + public function getTradeTime() + { + return $this->container['tradeTime']; + } + + /** + * Sets tradeTime + * + * @param string $tradeTime 交易时间 + * + * @return $this + */ + public function setTradeTime($tradeTime) + { + $this->container['tradeTime'] = $tradeTime; + + return $this; + } + + /** + * Gets complaintMediaDTOList + * + * @return string + */ + public function getComplaintMediaDTOList() + { + return $this->container['complaintMediaDTOList']; + } + + /** + * Sets complaintMediaDTOList + * + * @param string $complaintMediaDTOList 用户上传的投诉相关资料 + * + * @return $this + */ + public function setComplaintMediaDTOList($complaintMediaDTOList) + { + $this->container['complaintMediaDTOList'] = $complaintMediaDTOList; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequest.php b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequest.php new file mode 100644 index 0000000..c64948f --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequest.php @@ -0,0 +1,92 @@ +complaintNo; + } + + /** + * Sets complaintNo + * + * @param string $complaintNo + * @return ComplaintWechatDownloadPicRequest + */ + public function setComplaintNo($complaintNo) + { + $this->complaintNo = $complaintNo; + return $this; + } + /** + * Gets fileType + * + * @return string + */ + public function getFileType() + { + return $this->fileType; + } + + /** + * Sets fileType + * + * @param string $fileType + * @return ComplaintWechatDownloadPicRequest + */ + public function setFileType($fileType) + { + $this->fileType = $fileType; + return $this; + } + /** + * Gets pictureUrl + * + * @return string + */ + public function getPictureUrl() + { + return $this->pictureUrl; + } + + /** + * Sets pictureUrl + * + * @param string $pictureUrl + * @return ComplaintWechatDownloadPicRequest + */ + public function setPictureUrl($pictureUrl) + { + $this->pictureUrl = $pictureUrl; + return $this; + } + + public static function getOperationId() + { + return 'complaintWechatDownloadPic'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequestMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequestMarshaller.php new file mode 100644 index 0000000..f3c1966 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getComplaintNo() != null){ + $internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string')); + } + if($request->getFileType() != null){ + $internalRequest->addParameter('fileType', ObjectSerializer::sanitizeForSerialization($request->getFileType(), 'string')); + } + if($request->getPictureUrl() != null){ + $internalRequest->addParameter('pictureUrl', ObjectSerializer::sanitizeForSerialization($request->getPictureUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ComplaintWechatDownloadPicRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponse.php b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponse.php new file mode 100644 index 0000000..fec3e86 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponseUnMarshaller.php new file mode 100644 index 0000000..a5bfec6 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatDownloadPicResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ComplaintWechatDownloadPicWechatComplaintDownloadPicResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'picture' => 'string', + 'pictureType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'picture' => null, + 'pictureType' => 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', + 'picture' => 'picture', + 'pictureType' => 'pictureType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'picture' => 'setPicture', + 'pictureType' => 'setPictureType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'picture' => 'getPicture', + 'pictureType' => 'getPictureType' + ]; + + /** + * 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['picture'] = isset($data['picture']) ? $data['picture'] : null; + $this->container['pictureType'] = isset($data['pictureType']) ? $data['pictureType'] : 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 picture + * + * @return string + */ + public function getPicture() + { + return $this->container['picture']; + } + + /** + * Sets picture + * + * @param string $picture 图片 + * + * @return $this + */ + public function setPicture($picture) + { + $this->container['picture'] = $picture; + + return $this; + } + + /** + * Gets pictureType + * + * @return string + */ + public function getPictureType() + { + return $this->container['pictureType']; + } + + /** + * Sets pictureType + * + * @param string $pictureType 图片类型 + * + * @return $this + */ + public function setPictureType($pictureType) + { + $this->container['pictureType'] = $pictureType; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ComplaintWechatFeedbackBaseResponseDTOResult.php b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackBaseResponseDTOResult.php new file mode 100644 index 0000000..afbb83c --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackBaseResponseDTOResult.php @@ -0,0 +1,332 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ComplaintWechatFeedbackBaseResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ComplaintWechatFeedbackBaseResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ComplaintWechatFeedbackBaseResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequest.php b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequest.php new file mode 100644 index 0000000..b746b2a --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequest.php @@ -0,0 +1,117 @@ +complaintNo; + } + + /** + * Sets complaintNo + * + * @param string $complaintNo + * @return ComplaintWechatFeedbackRequest + */ + public function setComplaintNo($complaintNo) + { + $this->complaintNo = $complaintNo; + return $this; + } + /** + * Gets feedbackContent + * + * @return string + */ + public function getFeedbackContent() + { + return $this->feedbackContent; + } + + /** + * Sets feedbackContent + * + * @param string $feedbackContent + * @return ComplaintWechatFeedbackRequest + */ + public function setFeedbackContent($feedbackContent) + { + $this->feedbackContent = $feedbackContent; + return $this; + } + /** + * Gets imageList + * + * @return string + */ + public function getImageList() + { + return $this->imageList; + } + + /** + * Sets imageList + * + * @param string $imageList + * @return ComplaintWechatFeedbackRequest + */ + public function setImageList($imageList) + { + $this->imageList = $imageList; + return $this; + } + /** + * Gets feedbackType + * + * @return string + */ + public function getFeedbackType() + { + return $this->feedbackType; + } + + /** + * Sets feedbackType + * + * @param string $feedbackType + * @return ComplaintWechatFeedbackRequest + */ + public function setFeedbackType($feedbackType) + { + $this->feedbackType = $feedbackType; + return $this; + } + + public static function getOperationId() + { + return 'complaintWechatFeedback'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequestMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequestMarshaller.php new file mode 100644 index 0000000..cf0a1b8 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getComplaintNo() != null){ + $internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string')); + } + if($request->getFeedbackContent() != null){ + $internalRequest->addParameter('feedbackContent', ObjectSerializer::sanitizeForSerialization($request->getFeedbackContent(), 'string')); + } + if($request->getImageList() != null){ + $internalRequest->addParameter('imageList', ObjectSerializer::sanitizeForSerialization($request->getImageList(), 'string')); + } + if($request->getFeedbackType() != null){ + $internalRequest->addParameter('feedbackType', ObjectSerializer::sanitizeForSerialization($request->getFeedbackType(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ComplaintWechatFeedbackRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponse.php b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponse.php new file mode 100644 index 0000000..26b1ec4 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ComplaintWechatFeedbackBaseResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponseUnMarshaller.php new file mode 100644 index 0000000..79197f4 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatFeedbackResponseUnMarshaller.php @@ -0,0 +1,39 @@ +startTime; + } + + /** + * Sets startTime + * + * @param string $startTime + * @return ComplaintWechatListRequest + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + return $this; + } + /** + * Gets endTime + * + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param string $endTime + * @return ComplaintWechatListRequest + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + /** + * Gets merchantOrderNo + * + * @return string + */ + public function getMerchantOrderNo() + { + return $this->merchantOrderNo; + } + + /** + * Sets merchantOrderNo + * + * @param string $merchantOrderNo + * @return ComplaintWechatListRequest + */ + public function setMerchantOrderNo($merchantOrderNo) + { + $this->merchantOrderNo = $merchantOrderNo; + return $this; + } + /** + * Gets wechatOrderNo + * + * @return string + */ + public function getWechatOrderNo() + { + return $this->wechatOrderNo; + } + + /** + * Sets wechatOrderNo + * + * @param string $wechatOrderNo + * @return ComplaintWechatListRequest + */ + public function setWechatOrderNo($wechatOrderNo) + { + $this->wechatOrderNo = $wechatOrderNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return ComplaintWechatListRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets page + * + * @return int + */ + public function getPage() + { + return $this->page; + } + + /** + * Sets page + * + * @param int $page + * @return ComplaintWechatListRequest + */ + public function setPage($page) + { + $this->page = $page; + return $this; + } + /** + * Gets limit + * + * @return int + */ + public function getLimit() + { + return $this->limit; + } + + /** + * Sets limit + * + * @param int $limit + * @return ComplaintWechatListRequest + */ + public function setLimit($limit) + { + $this->limit = $limit; + return $this; + } + + public static function getOperationId() + { + return 'complaintWechatList'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatListRequestMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatListRequestMarshaller.php new file mode 100644 index 0000000..2b9bdca --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatListRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getStartTime() != null){ + $internalRequest->addParameter('startTime', ObjectSerializer::sanitizeForSerialization($request->getStartTime(), 'string')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string')); + } + if($request->getMerchantOrderNo() != null){ + $internalRequest->addParameter('merchantOrderNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantOrderNo(), 'string')); + } + if($request->getWechatOrderNo() != null){ + $internalRequest->addParameter('wechatOrderNo', ObjectSerializer::sanitizeForSerialization($request->getWechatOrderNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getPage() != null){ + $internalRequest->addParameter('page', ObjectSerializer::sanitizeForSerialization($request->getPage(), 'int', 'int32')); + } + if($request->getLimit() != null){ + $internalRequest->addParameter('limit', ObjectSerializer::sanitizeForSerialization($request->getLimit(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ComplaintWechatListRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ComplaintWechatListResponse.php b/lib/Service/Aggpay/Model/ComplaintWechatListResponse.php new file mode 100644 index 0000000..287012c --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatListResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ComplaintWechatListWechatComplaintListFlatResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatListResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatListResponseUnMarshaller.php new file mode 100644 index 0000000..2b07ea0 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatListResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ComplaintWechatListWechatComplaintListFlatResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ComplaintWechatListWechatComplaintListFlatResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ComplaintWechatListWechatComplaintListFlatResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'list' => 'string', + 'count' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'list' => null, + 'count' => 'int32' + ]; + + /** + * 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', + 'list' => 'list', + 'count' => 'count' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'list' => 'setList', + 'count' => 'setCount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'list' => 'getList', + 'count' => 'getCount' + ]; + + /** + * 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['list'] = isset($data['list']) ? $data['list'] : null; + $this->container['count'] = isset($data['count']) ? $data['count'] : 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 list + * + * @return string + */ + public function getList() + { + return $this->container['list']; + } + + /** + * Sets list + * + * @param string $list 投诉订单列表 + * + * @return $this + */ + public function setList($list) + { + $this->container['list'] = $list; + + return $this; + } + + /** + * Gets count + * + * @return int + */ + public function getCount() + { + return $this->container['count']; + } + + /** + * Sets count + * + * @param int $count 查询总数 + * + * @return $this + */ + public function setCount($count) + { + $this->container['count'] = $count; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequest.php b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequest.php new file mode 100644 index 0000000..2b6ab0f --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequest.php @@ -0,0 +1,42 @@ +complaintNo; + } + + /** + * Sets complaintNo + * + * @param string $complaintNo + * @return ComplaintWechatNegotiationHistoryRequest + */ + public function setComplaintNo($complaintNo) + { + $this->complaintNo = $complaintNo; + return $this; + } + + public static function getOperationId() + { + return 'complaintWechatNegotiationHistory'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequestMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequestMarshaller.php new file mode 100644 index 0000000..02ba55d --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryRequestMarshaller.php @@ -0,0 +1,80 @@ +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->getComplaintNo() != null){ + $internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ComplaintWechatNegotiationHistoryRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponse.php b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponse.php new file mode 100644 index 0000000..9fda23a --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponseUnMarshaller.php new file mode 100644 index 0000000..f831aac --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatNegotiationHistoryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ComplaintWechatNegotiationHistoryWechatComplaintNegotiationHistoryFlatResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'list' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'list' => 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', + 'list' => 'list' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'list' => 'setList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'list' => 'getList' + ]; + + /** + * 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['list'] = isset($data['list']) ? $data['list'] : 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 list + * + * @return string + */ + public function getList() + { + return $this->container['list']; + } + + /** + * Sets list + * + * @param string $list 协商历史列表 + * + * @return $this + */ + public function setList($list) + { + $this->container['list'] = $list; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ComplaintWechatSuccessBaseResponseDTOResult.php b/lib/Service/Aggpay/Model/ComplaintWechatSuccessBaseResponseDTOResult.php new file mode 100644 index 0000000..edd7f5c --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatSuccessBaseResponseDTOResult.php @@ -0,0 +1,332 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ComplaintWechatSuccessBaseResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ComplaintWechatSuccessBaseResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ComplaintWechatSuccessBaseResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ComplaintWechatSuccessRequest.php b/lib/Service/Aggpay/Model/ComplaintWechatSuccessRequest.php new file mode 100644 index 0000000..4e4eef8 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatSuccessRequest.php @@ -0,0 +1,42 @@ +complaintNo; + } + + /** + * Sets complaintNo + * + * @param string $complaintNo + * @return ComplaintWechatSuccessRequest + */ + public function setComplaintNo($complaintNo) + { + $this->complaintNo = $complaintNo; + return $this; + } + + public static function getOperationId() + { + return 'complaintWechatSuccess'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatSuccessRequestMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatSuccessRequestMarshaller.php new file mode 100644 index 0000000..bde2b8a --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatSuccessRequestMarshaller.php @@ -0,0 +1,80 @@ +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->getComplaintNo() != null){ + $internalRequest->addParameter('complaintNo', ObjectSerializer::sanitizeForSerialization($request->getComplaintNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ComplaintWechatSuccessRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ComplaintWechatSuccessResponse.php b/lib/Service/Aggpay/Model/ComplaintWechatSuccessResponse.php new file mode 100644 index 0000000..2743d00 --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatSuccessResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ComplaintWechatSuccessBaseResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ComplaintWechatSuccessResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ComplaintWechatSuccessResponseUnMarshaller.php new file mode 100644 index 0000000..9dec71c --- /dev/null +++ b/lib/Service/Aggpay/Model/ComplaintWechatSuccessResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * PayLinkOrderCodeResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class PayLinkOrderCodeResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'PayLinkOrderCodeResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'orderId' => 'string', + 'qrCodeUrl' => 'string', + 'uniqueOrderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'orderId' => null, + 'qrCodeUrl' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'orderId' => 'orderId', + 'qrCodeUrl' => 'qrCodeUrl', + 'uniqueOrderNo' => 'uniqueOrderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'orderId' => 'setOrderId', + 'qrCodeUrl' => 'setQrCodeUrl', + 'uniqueOrderNo' => 'setUniqueOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'orderId' => 'getOrderId', + 'qrCodeUrl' => 'getQrCodeUrl', + '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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['qrCodeUrl'] = isset($data['qrCodeUrl']) ? $data['qrCodeUrl'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户收款商编 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + 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 qrCodeUrl + * + * @return string + */ + public function getQrCodeUrl() + { + return $this->container['qrCodeUrl']; + } + + /** + * Sets qrCodeUrl + * + * @param string $qrCodeUrl 订单二维码地址 + * + * @return $this + */ + public function setQrCodeUrl($qrCodeUrl) + { + $this->container['qrCodeUrl'] = $qrCodeUrl; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/PayLinkRequest.php b/lib/Service/Aggpay/Model/PayLinkRequest.php new file mode 100644 index 0000000..1920b88 --- /dev/null +++ b/lib/Service/Aggpay/Model/PayLinkRequest.php @@ -0,0 +1,617 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PayLinkRequest + */ + 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 PayLinkRequest + */ + 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 PayLinkRequest + */ + 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 PayLinkRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets expiredTime + * + * @return string + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param string $expiredTime + * @return PayLinkRequest + */ + 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 PayLinkRequest + */ + 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 PayLinkRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return PayLinkRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return PayLinkRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets scene + * + * @return string + */ + public function getScene() + { + return $this->scene; + } + + /** + * Sets scene + * + * @param string $scene + * @return PayLinkRequest + */ + public function setScene($scene) + { + $this->scene = $scene; + return $this; + } + /** + * Gets appId + * + * @return string + */ + public function getAppId() + { + return $this->appId; + } + + /** + * Sets appId + * + * @param string $appId + * @return PayLinkRequest + */ + public function setAppId($appId) + { + $this->appId = $appId; + return $this; + } + /** + * Gets channelSpecifiedInfo + * + * @return string + */ + public function getChannelSpecifiedInfo() + { + return $this->channelSpecifiedInfo; + } + + /** + * Sets channelSpecifiedInfo + * + * @param string $channelSpecifiedInfo + * @return PayLinkRequest + */ + public function setChannelSpecifiedInfo($channelSpecifiedInfo) + { + $this->channelSpecifiedInfo = $channelSpecifiedInfo; + return $this; + } + /** + * Gets channelPromotionInfo + * + * @return string + */ + public function getChannelPromotionInfo() + { + return $this->channelPromotionInfo; + } + + /** + * Sets channelPromotionInfo + * + * @param string $channelPromotionInfo + * @return PayLinkRequest + */ + public function setChannelPromotionInfo($channelPromotionInfo) + { + $this->channelPromotionInfo = $channelPromotionInfo; + return $this; + } + /** + * Gets identityInfo + * + * @return string + */ + public function getIdentityInfo() + { + return $this->identityInfo; + } + + /** + * Sets identityInfo + * + * @param string $identityInfo + * @return PayLinkRequest + */ + public function setIdentityInfo($identityInfo) + { + $this->identityInfo = $identityInfo; + return $this; + } + /** + * Gets limitCredit + * + * @return string + */ + public function getLimitCredit() + { + return $this->limitCredit; + } + + /** + * Sets limitCredit + * + * @param string $limitCredit + * @return PayLinkRequest + */ + public function setLimitCredit($limitCredit) + { + $this->limitCredit = $limitCredit; + return $this; + } + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return PayLinkRequest + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + /** + * Gets ypPromotionInfo + * + * @return string + */ + public function getYpPromotionInfo() + { + return $this->ypPromotionInfo; + } + + /** + * Sets ypPromotionInfo + * + * @param string $ypPromotionInfo + * @return PayLinkRequest + */ + public function setYpPromotionInfo($ypPromotionInfo) + { + $this->ypPromotionInfo = $ypPromotionInfo; + return $this; + } + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->businessInfo; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo + * @return PayLinkRequest + */ + public function setBusinessInfo($businessInfo) + { + $this->businessInfo = $businessInfo; + return $this; + } + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Sets token + * + * @param string $token + * @return PayLinkRequest + */ + public function setToken($token) + { + $this->token = $token; + return $this; + } + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->ypAccountBookNo; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo + * @return PayLinkRequest + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->ypAccountBookNo = $ypAccountBookNo; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return PayLinkRequest + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets divideDetail + * + * @return string + */ + public function getDivideDetail() + { + return $this->divideDetail; + } + + /** + * Sets divideDetail + * + * @param string $divideDetail + * @return PayLinkRequest + */ + public function setDivideDetail($divideDetail) + { + $this->divideDetail = $divideDetail; + return $this; + } + /** + * Gets divideNotifyUrl + * + * @return string + */ + public function getDivideNotifyUrl() + { + return $this->divideNotifyUrl; + } + + /** + * Sets divideNotifyUrl + * + * @param string $divideNotifyUrl + * @return PayLinkRequest + */ + public function setDivideNotifyUrl($divideNotifyUrl) + { + $this->divideNotifyUrl = $divideNotifyUrl; + return $this; + } + /** + * Gets feeSubsidyInfo + * + * @return string + */ + public function getFeeSubsidyInfo() + { + return $this->feeSubsidyInfo; + } + + /** + * Sets feeSubsidyInfo + * + * @param string $feeSubsidyInfo + * @return PayLinkRequest + */ + public function setFeeSubsidyInfo($feeSubsidyInfo) + { + $this->feeSubsidyInfo = $feeSubsidyInfo; + return $this; + } + + public static function getOperationId() + { + return 'payLink'; + } + + +} diff --git a/lib/Service/Aggpay/Model/PayLinkRequestMarshaller.php b/lib/Service/Aggpay/Model/PayLinkRequestMarshaller.php new file mode 100644 index 0000000..6b8d92c --- /dev/null +++ b/lib/Service/Aggpay/Model/PayLinkRequestMarshaller.php @@ -0,0 +1,149 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time')); + } + 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->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getScene() != null){ + $internalRequest->addParameter('scene', ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string')); + } + if($request->getAppId() != null){ + $internalRequest->addParameter('appId', ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string')); + } + if($request->getChannelSpecifiedInfo() != null){ + $internalRequest->addParameter('channelSpecifiedInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelSpecifiedInfo(), 'string')); + } + if($request->getChannelPromotionInfo() != null){ + $internalRequest->addParameter('channelPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelPromotionInfo(), 'string')); + } + if($request->getIdentityInfo() != null){ + $internalRequest->addParameter('identityInfo', ObjectSerializer::sanitizeForSerialization($request->getIdentityInfo(), 'string')); + } + if($request->getLimitCredit() != null){ + $internalRequest->addParameter('limitCredit', ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string')); + } + if($request->getYpPromotionInfo() != null){ + $internalRequest->addParameter('ypPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getYpPromotionInfo(), 'string')); + } + if($request->getBusinessInfo() != null){ + $internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string')); + } + if($request->getToken() != null){ + $internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string')); + } + if($request->getYpAccountBookNo() != null){ + $internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getDivideDetail() != null){ + $internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string')); + } + if($request->getDivideNotifyUrl() != null){ + $internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string')); + } + if($request->getFeeSubsidyInfo() != null){ + $internalRequest->addParameter('feeSubsidyInfo', ObjectSerializer::sanitizeForSerialization($request->getFeeSubsidyInfo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PayLinkRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/PayLinkResponse.php b/lib/Service/Aggpay/Model/PayLinkResponse.php new file mode 100644 index 0000000..c84048e --- /dev/null +++ b/lib/Service/Aggpay/Model/PayLinkResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PayLinkOrderCodeResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/PayLinkResponseUnMarshaller.php b/lib/Service/Aggpay/Model/PayLinkResponseUnMarshaller.php new file mode 100644 index 0000000..1953b9e --- /dev/null +++ b/lib/Service/Aggpay/Model/PayLinkResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * QueryUseridPassiveGetUserIdResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class QueryUseridPassiveGetUserIdResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'QueryUseridPassiveGetUserIdResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'appId' => 'string', + 'userId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'appId' => null, + 'userId' => 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', + 'appId' => 'appId', + 'userId' => 'userId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'appId' => 'setAppId', + 'userId' => 'setUserId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'appId' => 'getAppId', + 'userId' => 'getUserId' + ]; + + /** + * 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['appId'] = isset($data['appId']) ? $data['appId'] : null; + $this->container['userId'] = isset($data['userId']) ? $data['userId'] : 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 appId + * + * @return string + */ + public function getAppId() + { + return $this->container['appId']; + } + + /** + * Sets appId + * + * @param string $appId 微信公众号ID + * + * @return $this + */ + public function setAppId($appId) + { + $this->container['appId'] = $appId; + + return $this; + } + + /** + * Gets userId + * + * @return string + */ + public function getUserId() + { + return $this->container['userId']; + } + + /** + * Sets userId + * + * @param string $userId 用户ID + * + * @return $this + */ + public function setUserId($userId) + { + $this->container['userId'] = $userId; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/QueryUseridRequest.php b/lib/Service/Aggpay/Model/QueryUseridRequest.php new file mode 100644 index 0000000..0c001ab --- /dev/null +++ b/lib/Service/Aggpay/Model/QueryUseridRequest.php @@ -0,0 +1,142 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return QueryUseridRequest + */ + 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 QueryUseridRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets appId + * + * @return string + */ + public function getAppId() + { + return $this->appId; + } + + /** + * Sets appId + * + * @param string $appId + * @return QueryUseridRequest + */ + public function setAppId($appId) + { + $this->appId = $appId; + return $this; + } + /** + * Gets authCode + * + * @return string + */ + public function getAuthCode() + { + return $this->authCode; + } + + /** + * Sets authCode + * + * @param string $authCode + * @return QueryUseridRequest + */ + public function setAuthCode($authCode) + { + $this->authCode = $authCode; + return $this; + } + /** + * Gets channel + * + * @return string + */ + public function getChannel() + { + return $this->channel; + } + + /** + * Sets channel + * + * @param string $channel + * @return QueryUseridRequest + */ + public function setChannel($channel) + { + $this->channel = $channel; + return $this; + } + + public static function getOperationId() + { + return 'queryUserid'; + } + + +} diff --git a/lib/Service/Aggpay/Model/QueryUseridRequestMarshaller.php b/lib/Service/Aggpay/Model/QueryUseridRequestMarshaller.php new file mode 100644 index 0000000..90219c4 --- /dev/null +++ b/lib/Service/Aggpay/Model/QueryUseridRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getAppId() != null){ + $internalRequest->addParameter('appId', ObjectSerializer::sanitizeForSerialization($request->getAppId(), 'string')); + } + if($request->getAuthCode() != null){ + $internalRequest->addParameter('authCode', ObjectSerializer::sanitizeForSerialization($request->getAuthCode(), 'string')); + } + if($request->getChannel() != null){ + $internalRequest->addParameter('channel', ObjectSerializer::sanitizeForSerialization($request->getChannel(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryUseridRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/QueryUseridResponse.php b/lib/Service/Aggpay/Model/QueryUseridResponse.php new file mode 100644 index 0000000..d1cb599 --- /dev/null +++ b/lib/Service/Aggpay/Model/QueryUseridResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryUseridPassiveGetUserIdResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/QueryUseridResponseUnMarshaller.php b/lib/Service/Aggpay/Model/QueryUseridResponseUnMarshaller.php new file mode 100644 index 0000000..87b6a3d --- /dev/null +++ b/lib/Service/Aggpay/Model/QueryUseridResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ShareTokenGenerateAliShareTokenResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ShareTokenGenerateAliShareTokenResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ShareTokenGenerateAliShareTokenResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'orderId' => 'string', + 'uniqueOrderNo' => 'string', + 'channelInfoList' => 'string', + 'shareToken' => 'string', + 'shareTokenExpiredTime' => 'string', + 'guideText1' => 'string', + 'guideText2' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'orderId' => null, + 'uniqueOrderNo' => null, + 'channelInfoList' => null, + 'shareToken' => null, + 'shareTokenExpiredTime' => 'date-time', + 'guideText1' => null, + 'guideText2' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'orderId' => 'orderId', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'channelInfoList' => 'channelInfoList', + 'shareToken' => 'shareToken', + 'shareTokenExpiredTime' => 'shareTokenExpiredTime', + 'guideText1' => 'guideText1', + 'guideText2' => 'guideText2' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'orderId' => 'setOrderId', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'channelInfoList' => 'setChannelInfoList', + 'shareToken' => 'setShareToken', + 'shareTokenExpiredTime' => 'setShareTokenExpiredTime', + 'guideText1' => 'setGuideText1', + 'guideText2' => 'setGuideText2' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'orderId' => 'getOrderId', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'channelInfoList' => 'getChannelInfoList', + 'shareToken' => 'getShareToken', + 'shareTokenExpiredTime' => 'getShareTokenExpiredTime', + 'guideText1' => 'getGuideText1', + 'guideText2' => 'getGuideText2' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null; + $this->container['channelInfoList'] = isset($data['channelInfoList']) ? $data['channelInfoList'] : null; + $this->container['shareToken'] = isset($data['shareToken']) ? $data['shareToken'] : null; + $this->container['shareTokenExpiredTime'] = isset($data['shareTokenExpiredTime']) ? $data['shareTokenExpiredTime'] : null; + $this->container['guideText1'] = isset($data['guideText1']) ? $data['guideText1'] : null; + $this->container['guideText2'] = isset($data['guideText2']) ? $data['guideText2'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + 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 channelInfoList + * + * @return string + */ + public function getChannelInfoList() + { + return $this->container['channelInfoList']; + } + + /** + * Sets channelInfoList + * + * @param string $channelInfoList 渠道营销信息 + * + * @return $this + */ + public function setChannelInfoList($channelInfoList) + { + $this->container['channelInfoList'] = $channelInfoList; + + return $this; + } + + /** + * Gets shareToken + * + * @return string + */ + public function getShareToken() + { + return $this->container['shareToken']; + } + + /** + * Sets shareToken + * + * @param string $shareToken 吱口令 + * + * @return $this + */ + public function setShareToken($shareToken) + { + $this->container['shareToken'] = $shareToken; + + return $this; + } + + /** + * Gets shareTokenExpiredTime + * + * @return string + */ + public function getShareTokenExpiredTime() + { + return $this->container['shareTokenExpiredTime']; + } + + /** + * Sets shareTokenExpiredTime + * + * @param string $shareTokenExpiredTime 吱口令过期时间 + * + * @return $this + */ + public function setShareTokenExpiredTime($shareTokenExpiredTime) + { + $this->container['shareTokenExpiredTime'] = $shareTokenExpiredTime; + + return $this; + } + + /** + * Gets guideText1 + * + * @return string + */ + public function getGuideText1() + { + return $this->container['guideText1']; + } + + /** + * Sets guideText1 + * + * @param string $guideText1 吱口令分析引导文案前半段 + * + * @return $this + */ + public function setGuideText1($guideText1) + { + $this->container['guideText1'] = $guideText1; + + return $this; + } + + /** + * Gets guideText2 + * + * @return string + */ + public function getGuideText2() + { + return $this->container['guideText2']; + } + + /** + * Sets guideText2 + * + * @param string $guideText2 吱口令分析引导文案后半段 + * + * @return $this + */ + public function setGuideText2($guideText2) + { + $this->container['guideText2'] = $guideText2; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ShareTokenGenerateRequest.php b/lib/Service/Aggpay/Model/ShareTokenGenerateRequest.php new file mode 100644 index 0000000..b1bc828 --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenGenerateRequest.php @@ -0,0 +1,642 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ShareTokenGenerateRequest + */ + 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 ShareTokenGenerateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets bizSystemNo + * + * @return string + */ + public function getBizSystemNo() + { + return $this->bizSystemNo; + } + + /** + * Sets bizSystemNo + * + * @param string $bizSystemNo + * @return ShareTokenGenerateRequest + */ + public function setBizSystemNo($bizSystemNo) + { + $this->bizSystemNo = $bizSystemNo; + return $this; + } + /** + * Gets orderId + * + * @return string + */ + public function getOrderId() + { + return $this->orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return ShareTokenGenerateRequest + */ + 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 ShareTokenGenerateRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets expiredTime + * + * @return string + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param string $expiredTime + * @return ShareTokenGenerateRequest + */ + 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 ShareTokenGenerateRequest + */ + 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 ShareTokenGenerateRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return ShareTokenGenerateRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return ShareTokenGenerateRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets limitCredit + * + * @return string + */ + public function getLimitCredit() + { + return $this->limitCredit; + } + + /** + * Sets limitCredit + * + * @param string $limitCredit + * @return ShareTokenGenerateRequest + */ + public function setLimitCredit($limitCredit) + { + $this->limitCredit = $limitCredit; + return $this; + } + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Sets token + * + * @param string $token + * @return ShareTokenGenerateRequest + */ + public function setToken($token) + { + $this->token = $token; + return $this; + } + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return ShareTokenGenerateRequest + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->businessInfo; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo + * @return ShareTokenGenerateRequest + */ + public function setBusinessInfo($businessInfo) + { + $this->businessInfo = $businessInfo; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return ShareTokenGenerateRequest + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->ypAccountBookNo; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo + * @return ShareTokenGenerateRequest + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->ypAccountBookNo = $ypAccountBookNo; + return $this; + } + /** + * Gets divideDetail + * + * @return string + */ + public function getDivideDetail() + { + return $this->divideDetail; + } + + /** + * Sets divideDetail + * + * @param string $divideDetail + * @return ShareTokenGenerateRequest + */ + public function setDivideDetail($divideDetail) + { + $this->divideDetail = $divideDetail; + return $this; + } + /** + * Gets divideNotifyUrl + * + * @return string + */ + public function getDivideNotifyUrl() + { + return $this->divideNotifyUrl; + } + + /** + * Sets divideNotifyUrl + * + * @param string $divideNotifyUrl + * @return ShareTokenGenerateRequest + */ + public function setDivideNotifyUrl($divideNotifyUrl) + { + $this->divideNotifyUrl = $divideNotifyUrl; + return $this; + } + /** + * Gets feeSubsidyInfo + * + * @return string + */ + public function getFeeSubsidyInfo() + { + return $this->feeSubsidyInfo; + } + + /** + * Sets feeSubsidyInfo + * + * @param string $feeSubsidyInfo + * @return ShareTokenGenerateRequest + */ + public function setFeeSubsidyInfo($feeSubsidyInfo) + { + $this->feeSubsidyInfo = $feeSubsidyInfo; + return $this; + } + /** + * Gets externalUserId + * + * @return string + */ + public function getExternalUserId() + { + return $this->externalUserId; + } + + /** + * Sets externalUserId + * + * @param string $externalUserId + * @return ShareTokenGenerateRequest + */ + public function setExternalUserId($externalUserId) + { + $this->externalUserId = $externalUserId; + return $this; + } + /** + * Gets channelPromotionInfo + * + * @return string + */ + public function getChannelPromotionInfo() + { + return $this->channelPromotionInfo; + } + + /** + * Sets channelPromotionInfo + * + * @param string $channelPromotionInfo + * @return ShareTokenGenerateRequest + */ + public function setChannelPromotionInfo($channelPromotionInfo) + { + $this->channelPromotionInfo = $channelPromotionInfo; + return $this; + } + /** + * Gets identityInfo + * + * @return string + */ + public function getIdentityInfo() + { + return $this->identityInfo; + } + + /** + * Sets identityInfo + * + * @param string $identityInfo + * @return ShareTokenGenerateRequest + */ + public function setIdentityInfo($identityInfo) + { + $this->identityInfo = $identityInfo; + return $this; + } + /** + * Gets ypPromotionInfo + * + * @return string + */ + public function getYpPromotionInfo() + { + return $this->ypPromotionInfo; + } + + /** + * Sets ypPromotionInfo + * + * @param string $ypPromotionInfo + * @return ShareTokenGenerateRequest + */ + public function setYpPromotionInfo($ypPromotionInfo) + { + $this->ypPromotionInfo = $ypPromotionInfo; + return $this; + } + /** + * Gets channelOperationInfo + * + * @return string + */ + public function getChannelOperationInfo() + { + return $this->channelOperationInfo; + } + + /** + * Sets channelOperationInfo + * + * @param string $channelOperationInfo + * @return ShareTokenGenerateRequest + */ + public function setChannelOperationInfo($channelOperationInfo) + { + $this->channelOperationInfo = $channelOperationInfo; + return $this; + } + /** + * Gets shareTokenExpiredSeconds + * + * @return int + */ + public function getShareTokenExpiredSeconds() + { + return $this->shareTokenExpiredSeconds; + } + + /** + * Sets shareTokenExpiredSeconds + * + * @param int $shareTokenExpiredSeconds + * @return ShareTokenGenerateRequest + */ + public function setShareTokenExpiredSeconds($shareTokenExpiredSeconds) + { + $this->shareTokenExpiredSeconds = $shareTokenExpiredSeconds; + return $this; + } + + public static function getOperationId() + { + return 'shareTokenGenerate'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ShareTokenGenerateRequestMarshaller.php b/lib/Service/Aggpay/Model/ShareTokenGenerateRequestMarshaller.php new file mode 100644 index 0000000..d1995e3 --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenGenerateRequestMarshaller.php @@ -0,0 +1,152 @@ +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->getBizSystemNo() != null){ + $internalRequest->addParameter('bizSystemNo', ObjectSerializer::sanitizeForSerialization($request->getBizSystemNo(), '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->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time')); + } + 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->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getLimitCredit() != null){ + $internalRequest->addParameter('limitCredit', ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string')); + } + if($request->getToken() != null){ + $internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string', 'url')); + } + if($request->getBusinessInfo() != null){ + $internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getYpAccountBookNo() != null){ + $internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string')); + } + if($request->getDivideDetail() != null){ + $internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string')); + } + if($request->getDivideNotifyUrl() != null){ + $internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string')); + } + if($request->getFeeSubsidyInfo() != null){ + $internalRequest->addParameter('feeSubsidyInfo', ObjectSerializer::sanitizeForSerialization($request->getFeeSubsidyInfo(), 'string')); + } + if($request->getExternalUserId() != null){ + $internalRequest->addParameter('externalUserId', ObjectSerializer::sanitizeForSerialization($request->getExternalUserId(), 'string')); + } + if($request->getChannelPromotionInfo() != null){ + $internalRequest->addParameter('channelPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelPromotionInfo(), 'string')); + } + if($request->getIdentityInfo() != null){ + $internalRequest->addParameter('identityInfo', ObjectSerializer::sanitizeForSerialization($request->getIdentityInfo(), 'string')); + } + if($request->getYpPromotionInfo() != null){ + $internalRequest->addParameter('ypPromotionInfo', ObjectSerializer::sanitizeForSerialization($request->getYpPromotionInfo(), 'string')); + } + if($request->getChannelOperationInfo() != null){ + $internalRequest->addParameter('channelOperationInfo', ObjectSerializer::sanitizeForSerialization($request->getChannelOperationInfo(), 'string')); + } + if($request->getShareTokenExpiredSeconds() != null){ + $internalRequest->addParameter('shareTokenExpiredSeconds', ObjectSerializer::sanitizeForSerialization($request->getShareTokenExpiredSeconds(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ShareTokenGenerateRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ShareTokenGenerateResponse.php b/lib/Service/Aggpay/Model/ShareTokenGenerateResponse.php new file mode 100644 index 0000000..0bd8843 --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenGenerateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ShareTokenGenerateAliShareTokenResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ShareTokenGenerateResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ShareTokenGenerateResponseUnMarshaller.php new file mode 100644 index 0000000..06de8d3 --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenGenerateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ShareTokenMarketQueryAliMarketQueryResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ShareTokenMarketQueryAliMarketQueryResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ShareTokenMarketQueryAliMarketQueryResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'channelInfoList' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'channelInfoList' => 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', + 'channelInfoList' => 'channelInfoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'channelInfoList' => 'setChannelInfoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'channelInfoList' => 'getChannelInfoList' + ]; + + /** + * 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['channelInfoList'] = isset($data['channelInfoList']) ? $data['channelInfoList'] : 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 channelInfoList + * + * @return string + */ + public function getChannelInfoList() + { + return $this->container['channelInfoList']; + } + + /** + * Sets channelInfoList + * + * @param string $channelInfoList 营销内容列表 + * + * @return $this + */ + public function setChannelInfoList($channelInfoList) + { + $this->container['channelInfoList'] = $channelInfoList; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/ShareTokenMarketQueryRequest.php b/lib/Service/Aggpay/Model/ShareTokenMarketQueryRequest.php new file mode 100644 index 0000000..e094e37 --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenMarketQueryRequest.php @@ -0,0 +1,142 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ShareTokenMarketQueryRequest + */ + 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 ShareTokenMarketQueryRequest + */ + 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 ShareTokenMarketQueryRequest + */ + 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 ShareTokenMarketQueryRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets externalUserId + * + * @return string + */ + public function getExternalUserId() + { + return $this->externalUserId; + } + + /** + * Sets externalUserId + * + * @param string $externalUserId + * @return ShareTokenMarketQueryRequest + */ + public function setExternalUserId($externalUserId) + { + $this->externalUserId = $externalUserId; + return $this; + } + + public static function getOperationId() + { + return 'shareTokenMarketQuery'; + } + + +} diff --git a/lib/Service/Aggpay/Model/ShareTokenMarketQueryRequestMarshaller.php b/lib/Service/Aggpay/Model/ShareTokenMarketQueryRequestMarshaller.php new file mode 100644 index 0000000..dbe7b3c --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenMarketQueryRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExternalUserId() != null){ + $internalRequest->addParameter('externalUserId', ObjectSerializer::sanitizeForSerialization($request->getExternalUserId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ShareTokenMarketQueryRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/ShareTokenMarketQueryResponse.php b/lib/Service/Aggpay/Model/ShareTokenMarketQueryResponse.php new file mode 100644 index 0000000..131f60c --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenMarketQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ShareTokenMarketQueryAliMarketQueryResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/ShareTokenMarketQueryResponseUnMarshaller.php b/lib/Service/Aggpay/Model/ShareTokenMarketQueryResponseUnMarshaller.php new file mode 100644 index 0000000..fc57fb4 --- /dev/null +++ b/lib/Service/Aggpay/Model/ShareTokenMarketQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TutelagePrePayRequest + */ + 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 TutelagePrePayRequest + */ + 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 TutelagePrePayRequest + */ + 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 TutelagePrePayRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + + /** + * Gets expiredTime + * + * @return string + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param string $expiredTime + * @return TutelagePrePayRequest + */ + public function setExpiredTime($expiredTime) + { + $this->expiredTime = $expiredTime; + return $this; + } + + /** + * Gets memo + * + * @return string + */ + public function getMemo() + { + return $this->memo; + } + + /** + * Sets memo + * + * @param string $memo + * @return TutelagePrePayRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return TutelagePrePayRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return TutelagePrePayRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TutelagePrePayRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + /** + * Gets payWay + * + * @return string + */ + public function getPayWay() + { + return $this->payWay; + } + + /** + * Sets payWay + * + * @param string $payWay + * @return TutelagePrePayRequest + */ + public function setPayWay($payWay) + { + $this->payWay = $payWay; + return $this; + } + + /** + * Gets channel + * + * @return string + */ + public function getChannel() + { + return $this->channel; + } + + /** + * Sets channel + * + * @param string $channel + * @return TutelagePrePayRequest + */ + public function setChannel($channel) + { + $this->channel = $channel; + return $this; + } + + /** + * Gets scene + * + * @return string + */ + public function getScene() + { + return $this->scene; + } + + /** + * Sets scene + * + * @param string $scene + * @return TutelagePrePayRequest + */ + public function setScene($scene) + { + $this->scene = $scene; + return $this; + } + + /** + * Gets userIp + * + * @return string + */ + public function getUserIp() + { + return $this->userIp; + } + + /** + * Sets userIp + * + * @param string $userIp + * @return TutelagePrePayRequest + */ + public function setUserIp($userIp) + { + $this->userIp = $userIp; + return $this; + } + + /** + * Gets limitCredit + * + * @return string + */ + public function getLimitCredit() + { + return $this->limitCredit; + } + + /** + * Sets limitCredit + * + * @param string $limitCredit + * @return TutelagePrePayRequest + */ + public function setLimitCredit($limitCredit) + { + $this->limitCredit = $limitCredit; + return $this; + } + + /** + * Gets token + * + * @return string + */ + public function getToken() + { + return $this->token; + } + + /** + * Sets token + * + * @param string $token + * @return TutelagePrePayRequest + */ + public function setToken($token) + { + $this->token = $token; + return $this; + } + + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return TutelagePrePayRequest + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + + /** + * Gets redirectUrl + * + * @return string + */ + public function getRedirectUrl() + { + return $this->redirectUrl; + } + + /** + * Sets redirectUrl + * + * @param string $redirectUrl + * @return TutelagePrePayRequest + */ + public function setRedirectUrl($redirectUrl) + { + $this->redirectUrl = $redirectUrl; + return $this; + } + + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->businessInfo; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo + * @return TutelagePrePayRequest + */ + public function setBusinessInfo($businessInfo) + { + $this->businessInfo = $businessInfo; + return $this; + } + + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return TutelagePrePayRequest + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + + /** + * Gets ypAccountBookNo + * + * @return string + */ + public function getYpAccountBookNo() + { + return $this->ypAccountBookNo; + } + + /** + * Sets ypAccountBookNo + * + * @param string $ypAccountBookNo + * @return TutelagePrePayRequest + */ + public function setYpAccountBookNo($ypAccountBookNo) + { + $this->ypAccountBookNo = $ypAccountBookNo; + return $this; + } + + /** + * Gets divideDetail + * + * @return string + */ + public function getDivideDetail() + { + return $this->divideDetail; + } + + /** + * Sets divideDetail + * + * @param string $divideDetail + * @return TutelagePrePayRequest + */ + public function setDivideDetail($divideDetail) + { + $this->divideDetail = $divideDetail; + return $this; + } + + /** + * Gets divideNotifyUrl + * + * @return string + */ + public function getDivideNotifyUrl() + { + return $this->divideNotifyUrl; + } + + /** + * Sets divideNotifyUrl + * + * @param string $divideNotifyUrl + * @return TutelagePrePayRequest + */ + public function setDivideNotifyUrl($divideNotifyUrl) + { + $this->divideNotifyUrl = $divideNotifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'tutelagePrePay'; + } + +} diff --git a/lib/Service/Aggpay/Model/TutelagePrePayRequestMarshaller.php b/lib/Service/Aggpay/Model/TutelagePrePayRequestMarshaller.php new file mode 100644 index 0000000..5d20f88 --- /dev/null +++ b/lib/Service/Aggpay/Model/TutelagePrePayRequestMarshaller.php @@ -0,0 +1,143 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url')); + } + if($request->getPayWay() != null){ + $internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string')); + } + if($request->getChannel() != null){ + $internalRequest->addParameter('channel', ObjectSerializer::sanitizeForSerialization($request->getChannel(), 'string')); + } + if($request->getScene() != null){ + $internalRequest->addParameter('scene', ObjectSerializer::sanitizeForSerialization($request->getScene(), 'string')); + } + if($request->getUserIp() != null){ + $internalRequest->addParameter('userIp', ObjectSerializer::sanitizeForSerialization($request->getUserIp(), 'string')); + } + if($request->getLimitCredit() != null){ + $internalRequest->addParameter('limitCredit', ObjectSerializer::sanitizeForSerialization($request->getLimitCredit(), 'string')); + } + if($request->getToken() != null){ + $internalRequest->addParameter('token', ObjectSerializer::sanitizeForSerialization($request->getToken(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string', 'url')); + } + if($request->getRedirectUrl() != null){ + $internalRequest->addParameter('redirectUrl', ObjectSerializer::sanitizeForSerialization($request->getRedirectUrl(), 'string', 'url')); + } + if($request->getBusinessInfo() != null){ + $internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getYpAccountBookNo() != null){ + $internalRequest->addParameter('ypAccountBookNo', ObjectSerializer::sanitizeForSerialization($request->getYpAccountBookNo(), 'string')); + } + if($request->getDivideDetail() != null){ + $internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string')); + } + if($request->getDivideNotifyUrl() != null){ + $internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TutelagePrePayRequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/TutelagePrePayResponse.php b/lib/Service/Aggpay/Model/TutelagePrePayResponse.php new file mode 100644 index 0000000..8db9f67 --- /dev/null +++ b/lib/Service/Aggpay/Model/TutelagePrePayResponse.php @@ -0,0 +1,35 @@ +result = $result; + } + + /** + * @return TutelagePrePayWrapPrePayOrderResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/TutelagePrePayResponseUnMarshaller.php b/lib/Service/Aggpay/Model/TutelagePrePayResponseUnMarshaller.php new file mode 100644 index 0000000..e92120b --- /dev/null +++ b/lib/Service/Aggpay/Model/TutelagePrePayResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * TutelagePrePayWrapPrePayOrderResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class TutelagePrePayWrapPrePayOrderResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'TutelagePrePayWrapPrePayOrderResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'orderId' => 'string', + 'uniqueOrderNo' => 'string', + 'prePayTn' => 'string', + 'appId' => 'string', + 'miniProgramPath' => 'string', + 'miniProgramOrgId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'orderId' => null, + 'uniqueOrderNo' => null, + 'prePayTn' => null, + 'appId' => null, + 'miniProgramPath' => null, + 'miniProgramOrgId' => 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', + 'prePayTn' => 'prePayTn', + 'appId' => 'appId', + 'miniProgramPath' => 'miniProgramPath', + 'miniProgramOrgId' => 'miniProgramOrgId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'orderId' => 'setOrderId', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'prePayTn' => 'setPrePayTn', + 'appId' => 'setAppId', + 'miniProgramPath' => 'setMiniProgramPath', + 'miniProgramOrgId' => 'setMiniProgramOrgId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'orderId' => 'getOrderId', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'prePayTn' => 'getPrePayTn', + 'appId' => 'getAppId', + 'miniProgramPath' => 'getMiniProgramPath', + 'miniProgramOrgId' => 'getMiniProgramOrgId' + ]; + + /** + * 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['prePayTn'] = isset($data['prePayTn']) ? $data['prePayTn'] : null; + $this->container['appId'] = isset($data['appId']) ? $data['appId'] : null; + $this->container['miniProgramPath'] = isset($data['miniProgramPath']) ? $data['miniProgramPath'] : null; + $this->container['miniProgramOrgId'] = isset($data['miniProgramOrgId']) ? $data['miniProgramOrgId'] : 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 prePayTn + * + * @return string + */ + public function getPrePayTn() + { + return $this->container['prePayTn']; + } + + /** + * Sets prePayTn + * + * @param string $prePayTn 预支付标识信息 + * + * @return $this + */ + public function setPrePayTn($prePayTn) + { + $this->container['prePayTn'] = $prePayTn; + + return $this; + } + + /** + * Gets appId + * + * @return string + */ + public function getAppId() + { + return $this->container['appId']; + } + + /** + * Sets appId + * + * @param string $appId 小程序appId + * + * @return $this + */ + public function setAppId($appId) + { + $this->container['appId'] = $appId; + + return $this; + } + + /** + * Gets miniProgramPath + * + * @return string + */ + public function getMiniProgramPath() + { + return $this->container['miniProgramPath']; + } + + /** + * Sets miniProgramPath + * + * @param string $miniProgramPath 跳转小程序的路径 + * + * @return $this + */ + public function setMiniProgramPath($miniProgramPath) + { + $this->container['miniProgramPath'] = $miniProgramPath; + + return $this; + } + + /** + * Gets miniProgramOrgId + * + * @return string + */ + public function getMiniProgramOrgId() + { + return $this->container['miniProgramOrgId']; + } + + /** + * Sets miniProgramOrgId + * + * @param string $miniProgramOrgId 小程序原始id + * + * @return $this + */ + public function setMiniProgramOrgId($miniProgramOrgId) + { + $this->container['miniProgramOrgId'] = $miniProgramOrgId; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/WechatConfigAddV2Request.php b/lib/Service/Aggpay/Model/WechatConfigAddV2Request.php new file mode 100644 index 0000000..4507350 --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigAddV2Request.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WechatConfigAddV2Request + */ + 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 WechatConfigAddV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets tradeAuthDirList + * + * @return string + */ + public function getTradeAuthDirList() + { + return $this->tradeAuthDirList; + } + + /** + * Sets tradeAuthDirList + * + * @param string $tradeAuthDirList + * @return WechatConfigAddV2Request + */ + public function setTradeAuthDirList($tradeAuthDirList) + { + $this->tradeAuthDirList = $tradeAuthDirList; + return $this; + } + /** + * Gets appIdList + * + * @return string + */ + public function getAppIdList() + { + return $this->appIdList; + } + + /** + * Sets appIdList + * + * @param string $appIdList + * @return WechatConfigAddV2Request + */ + public function setAppIdList($appIdList) + { + $this->appIdList = $appIdList; + return $this; + } + + public static function getOperationId() + { + return 'wechatConfigAddV2'; + } + + +} diff --git a/lib/Service/Aggpay/Model/WechatConfigAddV2RequestMarshaller.php b/lib/Service/Aggpay/Model/WechatConfigAddV2RequestMarshaller.php new file mode 100644 index 0000000..c4f7d1f --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigAddV2RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getTradeAuthDirList() != null){ + $internalRequest->addParameter('tradeAuthDirList', ObjectSerializer::sanitizeForSerialization($request->getTradeAuthDirList(), 'string')); + } + if($request->getAppIdList() != null){ + $internalRequest->addParameter('appIdList', ObjectSerializer::sanitizeForSerialization($request->getAppIdList(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WechatConfigAddV2RequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/WechatConfigAddV2Response.php b/lib/Service/Aggpay/Model/WechatConfigAddV2Response.php new file mode 100644 index 0000000..7023250 --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigAddV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WechatConfigAddV2WechatConfigFlatResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/WechatConfigAddV2ResponseUnMarshaller.php b/lib/Service/Aggpay/Model/WechatConfigAddV2ResponseUnMarshaller.php new file mode 100644 index 0000000..0493c6d --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigAddV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * WechatConfigAddV2WechatConfigFlatResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class WechatConfigAddV2WechatConfigFlatResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'WechatConfigAddV2WechatConfigFlatResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'status' => 'string', + 'configResult' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'status' => null, + 'configResult' => 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', + 'status' => 'status', + 'configResult' => 'configResult' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus', + 'configResult' => 'setConfigResult' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'status' => 'getStatus', + 'configResult' => 'getConfigResult' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : 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 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 configResult + * + * @return string + */ + public function getConfigResult() + { + return $this->container['configResult']; + } + + /** + * Sets configResult + * + * @param string $configResult 配置结果 + * + * @return $this + */ + public function setConfigResult($configResult) + { + $this->container['configResult'] = $configResult; + + 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)); + } +} + + diff --git a/lib/Service/Aggpay/Model/WechatConfigQueryV2Request.php b/lib/Service/Aggpay/Model/WechatConfigQueryV2Request.php new file mode 100644 index 0000000..1a70fb8 --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigQueryV2Request.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WechatConfigQueryV2Request + */ + 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 WechatConfigQueryV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets appIdType + * + * @return string + */ + public function getAppIdType() + { + return $this->appIdType; + } + + /** + * Sets appIdType + * + * @param string $appIdType + * @return WechatConfigQueryV2Request + */ + public function setAppIdType($appIdType) + { + $this->appIdType = $appIdType; + return $this; + } + + public static function getOperationId() + { + return 'wechatConfigQueryV2'; + } + + +} diff --git a/lib/Service/Aggpay/Model/WechatConfigQueryV2RequestMarshaller.php b/lib/Service/Aggpay/Model/WechatConfigQueryV2RequestMarshaller.php new file mode 100644 index 0000000..98891f3 --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigQueryV2RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getAppIdType() != null){ + $internalRequest->addParameter('appIdType', ObjectSerializer::sanitizeForSerialization($request->getAppIdType(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WechatConfigQueryV2RequestMarshaller::__init(); diff --git a/lib/Service/Aggpay/Model/WechatConfigQueryV2Response.php b/lib/Service/Aggpay/Model/WechatConfigQueryV2Response.php new file mode 100644 index 0000000..ae5a26e --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigQueryV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WechatConfigQueryV2WechatConfigFlatResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Aggpay/Model/WechatConfigQueryV2ResponseUnMarshaller.php b/lib/Service/Aggpay/Model/WechatConfigQueryV2ResponseUnMarshaller.php new file mode 100644 index 0000000..496843a --- /dev/null +++ b/lib/Service/Aggpay/Model/WechatConfigQueryV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供聚合支付相关服务(支付下单、公众号配置等功能

+ * + * OpenAPI spec version: 1.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\Aggpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * WechatConfigQueryV2WechatConfigFlatResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class WechatConfigQueryV2WechatConfigFlatResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'WechatConfigQueryV2WechatConfigFlatResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'status' => 'string', + 'configResult' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'status' => null, + 'configResult' => 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', + 'status' => 'status', + 'configResult' => 'configResult' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus', + 'configResult' => 'setConfigResult' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'status' => 'getStatus', + 'configResult' => 'getConfigResult' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['configResult'] = isset($data['configResult']) ? $data['configResult'] : 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 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 configResult + * + * @return string + */ + public function getConfigResult() + { + return $this->container['configResult']; + } + + /** + * Sets configResult + * + * @param string $configResult 配置结果 + * + * @return $this + */ + public function setConfigResult($configResult) + { + $this->container['configResult'] = $configResult; + + 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)); + } +} + + diff --git a/lib/Service/AtVcc/AtVccClient.php b/lib/Service/AtVcc/AtVccClient.php new file mode 100644 index 0000000..a35c1b1 --- /dev/null +++ b/lib/Service/AtVcc/AtVccClient.php @@ -0,0 +1,49 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\UnionPayOrderQueryRequest $request + * @return Model\UnionPayOrderQueryResponse + * @throws YopClientException + */ + public function unionPayOrderQuery(Model\UnionPayOrderQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getCustomerNo() == null) { + throw new YopClientException("request.customerNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\UnionPayOrderQueryRequestMarshaller::getInstance(), + Model\UnionPayOrderQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/AtVcc/AtVccClientBuilder.php b/lib/Service/AtVcc/AtVccClientBuilder.php new file mode 100644 index 0000000..0dd7f02 --- /dev/null +++ b/lib/Service/AtVcc/AtVccClientBuilder.php @@ -0,0 +1,68 @@ +register('unionPayOrderQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * AtVccClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new AtVccClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return AtVccClientBuilder + * @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 AtVccClientBuilder($clientParams); + } + +} +AtVccClientBuilder::__init(); diff --git a/lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportDetailResponseDTOResult.php b/lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportDetailResponseDTOResult.php new file mode 100644 index 0000000..59782cb --- /dev/null +++ b/lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportDetailResponseDTOResult.php @@ -0,0 +1,632 @@ +营销产品码:VCC_GLOBAL  

产品名称:环球易汇 

+ * + * OpenAPI spec version: 1.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\AtVcc\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UnionPayOrderQueryAuthReportDetailResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UnionPayOrderQueryAuthReportDetailResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UnionPayOrderQueryAuthReportDetailResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'tradeId' => 'string', + 'transactionType' => 'string', + 'transactionTime' => 'string', + 'swipeCardAmount' => 'float', + 'swipeCardCurrency' => 'string', + 'transactionAmount' => 'float', + 'transactionCurrency' => 'string', + 'merchantName' => 'string', + 'merchantCity' => 'string', + 'merchantCountryName' => 'string', + 'mcc' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'tradeId' => null, + 'transactionType' => null, + 'transactionTime' => 'date-time', + 'swipeCardAmount' => null, + 'swipeCardCurrency' => null, + 'transactionAmount' => null, + 'transactionCurrency' => null, + 'merchantName' => null, + 'merchantCity' => null, + 'merchantCountryName' => null, + 'mcc' => 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 = [ + 'tradeId' => 'tradeId', + 'transactionType' => 'transactionType', + 'transactionTime' => 'transactionTime', + 'swipeCardAmount' => 'swipeCardAmount', + 'swipeCardCurrency' => 'swipeCardCurrency', + 'transactionAmount' => 'transactionAmount', + 'transactionCurrency' => 'transactionCurrency', + 'merchantName' => 'merchantName', + 'merchantCity' => 'merchantCity', + 'merchantCountryName' => 'merchantCountryName', + 'mcc' => 'mcc', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'tradeId' => 'setTradeId', + 'transactionType' => 'setTransactionType', + 'transactionTime' => 'setTransactionTime', + 'swipeCardAmount' => 'setSwipeCardAmount', + 'swipeCardCurrency' => 'setSwipeCardCurrency', + 'transactionAmount' => 'setTransactionAmount', + 'transactionCurrency' => 'setTransactionCurrency', + 'merchantName' => 'setMerchantName', + 'merchantCity' => 'setMerchantCity', + 'merchantCountryName' => 'setMerchantCountryName', + 'mcc' => 'setMcc', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'tradeId' => 'getTradeId', + 'transactionType' => 'getTransactionType', + 'transactionTime' => 'getTransactionTime', + 'swipeCardAmount' => 'getSwipeCardAmount', + 'swipeCardCurrency' => 'getSwipeCardCurrency', + 'transactionAmount' => 'getTransactionAmount', + 'transactionCurrency' => 'getTransactionCurrency', + 'merchantName' => 'getMerchantName', + 'merchantCity' => 'getMerchantCity', + 'merchantCountryName' => 'getMerchantCountryName', + 'mcc' => 'getMcc', + '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['tradeId'] = isset($data['tradeId']) ? $data['tradeId'] : null; + $this->container['transactionType'] = isset($data['transactionType']) ? $data['transactionType'] : null; + $this->container['transactionTime'] = isset($data['transactionTime']) ? $data['transactionTime'] : null; + $this->container['swipeCardAmount'] = isset($data['swipeCardAmount']) ? $data['swipeCardAmount'] : null; + $this->container['swipeCardCurrency'] = isset($data['swipeCardCurrency']) ? $data['swipeCardCurrency'] : null; + $this->container['transactionAmount'] = isset($data['transactionAmount']) ? $data['transactionAmount'] : null; + $this->container['transactionCurrency'] = isset($data['transactionCurrency']) ? $data['transactionCurrency'] : null; + $this->container['merchantName'] = isset($data['merchantName']) ? $data['merchantName'] : null; + $this->container['merchantCity'] = isset($data['merchantCity']) ? $data['merchantCity'] : null; + $this->container['merchantCountryName'] = isset($data['merchantCountryName']) ? $data['merchantCountryName'] : null; + $this->container['mcc'] = isset($data['mcc']) ? $data['mcc'] : 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 tradeId + * + * @return string + */ + public function getTradeId() + { + return $this->container['tradeId']; + } + + /** + * Sets tradeId + * + * @param string $tradeId 交易标识号 + * + * @return $this + */ + public function setTradeId($tradeId) + { + $this->container['tradeId'] = $tradeId; + + return $this; + } + + /** + * Gets transactionType + * + * @return string + */ + public function getTransactionType() + { + return $this->container['transactionType']; + } + + /** + * Sets transactionType + * + * @param string $transactionType 交易类型 + * + * @return $this + */ + public function setTransactionType($transactionType) + { + $this->container['transactionType'] = $transactionType; + + return $this; + } + + /** + * Gets transactionTime + * + * @return string + */ + public function getTransactionTime() + { + return $this->container['transactionTime']; + } + + /** + * Sets transactionTime + * + * @param string $transactionTime 交易时间 + * + * @return $this + */ + public function setTransactionTime($transactionTime) + { + $this->container['transactionTime'] = $transactionTime; + + return $this; + } + + /** + * Gets swipeCardAmount + * + * @return float + */ + public function getSwipeCardAmount() + { + return $this->container['swipeCardAmount']; + } + + /** + * Sets swipeCardAmount + * + * @param float $swipeCardAmount 刷卡金额 + * + * @return $this + */ + public function setSwipeCardAmount($swipeCardAmount) + { + $this->container['swipeCardAmount'] = $swipeCardAmount; + + return $this; + } + + /** + * Gets swipeCardCurrency + * + * @return string + */ + public function getSwipeCardCurrency() + { + return $this->container['swipeCardCurrency']; + } + + /** + * Sets swipeCardCurrency + * + * @param string $swipeCardCurrency 刷卡币种 + * + * @return $this + */ + public function setSwipeCardCurrency($swipeCardCurrency) + { + $this->container['swipeCardCurrency'] = $swipeCardCurrency; + + return $this; + } + + /** + * Gets transactionAmount + * + * @return float + */ + public function getTransactionAmount() + { + return $this->container['transactionAmount']; + } + + /** + * Sets transactionAmount + * + * @param float $transactionAmount 交易金额 + * + * @return $this + */ + public function setTransactionAmount($transactionAmount) + { + $this->container['transactionAmount'] = $transactionAmount; + + return $this; + } + + /** + * Gets transactionCurrency + * + * @return string + */ + public function getTransactionCurrency() + { + return $this->container['transactionCurrency']; + } + + /** + * Sets transactionCurrency + * + * @param string $transactionCurrency 交易币种 + * + * @return $this + */ + public function setTransactionCurrency($transactionCurrency) + { + $this->container['transactionCurrency'] = $transactionCurrency; + + return $this; + } + + /** + * Gets merchantName + * + * @return string + */ + public function getMerchantName() + { + return $this->container['merchantName']; + } + + /** + * Sets merchantName + * + * @param string $merchantName 收款商户名 + * + * @return $this + */ + public function setMerchantName($merchantName) + { + $this->container['merchantName'] = $merchantName; + + return $this; + } + + /** + * Gets merchantCity + * + * @return string + */ + public function getMerchantCity() + { + return $this->container['merchantCity']; + } + + /** + * Sets merchantCity + * + * @param string $merchantCity 收款方城市 + * + * @return $this + */ + public function setMerchantCity($merchantCity) + { + $this->container['merchantCity'] = $merchantCity; + + return $this; + } + + /** + * Gets merchantCountryName + * + * @return string + */ + public function getMerchantCountryName() + { + return $this->container['merchantCountryName']; + } + + /** + * Sets merchantCountryName + * + * @param string $merchantCountryName 收款方国家 + * + * @return $this + */ + public function setMerchantCountryName($merchantCountryName) + { + $this->container['merchantCountryName'] = $merchantCountryName; + + return $this; + } + + /** + * Gets mcc + * + * @return string + */ + public function getMcc() + { + return $this->container['mcc']; + } + + /** + * Sets mcc + * + * @param string $mcc mcc + * + * @return $this + */ + public function setMcc($mcc) + { + $this->container['mcc'] = $mcc; + + 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)); + } +} + + diff --git a/lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportQueryResponseDTOResult.php b/lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportQueryResponseDTOResult.php new file mode 100644 index 0000000..252336e --- /dev/null +++ b/lib/Service/AtVcc/Model/UnionPayOrderQueryAuthReportQueryResponseDTOResult.php @@ -0,0 +1,602 @@ +营销产品码:VCC_GLOBAL  

产品名称:环球易汇 

+ * + * OpenAPI spec version: 1.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\AtVcc\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UnionPayOrderQueryAuthReportQueryResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UnionPayOrderQueryAuthReportQueryResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UnionPayOrderQueryAuthReportQueryResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'retCode' => 'string', + 'retMsg' => 'string', + 'requestNo' => 'string', + 'customerNo' => 'string', + 'cardNo' => 'string', + 'extInfo' => 'string', + 'cardUseType' => 'string', + 'openCardTime' => 'string', + 'cardUseOutTime' => 'string', + 'cardOrganization' => 'string', + 'details' => '\Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportDetailResponseDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'retCode' => null, + 'retMsg' => null, + 'requestNo' => null, + 'customerNo' => null, + 'cardNo' => null, + 'extInfo' => null, + 'cardUseType' => null, + 'openCardTime' => 'date-time', + 'cardUseOutTime' => 'date-time', + 'cardOrganization' => null, + 'details' => 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 = [ + 'retCode' => 'retCode', + 'retMsg' => 'retMsg', + 'requestNo' => 'requestNo', + 'customerNo' => 'customerNo', + 'cardNo' => 'cardNo', + 'extInfo' => 'extInfo', + 'cardUseType' => 'cardUseType', + 'openCardTime' => 'openCardTime', + 'cardUseOutTime' => 'cardUseOutTime', + 'cardOrganization' => 'cardOrganization', + 'details' => 'details' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg', + 'requestNo' => 'setRequestNo', + 'customerNo' => 'setCustomerNo', + 'cardNo' => 'setCardNo', + 'extInfo' => 'setExtInfo', + 'cardUseType' => 'setCardUseType', + 'openCardTime' => 'setOpenCardTime', + 'cardUseOutTime' => 'setCardUseOutTime', + 'cardOrganization' => 'setCardOrganization', + 'details' => 'setDetails' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg', + 'requestNo' => 'getRequestNo', + 'customerNo' => 'getCustomerNo', + 'cardNo' => 'getCardNo', + 'extInfo' => 'getExtInfo', + 'cardUseType' => 'getCardUseType', + 'openCardTime' => 'getOpenCardTime', + 'cardUseOutTime' => 'getCardUseOutTime', + 'cardOrganization' => 'getCardOrganization', + 'details' => 'getDetails' + ]; + + /** + * 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['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null; + $this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null; + $this->container['extInfo'] = isset($data['extInfo']) ? $data['extInfo'] : null; + $this->container['cardUseType'] = isset($data['cardUseType']) ? $data['cardUseType'] : null; + $this->container['openCardTime'] = isset($data['openCardTime']) ? $data['openCardTime'] : null; + $this->container['cardUseOutTime'] = isset($data['cardUseOutTime']) ? $data['cardUseOutTime'] : null; + $this->container['cardOrganization'] = isset($data['cardOrganization']) ? $data['cardOrganization'] : null; + $this->container['details'] = isset($data['details']) ? $data['details'] : 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 retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode 返回码 + * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg 返回信息 + * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + 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 customerNo + * + * @return string + */ + public function getCustomerNo() + { + return $this->container['customerNo']; + } + + /** + * Sets customerNo + * + * @param string $customerNo 商户编号 + * + * @return $this + */ + public function setCustomerNo($customerNo) + { + $this->container['customerNo'] = $customerNo; + + return $this; + } + + /** + * Gets cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->container['cardNo']; + } + + /** + * Sets cardNo + * + * @param string $cardNo 卡号 + * + * @return $this + */ + public function setCardNo($cardNo) + { + $this->container['cardNo'] = $cardNo; + + return $this; + } + + /** + * Gets extInfo + * + * @return string + */ + public function getExtInfo() + { + return $this->container['extInfo']; + } + + /** + * Sets extInfo + * + * @param string $extInfo 关联信息 + * + * @return $this + */ + public function setExtInfo($extInfo) + { + $this->container['extInfo'] = $extInfo; + + return $this; + } + + /** + * Gets cardUseType + * + * @return string + */ + public function getCardUseType() + { + return $this->container['cardUseType']; + } + + /** + * Sets cardUseType + * + * @param string $cardUseType 卡类型 + * + * @return $this + */ + public function setCardUseType($cardUseType) + { + $this->container['cardUseType'] = $cardUseType; + + return $this; + } + + /** + * Gets openCardTime + * + * @return string + */ + public function getOpenCardTime() + { + return $this->container['openCardTime']; + } + + /** + * Sets openCardTime + * + * @param string $openCardTime 开卡时间 + * + * @return $this + */ + public function setOpenCardTime($openCardTime) + { + $this->container['openCardTime'] = $openCardTime; + + return $this; + } + + /** + * Gets cardUseOutTime + * + * @return string + */ + public function getCardUseOutTime() + { + return $this->container['cardUseOutTime']; + } + + /** + * Sets cardUseOutTime + * + * @param string $cardUseOutTime 关闭时间 + * + * @return $this + */ + public function setCardUseOutTime($cardUseOutTime) + { + $this->container['cardUseOutTime'] = $cardUseOutTime; + + return $this; + } + + /** + * Gets cardOrganization + * + * @return string + */ + public function getCardOrganization() + { + return $this->container['cardOrganization']; + } + + /** + * Sets cardOrganization + * + * @param string $cardOrganization 卡组织 + * + * @return $this + */ + public function setCardOrganization($cardOrganization) + { + $this->container['cardOrganization'] = $cardOrganization; + + return $this; + } + + /** + * Gets details + * + * @return \Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportDetailResponseDTOResult[] + */ + public function getDetails() + { + return $this->container['details']; + } + + /** + * Sets details + * + * @param \Yeepay\Yop\Sdk\Service\AtVcc\Model\UnionPayOrderQueryAuthReportDetailResponseDTOResult[] $details 明细 + * + * @return $this + */ + public function setDetails($details) + { + $this->container['details'] = $details; + + 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)); + } +} + + diff --git a/lib/Service/AtVcc/Model/UnionPayOrderQueryRequest.php b/lib/Service/AtVcc/Model/UnionPayOrderQueryRequest.php new file mode 100644 index 0000000..ce58eab --- /dev/null +++ b/lib/Service/AtVcc/Model/UnionPayOrderQueryRequest.php @@ -0,0 +1,117 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return UnionPayOrderQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets customerNo + * + * @return string + */ + public function getCustomerNo() + { + return $this->customerNo; + } + + /** + * Sets customerNo + * + * @param string $customerNo + * @return UnionPayOrderQueryRequest + */ + public function setCustomerNo($customerNo) + { + $this->customerNo = $customerNo; + return $this; + } + /** + * Gets transactionTypeList + * + * @return array|string + */ + public function getTransactionTypeList() + { + return $this->transactionTypeList; + } + + /** + * Sets transactionTypeList + * + * @param array|string $transactionTypeList + * @return UnionPayOrderQueryRequest + */ + public function setTransactionTypeList($transactionTypeList) + { + $this->transactionTypeList = $transactionTypeList; + return $this; + } + /** + * Gets accessChannel + * + * @return string + */ + public function getAccessChannel() + { + return $this->accessChannel; + } + + /** + * Sets accessChannel + * + * @param string $accessChannel + * @return UnionPayOrderQueryRequest + */ + public function setAccessChannel($accessChannel) + { + $this->accessChannel = $accessChannel; + return $this; + } + + public static function getOperationId() + { + return 'unionPayOrderQuery'; + } + + +} diff --git a/lib/Service/AtVcc/Model/UnionPayOrderQueryRequestMarshaller.php b/lib/Service/AtVcc/Model/UnionPayOrderQueryRequestMarshaller.php new file mode 100644 index 0000000..5521bee --- /dev/null +++ b/lib/Service/AtVcc/Model/UnionPayOrderQueryRequestMarshaller.php @@ -0,0 +1,91 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getCustomerNo() != null){ + $internalRequest->addParameter('customerNo', ObjectSerializer::sanitizeForSerialization($request->getCustomerNo(), 'string')); + } + if(!empty($request->getTransactionTypeList())){ + foreach ($request->getTransactionTypeList() as $value){ + $internalRequest->addParameter('transactionTypeList', ObjectSerializer::sanitizeForSerialization($value, 'string')); + } + } + if($request->getAccessChannel() != null){ + $internalRequest->addParameter('accessChannel', ObjectSerializer::sanitizeForSerialization($request->getAccessChannel(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UnionPayOrderQueryRequestMarshaller::__init(); diff --git a/lib/Service/AtVcc/Model/UnionPayOrderQueryResponse.php b/lib/Service/AtVcc/Model/UnionPayOrderQueryResponse.php new file mode 100644 index 0000000..8337099 --- /dev/null +++ b/lib/Service/AtVcc/Model/UnionPayOrderQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UnionPayOrderQueryAuthReportQueryResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/AtVcc/Model/UnionPayOrderQueryResponseUnMarshaller.php b/lib/Service/AtVcc/Model/UnionPayOrderQueryResponseUnMarshaller.php new file mode 100644 index 0000000..d87c034 --- /dev/null +++ b/lib/Service/AtVcc/Model/UnionPayOrderQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\FaceAuthRequest $request + * @return Model\FaceAuthResponse + * @throws YopClientException + */ + public function faceAuth(Model\FaceAuthRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\FaceAuthRequestMarshaller::getInstance(), + Model\FaceAuthResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\FaceAuthKycRequest $request + * @return Model\FaceAuthKycResponse + * @throws YopClientException + */ + public function faceAuthKyc(Model\FaceAuthKycRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\FaceAuthKycRequestMarshaller::getInstance(), + Model\FaceAuthKycResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\FaceAuthKycQueryRequest $request + * @return Model\FaceAuthKycQueryResponse + * @throws YopClientException + */ + public function faceAuthKycQuery(Model\FaceAuthKycQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\FaceAuthKycQueryRequestMarshaller::getInstance(), + Model\FaceAuthKycQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\FaceAuthResultQueryRequest $request + * @return Model\FaceAuthResultQueryResponse + * @throws YopClientException + */ + public function faceAuthResultQuery(Model\FaceAuthResultQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\FaceAuthResultQueryRequestMarshaller::getInstance(), + Model\FaceAuthResultQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\MultipleAuthRequest $request + * @return Model\MultipleAuthResponse + * @throws YopClientException + */ + public function multipleAuth(Model\MultipleAuthRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\MultipleAuthRequestMarshaller::getInstance(), + Model\MultipleAuthResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Auth/AuthClientBuilder.php b/lib/Service/Auth/AuthClientBuilder.php new file mode 100644 index 0000000..c7d2be2 --- /dev/null +++ b/lib/Service/Auth/AuthClientBuilder.php @@ -0,0 +1,72 @@ +register('faceAuth', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('faceAuthKyc', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('faceAuthKycQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('faceAuthResultQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('multipleAuth', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * AuthClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new AuthClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return AuthClientBuilder + * @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 AuthClientBuilder($clientParams); + } + +} +AuthClientBuilder::__init(); diff --git a/lib/Service/Auth/Model/FaceAuthFaceAuthResponseDTOResult.php b/lib/Service/Auth/Model/FaceAuthFaceAuthResponseDTOResult.php new file mode 100644 index 0000000..3bbe466 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthFaceAuthResponseDTOResult.php @@ -0,0 +1,452 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'gatherFaceUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'orderNo' => null, + 'status' => null, + 'gatherFaceUrl' => 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', + 'requestNo' => 'requestNo', + 'orderNo' => 'orderNo', + 'status' => 'status', + 'gatherFaceUrl' => 'gatherFaceUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'status' => 'setStatus', + 'gatherFaceUrl' => 'setGatherFaceUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'status' => 'getStatus', + 'gatherFaceUrl' => 'getGatherFaceUrl' + ]; + + /** + * 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['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['gatherFaceUrl'] = isset($data['gatherFaceUrl']) ? $data['gatherFaceUrl'] : 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 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 gatherFaceUrl + * + * @return string + */ + public function getGatherFaceUrl() + { + return $this->container['gatherFaceUrl']; + } + + /** + * Sets gatherFaceUrl + * + * @param string $gatherFaceUrl 人脸采集地址 + * + * @return $this + */ + public function setGatherFaceUrl($gatherFaceUrl) + { + $this->container['gatherFaceUrl'] = $gatherFaceUrl; + + 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)); + } +} + + diff --git a/lib/Service/Auth/Model/FaceAuthKycFaceAuthResponseDTOResult.php b/lib/Service/Auth/Model/FaceAuthKycFaceAuthResponseDTOResult.php new file mode 100644 index 0000000..2bc65ed --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycFaceAuthResponseDTOResult.php @@ -0,0 +1,452 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'gatherFaceUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'orderNo' => null, + 'status' => null, + 'gatherFaceUrl' => 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', + 'requestNo' => 'requestNo', + 'orderNo' => 'orderNo', + 'status' => 'status', + 'gatherFaceUrl' => 'gatherFaceUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'status' => 'setStatus', + 'gatherFaceUrl' => 'setGatherFaceUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'status' => 'getStatus', + 'gatherFaceUrl' => 'getGatherFaceUrl' + ]; + + /** + * 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['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['gatherFaceUrl'] = isset($data['gatherFaceUrl']) ? $data['gatherFaceUrl'] : 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 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 gatherFaceUrl + * + * @return string + */ + public function getGatherFaceUrl() + { + return $this->container['gatherFaceUrl']; + } + + /** + * Sets gatherFaceUrl + * + * @param string $gatherFaceUrl 人脸采集地址 + * + * @return $this + */ + public function setGatherFaceUrl($gatherFaceUrl) + { + $this->container['gatherFaceUrl'] = $gatherFaceUrl; + + 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)); + } +} + + diff --git a/lib/Service/Auth/Model/FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult.php b/lib/Service/Auth/Model/FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult.php new file mode 100644 index 0000000..0836043 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult.php @@ -0,0 +1,482 @@ + 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'extraData' => 'string', + 'riskTag' => 'string', + 'code' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'requestNo' => null, + 'orderNo' => null, + 'status' => null, + 'extraData' => null, + 'riskTag' => null, + 'code' => null, + 'message' => 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', + 'orderNo' => 'orderNo', + 'status' => 'status', + 'extraData' => 'extraData', + 'riskTag' => 'riskTag', + 'code' => 'code', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'status' => 'setStatus', + 'extraData' => 'setExtraData', + 'riskTag' => 'setRiskTag', + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'status' => 'getStatus', + 'extraData' => 'getExtraData', + 'riskTag' => 'getRiskTag', + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null; + $this->container['riskTag'] = isset($data['riskTag']) ? $data['riskTag'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 商户请求流水号 + * + * @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 extraData + * + * @return string + */ + public function getExtraData() + { + return $this->container['extraData']; + } + + /** + * Sets extraData + * + * @param string $extraData 额外数据 + * + * @return $this + */ + public function setExtraData($extraData) + { + $this->container['extraData'] = $extraData; + + return $this; + } + + /** + * Gets riskTag + * + * @return string + */ + public function getRiskTag() + { + return $this->container['riskTag']; + } + + /** + * Sets riskTag + * + * @param string $riskTag 风险类别 + * + * @return $this + */ + public function setRiskTag($riskTag) + { + $this->container['riskTag'] = $riskTag; + + return $this; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Auth/Model/FaceAuthKycQueryRequest.php b/lib/Service/Auth/Model/FaceAuthKycQueryRequest.php new file mode 100644 index 0000000..85695ab --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycQueryRequest.php @@ -0,0 +1,92 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return FaceAuthKycQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return FaceAuthKycQueryRequest + */ + 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 FaceAuthKycQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'faceAuthKycQuery'; + } + + +} diff --git a/lib/Service/Auth/Model/FaceAuthKycQueryRequestMarshaller.php b/lib/Service/Auth/Model/FaceAuthKycQueryRequestMarshaller.php new file mode 100644 index 0000000..69ef77d --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FaceAuthKycQueryRequestMarshaller::__init(); diff --git a/lib/Service/Auth/Model/FaceAuthKycQueryResponse.php b/lib/Service/Auth/Model/FaceAuthKycQueryResponse.php new file mode 100644 index 0000000..af2415c --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FaceAuthKycQueryFaceAuthResultQueryResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Auth/Model/FaceAuthKycQueryResponseUnMarshaller.php b/lib/Service/Auth/Model/FaceAuthKycQueryResponseUnMarshaller.php new file mode 100644 index 0000000..12c3cad --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return FaceAuthKycRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return FaceAuthKycRequest + */ + 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 FaceAuthKycRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return FaceAuthKycRequest + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->cardNo; + } + + /** + * Sets cardNo + * + * @param string $cardNo + * @return FaceAuthKycRequest + */ + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return FaceAuthKycRequest + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return FaceAuthKycRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return FaceAuthKycRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets extraData + * + * @return string + */ + public function getExtraData() + { + return $this->extraData; + } + + /** + * Sets extraData + * + * @param string $extraData + * @return FaceAuthKycRequest + */ + public function setExtraData($extraData) + { + $this->extraData = $extraData; + return $this; + } + + public static function getOperationId() + { + return 'faceAuthKyc'; + } + + +} diff --git a/lib/Service/Auth/Model/FaceAuthKycRequestMarshaller.php b/lib/Service/Auth/Model/FaceAuthKycRequestMarshaller.php new file mode 100644 index 0000000..95a3471 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + 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->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCardNo() != null){ + $internalRequest->addParameter('cardNo', ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getExtraData() != null){ + $internalRequest->addParameter('extraData', ObjectSerializer::sanitizeForSerialization($request->getExtraData(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FaceAuthKycRequestMarshaller::__init(); diff --git a/lib/Service/Auth/Model/FaceAuthKycResponse.php b/lib/Service/Auth/Model/FaceAuthKycResponse.php new file mode 100644 index 0000000..6e209d5 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FaceAuthKycFaceAuthResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Auth/Model/FaceAuthKycResponseUnMarshaller.php b/lib/Service/Auth/Model/FaceAuthKycResponseUnMarshaller.php new file mode 100644 index 0000000..9ab72c5 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthKycResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return FaceAuthRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return FaceAuthRequest + */ + 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 FaceAuthRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return FaceAuthRequest + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->cardNo; + } + + /** + * Sets cardNo + * + * @param string $cardNo + * @return FaceAuthRequest + */ + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return FaceAuthRequest + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return FaceAuthRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return FaceAuthRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets extraData + * + * @return string + */ + public function getExtraData() + { + return $this->extraData; + } + + /** + * Sets extraData + * + * @param string $extraData + * @return FaceAuthRequest + */ + public function setExtraData($extraData) + { + $this->extraData = $extraData; + return $this; + } + + public static function getOperationId() + { + return 'faceAuth'; + } + + +} diff --git a/lib/Service/Auth/Model/FaceAuthRequestMarshaller.php b/lib/Service/Auth/Model/FaceAuthRequestMarshaller.php new file mode 100644 index 0000000..f71215b --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + 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->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCardNo() != null){ + $internalRequest->addParameter('cardNo', ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getExtraData() != null){ + $internalRequest->addParameter('extraData', ObjectSerializer::sanitizeForSerialization($request->getExtraData(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FaceAuthRequestMarshaller::__init(); diff --git a/lib/Service/Auth/Model/FaceAuthResponse.php b/lib/Service/Auth/Model/FaceAuthResponse.php new file mode 100644 index 0000000..a4c96de --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FaceAuthFaceAuthResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Auth/Model/FaceAuthResponseUnMarshaller.php b/lib/Service/Auth/Model/FaceAuthResponseUnMarshaller.php new file mode 100644 index 0000000..f77dde2 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'orderNo' => 'string', + 'status' => 'string', + 'extraData' => 'string', + 'code' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'requestNo' => null, + 'orderNo' => null, + 'status' => null, + 'extraData' => null, + 'code' => null, + 'message' => 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', + 'orderNo' => 'orderNo', + 'status' => 'status', + 'extraData' => 'extraData', + 'code' => 'code', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'status' => 'setStatus', + 'extraData' => 'setExtraData', + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'status' => 'getStatus', + 'extraData' => 'getExtraData', + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['extraData'] = isset($data['extraData']) ? $data['extraData'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 商户请求流水号 + * + * @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 extraData + * + * @return string + */ + public function getExtraData() + { + return $this->container['extraData']; + } + + /** + * Sets extraData + * + * @param string $extraData 额外数据 + * + * @return $this + */ + public function setExtraData($extraData) + { + $this->container['extraData'] = $extraData; + + return $this; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Auth/Model/FaceAuthResultQueryRequest.php b/lib/Service/Auth/Model/FaceAuthResultQueryRequest.php new file mode 100644 index 0000000..91a4e23 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthResultQueryRequest.php @@ -0,0 +1,92 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return FaceAuthResultQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return FaceAuthResultQueryRequest + */ + 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 FaceAuthResultQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'faceAuthResultQuery'; + } + + +} diff --git a/lib/Service/Auth/Model/FaceAuthResultQueryRequestMarshaller.php b/lib/Service/Auth/Model/FaceAuthResultQueryRequestMarshaller.php new file mode 100644 index 0000000..62fd4a1 --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthResultQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FaceAuthResultQueryRequestMarshaller::__init(); diff --git a/lib/Service/Auth/Model/FaceAuthResultQueryResponse.php b/lib/Service/Auth/Model/FaceAuthResultQueryResponse.php new file mode 100644 index 0000000..64e018a --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthResultQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FaceAuthResultQueryFaceAuthResultQueryResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Auth/Model/FaceAuthResultQueryResponseUnMarshaller.php b/lib/Service/Auth/Model/FaceAuthResultQueryResponseUnMarshaller.php new file mode 100644 index 0000000..0c9444b --- /dev/null +++ b/lib/Service/Auth/Model/FaceAuthResultQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'merchantNo' => 'string', + 'code' => 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'authType' => 'string', + 'ybOrderId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'merchantNo' => null, + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'authType' => null, + 'ybOrderId' => 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 = [ + 'status' => 'status', + 'merchantNo' => 'merchantNo', + 'code' => 'code', + 'message' => 'message', + 'requestNo' => 'requestNo', + 'authType' => 'authType', + 'ybOrderId' => 'ybOrderId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'merchantNo' => 'setMerchantNo', + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'authType' => 'setAuthType', + 'ybOrderId' => 'setYbOrderId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'merchantNo' => 'getMerchantNo', + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'authType' => 'getAuthType', + 'ybOrderId' => 'getYbOrderId' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['authType'] = isset($data['authType']) ? $data['authType'] : null; + $this->container['ybOrderId'] = isset($data['ybOrderId']) ? $data['ybOrderId'] : 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 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 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 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 authType + * + * @return string + */ + public function getAuthType() + { + return $this->container['authType']; + } + + /** + * Sets authType + * + * @param string $authType 认证类型 + * + * @return $this + */ + public function setAuthType($authType) + { + $this->container['authType'] = $authType; + + return $this; + } + + /** + * Gets ybOrderId + * + * @return string + */ + public function getYbOrderId() + { + return $this->container['ybOrderId']; + } + + /** + * Sets ybOrderId + * + * @param string $ybOrderId 易宝流水号 + * + * @return $this + */ + public function setYbOrderId($ybOrderId) + { + $this->container['ybOrderId'] = $ybOrderId; + + 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)); + } +} + + diff --git a/lib/Service/Auth/Model/MultipleAuthRequest.php b/lib/Service/Auth/Model/MultipleAuthRequest.php new file mode 100644 index 0000000..eee3ecc --- /dev/null +++ b/lib/Service/Auth/Model/MultipleAuthRequest.php @@ -0,0 +1,292 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return MultipleAuthRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets authType + * + * @return string + */ + public function getAuthType() + { + return $this->authType; + } + + /** + * Sets authType + * + * @param string $authType + * @return MultipleAuthRequest + */ + public function setAuthType($authType) + { + $this->authType = $authType; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return MultipleAuthRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return MultipleAuthRequest + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets username + * + * @return string + */ + public function getUsername() + { + return $this->username; + } + + /** + * Sets username + * + * @param string $username + * @return MultipleAuthRequest + */ + public function setUsername($username) + { + $this->username = $username; + return $this; + } + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->bankCardNo; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo + * @return MultipleAuthRequest + */ + public function setBankCardNo($bankCardNo) + { + $this->bankCardNo = $bankCardNo; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return MultipleAuthRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return MultipleAuthRequest + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->idCardType; + } + + /** + * Sets idCardType + * + * @param string $idCardType + * @return MultipleAuthRequest + */ + public function setIdCardType($idCardType) + { + $this->idCardType = $idCardType; + return $this; + } + /** + * Gets clientSource + * + * @return string + */ + public function getClientSource() + { + return $this->clientSource; + } + + /** + * Sets clientSource + * + * @param string $clientSource + * @return MultipleAuthRequest + */ + public function setClientSource($clientSource) + { + $this->clientSource = $clientSource; + return $this; + } + /** + * Gets extMap + * + * @return string + */ + public function getExtMap() + { + return $this->extMap; + } + + /** + * Sets extMap + * + * @param string $extMap + * @return MultipleAuthRequest + */ + public function setExtMap($extMap) + { + $this->extMap = $extMap; + return $this; + } + + public static function getOperationId() + { + return 'multipleAuth'; + } + + +} diff --git a/lib/Service/Auth/Model/MultipleAuthRequestMarshaller.php b/lib/Service/Auth/Model/MultipleAuthRequestMarshaller.php new file mode 100644 index 0000000..a718908 --- /dev/null +++ b/lib/Service/Auth/Model/MultipleAuthRequestMarshaller.php @@ -0,0 +1,110 @@ +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->getAuthType() != null){ + $internalRequest->addParameter('authType', ObjectSerializer::sanitizeForSerialization($request->getAuthType(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getUsername() != null){ + $internalRequest->addParameter('username', ObjectSerializer::sanitizeForSerialization($request->getUsername(), 'string')); + } + if($request->getBankCardNo() != null){ + $internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getIdCardType() != null){ + $internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string')); + } + if($request->getClientSource() != null){ + $internalRequest->addParameter('clientSource', ObjectSerializer::sanitizeForSerialization($request->getClientSource(), 'string')); + } + if($request->getExtMap() != null){ + $internalRequest->addParameter('extMap', ObjectSerializer::sanitizeForSerialization($request->getExtMap(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MultipleAuthRequestMarshaller::__init(); diff --git a/lib/Service/Auth/Model/MultipleAuthResponse.php b/lib/Service/Auth/Model/MultipleAuthResponse.php new file mode 100644 index 0000000..35f83f0 --- /dev/null +++ b/lib/Service/Auth/Model/MultipleAuthResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MultipleAuthAuthResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Auth/Model/MultipleAuthResponseUnMarshaller.php b/lib/Service/Auth/Model/MultipleAuthResponseUnMarshaller.php new file mode 100644 index 0000000..cc1467e --- /dev/null +++ b/lib/Service/Auth/Model/MultipleAuthResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return UnifiedOrderRequest + */ + 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 UnifiedOrderRequest + */ + 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 UnifiedOrderRequest + */ + 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 UnifiedOrderRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return UnifiedOrderRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return UnifiedOrderRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return UnifiedOrderRequest + */ + 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 UnifiedOrderRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets expiredTime + * + * @return string + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param string $expiredTime + * @return UnifiedOrderRequest + */ + public function setExpiredTime($expiredTime) + { + $this->expiredTime = $expiredTime; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return UnifiedOrderRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets csNotifyUrl + * + * @return string + */ + public function getCsNotifyUrl() + { + return $this->csNotifyUrl; + } + + /** + * Sets csNotifyUrl + * + * @param string $csNotifyUrl + * @return UnifiedOrderRequest + */ + public function setCsNotifyUrl($csNotifyUrl) + { + $this->csNotifyUrl = $csNotifyUrl; + return $this; + } + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->businessInfo; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo + * @return UnifiedOrderRequest + */ + public function setBusinessInfo($businessInfo) + { + $this->businessInfo = $businessInfo; + return $this; + } + /** + * Gets payerInfo + * + * @return string + */ + public function getPayerInfo() + { + return $this->payerInfo; + } + + /** + * Sets payerInfo + * + * @param string $payerInfo + * @return UnifiedOrderRequest + */ + public function setPayerInfo($payerInfo) + { + $this->payerInfo = $payerInfo; + return $this; + } + /** + * Gets limitPayType + * + * @return string + */ + public function getLimitPayType() + { + return $this->limitPayType; + } + + /** + * Sets limitPayType + * + * @param string $limitPayType + * @return UnifiedOrderRequest + */ + public function setLimitPayType($limitPayType) + { + $this->limitPayType = $limitPayType; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return UnifiedOrderRequest + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets aggParam + * + * @return string + */ + public function getAggParam() + { + return $this->aggParam; + } + + /** + * Sets aggParam + * + * @param string $aggParam + * @return UnifiedOrderRequest + */ + public function setAggParam($aggParam) + { + $this->aggParam = $aggParam; + return $this; + } + /** + * Gets noCardParam + * + * @return string + */ + public function getNoCardParam() + { + return $this->noCardParam; + } + + /** + * Sets noCardParam + * + * @param string $noCardParam + * @return UnifiedOrderRequest + */ + public function setNoCardParam($noCardParam) + { + $this->noCardParam = $noCardParam; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return UnifiedOrderRequest + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets divideDetail + * + * @return string + */ + public function getDivideDetail() + { + return $this->divideDetail; + } + + /** + * Sets divideDetail + * + * @param string $divideDetail + * @return UnifiedOrderRequest + */ + public function setDivideDetail($divideDetail) + { + $this->divideDetail = $divideDetail; + return $this; + } + /** + * Gets divideNotifyUrl + * + * @return string + */ + public function getDivideNotifyUrl() + { + return $this->divideNotifyUrl; + } + + /** + * Sets divideNotifyUrl + * + * @param string $divideNotifyUrl + * @return UnifiedOrderRequest + */ + public function setDivideNotifyUrl($divideNotifyUrl) + { + $this->divideNotifyUrl = $divideNotifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'unifiedOrder'; + } + + +} diff --git a/lib/Service/Cashier/Model/UnifiedOrderRequestMarshaller.php b/lib/Service/Cashier/Model/UnifiedOrderRequestMarshaller.php new file mode 100644 index 0000000..47a5b90 --- /dev/null +++ b/lib/Service/Cashier/Model/UnifiedOrderRequestMarshaller.php @@ -0,0 +1,137 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), '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->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string', 'url')); + } + if($request->getCsNotifyUrl() != null){ + $internalRequest->addParameter('csNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getCsNotifyUrl(), 'string', 'url')); + } + if($request->getBusinessInfo() != null){ + $internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string')); + } + if($request->getPayerInfo() != null){ + $internalRequest->addParameter('payerInfo', ObjectSerializer::sanitizeForSerialization($request->getPayerInfo(), 'string')); + } + if($request->getLimitPayType() != null){ + $internalRequest->addParameter('limitPayType', ObjectSerializer::sanitizeForSerialization($request->getLimitPayType(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getAggParam() != null){ + $internalRequest->addParameter('aggParam', ObjectSerializer::sanitizeForSerialization($request->getAggParam(), 'string')); + } + if($request->getNoCardParam() != null){ + $internalRequest->addParameter('noCardParam', ObjectSerializer::sanitizeForSerialization($request->getNoCardParam(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getDivideDetail() != null){ + $internalRequest->addParameter('divideDetail', ObjectSerializer::sanitizeForSerialization($request->getDivideDetail(), 'string')); + } + if($request->getDivideNotifyUrl() != null){ + $internalRequest->addParameter('divideNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getDivideNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UnifiedOrderRequestMarshaller::__init(); diff --git a/lib/Service/Cashier/Model/UnifiedOrderResponse.php b/lib/Service/Cashier/Model/UnifiedOrderResponse.php new file mode 100644 index 0000000..2ea3817 --- /dev/null +++ b/lib/Service/Cashier/Model/UnifiedOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UnifiedOrderUnifiedCashierOrderResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Cashier/Model/UnifiedOrderResponseUnMarshaller.php b/lib/Service/Cashier/Model/UnifiedOrderResponseUnMarshaller.php new file mode 100644 index 0000000..c294fa1 --- /dev/null +++ b/lib/Service/Cashier/Model/UnifiedOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string', + 'cashierUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'uniqueOrderNo' => null, + 'cashierUrl' => 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', + 'cashierUrl' => 'cashierUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'cashierUrl' => 'setCashierUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'cashierUrl' => 'getCashierUrl' + ]; + + /** + * 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['cashierUrl'] = isset($data['cashierUrl']) ? $data['cashierUrl'] : 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 cashierUrl + * + * @return string + */ + public function getCashierUrl() + { + return $this->container['cashierUrl']; + } + + /** + * Sets cashierUrl + * + * @param string $cashierUrl 收银台链接 + * + * @return $this + */ + public function setCashierUrl($cashierUrl) + { + $this->container['cashierUrl'] = $cashierUrl; + + 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)); + } +} + + diff --git a/lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentApiInfoResult.php b/lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentApiInfoResult.php new file mode 100644 index 0000000..a83c4c6 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentApiInfoResult.php @@ -0,0 +1,333 @@ +中台的无卡交易系统(Card Not Present),包含调用统一订单OPR下单及无卡支付服务NCPAY支付的流程

+ * + * OpenAPI spec version: 1.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\Cnppay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallmentPayRequestInstallmentApiInfoResult Class Doc Comment + * + * @category Class + * @description + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallmentPayRequestInstallmentApiInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallmentPayRequestInstallmentApiInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'needRedirect' => 'bool', + 'installmentRedirectUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'needRedirect' => null, + 'installmentRedirectUrl' => 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 = [ + 'needRedirect' => 'needRedirect', + 'installmentRedirectUrl' => 'installmentRedirectUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'needRedirect' => 'setNeedRedirect', + 'installmentRedirectUrl' => 'setInstallmentRedirectUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'needRedirect' => 'getNeedRedirect', + 'installmentRedirectUrl' => 'getInstallmentRedirectUrl' + ]; + + /** + * 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['needRedirect'] = isset($data['needRedirect']) ? $data['needRedirect'] : null; + $this->container['installmentRedirectUrl'] = isset($data['installmentRedirectUrl']) ? $data['installmentRedirectUrl'] : 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 needRedirect + * + * @return bool + */ + public function getNeedRedirect() + { + return $this->container['needRedirect']; + } + + /** + * Sets needRedirect + * + * @param bool $needRedirect 是否跳转至银行分期页面 + * + * @return $this + */ + public function setNeedRedirect($needRedirect) + { + $this->container['needRedirect'] = $needRedirect; + + return $this; + } + + /** + * Gets installmentRedirectUrl + * + * @return string + */ + public function getInstallmentRedirectUrl() + { + return $this->container['installmentRedirectUrl']; + } + + /** + * Sets installmentRedirectUrl + * + * @param string $installmentRedirectUrl 银行分期页面跳转地址 + * + * @return $this + */ + public function setInstallmentRedirectUrl($installmentRedirectUrl) + { + $this->container['installmentRedirectUrl'] = $installmentRedirectUrl; + + 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)); + } +} + + diff --git a/lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentPayResponseDTOResult.php b/lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentPayResponseDTOResult.php new file mode 100644 index 0000000..1905881 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentPayRequestInstallmentPayResponseDTOResult.php @@ -0,0 +1,482 @@ +中台的无卡交易系统(Card Not Present),包含调用统一订单OPR下单及无卡支付服务NCPAY支付的流程

+ * + * OpenAPI spec version: 1.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\Cnppay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallmentPayRequestInstallmentPayResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallmentPayRequestInstallmentPayResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallmentPayRequestInstallmentPayResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'orderId' => 'string', + 'status' => 'string', + 'uniqueOrderNo' => 'string', + 'installmentInfo' => '\Yeepay\Yop\Sdk\Service\Cnppay\Model\InstallmentPayRequestInstallmentApiInfoResult' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'orderId' => null, + 'status' => null, + 'uniqueOrderNo' => null, + 'installmentInfo' => 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', + 'merchantNo' => 'merchantNo', + 'orderId' => 'orderId', + 'status' => 'status', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'installmentInfo' => 'installmentInfo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'orderId' => 'setOrderId', + 'status' => 'setStatus', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'installmentInfo' => 'setInstallmentInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'orderId' => 'getOrderId', + 'status' => 'getStatus', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'installmentInfo' => 'getInstallmentInfo' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null; + $this->container['installmentInfo'] = isset($data['installmentInfo']) ? $data['installmentInfo'] : 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 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 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 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 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 installmentInfo + * + * @return \Yeepay\Yop\Sdk\Service\Cnppay\Model\InstallmentPayRequestInstallmentApiInfoResult + */ + public function getInstallmentInfo() + { + return $this->container['installmentInfo']; + } + + /** + * Sets installmentInfo + * + * @param \Yeepay\Yop\Sdk\Service\Cnppay\Model\InstallmentPayRequestInstallmentApiInfoResult $installmentInfo 分期信息 + * + * @return $this + */ + public function setInstallmentInfo($installmentInfo) + { + $this->container['installmentInfo'] = $installmentInfo; + + 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)); + } +} + + diff --git a/lib/Service/Cnppay/Model/InstallmentPayRequestRequest.php b/lib/Service/Cnppay/Model/InstallmentPayRequestRequest.php new file mode 100644 index 0000000..1bba8cd --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentPayRequestRequest.php @@ -0,0 +1,367 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return InstallmentPayRequestRequest + */ + 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 InstallmentPayRequestRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets orderAmount + * + * @return float + */ + public function getOrderAmount() + { + return $this->orderAmount; + } + + /** + * Sets orderAmount + * + * @param float $orderAmount + * @return InstallmentPayRequestRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets orderId + * + * @return string + */ + public function getOrderId() + { + return $this->orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return InstallmentPayRequestRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return InstallmentPayRequestRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets bankId + * + * @return string + */ + public function getBankId() + { + return $this->bankId; + } + + /** + * Sets bankId + * + * @param string $bankId + * @return InstallmentPayRequestRequest + */ + public function setBankId($bankId) + { + $this->bankId = $bankId; + return $this; + } + /** + * Gets expireTime + * + * @return string + */ + public function getExpireTime() + { + return $this->expireTime; + } + + /** + * Sets expireTime + * + * @param string $expireTime + * @return InstallmentPayRequestRequest + */ + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return InstallmentPayRequestRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets numOfInstallment + * + * @return int + */ + public function getNumOfInstallment() + { + return $this->numOfInstallment; + } + + /** + * Sets numOfInstallment + * + * @param int $numOfInstallment + * @return InstallmentPayRequestRequest + */ + public function setNumOfInstallment($numOfInstallment) + { + $this->numOfInstallment = $numOfInstallment; + return $this; + } + /** + * Gets riskInfo + * + * @return string + */ + public function getRiskInfo() + { + return $this->riskInfo; + } + + /** + * Sets riskInfo + * + * @param string $riskInfo + * @return InstallmentPayRequestRequest + */ + public function setRiskInfo($riskInfo) + { + $this->riskInfo = $riskInfo; + return $this; + } + /** + * Gets redirectUrl + * + * @return string + */ + public function getRedirectUrl() + { + return $this->redirectUrl; + } + + /** + * Sets redirectUrl + * + * @param string $redirectUrl + * @return InstallmentPayRequestRequest + */ + public function setRedirectUrl($redirectUrl) + { + $this->redirectUrl = $redirectUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return InstallmentPayRequestRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return InstallmentPayRequestRequest + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + /** + * Gets memo + * + * @return string + */ + public function getMemo() + { + return $this->memo; + } + + /** + * Sets memo + * + * @param string $memo + * @return InstallmentPayRequestRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + + public static function getOperationId() + { + return 'installmentPayRequest'; + } + + +} diff --git a/lib/Service/Cnppay/Model/InstallmentPayRequestRequestMarshaller.php b/lib/Service/Cnppay/Model/InstallmentPayRequestRequestMarshaller.php new file mode 100644 index 0000000..a4fd42e --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentPayRequestRequestMarshaller.php @@ -0,0 +1,119 @@ +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->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getBankId() != null){ + $internalRequest->addParameter('bankId', ObjectSerializer::sanitizeForSerialization($request->getBankId(), 'string')); + } + if($request->getExpireTime() != null){ + $internalRequest->addParameter('expireTime', ObjectSerializer::sanitizeForSerialization($request->getExpireTime(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getNumOfInstallment() != null){ + $internalRequest->addParameter('numOfInstallment', ObjectSerializer::sanitizeForSerialization($request->getNumOfInstallment(), 'int', 'int32')); + } + if($request->getRiskInfo() != null){ + $internalRequest->addParameter('riskInfo', ObjectSerializer::sanitizeForSerialization($request->getRiskInfo(), 'string')); + } + if($request->getRedirectUrl() != null){ + $internalRequest->addParameter('redirectUrl', ObjectSerializer::sanitizeForSerialization($request->getRedirectUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +InstallmentPayRequestRequestMarshaller::__init(); diff --git a/lib/Service/Cnppay/Model/InstallmentPayRequestResponse.php b/lib/Service/Cnppay/Model/InstallmentPayRequestResponse.php new file mode 100644 index 0000000..9630f28 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentPayRequestResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return InstallmentPayRequestInstallmentPayResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Cnppay/Model/InstallmentPayRequestResponseUnMarshaller.php b/lib/Service/Cnppay/Model/InstallmentPayRequestResponseUnMarshaller.php new file mode 100644 index 0000000..aa8d584 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentPayRequestResponseUnMarshaller.php @@ -0,0 +1,39 @@ +中台的无卡交易系统(Card Not Present),包含调用统一订单OPR下单及无卡支付服务NCPAY支付的流程

+ * + * OpenAPI spec version: 1.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\Cnppay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallmentQuerybankcfgInstallmentBankCfgInfoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallmentQuerybankcfgInstallmentBankCfgInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallmentQuerybankcfgInstallmentBankCfgInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'numOfInstallment' => 'int', + 'bankId' => 'string', + 'maxQuota' => 'float', + 'minQuota' => 'float', + 'subsidyInterestType' => 'string', + 'payerInterestRate' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'numOfInstallment' => 'int32', + 'bankId' => null, + 'maxQuota' => null, + 'minQuota' => null, + 'subsidyInterestType' => null, + 'payerInterestRate' => 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 = [ + 'numOfInstallment' => 'numOfInstallment', + 'bankId' => 'bankId', + 'maxQuota' => 'maxQuota', + 'minQuota' => 'minQuota', + 'subsidyInterestType' => 'subsidyInterestType', + 'payerInterestRate' => 'payerInterestRate' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'numOfInstallment' => 'setNumOfInstallment', + 'bankId' => 'setBankId', + 'maxQuota' => 'setMaxQuota', + 'minQuota' => 'setMinQuota', + 'subsidyInterestType' => 'setSubsidyInterestType', + 'payerInterestRate' => 'setPayerInterestRate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'numOfInstallment' => 'getNumOfInstallment', + 'bankId' => 'getBankId', + 'maxQuota' => 'getMaxQuota', + 'minQuota' => 'getMinQuota', + 'subsidyInterestType' => 'getSubsidyInterestType', + 'payerInterestRate' => 'getPayerInterestRate' + ]; + + /** + * 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['numOfInstallment'] = isset($data['numOfInstallment']) ? $data['numOfInstallment'] : null; + $this->container['bankId'] = isset($data['bankId']) ? $data['bankId'] : null; + $this->container['maxQuota'] = isset($data['maxQuota']) ? $data['maxQuota'] : null; + $this->container['minQuota'] = isset($data['minQuota']) ? $data['minQuota'] : null; + $this->container['subsidyInterestType'] = isset($data['subsidyInterestType']) ? $data['subsidyInterestType'] : null; + $this->container['payerInterestRate'] = isset($data['payerInterestRate']) ? $data['payerInterestRate'] : 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 numOfInstallment + * + * @return int + */ + public function getNumOfInstallment() + { + return $this->container['numOfInstallment']; + } + + /** + * Sets numOfInstallment + * + * @param int $numOfInstallment 银行分期数 + * + * @return $this + */ + public function setNumOfInstallment($numOfInstallment) + { + $this->container['numOfInstallment'] = $numOfInstallment; + + return $this; + } + + /** + * Gets bankId + * + * @return string + */ + public function getBankId() + { + return $this->container['bankId']; + } + + /** + * Sets bankId + * + * @param string $bankId 银行编码 + * + * @return $this + */ + public function setBankId($bankId) + { + $this->container['bankId'] = $bankId; + + return $this; + } + + /** + * Gets maxQuota + * + * @return float + */ + public function getMaxQuota() + { + return $this->container['maxQuota']; + } + + /** + * Sets maxQuota + * + * @param float $maxQuota 银行最高限额 + * + * @return $this + */ + public function setMaxQuota($maxQuota) + { + $this->container['maxQuota'] = $maxQuota; + + return $this; + } + + /** + * Gets minQuota + * + * @return float + */ + public function getMinQuota() + { + return $this->container['minQuota']; + } + + /** + * Sets minQuota + * + * @param float $minQuota 银行最低限额 + * + * @return $this + */ + public function setMinQuota($minQuota) + { + $this->container['minQuota'] = $minQuota; + + return $this; + } + + /** + * Gets subsidyInterestType + * + * @return string + */ + public function getSubsidyInterestType() + { + return $this->container['subsidyInterestType']; + } + + /** + * Sets subsidyInterestType + * + * @param string $subsidyInterestType 贴息类型 + * + * @return $this + */ + public function setSubsidyInterestType($subsidyInterestType) + { + $this->container['subsidyInterestType'] = $subsidyInterestType; + + return $this; + } + + /** + * Gets payerInterestRate + * + * @return string + */ + public function getPayerInterestRate() + { + return $this->container['payerInterestRate']; + } + + /** + * Sets payerInterestRate + * + * @param string $payerInterestRate 持卡人利率 + * + * @return $this + */ + public function setPayerInterestRate($payerInterestRate) + { + $this->container['payerInterestRate'] = $payerInterestRate; + + 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)); + } +} + + diff --git a/lib/Service/Cnppay/Model/InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult.php b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult.php new file mode 100644 index 0000000..333e8c6 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult.php @@ -0,0 +1,362 @@ +中台的无卡交易系统(Card Not Present),包含调用统一订单OPR下单及无卡支付服务NCPAY支付的流程

+ * + * OpenAPI spec version: 1.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\Cnppay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'bankCfgInfo' => '\Yeepay\Yop\Sdk\Service\Cnppay\Model\InstallmentQuerybankcfgInstallmentBankCfgInfoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'bankCfgInfo' => 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', + 'bankCfgInfo' => 'bankCfgInfo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'bankCfgInfo' => 'setBankCfgInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'bankCfgInfo' => 'getBankCfgInfo' + ]; + + /** + * 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['bankCfgInfo'] = isset($data['bankCfgInfo']) ? $data['bankCfgInfo'] : 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 bankCfgInfo + * + * @return \Yeepay\Yop\Sdk\Service\Cnppay\Model\InstallmentQuerybankcfgInstallmentBankCfgInfoResult[] + */ + public function getBankCfgInfo() + { + return $this->container['bankCfgInfo']; + } + + /** + * Sets bankCfgInfo + * + * @param \Yeepay\Yop\Sdk\Service\Cnppay\Model\InstallmentQuerybankcfgInstallmentBankCfgInfoResult[] $bankCfgInfo 分期银行配置信息 + * + * @return $this + */ + public function setBankCfgInfo($bankCfgInfo) + { + $this->container['bankCfgInfo'] = $bankCfgInfo; + + 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)); + } +} + + diff --git a/lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequest.php b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequest.php new file mode 100644 index 0000000..a0477e9 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequest.php @@ -0,0 +1,67 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return InstallmentQuerybankcfgRequest + */ + 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 InstallmentQuerybankcfgRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'installmentQuerybankcfg'; + } + + +} diff --git a/lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequestMarshaller.php b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequestMarshaller.php new file mode 100644 index 0000000..447afa5 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgRequestMarshaller.php @@ -0,0 +1,83 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +InstallmentQuerybankcfgRequestMarshaller::__init(); diff --git a/lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponse.php b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponse.php new file mode 100644 index 0000000..587c825 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return InstallmentQuerybankcfgInstallmentBankCfgResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponseUnMarshaller.php b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponseUnMarshaller.php new file mode 100644 index 0000000..d2c8224 --- /dev/null +++ b/lib/Service/Cnppay/Model/InstallmentQuerybankcfgResponseUnMarshaller.php @@ -0,0 +1,39 @@ +名称(中文):分账
名称(英文,xx.war):opr-hessian.war
简介:中台收款交易支持分账
wiki文档地址:http://wiki.yeepay.com/pages/viewpage.action?pageId=108380664
预计项目上线时间:2020年6月9日
归属/拟申请的sp编码(可选):opr
期望api分组编码、名称(可选):divide(分账)
涉及的接口:申请分账、分账查询、分账资金归还/分账退回、分账退回查询

+ * + * OpenAPI spec version: 1.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\Divide\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BackReceiptDownloadReceiptResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BackReceiptDownloadReceiptResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BackReceiptDownloadReceiptResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'data' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 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 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)); + } +} + + diff --git a/lib/Service/Divide/Model/BackReceiptDownloadRequest.php b/lib/Service/Divide/Model/BackReceiptDownloadRequest.php new file mode 100644 index 0000000..2b44b7b --- /dev/null +++ b/lib/Service/Divide/Model/BackReceiptDownloadRequest.php @@ -0,0 +1,142 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BackReceiptDownloadRequest + */ + 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 BackReceiptDownloadRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets divideBackRequestId + * + * @return string + */ + public function getDivideBackRequestId() + { + return $this->divideBackRequestId; + } + + /** + * Sets divideBackRequestId + * + * @param string $divideBackRequestId + * @return BackReceiptDownloadRequest + */ + public function setDivideBackRequestId($divideBackRequestId) + { + $this->divideBackRequestId = $divideBackRequestId; + return $this; + } + /** + * Gets uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->uniqueOrderNo; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo + * @return BackReceiptDownloadRequest + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->uniqueOrderNo = $uniqueOrderNo; + return $this; + } + /** + * Gets ledgerNo + * + * @return string + */ + public function getLedgerNo() + { + return $this->ledgerNo; + } + + /** + * Sets ledgerNo + * + * @param string $ledgerNo + * @return BackReceiptDownloadRequest + */ + public function setLedgerNo($ledgerNo) + { + $this->ledgerNo = $ledgerNo; + return $this; + } + + public static function getOperationId() + { + return 'backReceiptDownload'; + } + + +} diff --git a/lib/Service/Divide/Model/BackReceiptDownloadRequestMarshaller.php b/lib/Service/Divide/Model/BackReceiptDownloadRequestMarshaller.php new file mode 100644 index 0000000..93f9675 --- /dev/null +++ b/lib/Service/Divide/Model/BackReceiptDownloadRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getDivideBackRequestId() != null){ + $internalRequest->addParameter('divideBackRequestId', ObjectSerializer::sanitizeForSerialization($request->getDivideBackRequestId(), 'string')); + } + if($request->getUniqueOrderNo() != null){ + $internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string')); + } + if($request->getLedgerNo() != null){ + $internalRequest->addParameter('ledgerNo', ObjectSerializer::sanitizeForSerialization($request->getLedgerNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BackReceiptDownloadRequestMarshaller::__init(); diff --git a/lib/Service/Divide/Model/BackReceiptDownloadResponse.php b/lib/Service/Divide/Model/BackReceiptDownloadResponse.php new file mode 100644 index 0000000..9a44a67 --- /dev/null +++ b/lib/Service/Divide/Model/BackReceiptDownloadResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BackReceiptDownloadReceiptResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Divide/Model/BackReceiptDownloadResponseUnMarshaller.php b/lib/Service/Divide/Model/BackReceiptDownloadResponseUnMarshaller.php new file mode 100644 index 0000000..2297110 --- /dev/null +++ b/lib/Service/Divide/Model/BackReceiptDownloadResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * AgreementNosmsbindAgreementBindCardResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class AgreementNosmsbindAgreementBindCardResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'AgreementNosmsbindAgreementBindCardResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string', + 'bindId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => null, + 'bindId' => 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', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId', + 'bindId' => 'bindId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId', + 'bindId' => 'setBindId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId', + 'bindId' => 'getBindId' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : 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 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 merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 商户签约请求号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 易宝唯一流水号 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/AgreementNosmsbindRequest.php b/lib/Service/Frontcashier/Model/AgreementNosmsbindRequest.php new file mode 100644 index 0000000..2e40f31 --- /dev/null +++ b/lib/Service/Frontcashier/Model/AgreementNosmsbindRequest.php @@ -0,0 +1,267 @@ +merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return AgreementNosmsbindRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return AgreementNosmsbindRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->bankCardNo; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo + * @return AgreementNosmsbindRequest + */ + public function setBankCardNo($bankCardNo) + { + $this->bankCardNo = $bankCardNo; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return AgreementNosmsbindRequest + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->idCardType; + } + + /** + * Sets idCardType + * + * @param string $idCardType + * @return AgreementNosmsbindRequest + */ + public function setIdCardType($idCardType) + { + $this->idCardType = $idCardType; + return $this; + } + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->userName; + } + + /** + * Sets userName + * + * @param string $userName + * @return AgreementNosmsbindRequest + */ + public function setUserName($userName) + { + $this->userName = $userName; + return $this; + } + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * Sets phone + * + * @param string $phone + * @return AgreementNosmsbindRequest + */ + public function setPhone($phone) + { + $this->phone = $phone; + return $this; + } + /** + * Gets cvv + * + * @return string + */ + public function getCvv() + { + return $this->cvv; + } + + /** + * Sets cvv + * + * @param string $cvv + * @return AgreementNosmsbindRequest + */ + public function setCvv($cvv) + { + $this->cvv = $cvv; + return $this; + } + /** + * Gets valid + * + * @return string + */ + public function getValid() + { + return $this->valid; + } + + /** + * Sets valid + * + * @param string $valid + * @return AgreementNosmsbindRequest + */ + public function setValid($valid) + { + $this->valid = $valid; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementNosmsbindRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreementNosmsbind'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/AgreementNosmsbindRequestMarshaller.php b/lib/Service/Frontcashier/Model/AgreementNosmsbindRequestMarshaller.php new file mode 100644 index 0000000..262c9a1 --- /dev/null +++ b/lib/Service/Frontcashier/Model/AgreementNosmsbindRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getBankCardNo() != null){ + $internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getIdCardType() != null){ + $internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string')); + } + if($request->getUserName() != null){ + $internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string')); + } + if($request->getPhone() != null){ + $internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string', 'mobile')); + } + if($request->getCvv() != null){ + $internalRequest->addParameter('cvv', ObjectSerializer::sanitizeForSerialization($request->getCvv(), 'string')); + } + if($request->getValid() != null){ + $internalRequest->addParameter('valid', ObjectSerializer::sanitizeForSerialization($request->getValid(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementNosmsbindRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/AgreementNosmsbindResponse.php b/lib/Service/Frontcashier/Model/AgreementNosmsbindResponse.php new file mode 100644 index 0000000..8215040 --- /dev/null +++ b/lib/Service/Frontcashier/Model/AgreementNosmsbindResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AgreementNosmsbindAgreementBindCardResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/AgreementNosmsbindResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/AgreementNosmsbindResponseUnMarshaller.php new file mode 100644 index 0000000..67347bc --- /dev/null +++ b/lib/Service/Frontcashier/Model/AgreementNosmsbindResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string', + 'bindId' => 'string', + 'signStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => null, + 'bindId' => null, + 'signStatus' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId', + 'bindId' => 'bindId', + 'signStatus' => 'signStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId', + 'bindId' => 'setBindId', + 'signStatus' => 'setSignStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId', + 'bindId' => 'getBindId', + 'signStatus' => 'getSignStatus' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null; + $this->container['signStatus'] = isset($data['signStatus']) ? $data['signStatus'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 原商户绑卡请求号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 易宝绑卡订单号 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + 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 signStatus + * + * @return string + */ + public function getSignStatus() + { + return $this->container['signStatus']; + } + + /** + * Sets signStatus + * + * @param string $signStatus 签约状态 + * + * @return $this + */ + public function setSignStatus($signStatus) + { + $this->container['signStatus'] = $signStatus; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/BindcardConfirmV2Request.php b/lib/Service/Frontcashier/Model/BindcardConfirmV2Request.php new file mode 100644 index 0000000..df31b11 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardConfirmV2Request.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BindcardConfirmV2Request + */ + 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 BindcardConfirmV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return BindcardConfirmV2Request + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets smsCode + * + * @return string + */ + public function getSmsCode() + { + return $this->smsCode; + } + + /** + * Sets smsCode + * + * @param string $smsCode + * @return BindcardConfirmV2Request + */ + public function setSmsCode($smsCode) + { + $this->smsCode = $smsCode; + return $this; + } + + public static function getOperationId() + { + return 'bindcardConfirmV2'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/BindcardConfirmV2RequestMarshaller.php b/lib/Service/Frontcashier/Model/BindcardConfirmV2RequestMarshaller.php new file mode 100644 index 0000000..62ddec8 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardConfirmV2RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getSmsCode() != null){ + $internalRequest->addParameter('smsCode', ObjectSerializer::sanitizeForSerialization($request->getSmsCode(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindcardConfirmV2RequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/BindcardConfirmV2Response.php b/lib/Service/Frontcashier/Model/BindcardConfirmV2Response.php new file mode 100644 index 0000000..6cb8666 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardConfirmV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BindcardConfirmV2OpenAuthBindCardConfirmResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/BindcardConfirmV2ResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/BindcardConfirmV2ResponseUnMarshaller.php new file mode 100644 index 0000000..36a1f0e --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardConfirmV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam Class Doc Comment + * + * @category Class + * @description 方法签名第0个参数,请自行修改arg0等参数的名字 + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardPayerrequestOpenPayerAuthBindCardRequestDTOParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'bindCallBackUrl' => 'string', + 'userNo' => 'string', + 'userType' => 'string', + 'bankCardNo' => 'string', + 'userName' => 'string', + 'idCardNo' => 'string', + 'phone' => 'string', + 'cvv2' => 'string', + 'validthru' => 'string', + 'riskParamExt' => 'string', + 'orderValidate' => 'int', + 'authType' => 'string', + 'empower' => 'bool', + 'cardType' => 'string', + 'authScene' => 'string', + 'pageNotifyUrl' => 'string', + 'appKey' => 'string', + 'idCardType' => 'string', + 'sendSms' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'bindCallBackUrl' => null, + 'userNo' => null, + 'userType' => null, + 'bankCardNo' => null, + 'userName' => null, + 'idCardNo' => null, + 'phone' => null, + 'cvv2' => null, + 'validthru' => null, + 'riskParamExt' => null, + 'orderValidate' => 'int32', + 'authType' => null, + 'empower' => null, + 'cardType' => null, + 'authScene' => null, + 'pageNotifyUrl' => null, + 'appKey' => null, + 'idCardType' => null, + 'sendSms' => 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 = [ + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'bindCallBackUrl' => 'bindCallBackUrl', + 'userNo' => 'userNo', + 'userType' => 'userType', + 'bankCardNo' => 'bankCardNo', + 'userName' => 'userName', + 'idCardNo' => 'idCardNo', + 'phone' => 'phone', + 'cvv2' => 'cvv2', + 'validthru' => 'validthru', + 'riskParamExt' => 'riskParamExt', + 'orderValidate' => 'orderValidate', + 'authType' => 'authType', + 'empower' => 'empower', + 'cardType' => 'cardType', + 'authScene' => 'authScene', + 'pageNotifyUrl' => 'pageNotifyUrl', + 'appKey' => 'appKey', + 'idCardType' => 'idCardType', + 'sendSms' => 'sendSms' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'bindCallBackUrl' => 'setBindCallBackUrl', + 'userNo' => 'setUserNo', + 'userType' => 'setUserType', + 'bankCardNo' => 'setBankCardNo', + 'userName' => 'setUserName', + 'idCardNo' => 'setIdCardNo', + 'phone' => 'setPhone', + 'cvv2' => 'setCvv2', + 'validthru' => 'setValidthru', + 'riskParamExt' => 'setRiskParamExt', + 'orderValidate' => 'setOrderValidate', + 'authType' => 'setAuthType', + 'empower' => 'setEmpower', + 'cardType' => 'setCardType', + 'authScene' => 'setAuthScene', + 'pageNotifyUrl' => 'setPageNotifyUrl', + 'appKey' => 'setAppKey', + 'idCardType' => 'setIdCardType', + 'sendSms' => 'setSendSms' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'bindCallBackUrl' => 'getBindCallBackUrl', + 'userNo' => 'getUserNo', + 'userType' => 'getUserType', + 'bankCardNo' => 'getBankCardNo', + 'userName' => 'getUserName', + 'idCardNo' => 'getIdCardNo', + 'phone' => 'getPhone', + 'cvv2' => 'getCvv2', + 'validthru' => 'getValidthru', + 'riskParamExt' => 'getRiskParamExt', + 'orderValidate' => 'getOrderValidate', + 'authType' => 'getAuthType', + 'empower' => 'getEmpower', + 'cardType' => 'getCardType', + 'authScene' => 'getAuthScene', + 'pageNotifyUrl' => 'getPageNotifyUrl', + 'appKey' => 'getAppKey', + 'idCardType' => 'getIdCardType', + 'sendSms' => 'getSendSms' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['bindCallBackUrl'] = isset($data['bindCallBackUrl']) ? $data['bindCallBackUrl'] : null; + $this->container['userNo'] = isset($data['userNo']) ? $data['userNo'] : null; + $this->container['userType'] = isset($data['userType']) ? $data['userType'] : null; + $this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : null; + $this->container['userName'] = isset($data['userName']) ? $data['userName'] : null; + $this->container['idCardNo'] = isset($data['idCardNo']) ? $data['idCardNo'] : null; + $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; + $this->container['cvv2'] = isset($data['cvv2']) ? $data['cvv2'] : null; + $this->container['validthru'] = isset($data['validthru']) ? $data['validthru'] : null; + $this->container['riskParamExt'] = isset($data['riskParamExt']) ? $data['riskParamExt'] : null; + $this->container['orderValidate'] = isset($data['orderValidate']) ? $data['orderValidate'] : null; + $this->container['authType'] = isset($data['authType']) ? $data['authType'] : null; + $this->container['empower'] = isset($data['empower']) ? $data['empower'] : null; + $this->container['cardType'] = isset($data['cardType']) ? $data['cardType'] : null; + $this->container['authScene'] = isset($data['authScene']) ? $data['authScene'] : null; + $this->container['pageNotifyUrl'] = isset($data['pageNotifyUrl']) ? $data['pageNotifyUrl'] : null; + $this->container['appKey'] = isset($data['appKey']) ? $data['appKey'] : null; + $this->container['idCardType'] = isset($data['idCardType']) ? $data['idCardType'] : null; + $this->container['sendSms'] = isset($data['sendSms']) ? $data['sendSms'] : 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 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 merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId merchantFlowId + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets bindCallBackUrl + * + * @return string + */ + public function getBindCallBackUrl() + { + return $this->container['bindCallBackUrl']; + } + + /** + * Sets bindCallBackUrl + * + * @param string $bindCallBackUrl bindCallBackUrl + * + * @return $this + */ + public function setBindCallBackUrl($bindCallBackUrl) + { + $this->container['bindCallBackUrl'] = $bindCallBackUrl; + + return $this; + } + + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->container['userNo']; + } + + /** + * Sets userNo + * + * @param string $userNo userNo + * + * @return $this + */ + public function setUserNo($userNo) + { + $this->container['userNo'] = $userNo; + + return $this; + } + + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->container['userType']; + } + + /** + * Sets userType + * + * @param string $userType userType + * + * @return $this + */ + public function setUserType($userType) + { + $this->container['userType'] = $userType; + + return $this; + } + + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->container['bankCardNo']; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo bankCardNo + * + * @return $this + */ + public function setBankCardNo($bankCardNo) + { + $this->container['bankCardNo'] = $bankCardNo; + + return $this; + } + + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->container['userName']; + } + + /** + * Sets userName + * + * @param string $userName userName + * + * @return $this + */ + public function setUserName($userName) + { + $this->container['userName'] = $userName; + + return $this; + } + + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->container['idCardNo']; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo idCardNo + * + * @return $this + */ + public function setIdCardNo($idCardNo) + { + $this->container['idCardNo'] = $idCardNo; + + return $this; + } + + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->container['phone']; + } + + /** + * Sets phone + * + * @param string $phone phone + * + * @return $this + */ + public function setPhone($phone) + { + $this->container['phone'] = $phone; + + return $this; + } + + /** + * Gets cvv2 + * + * @return string + */ + public function getCvv2() + { + return $this->container['cvv2']; + } + + /** + * Sets cvv2 + * + * @param string $cvv2 cvv2 + * + * @return $this + */ + public function setCvv2($cvv2) + { + $this->container['cvv2'] = $cvv2; + + return $this; + } + + /** + * Gets validthru + * + * @return string + */ + public function getValidthru() + { + return $this->container['validthru']; + } + + /** + * Sets validthru + * + * @param string $validthru validthru + * + * @return $this + */ + public function setValidthru($validthru) + { + $this->container['validthru'] = $validthru; + + return $this; + } + + /** + * Gets riskParamExt + * + * @return string + */ + public function getRiskParamExt() + { + return $this->container['riskParamExt']; + } + + /** + * Sets riskParamExt + * + * @param string $riskParamExt riskParamExt + * + * @return $this + */ + public function setRiskParamExt($riskParamExt) + { + $this->container['riskParamExt'] = $riskParamExt; + + return $this; + } + + /** + * Gets orderValidate + * + * @return int + */ + public function getOrderValidate() + { + return $this->container['orderValidate']; + } + + /** + * Sets orderValidate + * + * @param int $orderValidate orderValidate + * + * @return $this + */ + public function setOrderValidate($orderValidate) + { + $this->container['orderValidate'] = $orderValidate; + + return $this; + } + + /** + * Gets authType + * + * @return string + */ + public function getAuthType() + { + return $this->container['authType']; + } + + /** + * Sets authType + * + * @param string $authType authType + * + * @return $this + */ + public function setAuthType($authType) + { + $this->container['authType'] = $authType; + + return $this; + } + + /** + * Gets empower + * + * @return bool + */ + public function getEmpower() + { + return $this->container['empower']; + } + + /** + * Sets empower + * + * @param bool $empower empower + * + * @return $this + */ + public function setEmpower($empower) + { + $this->container['empower'] = $empower; + + return $this; + } + + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->container['cardType']; + } + + /** + * Sets cardType + * + * @param string $cardType cardType + * + * @return $this + */ + public function setCardType($cardType) + { + $this->container['cardType'] = $cardType; + + return $this; + } + + /** + * Gets authScene + * + * @return string + */ + public function getAuthScene() + { + return $this->container['authScene']; + } + + /** + * Sets authScene + * + * @param string $authScene authScene + * + * @return $this + */ + public function setAuthScene($authScene) + { + $this->container['authScene'] = $authScene; + + return $this; + } + + /** + * Gets pageNotifyUrl + * + * @return string + */ + public function getPageNotifyUrl() + { + return $this->container['pageNotifyUrl']; + } + + /** + * Sets pageNotifyUrl + * + * @param string $pageNotifyUrl pageNotifyUrl + * + * @return $this + */ + public function setPageNotifyUrl($pageNotifyUrl) + { + $this->container['pageNotifyUrl'] = $pageNotifyUrl; + + 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 idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->container['idCardType']; + } + + /** + * Sets idCardType + * + * @param string $idCardType idCardType + * + * @return $this + */ + public function setIdCardType($idCardType) + { + $this->container['idCardType'] = $idCardType; + + return $this; + } + + /** + * Gets sendSms + * + * @return bool + */ + public function getSendSms() + { + return $this->container['sendSms']; + } + + /** + * Sets sendSms + * + * @param bool $sendSms sendSms + * + * @return $this + */ + public function setSendSms($sendSms) + { + $this->container['sendSms'] = $sendSms; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult.php b/lib/Service/Frontcashier/Model/BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult.php new file mode 100644 index 0000000..b70fdd8 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult.php @@ -0,0 +1,632 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string', + 'bindId' => 'string', + 'submitMethod' => 'string', + 'submitUrl' => 'string', + 'encoding' => 'string', + 'smsSender' => 'string', + 'smsType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => null, + 'bindId' => null, + 'submitMethod' => null, + 'submitUrl' => null, + 'encoding' => null, + 'smsSender' => null, + 'smsType' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId', + 'bindId' => 'bindId', + 'submitMethod' => 'submitMethod', + 'submitUrl' => 'submitUrl', + 'encoding' => 'encoding', + 'smsSender' => 'smsSender', + 'smsType' => 'smsType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId', + 'bindId' => 'setBindId', + 'submitMethod' => 'setSubmitMethod', + 'submitUrl' => 'setSubmitUrl', + 'encoding' => 'setEncoding', + 'smsSender' => 'setSmsSender', + 'smsType' => 'setSmsType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId', + 'bindId' => 'getBindId', + 'submitMethod' => 'getSubmitMethod', + 'submitUrl' => 'getSubmitUrl', + 'encoding' => 'getEncoding', + 'smsSender' => 'getSmsSender', + 'smsType' => 'getSmsType' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null; + $this->container['submitMethod'] = isset($data['submitMethod']) ? $data['submitMethod'] : null; + $this->container['submitUrl'] = isset($data['submitUrl']) ? $data['submitUrl'] : null; + $this->container['encoding'] = isset($data['encoding']) ? $data['encoding'] : null; + $this->container['smsSender'] = isset($data['smsSender']) ? $data['smsSender'] : null; + $this->container['smsType'] = isset($data['smsType']) ? $data['smsType'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 未命名 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 未命名 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 未命名 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + return $this; + } + + /** + * Gets bindId + * + * @return string + */ + public function getBindId() + { + return $this->container['bindId']; + } + + /** + * Sets bindId + * + * @param string $bindId 未命名 + * + * @return $this + */ + public function setBindId($bindId) + { + $this->container['bindId'] = $bindId; + + return $this; + } + + /** + * Gets submitMethod + * + * @return string + */ + public function getSubmitMethod() + { + return $this->container['submitMethod']; + } + + /** + * Sets submitMethod + * + * @param string $submitMethod 未命名 + * + * @return $this + */ + public function setSubmitMethod($submitMethod) + { + $this->container['submitMethod'] = $submitMethod; + + return $this; + } + + /** + * Gets submitUrl + * + * @return string + */ + public function getSubmitUrl() + { + return $this->container['submitUrl']; + } + + /** + * Sets submitUrl + * + * @param string $submitUrl 未命名 + * + * @return $this + */ + public function setSubmitUrl($submitUrl) + { + $this->container['submitUrl'] = $submitUrl; + + return $this; + } + + /** + * Gets encoding + * + * @return string + */ + public function getEncoding() + { + return $this->container['encoding']; + } + + /** + * Sets encoding + * + * @param string $encoding 未命名 + * + * @return $this + */ + public function setEncoding($encoding) + { + $this->container['encoding'] = $encoding; + + return $this; + } + + /** + * Gets smsSender + * + * @return string + */ + public function getSmsSender() + { + return $this->container['smsSender']; + } + + /** + * Sets smsSender + * + * @param string $smsSender 未命名 + * + * @return $this + */ + public function setSmsSender($smsSender) + { + $this->container['smsSender'] = $smsSender; + + return $this; + } + + /** + * Gets smsType + * + * @return string + */ + public function getSmsType() + { + return $this->container['smsType']; + } + + /** + * Sets smsType + * + * @param string $smsType 未命名 + * + * @return $this + */ + public function setSmsType($smsType) + { + $this->container['smsType'] = $smsType; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/BindcardPayerrequestRequest.php b/lib/Service/Frontcashier/Model/BindcardPayerrequestRequest.php new file mode 100644 index 0000000..88f968e --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardPayerrequestRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return BindcardPayerrequestRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'bindcardPayerrequest'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/BindcardPayerrequestRequestMarshaller.php b/lib/Service/Frontcashier/Model/BindcardPayerrequestRequestMarshaller.php new file mode 100644 index 0000000..176aafb --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardPayerrequestRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindcardPayerrequestRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/BindcardPayerrequestResponse.php b/lib/Service/Frontcashier/Model/BindcardPayerrequestResponse.php new file mode 100644 index 0000000..4d340aa --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardPayerrequestResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BindcardPayerrequestOpenPayerAuthBindCardResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/BindcardPayerrequestResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/BindcardPayerrequestResponseUnMarshaller.php new file mode 100644 index 0000000..77a87ed --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardPayerrequestResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string', + 'orderStatus' => 'string', + 'userNo' => 'string', + 'userType' => 'string', + 'bindId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => null, + 'orderStatus' => null, + 'userNo' => null, + 'userType' => null, + 'bindId' => 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', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId', + 'orderStatus' => 'orderStatus', + 'userNo' => 'userNo', + 'userType' => 'userType', + 'bindId' => 'bindId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId', + 'orderStatus' => 'setOrderStatus', + 'userNo' => 'setUserNo', + 'userType' => 'setUserType', + 'bindId' => 'setBindId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId', + 'orderStatus' => 'getOrderStatus', + 'userNo' => 'getUserNo', + 'userType' => 'getUserType', + 'bindId' => 'getBindId' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['userNo'] = isset($data['userNo']) ? $data['userNo'] : null; + $this->container['userType'] = isset($data['userType']) ? $data['userType'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : 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 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 merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 商户签约请求号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 易宝订单号 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + 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; + } + + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->container['userNo']; + } + + /** + * Sets userNo + * + * @param string $userNo 用户标识 + * + * @return $this + */ + public function setUserNo($userNo) + { + $this->container['userNo'] = $userNo; + + return $this; + } + + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->container['userType']; + } + + /** + * Sets userType + * + * @param string $userType 用户标识类型 + * + * @return $this + */ + public function setUserType($userType) + { + $this->container['userType'] = $userType; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequest.php b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequest.php new file mode 100644 index 0000000..dc53e4c --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequest.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BindcardQueryorderinfoRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return BindcardQueryorderinfoRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->nopOrderId; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId + * @return BindcardQueryorderinfoRequest + */ + public function setNopOrderId($nopOrderId) + { + $this->nopOrderId = $nopOrderId; + return $this; + } + + public static function getOperationId() + { + return 'bindcardQueryorderinfo'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequestMarshaller.php b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequestMarshaller.php new file mode 100644 index 0000000..d37e642 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getNopOrderId() != null){ + $internalRequest->addParameter('nopOrderId', ObjectSerializer::sanitizeForSerialization($request->getNopOrderId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindcardQueryorderinfoRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponse.php b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponse.php new file mode 100644 index 0000000..19cde28 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BindcardQueryorderinfoOpenQueryOrderInfoResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponseUnMarshaller.php new file mode 100644 index 0000000..887484f --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardQueryorderinfoResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardRequestV2OpenAuthBindCardResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardRequestV2OpenAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardRequestV2OpenAuthBindCardResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string', + 'bindId' => 'string', + 'signStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => null, + 'bindId' => null, + 'signStatus' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId', + 'bindId' => 'bindId', + 'signStatus' => 'signStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId', + 'bindId' => 'setBindId', + 'signStatus' => 'setSignStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId', + 'bindId' => 'getBindId', + 'signStatus' => 'getSignStatus' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null; + $this->container['signStatus'] = isset($data['signStatus']) ? $data['signStatus'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 绑卡请求号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 易宝绑卡流水号 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + 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 signStatus + * + * @return string + */ + public function getSignStatus() + { + return $this->container['signStatus']; + } + + /** + * Sets signStatus + * + * @param string $signStatus 签约状态 + * + * @return $this + */ + public function setSignStatus($signStatus) + { + $this->container['signStatus'] = $signStatus; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/BindcardRequestV2Request.php b/lib/Service/Frontcashier/Model/BindcardRequestV2Request.php new file mode 100644 index 0000000..99a02f5 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardRequestV2Request.php @@ -0,0 +1,417 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BindcardRequestV2Request + */ + 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 BindcardRequestV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return BindcardRequestV2Request + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return BindcardRequestV2Request + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->userType; + } + + /** + * Sets userType + * + * @param string $userType + * @return BindcardRequestV2Request + */ + public function setUserType($userType) + { + $this->userType = $userType; + return $this; + } + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->bankCardNo; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo + * @return BindcardRequestV2Request + */ + public function setBankCardNo($bankCardNo) + { + $this->bankCardNo = $bankCardNo; + return $this; + } + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->userName; + } + + /** + * Sets userName + * + * @param string $userName + * @return BindcardRequestV2Request + */ + public function setUserName($userName) + { + $this->userName = $userName; + return $this; + } + /** + * Gets idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->idCardType; + } + + /** + * Sets idCardType + * + * @param string $idCardType + * @return BindcardRequestV2Request + */ + public function setIdCardType($idCardType) + { + $this->idCardType = $idCardType; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return BindcardRequestV2Request + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * Sets phone + * + * @param string $phone + * @return BindcardRequestV2Request + */ + public function setPhone($phone) + { + $this->phone = $phone; + return $this; + } + /** + * Gets cvv2 + * + * @return string + */ + public function getCvv2() + { + return $this->cvv2; + } + + /** + * Sets cvv2 + * + * @param string $cvv2 + * @return BindcardRequestV2Request + */ + public function setCvv2($cvv2) + { + $this->cvv2 = $cvv2; + return $this; + } + /** + * Gets validthru + * + * @return string + */ + public function getValidthru() + { + return $this->validthru; + } + + /** + * Sets validthru + * + * @param string $validthru + * @return BindcardRequestV2Request + */ + public function setValidthru($validthru) + { + $this->validthru = $validthru; + return $this; + } + /** + * Gets orderValidate + * + * @return int + */ + public function getOrderValidate() + { + return $this->orderValidate; + } + + /** + * Sets orderValidate + * + * @param int $orderValidate + * @return BindcardRequestV2Request + */ + public function setOrderValidate($orderValidate) + { + $this->orderValidate = $orderValidate; + return $this; + } + /** + * Gets authType + * + * @return string + */ + public function getAuthType() + { + return $this->authType; + } + + /** + * Sets authType + * + * @param string $authType + * @return BindcardRequestV2Request + */ + public function setAuthType($authType) + { + $this->authType = $authType; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return BindcardRequestV2Request + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets isSMS + * + * @return string + */ + public function getIsSMS() + { + return $this->isSMS; + } + + /** + * Sets isSMS + * + * @param string $isSMS + * @return BindcardRequestV2Request + */ + public function setIsSMS($isSMS) + { + $this->isSMS = $isSMS; + return $this; + } + + public static function getOperationId() + { + return 'bindcardRequestV2'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/BindcardRequestV2RequestMarshaller.php b/lib/Service/Frontcashier/Model/BindcardRequestV2RequestMarshaller.php new file mode 100644 index 0000000..1065a79 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardRequestV2RequestMarshaller.php @@ -0,0 +1,125 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getUserType() != null){ + $internalRequest->addParameter('userType', ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string')); + } + if($request->getBankCardNo() != null){ + $internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string')); + } + if($request->getUserName() != null){ + $internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string')); + } + if($request->getIdCardType() != null){ + $internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getPhone() != null){ + $internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string')); + } + if($request->getCvv2() != null){ + $internalRequest->addParameter('cvv2', ObjectSerializer::sanitizeForSerialization($request->getCvv2(), 'string')); + } + if($request->getValidthru() != null){ + $internalRequest->addParameter('validthru', ObjectSerializer::sanitizeForSerialization($request->getValidthru(), 'string')); + } + if($request->getOrderValidate() != null){ + $internalRequest->addParameter('orderValidate', ObjectSerializer::sanitizeForSerialization($request->getOrderValidate(), 'int', 'int32')); + } + if($request->getAuthType() != null){ + $internalRequest->addParameter('authType', ObjectSerializer::sanitizeForSerialization($request->getAuthType(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getIsSMS() != null){ + $internalRequest->addParameter('isSMS', ObjectSerializer::sanitizeForSerialization($request->getIsSMS(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindcardRequestV2RequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/BindcardRequestV2Response.php b/lib/Service/Frontcashier/Model/BindcardRequestV2Response.php new file mode 100644 index 0000000..92c7786 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardRequestV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BindcardRequestV2OpenAuthBindCardResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/BindcardRequestV2ResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/BindcardRequestV2ResponseUnMarshaller.php new file mode 100644 index 0000000..57e0052 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardRequestV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 原商户绑卡流水号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 易宝绑卡订单号 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/BindcardResendsmsV2Request.php b/lib/Service/Frontcashier/Model/BindcardResendsmsV2Request.php new file mode 100644 index 0000000..9f2d725 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardResendsmsV2Request.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BindcardResendsmsV2Request + */ + 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 BindcardResendsmsV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return BindcardResendsmsV2Request + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + + public static function getOperationId() + { + return 'bindcardResendsmsV2'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/BindcardResendsmsV2RequestMarshaller.php b/lib/Service/Frontcashier/Model/BindcardResendsmsV2RequestMarshaller.php new file mode 100644 index 0000000..40540c1 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardResendsmsV2RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindcardResendsmsV2RequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/BindcardResendsmsV2Response.php b/lib/Service/Frontcashier/Model/BindcardResendsmsV2Response.php new file mode 100644 index 0000000..b70536b --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardResendsmsV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BindcardResendsmsV2OpenAuthBindCardSmsResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/BindcardResendsmsV2ResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/BindcardResendsmsV2ResponseUnMarshaller.php new file mode 100644 index 0000000..89075c9 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardResendsmsV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BindcardUnbindcardRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return BindcardUnbindcardRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->userType; + } + + /** + * Sets userType + * + * @param string $userType + * @return BindcardUnbindcardRequest + */ + public function setUserType($userType) + { + $this->userType = $userType; + return $this; + } + /** + * Gets bindId + * + * @return string + */ + public function getBindId() + { + return $this->bindId; + } + + /** + * Sets bindId + * + * @param string $bindId + * @return BindcardUnbindcardRequest + */ + public function setBindId($bindId) + { + $this->bindId = $bindId; + return $this; + } + + public static function getOperationId() + { + return 'bindcardUnbindcard'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/BindcardUnbindcardRequestMarshaller.php b/lib/Service/Frontcashier/Model/BindcardUnbindcardRequestMarshaller.php new file mode 100644 index 0000000..baab7ee --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardUnbindcardRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getUserType() != null){ + $internalRequest->addParameter('userType', ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string')); + } + if($request->getBindId() != null){ + $internalRequest->addParameter('bindId', ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindcardUnbindcardRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/BindcardUnbindcardResponse.php b/lib/Service/Frontcashier/Model/BindcardUnbindcardResponse.php new file mode 100644 index 0000000..576fda6 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardUnbindcardResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BindcardUnbindcardUnBindCardResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/BindcardUnbindcardResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/BindcardUnbindcardResponseUnMarshaller.php new file mode 100644 index 0000000..c1b24d1 --- /dev/null +++ b/lib/Service/Frontcashier/Model/BindcardUnbindcardResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * BindcardUnbindcardUnBindCardResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class BindcardUnbindcardUnBindCardResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'BindcardUnbindcardUnBindCardResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'userNo' => 'string', + 'userType' => 'string', + 'bindId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'userNo' => null, + 'userType' => null, + 'bindId' => 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', + 'merchantNo' => 'merchantNo', + 'userNo' => 'userNo', + 'userType' => 'userType', + 'bindId' => 'bindId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'userNo' => 'setUserNo', + 'userType' => 'setUserType', + 'bindId' => 'setBindId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'userNo' => 'getUserNo', + 'userType' => 'getUserType', + 'bindId' => 'getBindId' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['userNo'] = isset($data['userNo']) ? $data['userNo'] : null; + $this->container['userType'] = isset($data['userType']) ? $data['userType'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : 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 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 userNo + * + * @return string + */ + public function getUserNo() + { + return $this->container['userNo']; + } + + /** + * Sets userNo + * + * @param string $userNo 用户标识 + * + * @return $this + */ + public function setUserNo($userNo) + { + $this->container['userNo'] = $userNo; + + return $this; + } + + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->container['userType']; + } + + /** + * Sets userType + * + * @param string $userType 用户标识类型 + * + * @return $this + */ + public function setUserType($userType) + { + $this->container['userType'] = $userType; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult.php b/lib/Service/Frontcashier/Model/FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult.php new file mode 100644 index 0000000..fa37575 --- /dev/null +++ b/lib/Service/Frontcashier/Model/FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult.php @@ -0,0 +1,512 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'merchantFlowId' => 'string', + 'nopOrderId' => 'string', + 'submitMethod' => 'string', + 'submitUrl' => 'string', + 'encoding' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'merchantFlowId' => null, + 'nopOrderId' => null, + 'submitMethod' => null, + 'submitUrl' => null, + 'encoding' => 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', + 'merchantNo' => 'merchantNo', + 'merchantFlowId' => 'merchantFlowId', + 'nopOrderId' => 'nopOrderId', + 'submitMethod' => 'submitMethod', + 'submitUrl' => 'submitUrl', + 'encoding' => 'encoding' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'merchantFlowId' => 'setMerchantFlowId', + 'nopOrderId' => 'setNopOrderId', + 'submitMethod' => 'setSubmitMethod', + 'submitUrl' => 'setSubmitUrl', + 'encoding' => 'setEncoding' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'merchantFlowId' => 'getMerchantFlowId', + 'nopOrderId' => 'getNopOrderId', + 'submitMethod' => 'getSubmitMethod', + 'submitUrl' => 'getSubmitUrl', + 'encoding' => 'getEncoding' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['nopOrderId'] = isset($data['nopOrderId']) ? $data['nopOrderId'] : null; + $this->container['submitMethod'] = isset($data['submitMethod']) ? $data['submitMethod'] : null; + $this->container['submitUrl'] = isset($data['submitUrl']) ? $data['submitUrl'] : null; + $this->container['encoding'] = isset($data['encoding']) ? $data['encoding'] : 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 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 merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 商户绑卡请求号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets nopOrderId + * + * @return string + */ + public function getNopOrderId() + { + return $this->container['nopOrderId']; + } + + /** + * Sets nopOrderId + * + * @param string $nopOrderId 易宝绑卡唯一订单号 + * + * @return $this + */ + public function setNopOrderId($nopOrderId) + { + $this->container['nopOrderId'] = $nopOrderId; + + return $this; + } + + /** + * Gets submitMethod + * + * @return string + */ + public function getSubmitMethod() + { + return $this->container['submitMethod']; + } + + /** + * Sets submitMethod + * + * @param string $submitMethod 参数提交方式 + * + * @return $this + */ + public function setSubmitMethod($submitMethod) + { + $this->container['submitMethod'] = $submitMethod; + + return $this; + } + + /** + * Gets submitUrl + * + * @return string + */ + public function getSubmitUrl() + { + return $this->container['submitUrl']; + } + + /** + * Sets submitUrl + * + * @param string $submitUrl 鉴权请求地址 + * + * @return $this + */ + public function setSubmitUrl($submitUrl) + { + $this->container['submitUrl'] = $submitUrl; + + return $this; + } + + /** + * Gets encoding + * + * @return string + */ + public function getEncoding() + { + return $this->container['encoding']; + } + + /** + * Sets encoding + * + * @param string $encoding url编码方式 + * + * @return $this + */ + public function setEncoding($encoding) + { + $this->container['encoding'] = $encoding; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/FastbindcardRequestRequest.php b/lib/Service/Frontcashier/Model/FastbindcardRequestRequest.php new file mode 100644 index 0000000..a435aae --- /dev/null +++ b/lib/Service/Frontcashier/Model/FastbindcardRequestRequest.php @@ -0,0 +1,392 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return FastbindcardRequestRequest + */ + 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 FastbindcardRequestRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return FastbindcardRequestRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return FastbindcardRequestRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->userType; + } + + /** + * Sets userType + * + * @param string $userType + * @return FastbindcardRequestRequest + */ + public function setUserType($userType) + { + $this->userType = $userType; + return $this; + } + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->userName; + } + + /** + * Sets userName + * + * @param string $userName + * @return FastbindcardRequestRequest + */ + public function setUserName($userName) + { + $this->userName = $userName; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return FastbindcardRequestRequest + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->idCardType; + } + + /** + * Sets idCardType + * + * @param string $idCardType + * @return FastbindcardRequestRequest + */ + public function setIdCardType($idCardType) + { + $this->idCardType = $idCardType; + return $this; + } + /** + * Gets bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->bankCode; + } + + /** + * Sets bankCode + * + * @param string $bankCode + * @return FastbindcardRequestRequest + */ + public function setBankCode($bankCode) + { + $this->bankCode = $bankCode; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return FastbindcardRequestRequest + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets pageReturnUrl + * + * @return string + */ + public function getPageReturnUrl() + { + return $this->pageReturnUrl; + } + + /** + * Sets pageReturnUrl + * + * @param string $pageReturnUrl + * @return FastbindcardRequestRequest + */ + public function setPageReturnUrl($pageReturnUrl) + { + $this->pageReturnUrl = $pageReturnUrl; + return $this; + } + /** + * Gets bindNotifyUrl + * + * @return string + */ + public function getBindNotifyUrl() + { + return $this->bindNotifyUrl; + } + + /** + * Sets bindNotifyUrl + * + * @param string $bindNotifyUrl + * @return FastbindcardRequestRequest + */ + public function setBindNotifyUrl($bindNotifyUrl) + { + $this->bindNotifyUrl = $bindNotifyUrl; + return $this; + } + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->phone; + } + + /** + * Sets phone + * + * @param string $phone + * @return FastbindcardRequestRequest + */ + public function setPhone($phone) + { + $this->phone = $phone; + return $this; + } + /** + * Gets riskParamExt + * + * @return string + */ + public function getRiskParamExt() + { + return $this->riskParamExt; + } + + /** + * Sets riskParamExt + * + * @param string $riskParamExt + * @return FastbindcardRequestRequest + */ + public function setRiskParamExt($riskParamExt) + { + $this->riskParamExt = $riskParamExt; + return $this; + } + /** + * Gets orderValidate + * + * @return int + */ + public function getOrderValidate() + { + return $this->orderValidate; + } + + /** + * Sets orderValidate + * + * @param int $orderValidate + * @return FastbindcardRequestRequest + */ + public function setOrderValidate($orderValidate) + { + $this->orderValidate = $orderValidate; + return $this; + } + + public static function getOperationId() + { + return 'fastbindcardRequest'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/FastbindcardRequestRequestMarshaller.php b/lib/Service/Frontcashier/Model/FastbindcardRequestRequestMarshaller.php new file mode 100644 index 0000000..2f2391a --- /dev/null +++ b/lib/Service/Frontcashier/Model/FastbindcardRequestRequestMarshaller.php @@ -0,0 +1,122 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getUserType() != null){ + $internalRequest->addParameter('userType', ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string')); + } + if($request->getUserName() != null){ + $internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getIdCardType() != null){ + $internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string')); + } + if($request->getBankCode() != null){ + $internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getPageReturnUrl() != null){ + $internalRequest->addParameter('pageReturnUrl', ObjectSerializer::sanitizeForSerialization($request->getPageReturnUrl(), 'string', 'url')); + } + if($request->getBindNotifyUrl() != null){ + $internalRequest->addParameter('bindNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getBindNotifyUrl(), 'string', 'url')); + } + if($request->getPhone() != null){ + $internalRequest->addParameter('phone', ObjectSerializer::sanitizeForSerialization($request->getPhone(), 'string')); + } + if($request->getRiskParamExt() != null){ + $internalRequest->addParameter('riskParamExt', ObjectSerializer::sanitizeForSerialization($request->getRiskParamExt(), 'string')); + } + if($request->getOrderValidate() != null){ + $internalRequest->addParameter('orderValidate', ObjectSerializer::sanitizeForSerialization($request->getOrderValidate(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FastbindcardRequestRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/FastbindcardRequestResponse.php b/lib/Service/Frontcashier/Model/FastbindcardRequestResponse.php new file mode 100644 index 0000000..0948e13 --- /dev/null +++ b/lib/Service/Frontcashier/Model/FastbindcardRequestResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FastbindcardRequestOpenNetsUnionAuthBindCardResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/FastbindcardRequestResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/FastbindcardRequestResponseUnMarshaller.php new file mode 100644 index 0000000..2b21ea0 --- /dev/null +++ b/lib/Service/Frontcashier/Model/FastbindcardRequestResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopActivescanPayOpenActiveScanPayResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopActivescanPayOpenActiveScanPayResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopActivescanPayOpenActiveScanPayResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'payOrderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'payOrderNo' => 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', + 'payOrderNo' => 'payOrderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'payOrderNo' => 'setPayOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'payOrderNo' => 'getPayOrderNo' + ]; + + /** + * 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : 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 payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->container['payOrderNo']; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo 付款订单号 + * + * @return $this + */ + public function setPayOrderNo($payOrderNo) + { + $this->container['payOrderNo'] = $payOrderNo; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopActivescanPayRequest.php b/lib/Service/Frontcashier/Model/UpopActivescanPayRequest.php new file mode 100644 index 0000000..67c005d --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanPayRequest.php @@ -0,0 +1,542 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return UpopActivescanPayRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return UpopActivescanPayRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets paySerialNo + * + * @return string + */ + public function getPaySerialNo() + { + return $this->paySerialNo; + } + + /** + * Sets paySerialNo + * + * @param string $paySerialNo + * @return UpopActivescanPayRequest + */ + public function setPaySerialNo($paySerialNo) + { + $this->paySerialNo = $paySerialNo; + return $this; + } + /** + * Gets couponSerialNo + * + * @return string + */ + public function getCouponSerialNo() + { + return $this->couponSerialNo; + } + + /** + * Sets couponSerialNo + * + * @param string $couponSerialNo + * @return UpopActivescanPayRequest + */ + public function setCouponSerialNo($couponSerialNo) + { + $this->couponSerialNo = $couponSerialNo; + return $this; + } + /** + * Gets tradeAmount + * + * @return float + */ + public function getTradeAmount() + { + return $this->tradeAmount; + } + + /** + * Sets tradeAmount + * + * @param float $tradeAmount + * @return UpopActivescanPayRequest + */ + public function setTradeAmount($tradeAmount) + { + $this->tradeAmount = $tradeAmount; + return $this; + } + /** + * Gets bindId + * + * @return int + */ + public function getBindId() + { + return $this->bindId; + } + + /** + * Sets bindId + * + * @param int $bindId + * @return UpopActivescanPayRequest + */ + public function setBindId($bindId) + { + $this->bindId = $bindId; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return UpopActivescanPayRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->userType; + } + + /** + * Sets userType + * + * @param string $userType + * @return UpopActivescanPayRequest + */ + public function setUserType($userType) + { + $this->userType = $userType; + return $this; + } + /** + * Gets callBackUrl + * + * @return string + */ + public function getCallBackUrl() + { + return $this->callBackUrl; + } + + /** + * Sets callBackUrl + * + * @param string $callBackUrl + * @return UpopActivescanPayRequest + */ + public function setCallBackUrl($callBackUrl) + { + $this->callBackUrl = $callBackUrl; + return $this; + } + /** + * Gets payComments + * + * @return string + */ + public function getPayComments() + { + return $this->payComments; + } + + /** + * Sets payComments + * + * @param string $payComments + * @return UpopActivescanPayRequest + */ + public function setPayComments($payComments) + { + $this->payComments = $payComments; + return $this; + } + /** + * Gets deviceID + * + * @return string + */ + public function getDeviceID() + { + return $this->deviceID; + } + + /** + * Sets deviceID + * + * @param string $deviceID + * @return UpopActivescanPayRequest + */ + public function setDeviceID($deviceID) + { + $this->deviceID = $deviceID; + return $this; + } + /** + * Gets deviceType + * + * @return string + */ + public function getDeviceType() + { + return $this->deviceType; + } + + /** + * Sets deviceType + * + * @param string $deviceType + * @return UpopActivescanPayRequest + */ + public function setDeviceType($deviceType) + { + $this->deviceType = $deviceType; + return $this; + } + /** + * Gets accountIDHash + * + * @return string + */ + public function getAccountIDHash() + { + return $this->accountIDHash; + } + + /** + * Sets accountIDHash + * + * @param string $accountIDHash + * @return UpopActivescanPayRequest + */ + public function setAccountIDHash($accountIDHash) + { + $this->accountIDHash = $accountIDHash; + return $this; + } + /** + * Gets sourceIP + * + * @return string + */ + public function getSourceIP() + { + return $this->sourceIP; + } + + /** + * Sets sourceIP + * + * @param string $sourceIP + * @return UpopActivescanPayRequest + */ + public function setSourceIP($sourceIP) + { + $this->sourceIP = $sourceIP; + return $this; + } + /** + * Gets usrRgstrDt + * + * @return string + */ + public function getUsrRgstrDt() + { + return $this->usrRgstrDt; + } + + /** + * Sets usrRgstrDt + * + * @param string $usrRgstrDt + * @return UpopActivescanPayRequest + */ + public function setUsrRgstrDt($usrRgstrDt) + { + $this->usrRgstrDt = $usrRgstrDt; + return $this; + } + /** + * Gets accountEmailLife + * + * @return string + */ + public function getAccountEmailLife() + { + return $this->accountEmailLife; + } + + /** + * Sets accountEmailLife + * + * @param string $accountEmailLife + * @return UpopActivescanPayRequest + */ + public function setAccountEmailLife($accountEmailLife) + { + $this->accountEmailLife = $accountEmailLife; + return $this; + } + /** + * Gets deviceLocation + * + * @return string + */ + public function getDeviceLocation() + { + return $this->deviceLocation; + } + + /** + * Sets deviceLocation + * + * @param string $deviceLocation + * @return UpopActivescanPayRequest + */ + public function setDeviceLocation($deviceLocation) + { + $this->deviceLocation = $deviceLocation; + return $this; + } + /** + * Gets fullDeviceNumber + * + * @return string + */ + public function getFullDeviceNumber() + { + return $this->fullDeviceNumber; + } + + /** + * Sets fullDeviceNumber + * + * @param string $fullDeviceNumber + * @return UpopActivescanPayRequest + */ + public function setFullDeviceNumber($fullDeviceNumber) + { + $this->fullDeviceNumber = $fullDeviceNumber; + return $this; + } + /** + * Gets captureMethod + * + * @return string + */ + public function getCaptureMethod() + { + return $this->captureMethod; + } + + /** + * Sets captureMethod + * + * @param string $captureMethod + * @return UpopActivescanPayRequest + */ + public function setCaptureMethod($captureMethod) + { + $this->captureMethod = $captureMethod; + return $this; + } + /** + * Gets deviceSimNumber + * + * @return string + */ + public function getDeviceSimNumber() + { + return $this->deviceSimNumber; + } + + /** + * Sets deviceSimNumber + * + * @param string $deviceSimNumber + * @return UpopActivescanPayRequest + */ + public function setDeviceSimNumber($deviceSimNumber) + { + $this->deviceSimNumber = $deviceSimNumber; + return $this; + } + /** + * Gets deviceName + * + * @return string + */ + public function getDeviceName() + { + return $this->deviceName; + } + + /** + * Sets deviceName + * + * @param string $deviceName + * @return UpopActivescanPayRequest + */ + public function setDeviceName($deviceName) + { + $this->deviceName = $deviceName; + return $this; + } + + public static function getOperationId() + { + return 'upopActivescanPay'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanPayRequestMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanPayRequestMarshaller.php new file mode 100644 index 0000000..3c70588 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanPayRequestMarshaller.php @@ -0,0 +1,140 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getPaySerialNo() != null){ + $internalRequest->addParameter('paySerialNo', ObjectSerializer::sanitizeForSerialization($request->getPaySerialNo(), 'string')); + } + if($request->getCouponSerialNo() != null){ + $internalRequest->addParameter('couponSerialNo', ObjectSerializer::sanitizeForSerialization($request->getCouponSerialNo(), 'string')); + } + if($request->getTradeAmount() != null){ + $internalRequest->addParameter('tradeAmount', ObjectSerializer::sanitizeForSerialization($request->getTradeAmount(), 'float')); + } + if($request->getBindId() != null){ + $internalRequest->addParameter('bindId', ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'int', 'int64')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getUserType() != null){ + $internalRequest->addParameter('userType', ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string')); + } + if($request->getCallBackUrl() != null){ + $internalRequest->addParameter('callBackUrl', ObjectSerializer::sanitizeForSerialization($request->getCallBackUrl(), 'string')); + } + if($request->getPayComments() != null){ + $internalRequest->addParameter('payComments', ObjectSerializer::sanitizeForSerialization($request->getPayComments(), 'string')); + } + if($request->getDeviceID() != null){ + $internalRequest->addParameter('deviceID', ObjectSerializer::sanitizeForSerialization($request->getDeviceID(), 'string')); + } + if($request->getDeviceType() != null){ + $internalRequest->addParameter('deviceType', ObjectSerializer::sanitizeForSerialization($request->getDeviceType(), 'string')); + } + if($request->getAccountIDHash() != null){ + $internalRequest->addParameter('accountIDHash', ObjectSerializer::sanitizeForSerialization($request->getAccountIDHash(), 'string')); + } + if($request->getSourceIP() != null){ + $internalRequest->addParameter('sourceIP', ObjectSerializer::sanitizeForSerialization($request->getSourceIP(), 'string')); + } + if($request->getUsrRgstrDt() != null){ + $internalRequest->addParameter('usrRgstrDt', ObjectSerializer::sanitizeForSerialization($request->getUsrRgstrDt(), 'string', 'date')); + } + if($request->getAccountEmailLife() != null){ + $internalRequest->addParameter('accountEmailLife', ObjectSerializer::sanitizeForSerialization($request->getAccountEmailLife(), 'string')); + } + if($request->getDeviceLocation() != null){ + $internalRequest->addParameter('deviceLocation', ObjectSerializer::sanitizeForSerialization($request->getDeviceLocation(), 'string')); + } + if($request->getFullDeviceNumber() != null){ + $internalRequest->addParameter('fullDeviceNumber', ObjectSerializer::sanitizeForSerialization($request->getFullDeviceNumber(), 'string')); + } + if($request->getCaptureMethod() != null){ + $internalRequest->addParameter('captureMethod', ObjectSerializer::sanitizeForSerialization($request->getCaptureMethod(), 'string')); + } + if($request->getDeviceSimNumber() != null){ + $internalRequest->addParameter('deviceSimNumber', ObjectSerializer::sanitizeForSerialization($request->getDeviceSimNumber(), 'string')); + } + if($request->getDeviceName() != null){ + $internalRequest->addParameter('deviceName', ObjectSerializer::sanitizeForSerialization($request->getDeviceName(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UpopActivescanPayRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/UpopActivescanPayResponse.php b/lib/Service/Frontcashier/Model/UpopActivescanPayResponse.php new file mode 100644 index 0000000..1f56054 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanPayResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UpopActivescanPayOpenActiveScanPayResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanPayResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanPayResponseUnMarshaller.php new file mode 100644 index 0000000..e579501 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanPayResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'couponInfo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'couponInfo' => 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', + 'couponInfo' => 'couponInfo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'couponInfo' => 'setCouponInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'couponInfo' => 'getCouponInfo' + ]; + + /** + * 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['couponInfo'] = isset($data['couponInfo']) ? $data['couponInfo'] : 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 couponInfo + * + * @return string + */ + public function getCouponInfo() + { + return $this->container['couponInfo']; + } + + /** + * Sets couponInfo + * + * @param string $couponInfo 营销信息 + * + * @return $this + */ + public function setCouponInfo($couponInfo) + { + $this->container['couponInfo'] = $couponInfo; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequest.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequest.php new file mode 100644 index 0000000..016cc18 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequest.php @@ -0,0 +1,267 @@ +merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return UpopActivescanQuerycouponRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets paySerialNo + * + * @return string + */ + public function getPaySerialNo() + { + return $this->paySerialNo; + } + + /** + * Sets paySerialNo + * + * @param string $paySerialNo + * @return UpopActivescanQuerycouponRequest + */ + public function setPaySerialNo($paySerialNo) + { + $this->paySerialNo = $paySerialNo; + return $this; + } + /** + * Gets tradeAmount + * + * @return float + */ + public function getTradeAmount() + { + return $this->tradeAmount; + } + + /** + * Sets tradeAmount + * + * @param float $tradeAmount + * @return UpopActivescanQuerycouponRequest + */ + public function setTradeAmount($tradeAmount) + { + $this->tradeAmount = $tradeAmount; + return $this; + } + /** + * Gets bindId + * + * @return int + */ + public function getBindId() + { + return $this->bindId; + } + + /** + * Sets bindId + * + * @param int $bindId + * @return UpopActivescanQuerycouponRequest + */ + public function setBindId($bindId) + { + $this->bindId = $bindId; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return UpopActivescanQuerycouponRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets userType + * + * @return string + */ + public function getUserType() + { + return $this->userType; + } + + /** + * Sets userType + * + * @param string $userType + * @return UpopActivescanQuerycouponRequest + */ + public function setUserType($userType) + { + $this->userType = $userType; + return $this; + } + /** + * Gets riskInfoDeviceID + * + * @return string + */ + public function getRiskInfoDeviceID() + { + return $this->riskInfoDeviceID; + } + + /** + * Sets riskInfoDeviceID + * + * @param string $riskInfoDeviceID + * @return UpopActivescanQuerycouponRequest + */ + public function setRiskInfoDeviceID($riskInfoDeviceID) + { + $this->riskInfoDeviceID = $riskInfoDeviceID; + return $this; + } + /** + * Gets riskInfoDeviceType + * + * @return string + */ + public function getRiskInfoDeviceType() + { + return $this->riskInfoDeviceType; + } + + /** + * Sets riskInfoDeviceType + * + * @param string $riskInfoDeviceType + * @return UpopActivescanQuerycouponRequest + */ + public function setRiskInfoDeviceType($riskInfoDeviceType) + { + $this->riskInfoDeviceType = $riskInfoDeviceType; + return $this; + } + /** + * Gets riskInfoAccountIDHash + * + * @return string + */ + public function getRiskInfoAccountIDHash() + { + return $this->riskInfoAccountIDHash; + } + + /** + * Sets riskInfoAccountIDHash + * + * @param string $riskInfoAccountIDHash + * @return UpopActivescanQuerycouponRequest + */ + public function setRiskInfoAccountIDHash($riskInfoAccountIDHash) + { + $this->riskInfoAccountIDHash = $riskInfoAccountIDHash; + return $this; + } + /** + * Gets riskInfoSourceIP + * + * @return string + */ + public function getRiskInfoSourceIP() + { + return $this->riskInfoSourceIP; + } + + /** + * Sets riskInfoSourceIP + * + * @param string $riskInfoSourceIP + * @return UpopActivescanQuerycouponRequest + */ + public function setRiskInfoSourceIP($riskInfoSourceIP) + { + $this->riskInfoSourceIP = $riskInfoSourceIP; + return $this; + } + + public static function getOperationId() + { + return 'upopActivescanQuerycoupon'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequestMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequestMarshaller.php new file mode 100644 index 0000000..d97ddd8 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getPaySerialNo() != null){ + $internalRequest->addParameter('paySerialNo', ObjectSerializer::sanitizeForSerialization($request->getPaySerialNo(), 'string')); + } + if($request->getTradeAmount() != null){ + $internalRequest->addParameter('tradeAmount', ObjectSerializer::sanitizeForSerialization($request->getTradeAmount(), 'float')); + } + if($request->getBindId() != null){ + $internalRequest->addParameter('bindId', ObjectSerializer::sanitizeForSerialization($request->getBindId(), 'int', 'int64')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getUserType() != null){ + $internalRequest->addParameter('userType', ObjectSerializer::sanitizeForSerialization($request->getUserType(), 'string')); + } + if($request->getRiskInfoDeviceID() != null){ + $internalRequest->addParameter('riskInfoDeviceID', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoDeviceID(), 'string')); + } + if($request->getRiskInfoDeviceType() != null){ + $internalRequest->addParameter('riskInfoDeviceType', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoDeviceType(), 'string')); + } + if($request->getRiskInfoAccountIDHash() != null){ + $internalRequest->addParameter('riskInfoAccountIDHash', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoAccountIDHash(), 'string')); + } + if($request->getRiskInfoSourceIP() != null){ + $internalRequest->addParameter('riskInfoSourceIP', ObjectSerializer::sanitizeForSerialization($request->getRiskInfoSourceIP(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UpopActivescanQuerycouponRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponse.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponse.php new file mode 100644 index 0000000..1d9c475 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UpopActivescanQuerycouponOpenQueryCouponInfoResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponseUnMarshaller.php new file mode 100644 index 0000000..1dc8302 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerycouponResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'paySerialNo' => 'string', + 'payeeMerchantName' => 'string', + 'payeeComments' => 'string', + 'tradeAmount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'paySerialNo' => null, + 'payeeMerchantName' => null, + 'payeeComments' => null, + 'tradeAmount' => 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', + 'paySerialNo' => 'paySerialNo', + 'payeeMerchantName' => 'payeeMerchantName', + 'payeeComments' => 'payeeComments', + 'tradeAmount' => 'tradeAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'paySerialNo' => 'setPaySerialNo', + 'payeeMerchantName' => 'setPayeeMerchantName', + 'payeeComments' => 'setPayeeComments', + 'tradeAmount' => 'setTradeAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'paySerialNo' => 'getPaySerialNo', + 'payeeMerchantName' => 'getPayeeMerchantName', + 'payeeComments' => 'getPayeeComments', + 'tradeAmount' => 'getTradeAmount' + ]; + + /** + * 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['paySerialNo'] = isset($data['paySerialNo']) ? $data['paySerialNo'] : null; + $this->container['payeeMerchantName'] = isset($data['payeeMerchantName']) ? $data['payeeMerchantName'] : null; + $this->container['payeeComments'] = isset($data['payeeComments']) ? $data['payeeComments'] : null; + $this->container['tradeAmount'] = isset($data['tradeAmount']) ? $data['tradeAmount'] : 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 paySerialNo + * + * @return string + */ + public function getPaySerialNo() + { + return $this->container['paySerialNo']; + } + + /** + * Sets paySerialNo + * + * @param string $paySerialNo 付款序列号 + * + * @return $this + */ + public function setPaySerialNo($paySerialNo) + { + $this->container['paySerialNo'] = $paySerialNo; + + return $this; + } + + /** + * Gets payeeMerchantName + * + * @return string + */ + public function getPayeeMerchantName() + { + return $this->container['payeeMerchantName']; + } + + /** + * Sets payeeMerchantName + * + * @param string $payeeMerchantName 收款方商户名称 + * + * @return $this + */ + public function setPayeeMerchantName($payeeMerchantName) + { + $this->container['payeeMerchantName'] = $payeeMerchantName; + + return $this; + } + + /** + * Gets payeeComments + * + * @return string + */ + public function getPayeeComments() + { + return $this->container['payeeComments']; + } + + /** + * Sets payeeComments + * + * @param string $payeeComments 收款方附言 + * + * @return $this + */ + public function setPayeeComments($payeeComments) + { + $this->container['payeeComments'] = $payeeComments; + + return $this; + } + + /** + * Gets tradeAmount + * + * @return float + */ + public function getTradeAmount() + { + return $this->container['tradeAmount']; + } + + /** + * Sets tradeAmount + * + * @param float $tradeAmount 交易金额 + * + * @return $this + */ + public function setTradeAmount($tradeAmount) + { + $this->container['tradeAmount'] = $tradeAmount; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequest.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequest.php new file mode 100644 index 0000000..77f8071 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequest.php @@ -0,0 +1,67 @@ +merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return UpopActivescanQuerypayeeorderRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets qrCode + * + * @return string + */ + public function getQrCode() + { + return $this->qrCode; + } + + /** + * Sets qrCode + * + * @param string $qrCode + * @return UpopActivescanQuerypayeeorderRequest + */ + public function setQrCode($qrCode) + { + $this->qrCode = $qrCode; + return $this; + } + + public static function getOperationId() + { + return 'upopActivescanQuerypayeeorder'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequestMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequestMarshaller.php new file mode 100644 index 0000000..a3286ec --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getQrCode() != null){ + $internalRequest->addParameter('qrCode', ObjectSerializer::sanitizeForSerialization($request->getQrCode(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UpopActivescanQuerypayeeorderRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponse.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponse.php new file mode 100644 index 0000000..6530ac8 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UpopActivescanQuerypayeeorderOpenQueryPayeeOrderInfoResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponseUnMarshaller.php new file mode 100644 index 0000000..0d74ff6 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayeeorderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam Class Doc Comment + * + * @category Class + * @description 方法签名第0个参数,请自行修改arg0等参数的名字 + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopActivescanQuerypayresultOpenQueryActiveScanPayResultRequestDTOParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'merchanNo' => 'string', + 'merchantFlowId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchanNo' => null, + 'merchantFlowId' => 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 = [ + 'merchanNo' => 'merchanNo', + 'merchantFlowId' => 'merchantFlowId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchanNo' => 'setMerchanNo', + 'merchantFlowId' => 'setMerchantFlowId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchanNo' => 'getMerchanNo', + 'merchantFlowId' => 'getMerchantFlowId' + ]; + + /** + * 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['merchanNo'] = isset($data['merchanNo']) ? $data['merchanNo'] : null; + $this->container['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : 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 merchanNo + * + * @return string + */ + public function getMerchanNo() + { + return $this->container['merchanNo']; + } + + /** + * Sets merchanNo + * + * @param string $merchanNo merchanNo + * + * @return $this + */ + public function setMerchanNo($merchanNo) + { + $this->container['merchanNo'] = $merchanNo; + + return $this; + } + + /** + * Gets merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId merchantFlowId + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult.php new file mode 100644 index 0000000..bdad08f --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult.php @@ -0,0 +1,722 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'origCode' => 'string', + 'origMessage' => 'string', + 'payOrderNo' => 'string', + 'realTradeAmount' => 'float', + 'totalRefundAmount' => 'float', + 'payeeMerchantId' => 'string', + 'payeeMerchantName' => 'string', + 'payeeMCC' => 'string', + 'status' => 'string', + 'couponInfo' => 'string', + 'origTxnAmt' => 'float', + 'totalRefundOrigTxnAmt' => 'float', + 'refundTradeDetailList' => '\Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'origCode' => null, + 'origMessage' => null, + 'payOrderNo' => null, + 'realTradeAmount' => null, + 'totalRefundAmount' => null, + 'payeeMerchantId' => null, + 'payeeMerchantName' => null, + 'payeeMCC' => null, + 'status' => null, + 'couponInfo' => null, + 'origTxnAmt' => null, + 'totalRefundOrigTxnAmt' => null, + 'refundTradeDetailList' => 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', + 'origCode' => 'origCode', + 'origMessage' => 'origMessage', + 'payOrderNo' => 'payOrderNo', + 'realTradeAmount' => 'realTradeAmount', + 'totalRefundAmount' => 'totalRefundAmount', + 'payeeMerchantId' => 'payeeMerchantId', + 'payeeMerchantName' => 'payeeMerchantName', + 'payeeMCC' => 'payeeMCC', + 'status' => 'status', + 'couponInfo' => 'couponInfo', + 'origTxnAmt' => 'origTxnAmt', + 'totalRefundOrigTxnAmt' => 'totalRefundOrigTxnAmt', + 'refundTradeDetailList' => 'refundTradeDetailList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'origCode' => 'setOrigCode', + 'origMessage' => 'setOrigMessage', + 'payOrderNo' => 'setPayOrderNo', + 'realTradeAmount' => 'setRealTradeAmount', + 'totalRefundAmount' => 'setTotalRefundAmount', + 'payeeMerchantId' => 'setPayeeMerchantId', + 'payeeMerchantName' => 'setPayeeMerchantName', + 'payeeMCC' => 'setPayeeMCC', + 'status' => 'setStatus', + 'couponInfo' => 'setCouponInfo', + 'origTxnAmt' => 'setOrigTxnAmt', + 'totalRefundOrigTxnAmt' => 'setTotalRefundOrigTxnAmt', + 'refundTradeDetailList' => 'setRefundTradeDetailList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'origCode' => 'getOrigCode', + 'origMessage' => 'getOrigMessage', + 'payOrderNo' => 'getPayOrderNo', + 'realTradeAmount' => 'getRealTradeAmount', + 'totalRefundAmount' => 'getTotalRefundAmount', + 'payeeMerchantId' => 'getPayeeMerchantId', + 'payeeMerchantName' => 'getPayeeMerchantName', + 'payeeMCC' => 'getPayeeMCC', + 'status' => 'getStatus', + 'couponInfo' => 'getCouponInfo', + 'origTxnAmt' => 'getOrigTxnAmt', + 'totalRefundOrigTxnAmt' => 'getTotalRefundOrigTxnAmt', + 'refundTradeDetailList' => 'getRefundTradeDetailList' + ]; + + /** + * 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['origCode'] = isset($data['origCode']) ? $data['origCode'] : null; + $this->container['origMessage'] = isset($data['origMessage']) ? $data['origMessage'] : null; + $this->container['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : null; + $this->container['realTradeAmount'] = isset($data['realTradeAmount']) ? $data['realTradeAmount'] : null; + $this->container['totalRefundAmount'] = isset($data['totalRefundAmount']) ? $data['totalRefundAmount'] : null; + $this->container['payeeMerchantId'] = isset($data['payeeMerchantId']) ? $data['payeeMerchantId'] : null; + $this->container['payeeMerchantName'] = isset($data['payeeMerchantName']) ? $data['payeeMerchantName'] : null; + $this->container['payeeMCC'] = isset($data['payeeMCC']) ? $data['payeeMCC'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['couponInfo'] = isset($data['couponInfo']) ? $data['couponInfo'] : null; + $this->container['origTxnAmt'] = isset($data['origTxnAmt']) ? $data['origTxnAmt'] : null; + $this->container['totalRefundOrigTxnAmt'] = isset($data['totalRefundOrigTxnAmt']) ? $data['totalRefundOrigTxnAmt'] : null; + $this->container['refundTradeDetailList'] = isset($data['refundTradeDetailList']) ? $data['refundTradeDetailList'] : 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 origCode + * + * @return string + */ + public function getOrigCode() + { + return $this->container['origCode']; + } + + /** + * Sets origCode + * + * @param string $origCode 失败错误码 + * + * @return $this + */ + public function setOrigCode($origCode) + { + $this->container['origCode'] = $origCode; + + return $this; + } + + /** + * Gets origMessage + * + * @return string + */ + public function getOrigMessage() + { + return $this->container['origMessage']; + } + + /** + * Sets origMessage + * + * @param string $origMessage 失败错误描述 + * + * @return $this + */ + public function setOrigMessage($origMessage) + { + $this->container['origMessage'] = $origMessage; + + return $this; + } + + /** + * Gets payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->container['payOrderNo']; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo 付款订单号 + * + * @return $this + */ + public function setPayOrderNo($payOrderNo) + { + $this->container['payOrderNo'] = $payOrderNo; + + return $this; + } + + /** + * Gets realTradeAmount + * + * @return float + */ + public function getRealTradeAmount() + { + return $this->container['realTradeAmount']; + } + + /** + * Sets realTradeAmount + * + * @param float $realTradeAmount 实际付款金额 + * + * @return $this + */ + public function setRealTradeAmount($realTradeAmount) + { + $this->container['realTradeAmount'] = $realTradeAmount; + + return $this; + } + + /** + * Gets totalRefundAmount + * + * @return float + */ + public function getTotalRefundAmount() + { + return $this->container['totalRefundAmount']; + } + + /** + * Sets totalRefundAmount + * + * @param float $totalRefundAmount 总退款金额 + * + * @return $this + */ + public function setTotalRefundAmount($totalRefundAmount) + { + $this->container['totalRefundAmount'] = $totalRefundAmount; + + return $this; + } + + /** + * Gets payeeMerchantId + * + * @return string + */ + public function getPayeeMerchantId() + { + return $this->container['payeeMerchantId']; + } + + /** + * Sets payeeMerchantId + * + * @param string $payeeMerchantId 收款商户号 + * + * @return $this + */ + public function setPayeeMerchantId($payeeMerchantId) + { + $this->container['payeeMerchantId'] = $payeeMerchantId; + + return $this; + } + + /** + * Gets payeeMerchantName + * + * @return string + */ + public function getPayeeMerchantName() + { + return $this->container['payeeMerchantName']; + } + + /** + * Sets payeeMerchantName + * + * @param string $payeeMerchantName 收款商户名称 + * + * @return $this + */ + public function setPayeeMerchantName($payeeMerchantName) + { + $this->container['payeeMerchantName'] = $payeeMerchantName; + + return $this; + } + + /** + * Gets payeeMCC + * + * @return string + */ + public function getPayeeMCC() + { + return $this->container['payeeMCC']; + } + + /** + * Sets payeeMCC + * + * @param string $payeeMCC 收款方MCC + * + * @return $this + */ + public function setPayeeMCC($payeeMCC) + { + $this->container['payeeMCC'] = $payeeMCC; + + 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 couponInfo + * + * @return string + */ + public function getCouponInfo() + { + return $this->container['couponInfo']; + } + + /** + * Sets couponInfo + * + * @param string $couponInfo 营销信息 + * + * @return $this + */ + public function setCouponInfo($couponInfo) + { + $this->container['couponInfo'] = $couponInfo; + + return $this; + } + + /** + * Gets origTxnAmt + * + * @return float + */ + public function getOrigTxnAmt() + { + return $this->container['origTxnAmt']; + } + + /** + * Sets origTxnAmt + * + * @param float $origTxnAmt 初始交易金额(原订单金额) + * + * @return $this + */ + public function setOrigTxnAmt($origTxnAmt) + { + $this->container['origTxnAmt'] = $origTxnAmt; + + return $this; + } + + /** + * Gets totalRefundOrigTxnAmt + * + * @return float + */ + public function getTotalRefundOrigTxnAmt() + { + return $this->container['totalRefundOrigTxnAmt']; + } + + /** + * Sets totalRefundOrigTxnAmt + * + * @param float $totalRefundOrigTxnAmt 申请退款总金额 + * + * @return $this + */ + public function setTotalRefundOrigTxnAmt($totalRefundOrigTxnAmt) + { + $this->container['totalRefundOrigTxnAmt'] = $totalRefundOrigTxnAmt; + + return $this; + } + + /** + * Gets refundTradeDetailList + * + * @return \Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult[] + */ + public function getRefundTradeDetailList() + { + return $this->container['refundTradeDetailList']; + } + + /** + * Sets refundTradeDetailList + * + * @param \Yeepay\Yop\Sdk\Service\Frontcashier\Model\UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult[] $refundTradeDetailList 退款明细列表 + * + * @return $this + */ + public function setRefundTradeDetailList($refundTradeDetailList) + { + $this->container['refundTradeDetailList'] = $refundTradeDetailList; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult.php new file mode 100644 index 0000000..c56477c --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult.php @@ -0,0 +1,483 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult Class Doc Comment + * + * @category Class + * @description + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopActivescanQuerypayresultRefundTradeDetailResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'payOrderNo' => 'string', + 'refundAmount' => 'float', + 'refundOrderNo' => 'string', + 'status' => 'string', + 'createTime' => 'string', + 'refundCouponInfo' => 'string', + 'refundOrigTxnAmt' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'payOrderNo' => null, + 'refundAmount' => null, + 'refundOrderNo' => null, + 'status' => null, + 'createTime' => 'date-time', + 'refundCouponInfo' => null, + 'refundOrigTxnAmt' => 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 = [ + 'payOrderNo' => 'payOrderNo', + 'refundAmount' => 'refundAmount', + 'refundOrderNo' => 'refundOrderNo', + 'status' => 'status', + 'createTime' => 'createTime', + 'refundCouponInfo' => 'refundCouponInfo', + 'refundOrigTxnAmt' => 'refundOrigTxnAmt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'payOrderNo' => 'setPayOrderNo', + 'refundAmount' => 'setRefundAmount', + 'refundOrderNo' => 'setRefundOrderNo', + 'status' => 'setStatus', + 'createTime' => 'setCreateTime', + 'refundCouponInfo' => 'setRefundCouponInfo', + 'refundOrigTxnAmt' => 'setRefundOrigTxnAmt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'payOrderNo' => 'getPayOrderNo', + 'refundAmount' => 'getRefundAmount', + 'refundOrderNo' => 'getRefundOrderNo', + 'status' => 'getStatus', + 'createTime' => 'getCreateTime', + 'refundCouponInfo' => 'getRefundCouponInfo', + 'refundOrigTxnAmt' => 'getRefundOrigTxnAmt' + ]; + + /** + * 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : null; + $this->container['refundAmount'] = isset($data['refundAmount']) ? $data['refundAmount'] : null; + $this->container['refundOrderNo'] = isset($data['refundOrderNo']) ? $data['refundOrderNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['refundCouponInfo'] = isset($data['refundCouponInfo']) ? $data['refundCouponInfo'] : null; + $this->container['refundOrigTxnAmt'] = isset($data['refundOrigTxnAmt']) ? $data['refundOrigTxnAmt'] : 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 payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->container['payOrderNo']; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo 付款订单号 + * + * @return $this + */ + public function setPayOrderNo($payOrderNo) + { + $this->container['payOrderNo'] = $payOrderNo; + + return $this; + } + + /** + * Gets refundAmount + * + * @return float + */ + public function getRefundAmount() + { + return $this->container['refundAmount']; + } + + /** + * Sets refundAmount + * + * @param float $refundAmount 退款金额 + * + * @return $this + */ + public function setRefundAmount($refundAmount) + { + $this->container['refundAmount'] = $refundAmount; + + return $this; + } + + /** + * Gets refundOrderNo + * + * @return string + */ + public function getRefundOrderNo() + { + return $this->container['refundOrderNo']; + } + + /** + * Sets refundOrderNo + * + * @param string $refundOrderNo 退款订单号 + * + * @return $this + */ + public function setRefundOrderNo($refundOrderNo) + { + $this->container['refundOrderNo'] = $refundOrderNo; + + 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 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 refundCouponInfo + * + * @return string + */ + public function getRefundCouponInfo() + { + return $this->container['refundCouponInfo']; + } + + /** + * Sets refundCouponInfo + * + * @param string $refundCouponInfo 退款营销信息 + * + * @return $this + */ + public function setRefundCouponInfo($refundCouponInfo) + { + $this->container['refundCouponInfo'] = $refundCouponInfo; + + return $this; + } + + /** + * Gets refundOrigTxnAmt + * + * @return float + */ + public function getRefundOrigTxnAmt() + { + return $this->container['refundOrigTxnAmt']; + } + + /** + * Sets refundOrigTxnAmt + * + * @param float $refundOrigTxnAmt 申请退款金额(包含营销金额) + * + * @return $this + */ + public function setRefundOrigTxnAmt($refundOrigTxnAmt) + { + $this->container['refundOrigTxnAmt'] = $refundOrigTxnAmt; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequest.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequest.php new file mode 100644 index 0000000..6e494c5 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return UpopActivescanQuerypayresultRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'upopActivescanQuerypayresult'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequestMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequestMarshaller.php new file mode 100644 index 0000000..6053dbf --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UpopActivescanQuerypayresultRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponse.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponse.php new file mode 100644 index 0000000..f4b2533 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UpopActivescanQuerypayresultOpenQueryActiveScanPayResultResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponseUnMarshaller.php new file mode 100644 index 0000000..894e0de --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopActivescanQuerypayresultResponseUnMarshaller.php @@ -0,0 +1,39 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopPassivescanBindQrcodeOpenPassiveScanPayResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'payOrderNo' => 'string', + 'qrCode' => 'string', + 'orderValidTime' => 'int', + 'orderDate' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'payOrderNo' => null, + 'qrCode' => null, + 'orderValidTime' => 'int32', + 'orderDate' => '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 = [ + 'code' => 'code', + 'message' => 'message', + 'payOrderNo' => 'payOrderNo', + 'qrCode' => 'qrCode', + 'orderValidTime' => 'orderValidTime', + 'orderDate' => 'orderDate' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'payOrderNo' => 'setPayOrderNo', + 'qrCode' => 'setQrCode', + 'orderValidTime' => 'setOrderValidTime', + 'orderDate' => 'setOrderDate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'payOrderNo' => 'getPayOrderNo', + 'qrCode' => 'getQrCode', + 'orderValidTime' => 'getOrderValidTime', + 'orderDate' => 'getOrderDate' + ]; + + /** + * 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : null; + $this->container['qrCode'] = isset($data['qrCode']) ? $data['qrCode'] : null; + $this->container['orderValidTime'] = isset($data['orderValidTime']) ? $data['orderValidTime'] : null; + $this->container['orderDate'] = isset($data['orderDate']) ? $data['orderDate'] : 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 payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->container['payOrderNo']; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo 付款方订单号 + * + * @return $this + */ + public function setPayOrderNo($payOrderNo) + { + $this->container['payOrderNo'] = $payOrderNo; + + return $this; + } + + /** + * Gets qrCode + * + * @return string + */ + public function getQrCode() + { + return $this->container['qrCode']; + } + + /** + * Sets qrCode + * + * @param string $qrCode 二维码信息 + * + * @return $this + */ + public function setQrCode($qrCode) + { + $this->container['qrCode'] = $qrCode; + + return $this; + } + + /** + * Gets orderValidTime + * + * @return int + */ + public function getOrderValidTime() + { + return $this->container['orderValidTime']; + } + + /** + * Sets orderValidTime + * + * @param int $orderValidTime 有效期时间 + * + * @return $this + */ + public function setOrderValidTime($orderValidTime) + { + $this->container['orderValidTime'] = $orderValidTime; + + return $this; + } + + /** + * Gets orderDate + * + * @return string + */ + public function getOrderDate() + { + return $this->container['orderDate']; + } + + /** + * Sets orderDate + * + * @param string $orderDate 订单创建时间 + * + * @return $this + */ + public function setOrderDate($orderDate) + { + $this->container['orderDate'] = $orderDate; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopPassivescanValidateOpenPassiveValidateResponseDTOResult.php b/lib/Service/Frontcashier/Model/UpopPassivescanValidateOpenPassiveValidateResponseDTOResult.php new file mode 100644 index 0000000..19f38a7 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopPassivescanValidateOpenPassiveValidateResponseDTOResult.php @@ -0,0 +1,392 @@ +前置收银台

+ * + * OpenAPI spec version: 1.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\Frontcashier\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * UpopPassivescanValidateOpenPassiveValidateResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class UpopPassivescanValidateOpenPassiveValidateResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'UpopPassivescanValidateOpenPassiveValidateResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantFlowId' => 'string', + 'dealStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantFlowId' => null, + 'dealStatus' => 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', + 'merchantFlowId' => 'merchantFlowId', + 'dealStatus' => 'dealStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantFlowId' => 'setMerchantFlowId', + 'dealStatus' => 'setDealStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantFlowId' => 'getMerchantFlowId', + 'dealStatus' => 'getDealStatus' + ]; + + /** + * 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['merchantFlowId'] = isset($data['merchantFlowId']) ? $data['merchantFlowId'] : null; + $this->container['dealStatus'] = isset($data['dealStatus']) ? $data['dealStatus'] : 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 merchantFlowId + * + * @return string + */ + public function getMerchantFlowId() + { + return $this->container['merchantFlowId']; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId 商户订单号 + * + * @return $this + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->container['merchantFlowId'] = $merchantFlowId; + + return $this; + } + + /** + * Gets dealStatus + * + * @return string + */ + public function getDealStatus() + { + return $this->container['dealStatus']; + } + + /** + * Sets dealStatus + * + * @param string $dealStatus 处理状态 + * + * @return $this + */ + public function setDealStatus($dealStatus) + { + $this->container['dealStatus'] = $dealStatus; + + 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)); + } +} + + diff --git a/lib/Service/Frontcashier/Model/UpopPassivescanValidateRequest.php b/lib/Service/Frontcashier/Model/UpopPassivescanValidateRequest.php new file mode 100644 index 0000000..c1b33b1 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopPassivescanValidateRequest.php @@ -0,0 +1,117 @@ +merchantFlowId; + } + + /** + * Sets merchantFlowId + * + * @param string $merchantFlowId + * @return UpopPassivescanValidateRequest + */ + public function setMerchantFlowId($merchantFlowId) + { + $this->merchantFlowId = $merchantFlowId; + return $this; + } + /** + * Gets payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->payOrderNo; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo + * @return UpopPassivescanValidateRequest + */ + public function setPayOrderNo($payOrderNo) + { + $this->payOrderNo = $payOrderNo; + return $this; + } + /** + * Gets couponInfo + * + * @return string + */ + public function getCouponInfo() + { + return $this->couponInfo; + } + + /** + * Sets couponInfo + * + * @param string $couponInfo + * @return UpopPassivescanValidateRequest + */ + public function setCouponInfo($couponInfo) + { + $this->couponInfo = $couponInfo; + return $this; + } + /** + * Gets realTradeAmount + * + * @return float + */ + public function getRealTradeAmount() + { + return $this->realTradeAmount; + } + + /** + * Sets realTradeAmount + * + * @param float $realTradeAmount + * @return UpopPassivescanValidateRequest + */ + public function setRealTradeAmount($realTradeAmount) + { + $this->realTradeAmount = $realTradeAmount; + return $this; + } + + public static function getOperationId() + { + return 'upopPassivescanValidate'; + } + + +} diff --git a/lib/Service/Frontcashier/Model/UpopPassivescanValidateRequestMarshaller.php b/lib/Service/Frontcashier/Model/UpopPassivescanValidateRequestMarshaller.php new file mode 100644 index 0000000..fe77b90 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopPassivescanValidateRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getMerchantFlowId() != null){ + $internalRequest->addParameter('merchantFlowId', ObjectSerializer::sanitizeForSerialization($request->getMerchantFlowId(), 'string')); + } + if($request->getPayOrderNo() != null){ + $internalRequest->addParameter('payOrderNo', ObjectSerializer::sanitizeForSerialization($request->getPayOrderNo(), 'string')); + } + if($request->getCouponInfo() != null){ + $internalRequest->addParameter('couponInfo', ObjectSerializer::sanitizeForSerialization($request->getCouponInfo(), 'string')); + } + if($request->getRealTradeAmount() != null){ + $internalRequest->addParameter('realTradeAmount', ObjectSerializer::sanitizeForSerialization($request->getRealTradeAmount(), 'float')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UpopPassivescanValidateRequestMarshaller::__init(); diff --git a/lib/Service/Frontcashier/Model/UpopPassivescanValidateResponse.php b/lib/Service/Frontcashier/Model/UpopPassivescanValidateResponse.php new file mode 100644 index 0000000..d4cbf29 --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopPassivescanValidateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return UpopPassivescanValidateOpenPassiveValidateResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Frontcashier/Model/UpopPassivescanValidateResponseUnMarshaller.php b/lib/Service/Frontcashier/Model/UpopPassivescanValidateResponseUnMarshaller.php new file mode 100644 index 0000000..4fd7acc --- /dev/null +++ b/lib/Service/Frontcashier/Model/UpopPassivescanValidateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\RealnameAuthRequest $request + * @return Model\RealnameAuthResponse + * @throws YopClientException + */ + public function realnameAuth(Model\RealnameAuthRequest $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\RealnameAuthRequestMarshaller::getInstance(), + Model\RealnameAuthResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RealnameNotifyRequest $request + * @return Model\RealnameNotifyResponse + * @throws YopClientException + */ + public function realnameNotify(Model\RealnameNotifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RealnameNotifyRequestMarshaller::getInstance(), + Model\RealnameNotifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Insurance/InsuranceClientBuilder.php b/lib/Service/Insurance/InsuranceClientBuilder.php new file mode 100644 index 0000000..70e1ff2 --- /dev/null +++ b/lib/Service/Insurance/InsuranceClientBuilder.php @@ -0,0 +1,69 @@ +register('realnameAuth', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('realnameNotify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * InsuranceClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new InsuranceClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return InsuranceClientBuilder + * @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 InsuranceClientBuilder($clientParams); + } + +} +InsuranceClientBuilder::__init(); diff --git a/lib/Service/Insurance/Model/RealnameAuthCommonInsurRequestDTOParam.php b/lib/Service/Insurance/Model/RealnameAuthCommonInsurRequestDTOParam.php new file mode 100644 index 0000000..1ea9bd7 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthCommonInsurRequestDTOParam.php @@ -0,0 +1,723 @@ +根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&支付宝&银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。

+ * + * OpenAPI spec version: 1.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\Insurance\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RealnameAuthCommonInsurRequestDTOParam Class Doc Comment + * + * @category Class + * @description 方法签名第0个参数,请自行修改arg0等参数的名字 + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RealnameAuthCommonInsurRequestDTOParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RealnameAuthCommonInsurRequestDTOParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'appkey' => 'string', + 'requestNo' => 'string', + 'customerNo' => 'string', + 'requestType' => 'string', + 'cardNo' => 'string', + 'payerIdCard' => 'string', + 'payerName' => 'string', + 'paymentNo' => 'string', + 'queryNo' => 'string', + 'taskNumbers' => 'string', + 'totalAmount' => 'string', + 'tradeNo' => 'string', + 'date' => 'string', + 'validateSequenceNo' => 'string', + 'tradingBackDataDTOS' => '\Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthTradingBackDataDTOParam[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'appkey' => null, + 'requestNo' => null, + 'customerNo' => null, + 'requestType' => null, + 'cardNo' => null, + 'payerIdCard' => null, + 'payerName' => null, + 'paymentNo' => null, + 'queryNo' => null, + 'taskNumbers' => null, + 'totalAmount' => null, + 'tradeNo' => null, + 'date' => null, + 'validateSequenceNo' => null, + 'tradingBackDataDTOS' => 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', + 'requestNo' => 'requestNo', + 'customerNo' => 'customerNo', + 'requestType' => 'requestType', + 'cardNo' => 'cardNo', + 'payerIdCard' => 'payerIdCard', + 'payerName' => 'payerName', + 'paymentNo' => 'paymentNo', + 'queryNo' => 'queryNo', + 'taskNumbers' => 'taskNumbers', + 'totalAmount' => 'totalAmount', + 'tradeNo' => 'tradeNo', + 'date' => 'date', + 'validateSequenceNo' => 'validateSequenceNo', + 'tradingBackDataDTOS' => 'tradingBackDataDTOS' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'appkey' => 'setAppkey', + 'requestNo' => 'setRequestNo', + 'customerNo' => 'setCustomerNo', + 'requestType' => 'setRequestType', + 'cardNo' => 'setCardNo', + 'payerIdCard' => 'setPayerIdCard', + 'payerName' => 'setPayerName', + 'paymentNo' => 'setPaymentNo', + 'queryNo' => 'setQueryNo', + 'taskNumbers' => 'setTaskNumbers', + 'totalAmount' => 'setTotalAmount', + 'tradeNo' => 'setTradeNo', + 'date' => 'setDate', + 'validateSequenceNo' => 'setValidateSequenceNo', + 'tradingBackDataDTOS' => 'setTradingBackDataDTOS' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'appkey' => 'getAppkey', + 'requestNo' => 'getRequestNo', + 'customerNo' => 'getCustomerNo', + 'requestType' => 'getRequestType', + 'cardNo' => 'getCardNo', + 'payerIdCard' => 'getPayerIdCard', + 'payerName' => 'getPayerName', + 'paymentNo' => 'getPaymentNo', + 'queryNo' => 'getQueryNo', + 'taskNumbers' => 'getTaskNumbers', + 'totalAmount' => 'getTotalAmount', + 'tradeNo' => 'getTradeNo', + 'date' => 'getDate', + 'validateSequenceNo' => 'getValidateSequenceNo', + 'tradingBackDataDTOS' => 'getTradingBackDataDTOS' + ]; + + /** + * 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null; + $this->container['requestType'] = isset($data['requestType']) ? $data['requestType'] : null; + $this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null; + $this->container['payerIdCard'] = isset($data['payerIdCard']) ? $data['payerIdCard'] : null; + $this->container['payerName'] = isset($data['payerName']) ? $data['payerName'] : null; + $this->container['paymentNo'] = isset($data['paymentNo']) ? $data['paymentNo'] : null; + $this->container['queryNo'] = isset($data['queryNo']) ? $data['queryNo'] : null; + $this->container['taskNumbers'] = isset($data['taskNumbers']) ? $data['taskNumbers'] : null; + $this->container['totalAmount'] = isset($data['totalAmount']) ? $data['totalAmount'] : null; + $this->container['tradeNo'] = isset($data['tradeNo']) ? $data['tradeNo'] : null; + $this->container['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['validateSequenceNo'] = isset($data['validateSequenceNo']) ? $data['validateSequenceNo'] : null; + $this->container['tradingBackDataDTOS'] = isset($data['tradingBackDataDTOS']) ? $data['tradingBackDataDTOS'] : 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 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 customerNo + * + * @return string + */ + public function getCustomerNo() + { + return $this->container['customerNo']; + } + + /** + * Sets customerNo + * + * @param string $customerNo customerNo + * + * @return $this + */ + public function setCustomerNo($customerNo) + { + $this->container['customerNo'] = $customerNo; + + return $this; + } + + /** + * Gets requestType + * + * @return string + */ + public function getRequestType() + { + return $this->container['requestType']; + } + + /** + * Sets requestType + * + * @param string $requestType requestType + * + * @return $this + */ + public function setRequestType($requestType) + { + $this->container['requestType'] = $requestType; + + return $this; + } + + /** + * Gets cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->container['cardNo']; + } + + /** + * Sets cardNo + * + * @param string $cardNo cardNo + * + * @return $this + */ + public function setCardNo($cardNo) + { + $this->container['cardNo'] = $cardNo; + + return $this; + } + + /** + * Gets payerIdCard + * + * @return string + */ + public function getPayerIdCard() + { + return $this->container['payerIdCard']; + } + + /** + * Sets payerIdCard + * + * @param string $payerIdCard payerIdCard + * + * @return $this + */ + public function setPayerIdCard($payerIdCard) + { + $this->container['payerIdCard'] = $payerIdCard; + + return $this; + } + + /** + * Gets payerName + * + * @return string + */ + public function getPayerName() + { + return $this->container['payerName']; + } + + /** + * Sets payerName + * + * @param string $payerName payerName + * + * @return $this + */ + public function setPayerName($payerName) + { + $this->container['payerName'] = $payerName; + + return $this; + } + + /** + * Gets paymentNo + * + * @return string + */ + public function getPaymentNo() + { + return $this->container['paymentNo']; + } + + /** + * Sets paymentNo + * + * @param string $paymentNo paymentNo + * + * @return $this + */ + public function setPaymentNo($paymentNo) + { + $this->container['paymentNo'] = $paymentNo; + + return $this; + } + + /** + * Gets queryNo + * + * @return string + */ + public function getQueryNo() + { + return $this->container['queryNo']; + } + + /** + * Sets queryNo + * + * @param string $queryNo queryNo + * + * @return $this + */ + public function setQueryNo($queryNo) + { + $this->container['queryNo'] = $queryNo; + + return $this; + } + + /** + * Gets taskNumbers + * + * @return string + */ + public function getTaskNumbers() + { + return $this->container['taskNumbers']; + } + + /** + * Sets taskNumbers + * + * @param string $taskNumbers taskNumbers + * + * @return $this + */ + public function setTaskNumbers($taskNumbers) + { + $this->container['taskNumbers'] = $taskNumbers; + + return $this; + } + + /** + * Gets totalAmount + * + * @return string + */ + public function getTotalAmount() + { + return $this->container['totalAmount']; + } + + /** + * Sets totalAmount + * + * @param string $totalAmount totalAmount + * + * @return $this + */ + public function setTotalAmount($totalAmount) + { + $this->container['totalAmount'] = $totalAmount; + + return $this; + } + + /** + * Gets tradeNo + * + * @return string + */ + public function getTradeNo() + { + return $this->container['tradeNo']; + } + + /** + * Sets tradeNo + * + * @param string $tradeNo tradeNo + * + * @return $this + */ + public function setTradeNo($tradeNo) + { + $this->container['tradeNo'] = $tradeNo; + + return $this; + } + + /** + * Gets date + * + * @return string + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param string $date date + * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets validateSequenceNo + * + * @return string + */ + public function getValidateSequenceNo() + { + return $this->container['validateSequenceNo']; + } + + /** + * Sets validateSequenceNo + * + * @param string $validateSequenceNo validateSequenceNo + * + * @return $this + */ + public function setValidateSequenceNo($validateSequenceNo) + { + $this->container['validateSequenceNo'] = $validateSequenceNo; + + return $this; + } + + /** + * Gets tradingBackDataDTOS + * + * @return \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthTradingBackDataDTOParam[] + */ + public function getTradingBackDataDTOS() + { + return $this->container['tradingBackDataDTOS']; + } + + /** + * Sets tradingBackDataDTOS + * + * @param \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthTradingBackDataDTOParam[] $tradingBackDataDTOS tradingBackDataDTOS + * + * @return $this + */ + public function setTradingBackDataDTOS($tradingBackDataDTOS) + { + $this->container['tradingBackDataDTOS'] = $tradingBackDataDTOS; + + 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)); + } +} + + diff --git a/lib/Service/Insurance/Model/RealnameAuthCommonInsurResponseDTOResult.php b/lib/Service/Insurance/Model/RealnameAuthCommonInsurResponseDTOResult.php new file mode 100644 index 0000000..8075b86 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthCommonInsurResponseDTOResult.php @@ -0,0 +1,722 @@ +根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&支付宝&银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。

+ * + * OpenAPI spec version: 1.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\Insurance\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RealnameAuthCommonInsurResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RealnameAuthCommonInsurResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RealnameAuthCommonInsurResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'msg' => 'string', + 'status' => 'string', + 'customerNo' => 'string', + 'merchantNo' => 'string', + 'queryNo' => 'string', + 'terminalNo' => 'string', + 'tradeNo' => 'string', + 'amount' => 'string', + 'validateSequenceNo' => 'string', + 'pealNamePaymentFlag' => 'string', + 'requestType' => 'string', + 'requestCode' => 'string', + 'transDate' => 'string', + 'customerDataDTOS' => '\Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCustomerDataDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'msg' => null, + 'status' => null, + 'customerNo' => null, + 'merchantNo' => null, + 'queryNo' => null, + 'terminalNo' => null, + 'tradeNo' => null, + 'amount' => null, + 'validateSequenceNo' => null, + 'pealNamePaymentFlag' => null, + 'requestType' => null, + 'requestCode' => null, + 'transDate' => null, + 'customerDataDTOS' => 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', + 'msg' => 'msg', + 'status' => 'status', + 'customerNo' => 'customerNo', + 'merchantNo' => 'merchantNo', + 'queryNo' => 'queryNo', + 'terminalNo' => 'terminalNo', + 'tradeNo' => 'tradeNo', + 'amount' => 'amount', + 'validateSequenceNo' => 'validateSequenceNo', + 'pealNamePaymentFlag' => 'pealNamePaymentFlag', + 'requestType' => 'requestType', + 'requestCode' => 'requestCode', + 'transDate' => 'transDate', + 'customerDataDTOS' => 'customerDataDTOS' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'msg' => 'setMsg', + 'status' => 'setStatus', + 'customerNo' => 'setCustomerNo', + 'merchantNo' => 'setMerchantNo', + 'queryNo' => 'setQueryNo', + 'terminalNo' => 'setTerminalNo', + 'tradeNo' => 'setTradeNo', + 'amount' => 'setAmount', + 'validateSequenceNo' => 'setValidateSequenceNo', + 'pealNamePaymentFlag' => 'setPealNamePaymentFlag', + 'requestType' => 'setRequestType', + 'requestCode' => 'setRequestCode', + 'transDate' => 'setTransDate', + 'customerDataDTOS' => 'setCustomerDataDTOS' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'msg' => 'getMsg', + 'status' => 'getStatus', + 'customerNo' => 'getCustomerNo', + 'merchantNo' => 'getMerchantNo', + 'queryNo' => 'getQueryNo', + 'terminalNo' => 'getTerminalNo', + 'tradeNo' => 'getTradeNo', + 'amount' => 'getAmount', + 'validateSequenceNo' => 'getValidateSequenceNo', + 'pealNamePaymentFlag' => 'getPealNamePaymentFlag', + 'requestType' => 'getRequestType', + 'requestCode' => 'getRequestCode', + 'transDate' => 'getTransDate', + 'customerDataDTOS' => 'getCustomerDataDTOS' + ]; + + /** + * 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['msg'] = isset($data['msg']) ? $data['msg'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['queryNo'] = isset($data['queryNo']) ? $data['queryNo'] : null; + $this->container['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null; + $this->container['tradeNo'] = isset($data['tradeNo']) ? $data['tradeNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['validateSequenceNo'] = isset($data['validateSequenceNo']) ? $data['validateSequenceNo'] : null; + $this->container['pealNamePaymentFlag'] = isset($data['pealNamePaymentFlag']) ? $data['pealNamePaymentFlag'] : null; + $this->container['requestType'] = isset($data['requestType']) ? $data['requestType'] : null; + $this->container['requestCode'] = isset($data['requestCode']) ? $data['requestCode'] : null; + $this->container['transDate'] = isset($data['transDate']) ? $data['transDate'] : null; + $this->container['customerDataDTOS'] = isset($data['customerDataDTOS']) ? $data['customerDataDTOS'] : 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 msg + * + * @return string + */ + public function getMsg() + { + return $this->container['msg']; + } + + /** + * Sets msg + * + * @param string $msg 未命名 + * + * @return $this + */ + public function setMsg($msg) + { + $this->container['msg'] = $msg; + + 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 customerNo + * + * @return string + */ + public function getCustomerNo() + { + return $this->container['customerNo']; + } + + /** + * Sets customerNo + * + * @param string $customerNo 客户编号 + * + * @return $this + */ + public function setCustomerNo($customerNo) + { + $this->container['customerNo'] = $customerNo; + + 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 queryNo + * + * @return string + */ + public function getQueryNo() + { + return $this->container['queryNo']; + } + + /** + * Sets queryNo + * + * @param string $queryNo 查询编号 + * + * @return $this + */ + public function setQueryNo($queryNo) + { + $this->container['queryNo'] = $queryNo; + + return $this; + } + + /** + * Gets terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->container['terminalNo']; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo 终端号 + * + * @return $this + */ + public function setTerminalNo($terminalNo) + { + $this->container['terminalNo'] = $terminalNo; + + return $this; + } + + /** + * Gets tradeNo + * + * @return string + */ + public function getTradeNo() + { + return $this->container['tradeNo']; + } + + /** + * Sets tradeNo + * + * @param string $tradeNo 交易流水号 + * + * @return $this + */ + public function setTradeNo($tradeNo) + { + $this->container['tradeNo'] = $tradeNo; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount 金额 + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets validateSequenceNo + * + * @return string + */ + public function getValidateSequenceNo() + { + return $this->container['validateSequenceNo']; + } + + /** + * Sets validateSequenceNo + * + * @param string $validateSequenceNo 认证序列号 + * + * @return $this + */ + public function setValidateSequenceNo($validateSequenceNo) + { + $this->container['validateSequenceNo'] = $validateSequenceNo; + + return $this; + } + + /** + * Gets pealNamePaymentFlag + * + * @return string + */ + public function getPealNamePaymentFlag() + { + return $this->container['pealNamePaymentFlag']; + } + + /** + * Sets pealNamePaymentFlag + * + * @param string $pealNamePaymentFlag 实名缴费标识 + * + * @return $this + */ + public function setPealNamePaymentFlag($pealNamePaymentFlag) + { + $this->container['pealNamePaymentFlag'] = $pealNamePaymentFlag; + + return $this; + } + + /** + * Gets requestType + * + * @return string + */ + public function getRequestType() + { + return $this->container['requestType']; + } + + /** + * Sets requestType + * + * @param string $requestType 请求类型 + * + * @return $this + */ + public function setRequestType($requestType) + { + $this->container['requestType'] = $requestType; + + return $this; + } + + /** + * Gets requestCode + * + * @return string + */ + public function getRequestCode() + { + return $this->container['requestCode']; + } + + /** + * Sets requestCode + * + * @param string $requestCode 请求编码 + * + * @return $this + */ + public function setRequestCode($requestCode) + { + $this->container['requestCode'] = $requestCode; + + return $this; + } + + /** + * Gets transDate + * + * @return string + */ + public function getTransDate() + { + return $this->container['transDate']; + } + + /** + * Sets transDate + * + * @param string $transDate 业务交易完成时间 + * + * @return $this + */ + public function setTransDate($transDate) + { + $this->container['transDate'] = $transDate; + + return $this; + } + + /** + * Gets customerDataDTOS + * + * @return \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCustomerDataDTOResult[] + */ + public function getCustomerDataDTOS() + { + return $this->container['customerDataDTOS']; + } + + /** + * Sets customerDataDTOS + * + * @param \Yeepay\Yop\Sdk\Service\Insurance\Model\RealnameAuthCustomerDataDTOResult[] $customerDataDTOS 客户信息集合 + * + * @return $this + */ + public function setCustomerDataDTOS($customerDataDTOS) + { + $this->container['customerDataDTOS'] = $customerDataDTOS; + + 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)); + } +} + + diff --git a/lib/Service/Insurance/Model/RealnameAuthCustomerDataDTOResult.php b/lib/Service/Insurance/Model/RealnameAuthCustomerDataDTOResult.php new file mode 100644 index 0000000..50d5508 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthCustomerDataDTOResult.php @@ -0,0 +1,422 @@ +根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&支付宝&银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。

+ * + * OpenAPI spec version: 1.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\Insurance\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RealnameAuthCustomerDataDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RealnameAuthCustomerDataDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RealnameAuthCustomerDataDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'customerNo' => 'string', + 'name' => 'string', + 'critType' => 'string', + 'critCode' => 'string', + 'mobile' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'customerNo' => null, + 'name' => null, + 'critType' => null, + 'critCode' => null, + 'mobile' => 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 = [ + 'customerNo' => 'customerNo', + 'name' => 'name', + 'critType' => 'critType', + 'critCode' => 'critCode', + 'mobile' => 'mobile' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'customerNo' => 'setCustomerNo', + 'name' => 'setName', + 'critType' => 'setCritType', + 'critCode' => 'setCritCode', + 'mobile' => 'setMobile' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'customerNo' => 'getCustomerNo', + 'name' => 'getName', + 'critType' => 'getCritType', + 'critCode' => 'getCritCode', + 'mobile' => 'getMobile' + ]; + + /** + * 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['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['critType'] = isset($data['critType']) ? $data['critType'] : null; + $this->container['critCode'] = isset($data['critCode']) ? $data['critCode'] : null; + $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : 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 customerNo + * + * @return string + */ + public function getCustomerNo() + { + return $this->container['customerNo']; + } + + /** + * Sets customerNo + * + * @param string $customerNo 客户编号 + * + * @return $this + */ + public function setCustomerNo($customerNo) + { + $this->container['customerNo'] = $customerNo; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name 姓名 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets critType + * + * @return string + */ + public function getCritType() + { + return $this->container['critType']; + } + + /** + * Sets critType + * + * @param string $critType 证件类型 + * + * @return $this + */ + public function setCritType($critType) + { + $this->container['critType'] = $critType; + + return $this; + } + + /** + * Gets critCode + * + * @return string + */ + public function getCritCode() + { + return $this->container['critCode']; + } + + /** + * Sets critCode + * + * @param string $critCode 证件号码 + * + * @return $this + */ + public function setCritCode($critCode) + { + $this->container['critCode'] = $critCode; + + return $this; + } + + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->container['mobile']; + } + + /** + * Sets mobile + * + * @param string $mobile 联系电话 + * + * @return $this + */ + public function setMobile($mobile) + { + $this->container['mobile'] = $mobile; + + 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)); + } +} + + diff --git a/lib/Service/Insurance/Model/RealnameAuthRequest.php b/lib/Service/Insurance/Model/RealnameAuthRequest.php new file mode 100644 index 0000000..d93283d --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return RealnameAuthRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'realnameAuth'; + } + + +} diff --git a/lib/Service/Insurance/Model/RealnameAuthRequestMarshaller.php b/lib/Service/Insurance/Model/RealnameAuthRequestMarshaller.php new file mode 100644 index 0000000..9449340 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RealnameAuthRequestMarshaller::__init(); diff --git a/lib/Service/Insurance/Model/RealnameAuthResponse.php b/lib/Service/Insurance/Model/RealnameAuthResponse.php new file mode 100644 index 0000000..0a3b192 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RealnameAuthCommonInsurResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Insurance/Model/RealnameAuthResponseUnMarshaller.php b/lib/Service/Insurance/Model/RealnameAuthResponseUnMarshaller.php new file mode 100644 index 0000000..b55ee94 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameAuthResponseUnMarshaller.php @@ -0,0 +1,39 @@ +根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&支付宝&银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。

+ * + * OpenAPI spec version: 1.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\Insurance\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RealnameAuthTradingBackDataDTOParam Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RealnameAuthTradingBackDataDTOParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RealnameAuthTradingBackDataDTOParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'customerNo' => 'string', + 'validateResult' => 'string', + 'messageCode' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'customerNo' => null, + 'validateResult' => null, + 'messageCode' => null, + 'message' => 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 = [ + 'customerNo' => 'customerNo', + 'validateResult' => 'validateResult', + 'messageCode' => 'messageCode', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'customerNo' => 'setCustomerNo', + 'validateResult' => 'setValidateResult', + 'messageCode' => 'setMessageCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'customerNo' => 'getCustomerNo', + 'validateResult' => 'getValidateResult', + 'messageCode' => 'getMessageCode', + 'message' => 'getMessage' + ]; + + /** + * 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['customerNo'] = isset($data['customerNo']) ? $data['customerNo'] : null; + $this->container['validateResult'] = isset($data['validateResult']) ? $data['validateResult'] : null; + $this->container['messageCode'] = isset($data['messageCode']) ? $data['messageCode'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 customerNo + * + * @return string + */ + public function getCustomerNo() + { + return $this->container['customerNo']; + } + + /** + * Sets customerNo + * + * @param string $customerNo customerNo + * + * @return $this + */ + public function setCustomerNo($customerNo) + { + $this->container['customerNo'] = $customerNo; + + return $this; + } + + /** + * Gets validateResult + * + * @return string + */ + public function getValidateResult() + { + return $this->container['validateResult']; + } + + /** + * Sets validateResult + * + * @param string $validateResult validateResult + * + * @return $this + */ + public function setValidateResult($validateResult) + { + $this->container['validateResult'] = $validateResult; + + return $this; + } + + /** + * Gets messageCode + * + * @return string + */ + public function getMessageCode() + { + return $this->container['messageCode']; + } + + /** + * Sets messageCode + * + * @param string $messageCode messageCode + * + * @return $this + */ + public function setMessageCode($messageCode) + { + $this->container['messageCode'] = $messageCode; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/Insurance/Model/RealnameNotifyCommonNoticeResponseDTOResult.php b/lib/Service/Insurance/Model/RealnameNotifyCommonNoticeResponseDTOResult.php new file mode 100644 index 0000000..25ad02c --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameNotifyCommonNoticeResponseDTOResult.php @@ -0,0 +1,452 @@ +根据银保监会的文件要求,保险行业财产险公司的车险业务,用户在投保缴费(微信&支付宝&银行卡)之前,必须要完成支付人的实名验证,确保支付人与投保人一致才能缴费。目前实名认证存在四种模式,分别为:中保信模式、上海模式、深圳模式和江苏模式,其中中保信模式和上海模式要求支付机构与实名平台专线对接(已有专线),深圳和江苏是公网对接。因实名平台的接口仅支持有支付牌照的收单机构对接,所以部署一套单独的保险实名认证服务在易宝中台,支撑保险商户业务的正常进行。

+ * + * OpenAPI spec version: 1.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\Insurance\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RealnameNotifyCommonNoticeResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RealnameNotifyCommonNoticeResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RealnameNotifyCommonNoticeResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'msg' => 'string', + 'status' => 'string', + 'queryNo' => 'string', + 'amount' => 'string', + 'tradeNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'msg' => null, + 'status' => null, + 'queryNo' => null, + 'amount' => null, + 'tradeNo' => 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', + 'msg' => 'msg', + 'status' => 'status', + 'queryNo' => 'queryNo', + 'amount' => 'amount', + 'tradeNo' => 'tradeNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'msg' => 'setMsg', + 'status' => 'setStatus', + 'queryNo' => 'setQueryNo', + 'amount' => 'setAmount', + 'tradeNo' => 'setTradeNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'msg' => 'getMsg', + 'status' => 'getStatus', + 'queryNo' => 'getQueryNo', + 'amount' => 'getAmount', + 'tradeNo' => 'getTradeNo' + ]; + + /** + * 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['msg'] = isset($data['msg']) ? $data['msg'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['queryNo'] = isset($data['queryNo']) ? $data['queryNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['tradeNo'] = isset($data['tradeNo']) ? $data['tradeNo'] : 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 msg + * + * @return string + */ + public function getMsg() + { + return $this->container['msg']; + } + + /** + * Sets msg + * + * @param string $msg 未命名 + * + * @return $this + */ + public function setMsg($msg) + { + $this->container['msg'] = $msg; + + 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 queryNo + * + * @return string + */ + public function getQueryNo() + { + return $this->container['queryNo']; + } + + /** + * Sets queryNo + * + * @param string $queryNo 查询请求号 + * + * @return $this + */ + public function setQueryNo($queryNo) + { + $this->container['queryNo'] = $queryNo; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount 金额 + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets tradeNo + * + * @return string + */ + public function getTradeNo() + { + return $this->container['tradeNo']; + } + + /** + * Sets tradeNo + * + * @param string $tradeNo 交易流水号 + * + * @return $this + */ + public function setTradeNo($tradeNo) + { + $this->container['tradeNo'] = $tradeNo; + + 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)); + } +} + + diff --git a/lib/Service/Insurance/Model/RealnameNotifyRequest.php b/lib/Service/Insurance/Model/RealnameNotifyRequest.php new file mode 100644 index 0000000..4a83542 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameNotifyRequest.php @@ -0,0 +1,617 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RealnameNotifyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets queryNo + * + * @return string + */ + public function getQueryNo() + { + return $this->queryNo; + } + + /** + * Sets queryNo + * + * @param string $queryNo + * @return RealnameNotifyRequest + */ + public function setQueryNo($queryNo) + { + $this->queryNo = $queryNo; + return $this; + } + /** + * Gets customrNo + * + * @return string + */ + public function getCustomrNo() + { + return $this->customrNo; + } + + /** + * Sets customrNo + * + * @param string $customrNo + * @return RealnameNotifyRequest + */ + public function setCustomrNo($customrNo) + { + $this->customrNo = $customrNo; + return $this; + } + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->code; + } + + /** + * Sets code + * + * @param string $code + * @return RealnameNotifyRequest + */ + public function setCode($code) + { + $this->code = $code; + return $this; + } + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return RealnameNotifyRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->cardNo; + } + + /** + * Sets cardNo + * + * @param string $cardNo + * @return RealnameNotifyRequest + */ + public function setCardNo($cardNo) + { + $this->cardNo = $cardNo; + return $this; + } + /** + * Gets tradeNo + * + * @return string + */ + public function getTradeNo() + { + return $this->tradeNo; + } + + /** + * Sets tradeNo + * + * @param string $tradeNo + * @return RealnameNotifyRequest + */ + public function setTradeNo($tradeNo) + { + $this->tradeNo = $tradeNo; + return $this; + } + /** + * Gets date + * + * @return string + */ + public function getDate() + { + return $this->date; + } + + /** + * Sets date + * + * @param string $date + * @return RealnameNotifyRequest + */ + public function setDate($date) + { + $this->date = $date; + return $this; + } + /** + * Gets systemNo + * + * @return string + */ + public function getSystemNo() + { + return $this->systemNo; + } + + /** + * Sets systemNo + * + * @param string $systemNo + * @return RealnameNotifyRequest + */ + public function setSystemNo($systemNo) + { + $this->systemNo = $systemNo; + return $this; + } + /** + * Gets terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->terminalNo; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo + * @return RealnameNotifyRequest + */ + public function setTerminalNo($terminalNo) + { + $this->terminalNo = $terminalNo; + return $this; + } + /** + * Gets paNo + * + * @return string + */ + public function getPaNo() + { + return $this->paNo; + } + + /** + * Sets paNo + * + * @param string $paNo + * @return RealnameNotifyRequest + */ + public function setPaNo($paNo) + { + $this->paNo = $paNo; + return $this; + } + /** + * Gets validateSequenceNo + * + * @return string + */ + public function getValidateSequenceNo() + { + return $this->validateSequenceNo; + } + + /** + * Sets validateSequenceNo + * + * @param string $validateSequenceNo + * @return RealnameNotifyRequest + */ + public function setValidateSequenceNo($validateSequenceNo) + { + $this->validateSequenceNo = $validateSequenceNo; + return $this; + } + /** + * Gets requestType + * + * @return string + */ + public function getRequestType() + { + return $this->requestType; + } + + /** + * Sets requestType + * + * @param string $requestType + * @return RealnameNotifyRequest + */ + public function setRequestType($requestType) + { + $this->requestType = $requestType; + return $this; + } + /** + * Gets warrantBank + * + * @return string + */ + public function getWarrantBank() + { + return $this->warrantBank; + } + + /** + * Sets warrantBank + * + * @param string $warrantBank + * @return RealnameNotifyRequest + */ + public function setWarrantBank($warrantBank) + { + $this->warrantBank = $warrantBank; + return $this; + } + /** + * Gets aesKey + * + * @return string + */ + public function getAesKey() + { + return $this->aesKey; + } + + /** + * Sets aesKey + * + * @param string $aesKey + * @return RealnameNotifyRequest + */ + public function setAesKey($aesKey) + { + $this->aesKey = $aesKey; + return $this; + } + /** + * Gets user + * + * @return string + */ + public function getUser() + { + return $this->user; + } + + /** + * Sets user + * + * @param string $user + * @return RealnameNotifyRequest + */ + public function setUser($user) + { + $this->user = $user; + return $this; + } + /** + * Gets password + * + * @return string + */ + public function getPassword() + { + return $this->password; + } + + /** + * Sets password + * + * @param string $password + * @return RealnameNotifyRequest + */ + public function setPassword($password) + { + $this->password = $password; + return $this; + } + /** + * Gets prodId + * + * @return string + */ + public function getProdId() + { + return $this->prodId; + } + + /** + * Sets prodId + * + * @param string $prodId + * @return RealnameNotifyRequest + */ + public function setProdId($prodId) + { + $this->prodId = $prodId; + return $this; + } + /** + * Gets reqType + * + * @return string + */ + public function getReqType() + { + return $this->reqType; + } + + /** + * Sets reqType + * + * @param string $reqType + * @return RealnameNotifyRequest + */ + public function setReqType($reqType) + { + $this->reqType = $reqType; + return $this; + } + /** + * Gets sysId + * + * @return string + */ + public function getSysId() + { + return $this->sysId; + } + + /** + * Sets sysId + * + * @param string $sysId + * @return RealnameNotifyRequest + */ + public function setSysId($sysId) + { + $this->sysId = $sysId; + return $this; + } + /** + * Gets requestUrl + * + * @return string + */ + public function getRequestUrl() + { + return $this->requestUrl; + } + + /** + * Sets requestUrl + * + * @param string $requestUrl + * @return RealnameNotifyRequest + */ + public function setRequestUrl($requestUrl) + { + $this->requestUrl = $requestUrl; + return $this; + } + /** + * Gets macKey + * + * @return string + */ + public function getMacKey() + { + return $this->macKey; + } + + /** + * Sets macKey + * + * @param string $macKey + * @return RealnameNotifyRequest + */ + public function setMacKey($macKey) + { + $this->macKey = $macKey; + return $this; + } + /** + * Gets environment + * + * @return string + */ + public function getEnvironment() + { + return $this->environment; + } + + /** + * Sets environment + * + * @param string $environment + * @return RealnameNotifyRequest + */ + public function setEnvironment($environment) + { + $this->environment = $environment; + return $this; + } + /** + * Gets tpdu + * + * @return string + */ + public function getTpdu() + { + return $this->tpdu; + } + + /** + * Sets tpdu + * + * @param string $tpdu + * @return RealnameNotifyRequest + */ + public function setTpdu($tpdu) + { + $this->tpdu = $tpdu; + return $this; + } + + public static function getOperationId() + { + return 'realnameNotify'; + } + + +} diff --git a/lib/Service/Insurance/Model/RealnameNotifyRequestMarshaller.php b/lib/Service/Insurance/Model/RealnameNotifyRequestMarshaller.php new file mode 100644 index 0000000..8eac678 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameNotifyRequestMarshaller.php @@ -0,0 +1,149 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getQueryNo() != null){ + $internalRequest->addParameter('queryNo', ObjectSerializer::sanitizeForSerialization($request->getQueryNo(), 'string')); + } + if($request->getCustomrNo() != null){ + $internalRequest->addParameter('customrNo', ObjectSerializer::sanitizeForSerialization($request->getCustomrNo(), 'string')); + } + if($request->getCode() != null){ + $internalRequest->addParameter('code', ObjectSerializer::sanitizeForSerialization($request->getCode(), 'string')); + } + if($request->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getCardNo() != null){ + $internalRequest->addParameter('cardNo', ObjectSerializer::sanitizeForSerialization($request->getCardNo(), 'string')); + } + if($request->getTradeNo() != null){ + $internalRequest->addParameter('tradeNo', ObjectSerializer::sanitizeForSerialization($request->getTradeNo(), 'string')); + } + if($request->getDate() != null){ + $internalRequest->addParameter('date', ObjectSerializer::sanitizeForSerialization($request->getDate(), 'string')); + } + if($request->getSystemNo() != null){ + $internalRequest->addParameter('systemNo', ObjectSerializer::sanitizeForSerialization($request->getSystemNo(), 'string')); + } + if($request->getTerminalNo() != null){ + $internalRequest->addParameter('terminalNo', ObjectSerializer::sanitizeForSerialization($request->getTerminalNo(), 'string')); + } + if($request->getPaNo() != null){ + $internalRequest->addParameter('paNo', ObjectSerializer::sanitizeForSerialization($request->getPaNo(), 'string')); + } + if($request->getValidateSequenceNo() != null){ + $internalRequest->addParameter('validateSequenceNo', ObjectSerializer::sanitizeForSerialization($request->getValidateSequenceNo(), 'string')); + } + if($request->getRequestType() != null){ + $internalRequest->addParameter('requestType', ObjectSerializer::sanitizeForSerialization($request->getRequestType(), 'string')); + } + if($request->getWarrantBank() != null){ + $internalRequest->addParameter('warrantBank', ObjectSerializer::sanitizeForSerialization($request->getWarrantBank(), 'string')); + } + if($request->getAesKey() != null){ + $internalRequest->addParameter('aesKey', ObjectSerializer::sanitizeForSerialization($request->getAesKey(), 'string')); + } + if($request->getUser() != null){ + $internalRequest->addParameter('user', ObjectSerializer::sanitizeForSerialization($request->getUser(), 'string')); + } + if($request->getPassword() != null){ + $internalRequest->addParameter('password', ObjectSerializer::sanitizeForSerialization($request->getPassword(), 'string')); + } + if($request->getProdId() != null){ + $internalRequest->addParameter('prodId', ObjectSerializer::sanitizeForSerialization($request->getProdId(), 'string')); + } + if($request->getReqType() != null){ + $internalRequest->addParameter('reqType', ObjectSerializer::sanitizeForSerialization($request->getReqType(), 'string')); + } + if($request->getSysId() != null){ + $internalRequest->addParameter('sysId', ObjectSerializer::sanitizeForSerialization($request->getSysId(), 'string')); + } + if($request->getRequestUrl() != null){ + $internalRequest->addParameter('requestUrl', ObjectSerializer::sanitizeForSerialization($request->getRequestUrl(), 'string')); + } + if($request->getMacKey() != null){ + $internalRequest->addParameter('macKey', ObjectSerializer::sanitizeForSerialization($request->getMacKey(), 'string')); + } + if($request->getEnvironment() != null){ + $internalRequest->addParameter('environment', ObjectSerializer::sanitizeForSerialization($request->getEnvironment(), 'string')); + } + if($request->getTpdu() != null){ + $internalRequest->addParameter('tpdu', ObjectSerializer::sanitizeForSerialization($request->getTpdu(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RealnameNotifyRequestMarshaller::__init(); diff --git a/lib/Service/Insurance/Model/RealnameNotifyResponse.php b/lib/Service/Insurance/Model/RealnameNotifyResponse.php new file mode 100644 index 0000000..589351a --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameNotifyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RealnameNotifyCommonNoticeResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Insurance/Model/RealnameNotifyResponseUnMarshaller.php b/lib/Service/Insurance/Model/RealnameNotifyResponseUnMarshaller.php new file mode 100644 index 0000000..4b75b03 --- /dev/null +++ b/lib/Service/Insurance/Model/RealnameNotifyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\ApplyRequest $request + * @return Model\ApplyResponse + * @throws YopClientException + */ + public function apply(Model\ApplyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\ApplyRequestMarshaller::getInstance(), + Model\ApplyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\FeeQueryRequest $request + * @return Model\FeeQueryResponse + * @throws YopClientException + */ + public function feeQuery(Model\FeeQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + if ($request->getChargingDateStart() == null) { + throw new YopClientException("request.chargingDateStart is required."); + } + if ($request->getChargingDateEnd() == null) { + throw new YopClientException("request.chargingDateEnd is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\FeeQueryRequestMarshaller::getInstance(), + Model\FeeQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\InfoModifyRequest $request + * @return Model\InfoModifyResponse + * @throws YopClientException + */ + public function infoModify(Model\InfoModifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\InfoModifyRequestMarshaller::getInstance(), + Model\InfoModifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\InfoQueryRequest $request + * @return Model\InfoQueryResponse + * @throws YopClientException + */ + public function infoQuery(Model\InfoQueryRequest $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\InfoQueryRequestMarshaller::getInstance(), + Model\InfoQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RecordQueryRequest $request + * @return Model\RecordQueryResponse + * @throws YopClientException + */ + public function recordQuery(Model\RecordQueryRequest $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\RecordQueryRequestMarshaller::getInstance(), + Model\RecordQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Invoice/InvoiceClientBuilder.php b/lib/Service/Invoice/InvoiceClientBuilder.php new file mode 100644 index 0000000..fec3900 --- /dev/null +++ b/lib/Service/Invoice/InvoiceClientBuilder.php @@ -0,0 +1,72 @@ +register('apply', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('feeQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('infoModify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('infoQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('recordQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * InvoiceClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new InvoiceClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return InvoiceClientBuilder + * @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 InvoiceClientBuilder($clientParams); + } + +} +InvoiceClientBuilder::__init(); diff --git a/lib/Service/Invoice/Model/ApplyApplyInvoiceYOPResponseDtoResult.php b/lib/Service/Invoice/Model/ApplyApplyInvoiceYOPResponseDtoResult.php new file mode 100644 index 0000000..6909705 --- /dev/null +++ b/lib/Service/Invoice/Model/ApplyApplyInvoiceYOPResponseDtoResult.php @@ -0,0 +1,662 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ApplyApplyInvoiceYOPResponseDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ApplyApplyInvoiceYOPResponseDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ApplyApplyInvoiceYOPResponseDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'merchantNo' => 'string', + 'customerRequestNo' => 'string', + 'code' => 'string', + 'message' => 'string', + 'status' => 'string', + 'createDate' => 'string', + 'chargingDateStart' => 'string', + 'chargingDateEnd' => 'string', + 'chargingMode' => 'string', + 'invoiceForm' => 'string', + 'amount' => 'float', + 'notifyType' => 'string', + 'issueInvoiceDtoList' => '\Yeepay\Yop\Sdk\Service\Invoice\Model\ApplyIssueInvoiceDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'customerRequestNo' => null, + 'code' => null, + 'message' => null, + 'status' => null, + 'createDate' => 'date-time', + 'chargingDateStart' => 'date-time', + 'chargingDateEnd' => 'date-time', + 'chargingMode' => null, + 'invoiceForm' => null, + 'amount' => null, + 'notifyType' => null, + 'issueInvoiceDtoList' => 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 = [ + 'merchantNo' => 'merchantNo', + 'customerRequestNo' => 'customerRequestNo', + 'code' => 'code', + 'message' => 'message', + 'status' => 'status', + 'createDate' => 'createDate', + 'chargingDateStart' => 'chargingDateStart', + 'chargingDateEnd' => 'chargingDateEnd', + 'chargingMode' => 'chargingMode', + 'invoiceForm' => 'invoiceForm', + 'amount' => 'amount', + 'notifyType' => 'notifyType', + 'issueInvoiceDtoList' => 'issueInvoiceDtoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'customerRequestNo' => 'setCustomerRequestNo', + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus', + 'createDate' => 'setCreateDate', + 'chargingDateStart' => 'setChargingDateStart', + 'chargingDateEnd' => 'setChargingDateEnd', + 'chargingMode' => 'setChargingMode', + 'invoiceForm' => 'setInvoiceForm', + 'amount' => 'setAmount', + 'notifyType' => 'setNotifyType', + 'issueInvoiceDtoList' => 'setIssueInvoiceDtoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'customerRequestNo' => 'getCustomerRequestNo', + 'code' => 'getCode', + 'message' => 'getMessage', + 'status' => 'getStatus', + 'createDate' => 'getCreateDate', + 'chargingDateStart' => 'getChargingDateStart', + 'chargingDateEnd' => 'getChargingDateEnd', + 'chargingMode' => 'getChargingMode', + 'invoiceForm' => 'getInvoiceForm', + 'amount' => 'getAmount', + 'notifyType' => 'getNotifyType', + 'issueInvoiceDtoList' => 'getIssueInvoiceDtoList' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['customerRequestNo'] = isset($data['customerRequestNo']) ? $data['customerRequestNo'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['createDate'] = isset($data['createDate']) ? $data['createDate'] : null; + $this->container['chargingDateStart'] = isset($data['chargingDateStart']) ? $data['chargingDateStart'] : null; + $this->container['chargingDateEnd'] = isset($data['chargingDateEnd']) ? $data['chargingDateEnd'] : null; + $this->container['chargingMode'] = isset($data['chargingMode']) ? $data['chargingMode'] : null; + $this->container['invoiceForm'] = isset($data['invoiceForm']) ? $data['invoiceForm'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['notifyType'] = isset($data['notifyType']) ? $data['notifyType'] : null; + $this->container['issueInvoiceDtoList'] = isset($data['issueInvoiceDtoList']) ? $data['issueInvoiceDtoList'] : 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 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 customerRequestNo + * + * @return string + */ + public function getCustomerRequestNo() + { + return $this->container['customerRequestNo']; + } + + /** + * Sets customerRequestNo + * + * @param string $customerRequestNo 请求号 + * + * @return $this + */ + public function setCustomerRequestNo($customerRequestNo) + { + $this->container['customerRequestNo'] = $customerRequestNo; + + return $this; + } + + /** + * 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 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 createDate + * + * @return string + */ + public function getCreateDate() + { + return $this->container['createDate']; + } + + /** + * Sets createDate + * + * @param string $createDate 申请时间 + * + * @return $this + */ + public function setCreateDate($createDate) + { + $this->container['createDate'] = $createDate; + + return $this; + } + + /** + * Gets chargingDateStart + * + * @return string + */ + public function getChargingDateStart() + { + return $this->container['chargingDateStart']; + } + + /** + * Sets chargingDateStart + * + * @param string $chargingDateStart 收费开始时间 + * + * @return $this + */ + public function setChargingDateStart($chargingDateStart) + { + $this->container['chargingDateStart'] = $chargingDateStart; + + return $this; + } + + /** + * Gets chargingDateEnd + * + * @return string + */ + public function getChargingDateEnd() + { + return $this->container['chargingDateEnd']; + } + + /** + * Sets chargingDateEnd + * + * @param string $chargingDateEnd 收费结束时间 + * + * @return $this + */ + public function setChargingDateEnd($chargingDateEnd) + { + $this->container['chargingDateEnd'] = $chargingDateEnd; + + return $this; + } + + /** + * Gets chargingMode + * + * @return string + */ + public function getChargingMode() + { + return $this->container['chargingMode']; + } + + /** + * Sets chargingMode + * + * @param string $chargingMode 计费模式 + * + * @return $this + */ + public function setChargingMode($chargingMode) + { + $this->container['chargingMode'] = $chargingMode; + + return $this; + } + + /** + * Gets invoiceForm + * + * @return string + */ + public function getInvoiceForm() + { + return $this->container['invoiceForm']; + } + + /** + * Sets invoiceForm + * + * @param string $invoiceForm 发票形式 + * + * @return $this + */ + public function setInvoiceForm($invoiceForm) + { + $this->container['invoiceForm'] = $invoiceForm; + + 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 notifyType + * + * @return string + */ + public function getNotifyType() + { + return $this->container['notifyType']; + } + + /** + * Sets notifyType + * + * @param string $notifyType 通知类型 + * + * @return $this + */ + public function setNotifyType($notifyType) + { + $this->container['notifyType'] = $notifyType; + + return $this; + } + + /** + * Gets issueInvoiceDtoList + * + * @return \Yeepay\Yop\Sdk\Service\Invoice\Model\ApplyIssueInvoiceDtoResult[] + */ + public function getIssueInvoiceDtoList() + { + return $this->container['issueInvoiceDtoList']; + } + + /** + * Sets issueInvoiceDtoList + * + * @param \Yeepay\Yop\Sdk\Service\Invoice\Model\ApplyIssueInvoiceDtoResult[] $issueInvoiceDtoList 开票记录列表 + * + * @return $this + */ + public function setIssueInvoiceDtoList($issueInvoiceDtoList) + { + $this->container['issueInvoiceDtoList'] = $issueInvoiceDtoList; + + 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/ApplyIssueInvoiceDtoResult.php b/lib/Service/Invoice/Model/ApplyIssueInvoiceDtoResult.php new file mode 100644 index 0000000..00be3b4 --- /dev/null +++ b/lib/Service/Invoice/Model/ApplyIssueInvoiceDtoResult.php @@ -0,0 +1,512 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * ApplyIssueInvoiceDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class ApplyIssueInvoiceDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'ApplyIssueInvoiceDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'totalPriceTax' => 'float', + 'invoiceStatus' => 'string', + 'isExpress' => 'string', + 'pdfUrl' => 'string', + 'pdfUrlCh' => 'string', + 'log' => 'string', + 'expressCompany' => 'string', + 'expressNumber' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'totalPriceTax' => null, + 'invoiceStatus' => null, + 'isExpress' => null, + 'pdfUrl' => null, + 'pdfUrlCh' => null, + 'log' => null, + 'expressCompany' => null, + 'expressNumber' => 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 = [ + 'totalPriceTax' => 'totalPriceTax', + 'invoiceStatus' => 'invoiceStatus', + 'isExpress' => 'isExpress', + 'pdfUrl' => 'pdfUrl', + 'pdfUrlCh' => 'pdfUrlCh', + 'log' => 'log', + 'expressCompany' => 'expressCompany', + 'expressNumber' => 'expressNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'totalPriceTax' => 'setTotalPriceTax', + 'invoiceStatus' => 'setInvoiceStatus', + 'isExpress' => 'setIsExpress', + 'pdfUrl' => 'setPdfUrl', + 'pdfUrlCh' => 'setPdfUrlCh', + 'log' => 'setLog', + 'expressCompany' => 'setExpressCompany', + 'expressNumber' => 'setExpressNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'totalPriceTax' => 'getTotalPriceTax', + 'invoiceStatus' => 'getInvoiceStatus', + 'isExpress' => 'getIsExpress', + 'pdfUrl' => 'getPdfUrl', + 'pdfUrlCh' => 'getPdfUrlCh', + 'log' => 'getLog', + 'expressCompany' => 'getExpressCompany', + 'expressNumber' => 'getExpressNumber' + ]; + + /** + * 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['totalPriceTax'] = isset($data['totalPriceTax']) ? $data['totalPriceTax'] : null; + $this->container['invoiceStatus'] = isset($data['invoiceStatus']) ? $data['invoiceStatus'] : null; + $this->container['isExpress'] = isset($data['isExpress']) ? $data['isExpress'] : null; + $this->container['pdfUrl'] = isset($data['pdfUrl']) ? $data['pdfUrl'] : null; + $this->container['pdfUrlCh'] = isset($data['pdfUrlCh']) ? $data['pdfUrlCh'] : null; + $this->container['log'] = isset($data['log']) ? $data['log'] : null; + $this->container['expressCompany'] = isset($data['expressCompany']) ? $data['expressCompany'] : null; + $this->container['expressNumber'] = isset($data['expressNumber']) ? $data['expressNumber'] : 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 totalPriceTax + * + * @return float + */ + public function getTotalPriceTax() + { + return $this->container['totalPriceTax']; + } + + /** + * Sets totalPriceTax + * + * @param float $totalPriceTax 手续费 + * + * @return $this + */ + public function setTotalPriceTax($totalPriceTax) + { + $this->container['totalPriceTax'] = $totalPriceTax; + + return $this; + } + + /** + * Gets invoiceStatus + * + * @return string + */ + public function getInvoiceStatus() + { + return $this->container['invoiceStatus']; + } + + /** + * Sets invoiceStatus + * + * @param string $invoiceStatus 开票状态 + * + * @return $this + */ + public function setInvoiceStatus($invoiceStatus) + { + $this->container['invoiceStatus'] = $invoiceStatus; + + return $this; + } + + /** + * Gets isExpress + * + * @return string + */ + public function getIsExpress() + { + return $this->container['isExpress']; + } + + /** + * Sets isExpress + * + * @param string $isExpress 是否邮寄 + * + * @return $this + */ + public function setIsExpress($isExpress) + { + $this->container['isExpress'] = $isExpress; + + return $this; + } + + /** + * Gets pdfUrl + * + * @return string + */ + public function getPdfUrl() + { + return $this->container['pdfUrl']; + } + + /** + * Sets pdfUrl + * + * @param string $pdfUrl 已开发票地址 + * + * @return $this + */ + public function setPdfUrl($pdfUrl) + { + $this->container['pdfUrl'] = $pdfUrl; + + return $this; + } + + /** + * Gets pdfUrlCh + * + * @return string + */ + public function getPdfUrlCh() + { + return $this->container['pdfUrlCh']; + } + + /** + * Sets pdfUrlCh + * + * @param string $pdfUrlCh 冲红发票地址 + * + * @return $this + */ + public function setPdfUrlCh($pdfUrlCh) + { + $this->container['pdfUrlCh'] = $pdfUrlCh; + + return $this; + } + + /** + * Gets log + * + * @return string + */ + public function getLog() + { + return $this->container['log']; + } + + /** + * Sets log + * + * @param string $log 失败原因 + * + * @return $this + */ + public function setLog($log) + { + $this->container['log'] = $log; + + return $this; + } + + /** + * Gets expressCompany + * + * @return string + */ + public function getExpressCompany() + { + return $this->container['expressCompany']; + } + + /** + * Sets expressCompany + * + * @param string $expressCompany 快递公司 + * + * @return $this + */ + public function setExpressCompany($expressCompany) + { + $this->container['expressCompany'] = $expressCompany; + + return $this; + } + + /** + * Gets expressNumber + * + * @return string + */ + public function getExpressNumber() + { + return $this->container['expressNumber']; + } + + /** + * Sets expressNumber + * + * @param string $expressNumber 快递单号 + * + * @return $this + */ + public function setExpressNumber($expressNumber) + { + $this->container['expressNumber'] = $expressNumber; + + 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/ApplyRequest.php b/lib/Service/Invoice/Model/ApplyRequest.php new file mode 100644 index 0000000..18404df --- /dev/null +++ b/lib/Service/Invoice/Model/ApplyRequest.php @@ -0,0 +1,167 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return ApplyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets customerRequestNo + * + * @return string + */ + public function getCustomerRequestNo() + { + return $this->customerRequestNo; + } + + /** + * Sets customerRequestNo + * + * @param string $customerRequestNo + * @return ApplyRequest + */ + public function setCustomerRequestNo($customerRequestNo) + { + $this->customerRequestNo = $customerRequestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ApplyRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets chargingDateStart + * + * @return string + */ + public function getChargingDateStart() + { + return $this->chargingDateStart; + } + + /** + * Sets chargingDateStart + * + * @param string $chargingDateStart + * @return ApplyRequest + */ + public function setChargingDateStart($chargingDateStart) + { + $this->chargingDateStart = $chargingDateStart; + return $this; + } + /** + * Gets chargingDateEnd + * + * @return string + */ + public function getChargingDateEnd() + { + return $this->chargingDateEnd; + } + + /** + * Sets chargingDateEnd + * + * @param string $chargingDateEnd + * @return ApplyRequest + */ + public function setChargingDateEnd($chargingDateEnd) + { + $this->chargingDateEnd = $chargingDateEnd; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return ApplyRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'apply'; + } + + +} diff --git a/lib/Service/Invoice/Model/ApplyRequestMarshaller.php b/lib/Service/Invoice/Model/ApplyRequestMarshaller.php new file mode 100644 index 0000000..efb674c --- /dev/null +++ b/lib/Service/Invoice/Model/ApplyRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getCustomerRequestNo() != null){ + $internalRequest->addParameter('customerRequestNo', ObjectSerializer::sanitizeForSerialization($request->getCustomerRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getChargingDateStart() != null){ + $internalRequest->addParameter('chargingDateStart', ObjectSerializer::sanitizeForSerialization($request->getChargingDateStart(), 'string', 'date-time')); + } + if($request->getChargingDateEnd() != null){ + $internalRequest->addParameter('chargingDateEnd', ObjectSerializer::sanitizeForSerialization($request->getChargingDateEnd(), 'string', 'date-time')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ApplyRequestMarshaller::__init(); diff --git a/lib/Service/Invoice/Model/ApplyResponse.php b/lib/Service/Invoice/Model/ApplyResponse.php new file mode 100644 index 0000000..16186e7 --- /dev/null +++ b/lib/Service/Invoice/Model/ApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ApplyApplyInvoiceYOPResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Invoice/Model/ApplyResponseUnMarshaller.php b/lib/Service/Invoice/Model/ApplyResponseUnMarshaller.php new file mode 100644 index 0000000..2e8916a --- /dev/null +++ b/lib/Service/Invoice/Model/ApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * FeeQueryGetFeeResponseDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class FeeQueryGetFeeResponseDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'FeeQueryGetFeeResponseDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'merchantNo' => 'string', + 'chargingDateStart' => 'string', + 'chargingDateEnd' => 'string', + 'amount' => 'float', + 'code' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'chargingDateStart' => 'date-time', + 'chargingDateEnd' => 'date-time', + 'amount' => null, + 'code' => null, + 'message' => 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 = [ + 'merchantNo' => 'merchantNo', + 'chargingDateStart' => 'chargingDateStart', + 'chargingDateEnd' => 'chargingDateEnd', + 'amount' => 'amount', + 'code' => 'code', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'chargingDateStart' => 'setChargingDateStart', + 'chargingDateEnd' => 'setChargingDateEnd', + 'amount' => 'setAmount', + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'chargingDateStart' => 'getChargingDateStart', + 'chargingDateEnd' => 'getChargingDateEnd', + 'amount' => 'getAmount', + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['chargingDateStart'] = isset($data['chargingDateStart']) ? $data['chargingDateStart'] : null; + $this->container['chargingDateEnd'] = isset($data['chargingDateEnd']) ? $data['chargingDateEnd'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 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 chargingDateStart + * + * @return string + */ + public function getChargingDateStart() + { + return $this->container['chargingDateStart']; + } + + /** + * Sets chargingDateStart + * + * @param string $chargingDateStart 收费开始日期 + * + * @return $this + */ + public function setChargingDateStart($chargingDateStart) + { + $this->container['chargingDateStart'] = $chargingDateStart; + + return $this; + } + + /** + * Gets chargingDateEnd + * + * @return string + */ + public function getChargingDateEnd() + { + return $this->container['chargingDateEnd']; + } + + /** + * Sets chargingDateEnd + * + * @param string $chargingDateEnd 收费结束日期 + * + * @return $this + */ + public function setChargingDateEnd($chargingDateEnd) + { + $this->container['chargingDateEnd'] = $chargingDateEnd; + + 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/FeeQueryRequest.php b/lib/Service/Invoice/Model/FeeQueryRequest.php new file mode 100644 index 0000000..8042758 --- /dev/null +++ b/lib/Service/Invoice/Model/FeeQueryRequest.php @@ -0,0 +1,117 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return FeeQueryRequest + */ + 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 FeeQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets chargingDateStart + * + * @return string + */ + public function getChargingDateStart() + { + return $this->chargingDateStart; + } + + /** + * Sets chargingDateStart + * + * @param string $chargingDateStart + * @return FeeQueryRequest + */ + public function setChargingDateStart($chargingDateStart) + { + $this->chargingDateStart = $chargingDateStart; + return $this; + } + /** + * Gets chargingDateEnd + * + * @return string + */ + public function getChargingDateEnd() + { + return $this->chargingDateEnd; + } + + /** + * Sets chargingDateEnd + * + * @param string $chargingDateEnd + * @return FeeQueryRequest + */ + public function setChargingDateEnd($chargingDateEnd) + { + $this->chargingDateEnd = $chargingDateEnd; + return $this; + } + + public static function getOperationId() + { + return 'feeQuery'; + } + + +} diff --git a/lib/Service/Invoice/Model/FeeQueryRequestMarshaller.php b/lib/Service/Invoice/Model/FeeQueryRequestMarshaller.php new file mode 100644 index 0000000..3fcf701 --- /dev/null +++ b/lib/Service/Invoice/Model/FeeQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getChargingDateStart() != null){ + $internalRequest->addParameter('chargingDateStart', ObjectSerializer::sanitizeForSerialization($request->getChargingDateStart(), 'string', 'date-time')); + } + if($request->getChargingDateEnd() != null){ + $internalRequest->addParameter('chargingDateEnd', ObjectSerializer::sanitizeForSerialization($request->getChargingDateEnd(), 'string', 'date-time')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FeeQueryRequestMarshaller::__init(); diff --git a/lib/Service/Invoice/Model/FeeQueryResponse.php b/lib/Service/Invoice/Model/FeeQueryResponse.php new file mode 100644 index 0000000..4e624ec --- /dev/null +++ b/lib/Service/Invoice/Model/FeeQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FeeQueryGetFeeResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Invoice/Model/FeeQueryResponseUnMarshaller.php b/lib/Service/Invoice/Model/FeeQueryResponseUnMarshaller.php new file mode 100644 index 0000000..1c71a67 --- /dev/null +++ b/lib/Service/Invoice/Model/FeeQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InfoModifyAddOrModifyInvoiceInfoResponseDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InfoModifyAddOrModifyInvoiceInfoResponseDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InfoModifyAddOrModifyInvoiceInfoResponseDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'merchantNo' => 'string', + 'customerRequestNo' => 'string', + 'code' => 'string', + 'message' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'customerRequestNo' => null, + 'code' => null, + 'message' => 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 = [ + 'merchantNo' => 'merchantNo', + 'customerRequestNo' => 'customerRequestNo', + 'code' => 'code', + 'message' => 'message', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'customerRequestNo' => 'setCustomerRequestNo', + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'customerRequestNo' => 'getCustomerRequestNo', + 'code' => 'getCode', + 'message' => 'getMessage', + '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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['customerRequestNo'] = isset($data['customerRequestNo']) ? $data['customerRequestNo'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 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 customerRequestNo + * + * @return string + */ + public function getCustomerRequestNo() + { + return $this->container['customerRequestNo']; + } + + /** + * Sets customerRequestNo + * + * @param string $customerRequestNo 请求号 + * + * @return $this + */ + public function setCustomerRequestNo($customerRequestNo) + { + $this->container['customerRequestNo'] = $customerRequestNo; + + return $this; + } + + /** + * 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 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/InfoModifyRequest.php b/lib/Service/Invoice/Model/InfoModifyRequest.php new file mode 100644 index 0000000..1c94478 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoModifyRequest.php @@ -0,0 +1,517 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return InfoModifyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets customerRequestNo + * + * @return string + */ + public function getCustomerRequestNo() + { + return $this->customerRequestNo; + } + + /** + * Sets customerRequestNo + * + * @param string $customerRequestNo + * @return InfoModifyRequest + */ + public function setCustomerRequestNo($customerRequestNo) + { + $this->customerRequestNo = $customerRequestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return InfoModifyRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets mode + * + * @return string + */ + public function getMode() + { + return $this->mode; + } + + /** + * Sets mode + * + * @param string $mode + * @return InfoModifyRequest + */ + public function setMode($mode) + { + $this->mode = $mode; + return $this; + } + /** + * Gets invoiceType + * + * @return string + */ + public function getInvoiceType() + { + return $this->invoiceType; + } + + /** + * Sets invoiceType + * + * @param string $invoiceType + * @return InfoModifyRequest + */ + public function setInvoiceType($invoiceType) + { + $this->invoiceType = $invoiceType; + return $this; + } + /** + * Gets invoiceForm + * + * @return string + */ + public function getInvoiceForm() + { + return $this->invoiceForm; + } + + /** + * Sets invoiceForm + * + * @param string $invoiceForm + * @return InfoModifyRequest + */ + public function setInvoiceForm($invoiceForm) + { + $this->invoiceForm = $invoiceForm; + return $this; + } + /** + * Gets linkman + * + * @return string + */ + public function getLinkman() + { + return $this->linkman; + } + + /** + * Sets linkman + * + * @param string $linkman + * @return InfoModifyRequest + */ + public function setLinkman($linkman) + { + $this->linkman = $linkman; + return $this; + } + /** + * Gets linkmanPhone + * + * @return string + */ + public function getLinkmanPhone() + { + return $this->linkmanPhone; + } + + /** + * Sets linkmanPhone + * + * @param string $linkmanPhone + * @return InfoModifyRequest + */ + public function setLinkmanPhone($linkmanPhone) + { + $this->linkmanPhone = $linkmanPhone; + return $this; + } + /** + * Gets postalAddress + * + * @return string + */ + public function getPostalAddress() + { + return $this->postalAddress; + } + + /** + * Sets postalAddress + * + * @param string $postalAddress + * @return InfoModifyRequest + */ + public function setPostalAddress($postalAddress) + { + $this->postalAddress = $postalAddress; + return $this; + } + /** + * Gets postalCode + * + * @return string + */ + public function getPostalCode() + { + return $this->postalCode; + } + + /** + * Sets postalCode + * + * @param string $postalCode + * @return InfoModifyRequest + */ + public function setPostalCode($postalCode) + { + $this->postalCode = $postalCode; + return $this; + } + /** + * Gets taxpayerId + * + * @return string + */ + public function getTaxpayerId() + { + return $this->taxpayerId; + } + + /** + * Sets taxpayerId + * + * @param string $taxpayerId + * @return InfoModifyRequest + */ + public function setTaxpayerId($taxpayerId) + { + $this->taxpayerId = $taxpayerId; + return $this; + } + /** + * Gets invoicePhone + * + * @return string + */ + public function getInvoicePhone() + { + return $this->invoicePhone; + } + + /** + * Sets invoicePhone + * + * @param string $invoicePhone + * @return InfoModifyRequest + */ + public function setInvoicePhone($invoicePhone) + { + $this->invoicePhone = $invoicePhone; + return $this; + } + /** + * Gets invoiceAddress + * + * @return string + */ + public function getInvoiceAddress() + { + return $this->invoiceAddress; + } + + /** + * Sets invoiceAddress + * + * @param string $invoiceAddress + * @return InfoModifyRequest + */ + public function setInvoiceAddress($invoiceAddress) + { + $this->invoiceAddress = $invoiceAddress; + return $this; + } + /** + * Gets bankName + * + * @return string + */ + public function getBankName() + { + return $this->bankName; + } + + /** + * Sets bankName + * + * @param string $bankName + * @return InfoModifyRequest + */ + public function setBankName($bankName) + { + $this->bankName = $bankName; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return InfoModifyRequest + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets email + * + * @return string + */ + public function getEmail() + { + return $this->email; + } + + /** + * Sets email + * + * @param string $email + * @return InfoModifyRequest + */ + public function setEmail($email) + { + $this->email = $email; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return InfoModifyRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets standardType + * + * @return string + */ + public function getStandardType() + { + return $this->standardType; + } + + /** + * Sets standardType + * + * @param string $standardType + * @return InfoModifyRequest + */ + public function setStandardType($standardType) + { + $this->standardType = $standardType; + return $this; + } + /** + * Gets unit + * + * @return string + */ + public function getUnit() + { + return $this->unit; + } + + /** + * Sets unit + * + * @param string $unit + * @return InfoModifyRequest + */ + public function setUnit($unit) + { + $this->unit = $unit; + return $this; + } + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->quantity; + } + + /** + * Sets quantity + * + * @param int $quantity + * @return InfoModifyRequest + */ + public function setQuantity($quantity) + { + $this->quantity = $quantity; + return $this; + } + + public static function getOperationId() + { + return 'infoModify'; + } + + +} diff --git a/lib/Service/Invoice/Model/InfoModifyRequestMarshaller.php b/lib/Service/Invoice/Model/InfoModifyRequestMarshaller.php new file mode 100644 index 0000000..1ac379d --- /dev/null +++ b/lib/Service/Invoice/Model/InfoModifyRequestMarshaller.php @@ -0,0 +1,137 @@ +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->getCustomerRequestNo() != null){ + $internalRequest->addParameter('customerRequestNo', ObjectSerializer::sanitizeForSerialization($request->getCustomerRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMode() != null){ + $internalRequest->addParameter('mode', ObjectSerializer::sanitizeForSerialization($request->getMode(), 'string')); + } + if($request->getInvoiceType() != null){ + $internalRequest->addParameter('invoiceType', ObjectSerializer::sanitizeForSerialization($request->getInvoiceType(), 'string')); + } + if($request->getInvoiceForm() != null){ + $internalRequest->addParameter('invoiceForm', ObjectSerializer::sanitizeForSerialization($request->getInvoiceForm(), 'string')); + } + if($request->getLinkman() != null){ + $internalRequest->addParameter('linkman', ObjectSerializer::sanitizeForSerialization($request->getLinkman(), 'string')); + } + if($request->getLinkmanPhone() != null){ + $internalRequest->addParameter('linkmanPhone', ObjectSerializer::sanitizeForSerialization($request->getLinkmanPhone(), 'string')); + } + if($request->getPostalAddress() != null){ + $internalRequest->addParameter('postalAddress', ObjectSerializer::sanitizeForSerialization($request->getPostalAddress(), 'string')); + } + if($request->getPostalCode() != null){ + $internalRequest->addParameter('postalCode', ObjectSerializer::sanitizeForSerialization($request->getPostalCode(), 'string')); + } + if($request->getTaxpayerId() != null){ + $internalRequest->addParameter('taxpayerId', ObjectSerializer::sanitizeForSerialization($request->getTaxpayerId(), 'string')); + } + if($request->getInvoicePhone() != null){ + $internalRequest->addParameter('invoicePhone', ObjectSerializer::sanitizeForSerialization($request->getInvoicePhone(), 'string')); + } + if($request->getInvoiceAddress() != null){ + $internalRequest->addParameter('invoiceAddress', ObjectSerializer::sanitizeForSerialization($request->getInvoiceAddress(), 'string')); + } + if($request->getBankName() != null){ + $internalRequest->addParameter('bankName', ObjectSerializer::sanitizeForSerialization($request->getBankName(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getEmail() != null){ + $internalRequest->addParameter('email', ObjectSerializer::sanitizeForSerialization($request->getEmail(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getStandardType() != null){ + $internalRequest->addParameter('standardType', ObjectSerializer::sanitizeForSerialization($request->getStandardType(), 'string')); + } + if($request->getUnit() != null){ + $internalRequest->addParameter('unit', ObjectSerializer::sanitizeForSerialization($request->getUnit(), 'string')); + } + if($request->getQuantity() != null){ + $internalRequest->addParameter('quantity', ObjectSerializer::sanitizeForSerialization($request->getQuantity(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +InfoModifyRequestMarshaller::__init(); diff --git a/lib/Service/Invoice/Model/InfoModifyResponse.php b/lib/Service/Invoice/Model/InfoModifyResponse.php new file mode 100644 index 0000000..5b43383 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoModifyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return InfoModifyAddOrModifyInvoiceInfoResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Invoice/Model/InfoModifyResponseUnMarshaller.php b/lib/Service/Invoice/Model/InfoModifyResponseUnMarshaller.php new file mode 100644 index 0000000..b5831e1 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoModifyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InfoQueryQueryInvoiceInfoYOPResponseDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InfoQueryQueryInvoiceInfoYOPResponseDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InfoQueryQueryInvoiceInfoYOPResponseDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'mode' => 'string', + 'invoiceType' => 'string', + 'invoiceForm' => 'string', + 'linkman' => 'string', + 'linkmanPhone' => 'string', + 'postalAddress' => 'string', + 'postalCode' => 'string', + 'invoiceName' => 'string', + 'taxpayerId' => 'string', + 'invoicePhone' => 'string', + 'invoiceAddress' => 'string', + 'bankName' => 'string', + 'accountNo' => 'string', + 'email' => 'string', + 'needInvoice' => 'string', + 'createTime' => 'string', + 'lastModifyTime' => 'string', + 'remark' => 'string', + 'standardType' => 'string', + 'unit' => 'string', + 'quantity' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'mode' => null, + 'invoiceType' => null, + 'invoiceForm' => null, + 'linkman' => null, + 'linkmanPhone' => null, + 'postalAddress' => null, + 'postalCode' => null, + 'invoiceName' => null, + 'taxpayerId' => null, + 'invoicePhone' => null, + 'invoiceAddress' => null, + 'bankName' => null, + 'accountNo' => null, + 'email' => null, + 'needInvoice' => null, + 'createTime' => 'date-time', + 'lastModifyTime' => 'date-time', + 'remark' => null, + 'standardType' => null, + 'unit' => null, + 'quantity' => 'int32' + ]; + + /** + * 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', + 'merchantNo' => 'merchantNo', + 'mode' => 'mode', + 'invoiceType' => 'invoiceType', + 'invoiceForm' => 'invoiceForm', + 'linkman' => 'linkman', + 'linkmanPhone' => 'linkmanPhone', + 'postalAddress' => 'postalAddress', + 'postalCode' => 'postalCode', + 'invoiceName' => 'invoiceName', + 'taxpayerId' => 'taxpayerId', + 'invoicePhone' => 'invoicePhone', + 'invoiceAddress' => 'invoiceAddress', + 'bankName' => 'bankName', + 'accountNo' => 'accountNo', + 'email' => 'email', + 'needInvoice' => 'needInvoice', + 'createTime' => 'createTime', + 'lastModifyTime' => 'lastModifyTime', + 'remark' => 'remark', + 'standardType' => 'standardType', + 'unit' => 'unit', + 'quantity' => 'quantity' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'mode' => 'setMode', + 'invoiceType' => 'setInvoiceType', + 'invoiceForm' => 'setInvoiceForm', + 'linkman' => 'setLinkman', + 'linkmanPhone' => 'setLinkmanPhone', + 'postalAddress' => 'setPostalAddress', + 'postalCode' => 'setPostalCode', + 'invoiceName' => 'setInvoiceName', + 'taxpayerId' => 'setTaxpayerId', + 'invoicePhone' => 'setInvoicePhone', + 'invoiceAddress' => 'setInvoiceAddress', + 'bankName' => 'setBankName', + 'accountNo' => 'setAccountNo', + 'email' => 'setEmail', + 'needInvoice' => 'setNeedInvoice', + 'createTime' => 'setCreateTime', + 'lastModifyTime' => 'setLastModifyTime', + 'remark' => 'setRemark', + 'standardType' => 'setStandardType', + 'unit' => 'setUnit', + 'quantity' => 'setQuantity' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'mode' => 'getMode', + 'invoiceType' => 'getInvoiceType', + 'invoiceForm' => 'getInvoiceForm', + 'linkman' => 'getLinkman', + 'linkmanPhone' => 'getLinkmanPhone', + 'postalAddress' => 'getPostalAddress', + 'postalCode' => 'getPostalCode', + 'invoiceName' => 'getInvoiceName', + 'taxpayerId' => 'getTaxpayerId', + 'invoicePhone' => 'getInvoicePhone', + 'invoiceAddress' => 'getInvoiceAddress', + 'bankName' => 'getBankName', + 'accountNo' => 'getAccountNo', + 'email' => 'getEmail', + 'needInvoice' => 'getNeedInvoice', + 'createTime' => 'getCreateTime', + 'lastModifyTime' => 'getLastModifyTime', + 'remark' => 'getRemark', + 'standardType' => 'getStandardType', + 'unit' => 'getUnit', + 'quantity' => 'getQuantity' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['mode'] = isset($data['mode']) ? $data['mode'] : null; + $this->container['invoiceType'] = isset($data['invoiceType']) ? $data['invoiceType'] : null; + $this->container['invoiceForm'] = isset($data['invoiceForm']) ? $data['invoiceForm'] : null; + $this->container['linkman'] = isset($data['linkman']) ? $data['linkman'] : null; + $this->container['linkmanPhone'] = isset($data['linkmanPhone']) ? $data['linkmanPhone'] : null; + $this->container['postalAddress'] = isset($data['postalAddress']) ? $data['postalAddress'] : null; + $this->container['postalCode'] = isset($data['postalCode']) ? $data['postalCode'] : null; + $this->container['invoiceName'] = isset($data['invoiceName']) ? $data['invoiceName'] : null; + $this->container['taxpayerId'] = isset($data['taxpayerId']) ? $data['taxpayerId'] : null; + $this->container['invoicePhone'] = isset($data['invoicePhone']) ? $data['invoicePhone'] : null; + $this->container['invoiceAddress'] = isset($data['invoiceAddress']) ? $data['invoiceAddress'] : null; + $this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null; + $this->container['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null; + $this->container['email'] = isset($data['email']) ? $data['email'] : null; + $this->container['needInvoice'] = isset($data['needInvoice']) ? $data['needInvoice'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['lastModifyTime'] = isset($data['lastModifyTime']) ? $data['lastModifyTime'] : null; + $this->container['remark'] = isset($data['remark']) ? $data['remark'] : null; + $this->container['standardType'] = isset($data['standardType']) ? $data['standardType'] : null; + $this->container['unit'] = isset($data['unit']) ? $data['unit'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : 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 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 mode + * + * @return string + */ + public function getMode() + { + return $this->container['mode']; + } + + /** + * Sets mode + * + * @param string $mode 开票方式 + * + * @return $this + */ + public function setMode($mode) + { + $this->container['mode'] = $mode; + + return $this; + } + + /** + * Gets invoiceType + * + * @return string + */ + public function getInvoiceType() + { + return $this->container['invoiceType']; + } + + /** + * Sets invoiceType + * + * @param string $invoiceType 发票类型 + * + * @return $this + */ + public function setInvoiceType($invoiceType) + { + $this->container['invoiceType'] = $invoiceType; + + return $this; + } + + /** + * Gets invoiceForm + * + * @return string + */ + public function getInvoiceForm() + { + return $this->container['invoiceForm']; + } + + /** + * Sets invoiceForm + * + * @param string $invoiceForm 发票形式 + * + * @return $this + */ + public function setInvoiceForm($invoiceForm) + { + $this->container['invoiceForm'] = $invoiceForm; + + return $this; + } + + /** + * Gets linkman + * + * @return string + */ + public function getLinkman() + { + return $this->container['linkman']; + } + + /** + * Sets linkman + * + * @param string $linkman 联系人 + * + * @return $this + */ + public function setLinkman($linkman) + { + $this->container['linkman'] = $linkman; + + return $this; + } + + /** + * Gets linkmanPhone + * + * @return string + */ + public function getLinkmanPhone() + { + return $this->container['linkmanPhone']; + } + + /** + * Sets linkmanPhone + * + * @param string $linkmanPhone 联系人电话 + * + * @return $this + */ + public function setLinkmanPhone($linkmanPhone) + { + $this->container['linkmanPhone'] = $linkmanPhone; + + return $this; + } + + /** + * Gets postalAddress + * + * @return string + */ + public function getPostalAddress() + { + return $this->container['postalAddress']; + } + + /** + * Sets postalAddress + * + * @param string $postalAddress 发票邮寄地址 + * + * @return $this + */ + public function setPostalAddress($postalAddress) + { + $this->container['postalAddress'] = $postalAddress; + + return $this; + } + + /** + * Gets postalCode + * + * @return string + */ + public function getPostalCode() + { + return $this->container['postalCode']; + } + + /** + * Sets postalCode + * + * @param string $postalCode 邮编 + * + * @return $this + */ + public function setPostalCode($postalCode) + { + $this->container['postalCode'] = $postalCode; + + return $this; + } + + /** + * Gets invoiceName + * + * @return string + */ + public function getInvoiceName() + { + return $this->container['invoiceName']; + } + + /** + * Sets invoiceName + * + * @param string $invoiceName 发票抬头 + * + * @return $this + */ + public function setInvoiceName($invoiceName) + { + $this->container['invoiceName'] = $invoiceName; + + return $this; + } + + /** + * Gets taxpayerId + * + * @return string + */ + public function getTaxpayerId() + { + return $this->container['taxpayerId']; + } + + /** + * Sets taxpayerId + * + * @param string $taxpayerId 纳税人标识 + * + * @return $this + */ + public function setTaxpayerId($taxpayerId) + { + $this->container['taxpayerId'] = $taxpayerId; + + return $this; + } + + /** + * Gets invoicePhone + * + * @return string + */ + public function getInvoicePhone() + { + return $this->container['invoicePhone']; + } + + /** + * Sets invoicePhone + * + * @param string $invoicePhone 开票联系电话 + * + * @return $this + */ + public function setInvoicePhone($invoicePhone) + { + $this->container['invoicePhone'] = $invoicePhone; + + return $this; + } + + /** + * Gets invoiceAddress + * + * @return string + */ + public function getInvoiceAddress() + { + return $this->container['invoiceAddress']; + } + + /** + * Sets invoiceAddress + * + * @param string $invoiceAddress 开票地址 + * + * @return $this + */ + public function setInvoiceAddress($invoiceAddress) + { + $this->container['invoiceAddress'] = $invoiceAddress; + + 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 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 email + * + * @return string + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string $email 邮箱 + * + * @return $this + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets needInvoice + * + * @return string + */ + public function getNeedInvoice() + { + return $this->container['needInvoice']; + } + + /** + * Sets needInvoice + * + * @param string $needInvoice 是否需要发票 + * + * @return $this + */ + public function setNeedInvoice($needInvoice) + { + $this->container['needInvoice'] = $needInvoice; + + 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 lastModifyTime + * + * @return string + */ + public function getLastModifyTime() + { + return $this->container['lastModifyTime']; + } + + /** + * Sets lastModifyTime + * + * @param string $lastModifyTime 更新时间 + * + * @return $this + */ + public function setLastModifyTime($lastModifyTime) + { + $this->container['lastModifyTime'] = $lastModifyTime; + + 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 standardType + * + * @return string + */ + public function getStandardType() + { + return $this->container['standardType']; + } + + /** + * Sets standardType + * + * @param string $standardType 规格型号 + * + * @return $this + */ + public function setStandardType($standardType) + { + $this->container['standardType'] = $standardType; + + return $this; + } + + /** + * Gets unit + * + * @return string + */ + public function getUnit() + { + return $this->container['unit']; + } + + /** + * Sets unit + * + * @param string $unit 单位 + * + * @return $this + */ + public function setUnit($unit) + { + $this->container['unit'] = $unit; + + return $this; + } + + /** + * Gets quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity 数量 + * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/InfoQueryRequest.php b/lib/Service/Invoice/Model/InfoQueryRequest.php new file mode 100644 index 0000000..5d8dc47 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoQueryRequest.php @@ -0,0 +1,67 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return InfoQueryRequest + */ + 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 InfoQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'infoQuery'; + } + + +} diff --git a/lib/Service/Invoice/Model/InfoQueryRequestMarshaller.php b/lib/Service/Invoice/Model/InfoQueryRequestMarshaller.php new file mode 100644 index 0000000..f342de3 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoQueryRequestMarshaller.php @@ -0,0 +1,83 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +InfoQueryRequestMarshaller::__init(); diff --git a/lib/Service/Invoice/Model/InfoQueryResponse.php b/lib/Service/Invoice/Model/InfoQueryResponse.php new file mode 100644 index 0000000..644e614 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return InfoQueryQueryInvoiceInfoYOPResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Invoice/Model/InfoQueryResponseUnMarshaller.php b/lib/Service/Invoice/Model/InfoQueryResponseUnMarshaller.php new file mode 100644 index 0000000..4160171 --- /dev/null +++ b/lib/Service/Invoice/Model/InfoQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RecordQueryApplyInvoiceYOPResponseDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RecordQueryApplyInvoiceYOPResponseDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RecordQueryApplyInvoiceYOPResponseDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'merchantNo' => 'string', + 'customerRequestNo' => 'string', + 'code' => 'string', + 'message' => 'string', + 'status' => 'string', + 'createDate' => 'string', + 'chargingDateStart' => 'string', + 'chargingDateEnd' => 'string', + 'chargingMode' => 'string', + 'invoiceForm' => 'string', + 'amount' => 'float', + 'notifyType' => 'string', + 'issueInvoiceDtoList' => '\Yeepay\Yop\Sdk\Service\Invoice\Model\RecordQueryIssueInvoiceDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'customerRequestNo' => null, + 'code' => null, + 'message' => null, + 'status' => null, + 'createDate' => 'date-time', + 'chargingDateStart' => 'date-time', + 'chargingDateEnd' => 'date-time', + 'chargingMode' => null, + 'invoiceForm' => null, + 'amount' => null, + 'notifyType' => null, + 'issueInvoiceDtoList' => 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 = [ + 'merchantNo' => 'merchantNo', + 'customerRequestNo' => 'customerRequestNo', + 'code' => 'code', + 'message' => 'message', + 'status' => 'status', + 'createDate' => 'createDate', + 'chargingDateStart' => 'chargingDateStart', + 'chargingDateEnd' => 'chargingDateEnd', + 'chargingMode' => 'chargingMode', + 'invoiceForm' => 'invoiceForm', + 'amount' => 'amount', + 'notifyType' => 'notifyType', + 'issueInvoiceDtoList' => 'issueInvoiceDtoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'customerRequestNo' => 'setCustomerRequestNo', + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus', + 'createDate' => 'setCreateDate', + 'chargingDateStart' => 'setChargingDateStart', + 'chargingDateEnd' => 'setChargingDateEnd', + 'chargingMode' => 'setChargingMode', + 'invoiceForm' => 'setInvoiceForm', + 'amount' => 'setAmount', + 'notifyType' => 'setNotifyType', + 'issueInvoiceDtoList' => 'setIssueInvoiceDtoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'customerRequestNo' => 'getCustomerRequestNo', + 'code' => 'getCode', + 'message' => 'getMessage', + 'status' => 'getStatus', + 'createDate' => 'getCreateDate', + 'chargingDateStart' => 'getChargingDateStart', + 'chargingDateEnd' => 'getChargingDateEnd', + 'chargingMode' => 'getChargingMode', + 'invoiceForm' => 'getInvoiceForm', + 'amount' => 'getAmount', + 'notifyType' => 'getNotifyType', + 'issueInvoiceDtoList' => 'getIssueInvoiceDtoList' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['customerRequestNo'] = isset($data['customerRequestNo']) ? $data['customerRequestNo'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['createDate'] = isset($data['createDate']) ? $data['createDate'] : null; + $this->container['chargingDateStart'] = isset($data['chargingDateStart']) ? $data['chargingDateStart'] : null; + $this->container['chargingDateEnd'] = isset($data['chargingDateEnd']) ? $data['chargingDateEnd'] : null; + $this->container['chargingMode'] = isset($data['chargingMode']) ? $data['chargingMode'] : null; + $this->container['invoiceForm'] = isset($data['invoiceForm']) ? $data['invoiceForm'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['notifyType'] = isset($data['notifyType']) ? $data['notifyType'] : null; + $this->container['issueInvoiceDtoList'] = isset($data['issueInvoiceDtoList']) ? $data['issueInvoiceDtoList'] : 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 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 customerRequestNo + * + * @return string + */ + public function getCustomerRequestNo() + { + return $this->container['customerRequestNo']; + } + + /** + * Sets customerRequestNo + * + * @param string $customerRequestNo 请求号 + * + * @return $this + */ + public function setCustomerRequestNo($customerRequestNo) + { + $this->container['customerRequestNo'] = $customerRequestNo; + + return $this; + } + + /** + * 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 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 createDate + * + * @return string + */ + public function getCreateDate() + { + return $this->container['createDate']; + } + + /** + * Sets createDate + * + * @param string $createDate 申请时间 + * + * @return $this + */ + public function setCreateDate($createDate) + { + $this->container['createDate'] = $createDate; + + return $this; + } + + /** + * Gets chargingDateStart + * + * @return string + */ + public function getChargingDateStart() + { + return $this->container['chargingDateStart']; + } + + /** + * Sets chargingDateStart + * + * @param string $chargingDateStart 收费开始时间 + * + * @return $this + */ + public function setChargingDateStart($chargingDateStart) + { + $this->container['chargingDateStart'] = $chargingDateStart; + + return $this; + } + + /** + * Gets chargingDateEnd + * + * @return string + */ + public function getChargingDateEnd() + { + return $this->container['chargingDateEnd']; + } + + /** + * Sets chargingDateEnd + * + * @param string $chargingDateEnd 收费结束时间 + * + * @return $this + */ + public function setChargingDateEnd($chargingDateEnd) + { + $this->container['chargingDateEnd'] = $chargingDateEnd; + + return $this; + } + + /** + * Gets chargingMode + * + * @return string + */ + public function getChargingMode() + { + return $this->container['chargingMode']; + } + + /** + * Sets chargingMode + * + * @param string $chargingMode 计费模式 + * + * @return $this + */ + public function setChargingMode($chargingMode) + { + $this->container['chargingMode'] = $chargingMode; + + return $this; + } + + /** + * Gets invoiceForm + * + * @return string + */ + public function getInvoiceForm() + { + return $this->container['invoiceForm']; + } + + /** + * Sets invoiceForm + * + * @param string $invoiceForm 发票形式 + * + * @return $this + */ + public function setInvoiceForm($invoiceForm) + { + $this->container['invoiceForm'] = $invoiceForm; + + 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 notifyType + * + * @return string + */ + public function getNotifyType() + { + return $this->container['notifyType']; + } + + /** + * Sets notifyType + * + * @param string $notifyType 通知类型 + * + * @return $this + */ + public function setNotifyType($notifyType) + { + $this->container['notifyType'] = $notifyType; + + return $this; + } + + /** + * Gets issueInvoiceDtoList + * + * @return \Yeepay\Yop\Sdk\Service\Invoice\Model\RecordQueryIssueInvoiceDtoResult[] + */ + public function getIssueInvoiceDtoList() + { + return $this->container['issueInvoiceDtoList']; + } + + /** + * Sets issueInvoiceDtoList + * + * @param \Yeepay\Yop\Sdk\Service\Invoice\Model\RecordQueryIssueInvoiceDtoResult[] $issueInvoiceDtoList 开票记录列表 + * + * @return $this + */ + public function setIssueInvoiceDtoList($issueInvoiceDtoList) + { + $this->container['issueInvoiceDtoList'] = $issueInvoiceDtoList; + + 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/RecordQueryIssueInvoiceDtoResult.php b/lib/Service/Invoice/Model/RecordQueryIssueInvoiceDtoResult.php new file mode 100644 index 0000000..43df8f4 --- /dev/null +++ b/lib/Service/Invoice/Model/RecordQueryIssueInvoiceDtoResult.php @@ -0,0 +1,512 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RecordQueryIssueInvoiceDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RecordQueryIssueInvoiceDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RecordQueryIssueInvoiceDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'totalPriceTax' => 'float', + 'invoiceStatus' => 'string', + 'isExpress' => 'string', + 'pdfUrl' => 'string', + 'pdfUrlCh' => 'string', + 'log' => 'string', + 'expressCompany' => 'string', + 'expressNumber' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'totalPriceTax' => null, + 'invoiceStatus' => null, + 'isExpress' => null, + 'pdfUrl' => null, + 'pdfUrlCh' => null, + 'log' => null, + 'expressCompany' => null, + 'expressNumber' => 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 = [ + 'totalPriceTax' => 'totalPriceTax', + 'invoiceStatus' => 'invoiceStatus', + 'isExpress' => 'isExpress', + 'pdfUrl' => 'pdfUrl', + 'pdfUrlCh' => 'pdfUrlCh', + 'log' => 'log', + 'expressCompany' => 'expressCompany', + 'expressNumber' => 'expressNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'totalPriceTax' => 'setTotalPriceTax', + 'invoiceStatus' => 'setInvoiceStatus', + 'isExpress' => 'setIsExpress', + 'pdfUrl' => 'setPdfUrl', + 'pdfUrlCh' => 'setPdfUrlCh', + 'log' => 'setLog', + 'expressCompany' => 'setExpressCompany', + 'expressNumber' => 'setExpressNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'totalPriceTax' => 'getTotalPriceTax', + 'invoiceStatus' => 'getInvoiceStatus', + 'isExpress' => 'getIsExpress', + 'pdfUrl' => 'getPdfUrl', + 'pdfUrlCh' => 'getPdfUrlCh', + 'log' => 'getLog', + 'expressCompany' => 'getExpressCompany', + 'expressNumber' => 'getExpressNumber' + ]; + + /** + * 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['totalPriceTax'] = isset($data['totalPriceTax']) ? $data['totalPriceTax'] : null; + $this->container['invoiceStatus'] = isset($data['invoiceStatus']) ? $data['invoiceStatus'] : null; + $this->container['isExpress'] = isset($data['isExpress']) ? $data['isExpress'] : null; + $this->container['pdfUrl'] = isset($data['pdfUrl']) ? $data['pdfUrl'] : null; + $this->container['pdfUrlCh'] = isset($data['pdfUrlCh']) ? $data['pdfUrlCh'] : null; + $this->container['log'] = isset($data['log']) ? $data['log'] : null; + $this->container['expressCompany'] = isset($data['expressCompany']) ? $data['expressCompany'] : null; + $this->container['expressNumber'] = isset($data['expressNumber']) ? $data['expressNumber'] : 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 totalPriceTax + * + * @return float + */ + public function getTotalPriceTax() + { + return $this->container['totalPriceTax']; + } + + /** + * Sets totalPriceTax + * + * @param float $totalPriceTax 手续费 + * + * @return $this + */ + public function setTotalPriceTax($totalPriceTax) + { + $this->container['totalPriceTax'] = $totalPriceTax; + + return $this; + } + + /** + * Gets invoiceStatus + * + * @return string + */ + public function getInvoiceStatus() + { + return $this->container['invoiceStatus']; + } + + /** + * Sets invoiceStatus + * + * @param string $invoiceStatus 开票状态 + * + * @return $this + */ + public function setInvoiceStatus($invoiceStatus) + { + $this->container['invoiceStatus'] = $invoiceStatus; + + return $this; + } + + /** + * Gets isExpress + * + * @return string + */ + public function getIsExpress() + { + return $this->container['isExpress']; + } + + /** + * Sets isExpress + * + * @param string $isExpress 是否邮寄 + * + * @return $this + */ + public function setIsExpress($isExpress) + { + $this->container['isExpress'] = $isExpress; + + return $this; + } + + /** + * Gets pdfUrl + * + * @return string + */ + public function getPdfUrl() + { + return $this->container['pdfUrl']; + } + + /** + * Sets pdfUrl + * + * @param string $pdfUrl 已开发票地址 + * + * @return $this + */ + public function setPdfUrl($pdfUrl) + { + $this->container['pdfUrl'] = $pdfUrl; + + return $this; + } + + /** + * Gets pdfUrlCh + * + * @return string + */ + public function getPdfUrlCh() + { + return $this->container['pdfUrlCh']; + } + + /** + * Sets pdfUrlCh + * + * @param string $pdfUrlCh 冲红发票地址 + * + * @return $this + */ + public function setPdfUrlCh($pdfUrlCh) + { + $this->container['pdfUrlCh'] = $pdfUrlCh; + + return $this; + } + + /** + * Gets log + * + * @return string + */ + public function getLog() + { + return $this->container['log']; + } + + /** + * Sets log + * + * @param string $log 失败原因 + * + * @return $this + */ + public function setLog($log) + { + $this->container['log'] = $log; + + return $this; + } + + /** + * Gets expressCompany + * + * @return string + */ + public function getExpressCompany() + { + return $this->container['expressCompany']; + } + + /** + * Sets expressCompany + * + * @param string $expressCompany 快递公司 + * + * @return $this + */ + public function setExpressCompany($expressCompany) + { + $this->container['expressCompany'] = $expressCompany; + + return $this; + } + + /** + * Gets expressNumber + * + * @return string + */ + public function getExpressNumber() + { + return $this->container['expressNumber']; + } + + /** + * Sets expressNumber + * + * @param string $expressNumber 快递单号 + * + * @return $this + */ + public function setExpressNumber($expressNumber) + { + $this->container['expressNumber'] = $expressNumber; + + 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/RecordQueryQueryApplyInvoiceResponseDTOResult.php b/lib/Service/Invoice/Model/RecordQueryQueryApplyInvoiceResponseDTOResult.php new file mode 100644 index 0000000..eff918b --- /dev/null +++ b/lib/Service/Invoice/Model/RecordQueryQueryApplyInvoiceResponseDTOResult.php @@ -0,0 +1,362 @@ +基于中台商户实际开票场景,提供给商户维护开票规则、票面信息,查询票面信息,申请开具手续费发票,查询开票记录,查询实收手续费金额的服务

+ * + * OpenAPI spec version: 1.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\Invoice\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RecordQueryQueryApplyInvoiceResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RecordQueryQueryApplyInvoiceResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RecordQueryQueryApplyInvoiceResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'applyInvoiceRecordList' => '\Yeepay\Yop\Sdk\Service\Invoice\Model\RecordQueryApplyInvoiceYOPResponseDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'applyInvoiceRecordList' => 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', + 'applyInvoiceRecordList' => 'applyInvoiceRecordList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'applyInvoiceRecordList' => 'setApplyInvoiceRecordList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'applyInvoiceRecordList' => 'getApplyInvoiceRecordList' + ]; + + /** + * 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['applyInvoiceRecordList'] = isset($data['applyInvoiceRecordList']) ? $data['applyInvoiceRecordList'] : 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 applyInvoiceRecordList + * + * @return \Yeepay\Yop\Sdk\Service\Invoice\Model\RecordQueryApplyInvoiceYOPResponseDtoResult[] + */ + public function getApplyInvoiceRecordList() + { + return $this->container['applyInvoiceRecordList']; + } + + /** + * Sets applyInvoiceRecordList + * + * @param \Yeepay\Yop\Sdk\Service\Invoice\Model\RecordQueryApplyInvoiceYOPResponseDtoResult[] $applyInvoiceRecordList 发票申请和开票记录List + * + * @return $this + */ + public function setApplyInvoiceRecordList($applyInvoiceRecordList) + { + $this->container['applyInvoiceRecordList'] = $applyInvoiceRecordList; + + 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)); + } +} + + diff --git a/lib/Service/Invoice/Model/RecordQueryRequest.php b/lib/Service/Invoice/Model/RecordQueryRequest.php new file mode 100644 index 0000000..d9c5906 --- /dev/null +++ b/lib/Service/Invoice/Model/RecordQueryRequest.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RecordQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets customerRequestNo + * + * @return string + */ + public function getCustomerRequestNo() + { + return $this->customerRequestNo; + } + + /** + * Sets customerRequestNo + * + * @param string $customerRequestNo + * @return RecordQueryRequest + */ + public function setCustomerRequestNo($customerRequestNo) + { + $this->customerRequestNo = $customerRequestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RecordQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'recordQuery'; + } + + +} diff --git a/lib/Service/Invoice/Model/RecordQueryRequestMarshaller.php b/lib/Service/Invoice/Model/RecordQueryRequestMarshaller.php new file mode 100644 index 0000000..a542e8e --- /dev/null +++ b/lib/Service/Invoice/Model/RecordQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getCustomerRequestNo() != null){ + $internalRequest->addParameter('customerRequestNo', ObjectSerializer::sanitizeForSerialization($request->getCustomerRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RecordQueryRequestMarshaller::__init(); diff --git a/lib/Service/Invoice/Model/RecordQueryResponse.php b/lib/Service/Invoice/Model/RecordQueryResponse.php new file mode 100644 index 0000000..91decaa --- /dev/null +++ b/lib/Service/Invoice/Model/RecordQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RecordQueryQueryApplyInvoiceResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Invoice/Model/RecordQueryResponseUnMarshaller.php b/lib/Service/Invoice/Model/RecordQueryResponseUnMarshaller.php new file mode 100644 index 0000000..2d7bca5 --- /dev/null +++ b/lib/Service/Invoice/Model/RecordQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\AccountFaceCertifyOpenRequest $request + * @return Model\AccountFaceCertifyOpenResponse + * @throws YopClientException + */ + public function accountFaceCertifyOpen(Model\AccountFaceCertifyOpenRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountFaceCertifyOpenRequestMarshaller::getInstance(), + Model\AccountFaceCertifyOpenResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountOpenRequest $request + * @return Model\AccountOpenResponse + * @throws YopClientException + */ + public function accountOpen(Model\AccountOpenRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountOpenRequestMarshaller::getInstance(), + Model\AccountOpenResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountOpenNotifyRequest $request + * @return Model\AccountOpenNotifyResponse + * @throws YopClientException + */ + public function accountOpenNotify(Model\AccountOpenNotifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountOpenNotifyRequestMarshaller::getInstance(), + Model\AccountOpenNotifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountQueryRequest $request + * @return Model\AccountQueryResponse + * @throws YopClientException + */ + public function accountQuery(Model\AccountQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountQueryRequestMarshaller::getInstance(), + Model\AccountQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountQueryBalanceRequest $request + * @return Model\AccountQueryBalanceResponse + * @throws YopClientException + */ + public function accountQueryBalance(Model\AccountQueryBalanceRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantMemberNo() == null) { + throw new YopClientException("request.merchantMemberNo 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\AccountQueryBalanceRequestMarshaller::getInstance(), + Model\AccountQueryBalanceResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountQueryQuotaRequest $request + * @return Model\AccountQueryQuotaResponse + * @throws YopClientException + */ + public function accountQueryQuota(Model\AccountQueryQuotaRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountQueryQuotaRequestMarshaller::getInstance(), + Model\AccountQueryQuotaResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountFaceCertifyOpenRequest $request + * @return Model\AccountFaceCertifyOpenResponse + * @throws YopClientException + */ + public function account_face_certify_open(Model\AccountFaceCertifyOpenRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountFaceCertifyOpenRequestMarshaller::getInstance(), + Model\AccountFaceCertifyOpenResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountOpenNotifyRequest $request + * @return Model\AccountOpenNotifyResponse + * @throws YopClientException + */ + public function account_open_notify(Model\AccountOpenNotifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountOpenNotifyRequestMarshaller::getInstance(), + Model\AccountOpenNotifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountOpenV10Request $request + * @return Model\AccountOpenV10Response + * @throws YopClientException + */ + public function account_open_v1_0(Model\AccountOpenV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountOpenV10RequestMarshaller::getInstance(), + Model\AccountOpenV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountQueryQuotaRequest $request + * @return Model\AccountQueryQuotaResponse + * @throws YopClientException + */ + public function account_query_quota(Model\AccountQueryQuotaRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountQueryQuotaRequestMarshaller::getInstance(), + Model\AccountQueryQuotaResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AccountQueryV10Request $request + * @return Model\AccountQueryV10Response + * @throws YopClientException + */ + public function account_query_v1_0(Model\AccountQueryV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AccountQueryV10RequestMarshaller::getInstance(), + Model\AccountQueryV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentCancelRequest $request + * @return Model\AgreementPaymentCancelResponse + * @throws YopClientException + */ + public function agreementPaymentCancel(Model\AgreementPaymentCancelRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentCancelRequestMarshaller::getInstance(), + Model\AgreementPaymentCancelResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentQueryRequest $request + * @return Model\AgreementPaymentQueryResponse + * @throws YopClientException + */ + public function agreementPaymentQuery(Model\AgreementPaymentQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentQueryRequestMarshaller::getInstance(), + Model\AgreementPaymentQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentRequestRequest $request + * @return Model\AgreementPaymentRequestResponse + * @throws YopClientException + */ + public function agreementPaymentRequest(Model\AgreementPaymentRequestRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentRequestRequestMarshaller::getInstance(), + Model\AgreementPaymentRequestResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentSignRequest $request + * @return Model\AgreementPaymentSignResponse + * @throws YopClientException + */ + public function agreementPaymentSign(Model\AgreementPaymentSignRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentSignRequestMarshaller::getInstance(), + Model\AgreementPaymentSignResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentCancelV10Request $request + * @return Model\AgreementPaymentCancelV10Response + * @throws YopClientException + */ + public function agreement_payment_cancel_v1_0(Model\AgreementPaymentCancelV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentCancelV10RequestMarshaller::getInstance(), + Model\AgreementPaymentCancelV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentCancelWeb3V10Request $request + * @return Model\AgreementPaymentCancelWeb3V10Response + * @throws YopClientException + */ + public function agreement_payment_cancel_web3_v1_0(Model\AgreementPaymentCancelWeb3V10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentCancelWeb3V10RequestMarshaller::getInstance(), + Model\AgreementPaymentCancelWeb3V10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentNotifyWeb3Request $request + * @return Model\AgreementPaymentNotifyWeb3Response + * @throws YopClientException + */ + public function agreement_payment_notify_web3(Model\AgreementPaymentNotifyWeb3Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentNotifyWeb3RequestMarshaller::getInstance(), + Model\AgreementPaymentNotifyWeb3ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentQueryRequest $request + * @return Model\AgreementPaymentQueryResponse + * @throws YopClientException + */ + public function agreement_payment_query(Model\AgreementPaymentQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentQueryRequestMarshaller::getInstance(), + Model\AgreementPaymentQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentQueryWeb3V10Request $request + * @return Model\AgreementPaymentQueryWeb3V10Response + * @throws YopClientException + */ + public function agreement_payment_query_web3_v1_0(Model\AgreementPaymentQueryWeb3V10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo 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\AgreementPaymentQueryWeb3V10RequestMarshaller::getInstance(), + Model\AgreementPaymentQueryWeb3V10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentRequestV1Request $request + * @return Model\AgreementPaymentRequestV1Response + * @throws YopClientException + */ + public function agreement_payment_request_v1(Model\AgreementPaymentRequestV1Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentRequestV1RequestMarshaller::getInstance(), + Model\AgreementPaymentRequestV1ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentSignV10Request $request + * @return Model\AgreementPaymentSignV10Response + * @throws YopClientException + */ + public function agreement_payment_sign_v1_0(Model\AgreementPaymentSignV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentSignV10RequestMarshaller::getInstance(), + Model\AgreementPaymentSignV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AgreementPaymentSignWeb3V10Request $request + * @return Model\AgreementPaymentSignWeb3V10Response + * @throws YopClientException + */ + public function agreement_payment_sign_web3_v1_0(Model\AgreementPaymentSignWeb3V10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AgreementPaymentSignWeb3V10RequestMarshaller::getInstance(), + Model\AgreementPaymentSignWeb3V10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AutoWithdrawRequest $request + * @return Model\AutoWithdrawResponse + * @throws YopClientException + */ + public function autoWithdraw(Model\AutoWithdrawRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AutoWithdrawRequestMarshaller::getInstance(), + Model\AutoWithdrawResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AutoWithdrawQueryRequest $request + * @return Model\AutoWithdrawQueryResponse + * @throws YopClientException + */ + public function autoWithdrawQuery(Model\AutoWithdrawQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AutoWithdrawQueryRequestMarshaller::getInstance(), + Model\AutoWithdrawQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AutoDeductionCreateRequest $request + * @return Model\AutoDeductionCreateResponse + * @throws YopClientException + */ + public function auto_deduction_create(Model\AutoDeductionCreateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AutoDeductionCreateRequestMarshaller::getInstance(), + Model\AutoDeductionCreateResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AutoDeductionQueryRequest $request + * @return Model\AutoDeductionQueryResponse + * @throws YopClientException + */ + public function auto_deduction_query(Model\AutoDeductionQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AutoDeductionQueryRequestMarshaller::getInstance(), + Model\AutoDeductionQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AutoWithdrawRequest $request + * @return Model\AutoWithdrawResponse + * @throws YopClientException + */ + public function auto_withdraw(Model\AutoWithdrawRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AutoWithdrawRequestMarshaller::getInstance(), + Model\AutoWithdrawResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AutoWithdrawQueryRequest $request + * @return Model\AutoWithdrawQueryResponse + * @throws YopClientException + */ + public function auto_withdraw_query(Model\AutoWithdrawQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AutoWithdrawQueryRequestMarshaller::getInstance(), + Model\AutoWithdrawQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountConfirmRequest $request + * @return Model\BankAccountConfirmResponse + * @throws YopClientException + */ + public function bankAccountConfirm(Model\BankAccountConfirmRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountConfirmRequestMarshaller::getInstance(), + Model\BankAccountConfirmResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountOpenRequest $request + * @return Model\BankAccountOpenResponse + * @throws YopClientException + */ + public function bankAccountOpen(Model\BankAccountOpenRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountOpenRequestMarshaller::getInstance(), + Model\BankAccountOpenResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryActivationRequest $request + * @return Model\BankAccountQueryActivationResponse + * @throws YopClientException + */ + public function bankAccountQueryActivation(Model\BankAccountQueryActivationRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\BankAccountQueryActivationRequestMarshaller::getInstance(), + Model\BankAccountQueryActivationResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryComplaintRequest $request + * @return Model\BankAccountQueryComplaintResponse + * @throws YopClientException + */ + public function bankAccountQueryComplaint(Model\BankAccountQueryComplaintRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantMemberNo() == null) { + throw new YopClientException("request.merchantMemberNo is required."); + } + if ($request->getAccountNo() == null) { + throw new YopClientException("request.accountNo is required."); + } + if ($request->getBankTradeNo() == null) { + throw new YopClientException("request.bankTradeNo is required."); + } + if ($request->getTradeTime() == null) { + throw new YopClientException("request.tradeTime 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\BankAccountQueryComplaintRequestMarshaller::getInstance(), + Model\BankAccountQueryComplaintResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryOpenResultRequest $request + * @return Model\BankAccountQueryOpenResultResponse + * @throws YopClientException + */ + public function bankAccountQueryOpenResult(Model\BankAccountQueryOpenResultRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\BankAccountQueryOpenResultRequestMarshaller::getInstance(), + Model\BankAccountQueryOpenResultResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryTradeRequest $request + * @return Model\BankAccountQueryTradeResponse + * @throws YopClientException + */ + public function bankAccountQueryTrade(Model\BankAccountQueryTradeRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantMemberNo() == null) { + throw new YopClientException("request.merchantMemberNo is required."); + } + if ($request->getAccountNo() == null) { + throw new YopClientException("request.accountNo is required."); + } + if ($request->getBeginDate() == null) { + throw new YopClientException("request.beginDate is required."); + } + if ($request->getEndDate() == null) { + throw new YopClientException("request.endDate 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\BankAccountQueryTradeRequestMarshaller::getInstance(), + Model\BankAccountQueryTradeResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryWithdrawRequest $request + * @return Model\BankAccountQueryWithdrawResponse + * @throws YopClientException + */ + public function bankAccountQueryWithdraw(Model\BankAccountQueryWithdrawRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\BankAccountQueryWithdrawRequestMarshaller::getInstance(), + Model\BankAccountQueryWithdrawResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountSendMsgRequest $request + * @return Model\BankAccountSendMsgResponse + * @throws YopClientException + */ + public function bankAccountSendMsg(Model\BankAccountSendMsgRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountSendMsgRequestMarshaller::getInstance(), + Model\BankAccountSendMsgResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountUpdateKeyWordsRequest $request + * @return Model\BankAccountUpdateKeyWordsResponse + * @throws YopClientException + */ + public function bankAccountUpdateKeyWords(Model\BankAccountUpdateKeyWordsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountUpdateKeyWordsRequestMarshaller::getInstance(), + Model\BankAccountUpdateKeyWordsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountWithdrawRequest $request + * @return Model\BankAccountWithdrawResponse + * @throws YopClientException + */ + public function bankAccountWithdraw(Model\BankAccountWithdrawRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountWithdrawRequestMarshaller::getInstance(), + Model\BankAccountWithdrawResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountConfirmV10Request $request + * @return Model\BankAccountConfirmV10Response + * @throws YopClientException + */ + public function bank_account_confirm_v1_0(Model\BankAccountConfirmV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountConfirmV10RequestMarshaller::getInstance(), + Model\BankAccountConfirmV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountOpenV10Request $request + * @return Model\BankAccountOpenV10Response + * @throws YopClientException + */ + public function bank_account_open_v1_0(Model\BankAccountOpenV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountOpenV10RequestMarshaller::getInstance(), + Model\BankAccountOpenV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryActivationV10Request $request + * @return Model\BankAccountQueryActivationV10Response + * @throws YopClientException + */ + public function bank_account_query_activation_v1_0(Model\BankAccountQueryActivationV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\BankAccountQueryActivationV10RequestMarshaller::getInstance(), + Model\BankAccountQueryActivationV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryComplaintV10Request $request + * @return Model\BankAccountQueryComplaintV10Response + * @throws YopClientException + */ + public function bank_account_query_complaint_v1_0(Model\BankAccountQueryComplaintV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantMemberNo() == null) { + throw new YopClientException("request.merchantMemberNo is required."); + } + if ($request->getAccountNo() == null) { + throw new YopClientException("request.accountNo is required."); + } + if ($request->getBankTradeNo() == null) { + throw new YopClientException("request.bankTradeNo is required."); + } + if ($request->getTradeTime() == null) { + throw new YopClientException("request.tradeTime 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\BankAccountQueryComplaintV10RequestMarshaller::getInstance(), + Model\BankAccountQueryComplaintV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryOpenResultV10Request $request + * @return Model\BankAccountQueryOpenResultV10Response + * @throws YopClientException + */ + public function bank_account_query_open_result_v1_0(Model\BankAccountQueryOpenResultV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\BankAccountQueryOpenResultV10RequestMarshaller::getInstance(), + Model\BankAccountQueryOpenResultV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryTradeV10Request $request + * @return Model\BankAccountQueryTradeV10Response + * @throws YopClientException + */ + public function bank_account_query_trade_v1_0(Model\BankAccountQueryTradeV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantMemberNo() == null) { + throw new YopClientException("request.merchantMemberNo is required."); + } + if ($request->getAccountNo() == null) { + throw new YopClientException("request.accountNo is required."); + } + if ($request->getBeginDate() == null) { + throw new YopClientException("request.beginDate is required."); + } + if ($request->getEndDate() == null) { + throw new YopClientException("request.endDate 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\BankAccountQueryTradeV10RequestMarshaller::getInstance(), + Model\BankAccountQueryTradeV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountQueryWithdrawV10Request $request + * @return Model\BankAccountQueryWithdrawV10Response + * @throws YopClientException + */ + public function bank_account_query_withdraw_v1_0(Model\BankAccountQueryWithdrawV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo 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\BankAccountQueryWithdrawV10RequestMarshaller::getInstance(), + Model\BankAccountQueryWithdrawV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountSendMsgV10Request $request + * @return Model\BankAccountSendMsgV10Response + * @throws YopClientException + */ + public function bank_account_send_msg_v1_0(Model\BankAccountSendMsgV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountSendMsgV10RequestMarshaller::getInstance(), + Model\BankAccountSendMsgV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountUpdateKeyWordsV10Request $request + * @return Model\BankAccountUpdateKeyWordsV10Response + * @throws YopClientException + */ + public function bank_account_update_key_words_v1_0(Model\BankAccountUpdateKeyWordsV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountUpdateKeyWordsV10RequestMarshaller::getInstance(), + Model\BankAccountUpdateKeyWordsV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BankAccountWithdrawV10Request $request + * @return Model\BankAccountWithdrawV10Response + * @throws YopClientException + */ + public function bank_account_withdraw_v1_0(Model\BankAccountWithdrawV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountWithdrawV10RequestMarshaller::getInstance(), + Model\BankAccountWithdrawV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryDetailRequest $request + * @return Model\BillQueryDetailResponse + * @throws YopClientException + */ + public function billQueryDetail(Model\BillQueryDetailRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryDetailRequestMarshaller::getInstance(), + Model\BillQueryDetailResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryListRequest $request + * @return Model\BillQueryListResponse + * @throws YopClientException + */ + public function billQueryList(Model\BillQueryListRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryListRequestMarshaller::getInstance(), + Model\BillQueryListResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryListV2Request $request + * @return Model\BillQueryListV2Response + * @throws YopClientException + */ + public function billQueryListV2(Model\BillQueryListV2Request $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->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo is required."); + } + if ($request->getPage() == null) { + throw new YopClientException("request.page is required."); + } + if ($request->getPageNum() == null) { + throw new YopClientException("request.pageNum is required."); + } + if ($request->getEndTime() == null) { + throw new YopClientException("request.endTime is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryListV2RequestMarshaller::getInstance(), + Model\BillQueryListV2ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryOverviewRequest $request + * @return Model\BillQueryOverviewResponse + * @throws YopClientException + */ + public function billQueryOverview(Model\BillQueryOverviewRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryOverviewRequestMarshaller::getInstance(), + Model\BillQueryOverviewResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryDetailRequest $request + * @return Model\BillQueryDetailResponse + * @throws YopClientException + */ + public function bill_query_detail(Model\BillQueryDetailRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryDetailRequestMarshaller::getInstance(), + Model\BillQueryDetailResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryListRequest $request + * @return Model\BillQueryListResponse + * @throws YopClientException + */ + public function bill_query_list(Model\BillQueryListRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryListRequestMarshaller::getInstance(), + Model\BillQueryListResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\BillQueryOverviewRequest $request + * @return Model\BillQueryOverviewResponse + * @throws YopClientException + */ + public function bill_query_overview(Model\BillQueryOverviewRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillQueryOverviewRequestMarshaller::getInstance(), + Model\BillQueryOverviewResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CardQueryRequest $request + * @return Model\CardQueryResponse + * @throws YopClientException + */ + public function cardQuery(Model\CardQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CardQueryRequestMarshaller::getInstance(), + Model\CardQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CardQueryV10Request $request + * @return Model\CardQueryV10Response + * @throws YopClientException + */ + public function card_query_v1_0(Model\CardQueryV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CardQueryV10RequestMarshaller::getInstance(), + Model\CardQueryV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CouponListQueryWeb3Request $request + * @return Model\CouponListQueryWeb3Response + * @throws YopClientException + */ + public function coupon_list_query_web3(Model\CouponListQueryWeb3Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo 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->getQueryType() == null) { + throw new YopClientException("request.queryType is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CouponListQueryWeb3RequestMarshaller::getInstance(), + Model\CouponListQueryWeb3ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\ManageFeeQueryDeductRequest $request + * @return Model\ManageFeeQueryDeductResponse + * @throws YopClientException + */ + public function manageFeeQueryDeduct(Model\ManageFeeQueryDeductRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRealName() == null) { + throw new YopClientException("request.realName is required."); + } + if ($request->getIdCardNo() == null) { + throw new YopClientException("request.idCardNo is required."); + } + if ($request->getRegisterMobile() == null) { + throw new YopClientException("request.registerMobile is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\ManageFeeQueryDeductRequestMarshaller::getInstance(), + Model\ManageFeeQueryDeductResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\ManageFeeQueryDeductRequest $request + * @return Model\ManageFeeQueryDeductResponse + * @throws YopClientException + */ + public function manage_fee_query_deduct(Model\ManageFeeQueryDeductRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRealName() == null) { + throw new YopClientException("request.realName is required."); + } + if ($request->getIdCardNo() == null) { + throw new YopClientException("request.idCardNo is required."); + } + if ($request->getRegisterMobile() == null) { + throw new YopClientException("request.registerMobile is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\ManageFeeQueryDeductRequestMarshaller::getInstance(), + Model\ManageFeeQueryDeductResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\MemberCardListRequest $request + * @return Model\MemberCardListResponse + * @throws YopClientException + */ + public function memberCardList(Model\MemberCardListRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\MemberCardListRequestMarshaller::getInstance(), + Model\MemberCardListResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\MemberQueryRequest $request + * @return Model\MemberQueryResponse + * @throws YopClientException + */ + public function memberQuery(Model\MemberQueryRequest $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\MemberQueryRequestMarshaller::getInstance(), + Model\MemberQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\MemberCardListRequest $request + * @return Model\MemberCardListResponse + * @throws YopClientException + */ + public function member_card_list(Model\MemberCardListRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\MemberCardListRequestMarshaller::getInstance(), + Model\MemberCardListResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\MemberQueryV10Request $request + * @return Model\MemberQueryV10Response + * @throws YopClientException + */ + public function member_query_v1_0(Model\MemberQueryV10Request $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\MemberQueryV10RequestMarshaller::getInstance(), + Model\MemberQueryV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\PasswordManageRequest $request + * @return Model\PasswordManageResponse + * @throws YopClientException + */ + public function passwordManage(Model\PasswordManageRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\PasswordManageRequestMarshaller::getInstance(), + Model\PasswordManageResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\PasswordManageV10Request $request + * @return Model\PasswordManageV10Response + * @throws YopClientException + */ + public function password_manage_v1_0(Model\PasswordManageV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\PasswordManageV10RequestMarshaller::getInstance(), + Model\PasswordManageV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\PaymentManageWeb3V10Request $request + * @return Model\PaymentManageWeb3V10Response + * @throws YopClientException + */ + public function payment_manage_web3_v1_0(Model\PaymentManageWeb3V10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\PaymentManageWeb3V10RequestMarshaller::getInstance(), + Model\PaymentManageWeb3V10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RechargeInitiateRequest $request + * @return Model\RechargeInitiateResponse + * @throws YopClientException + */ + public function rechargeInitiate(Model\RechargeInitiateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RechargeInitiateRequestMarshaller::getInstance(), + Model\RechargeInitiateResponseUnMarshaller::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->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RechargeQueryRequestMarshaller::getInstance(), + Model\RechargeQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RechargeInitiateV10Request $request + * @return Model\RechargeInitiateV10Response + * @throws YopClientException + */ + public function recharge_initiate_v1_0(Model\RechargeInitiateV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RechargeInitiateV10RequestMarshaller::getInstance(), + Model\RechargeInitiateV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RechargeQueryV10Request $request + * @return Model\RechargeQueryV10Response + * @throws YopClientException + */ + public function recharge_query_v1_0(Model\RechargeQueryV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RechargeQueryV10RequestMarshaller::getInstance(), + Model\RechargeQueryV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\SubscribeExpireNotifyRequest $request + * @return Model\SubscribeExpireNotifyResponse + * @throws YopClientException + */ + public function subscribeExpireNotify(Model\SubscribeExpireNotifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\SubscribeExpireNotifyRequestMarshaller::getInstance(), + Model\SubscribeExpireNotifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\SubscribeExpireNotifyRequest $request + * @return Model\SubscribeExpireNotifyResponse + * @throws YopClientException + */ + public function subscribe_expire_notify(Model\SubscribeExpireNotifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\SubscribeExpireNotifyRequestMarshaller::getInstance(), + Model\SubscribeExpireNotifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TradeAutoDeductionCreateRequest $request + * @return Model\TradeAutoDeductionCreateResponse + * @throws YopClientException + */ + public function tradeAutoDeductionCreate(Model\TradeAutoDeductionCreateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TradeAutoDeductionCreateRequestMarshaller::getInstance(), + Model\TradeAutoDeductionCreateResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TradeAutoDeductionQueryRequest $request + * @return Model\TradeAutoDeductionQueryResponse + * @throws YopClientException + */ + public function tradeAutoDeductionQuery(Model\TradeAutoDeductionQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TradeAutoDeductionQueryRequestMarshaller::getInstance(), + Model\TradeAutoDeductionQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TradeOrderRequest $request + * @return Model\TradeOrderResponse + * @throws YopClientException + */ + public function tradeOrder(Model\TradeOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TradeOrderRequestMarshaller::getInstance(), + Model\TradeOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TradeOrderV2Request $request + * @return Model\TradeOrderV2Response + * @throws YopClientException + */ + public function tradeOrderV2(Model\TradeOrderV2Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TradeOrderV2RequestMarshaller::getInstance(), + Model\TradeOrderV2ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TradeOrderV10Request $request + * @return Model\TradeOrderV10Response + * @throws YopClientException + */ + public function trade_order_v1_0(Model\TradeOrderV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TradeOrderV10RequestMarshaller::getInstance(), + Model\TradeOrderV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TradeOrderV20Request $request + * @return Model\TradeOrderV20Response + * @throws YopClientException + */ + public function trade_order_v2_0(Model\TradeOrderV20Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TradeOrderV20RequestMarshaller::getInstance(), + Model\TradeOrderV20ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TransferB2cInitiateRequest $request + * @return Model\TransferB2cInitiateResponse + * @throws YopClientException + */ + public function transferB2cInitiate(Model\TransferB2cInitiateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TransferB2cInitiateRequestMarshaller::getInstance(), + Model\TransferB2cInitiateResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TransferB2cMarketRequest $request + * @return Model\TransferB2cMarketResponse + * @throws YopClientException + */ + public function transferB2cMarket(Model\TransferB2cMarketRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TransferB2cMarketRequestMarshaller::getInstance(), + Model\TransferB2cMarketResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TransferB2cQueryRequest $request + * @return Model\TransferB2cQueryResponse + * @throws YopClientException + */ + public function transferB2cQuery(Model\TransferB2cQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + if ($request->getFromMerchantNo() == null) { + throw new YopClientException("request.fromMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TransferB2cQueryRequestMarshaller::getInstance(), + Model\TransferB2cQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TransferB2cInitiateV10Request $request + * @return Model\TransferB2cInitiateV10Response + * @throws YopClientException + */ + public function transfer_b2c_initiate_v1_0(Model\TransferB2cInitiateV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TransferB2cInitiateV10RequestMarshaller::getInstance(), + Model\TransferB2cInitiateV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TransferB2cMarketV10Request $request + * @return Model\TransferB2cMarketV10Response + * @throws YopClientException + */ + public function transfer_b2c_market_v1_0(Model\TransferB2cMarketV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TransferB2cMarketV10RequestMarshaller::getInstance(), + Model\TransferB2cMarketV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\TransferB2cQueryV10Request $request + * @return Model\TransferB2cQueryV10Response + * @throws YopClientException + */ + public function transfer_b2c_query_v1_0(Model\TransferB2cQueryV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + if ($request->getFromMerchantNo() == null) { + throw new YopClientException("request.fromMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\TransferB2cQueryV10RequestMarshaller::getInstance(), + Model\TransferB2cQueryV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\WalletCancelRequest $request + * @return Model\WalletCancelResponse + * @throws YopClientException + */ + public function walletCancel(Model\WalletCancelRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WalletCancelRequestMarshaller::getInstance(), + Model\WalletCancelResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\WalletIndexV2Request $request + * @return Model\WalletIndexV2Response + * @throws YopClientException + */ + public function walletIndexV2(Model\WalletIndexV2Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WalletIndexV2RequestMarshaller::getInstance(), + Model\WalletIndexV2ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\WalletCancelV10Request $request + * @return Model\WalletCancelV10Response + * @throws YopClientException + */ + public function wallet_cancel_v1_0(Model\WalletCancelV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WalletCancelV10RequestMarshaller::getInstance(), + Model\WalletCancelV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\WalletIndexV20Request $request + * @return Model\WalletIndexV20Response + * @throws YopClientException + */ + public function wallet_index_v2_0(Model\WalletIndexV20Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WalletIndexV20RequestMarshaller::getInstance(), + Model\WalletIndexV20ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\Web3AgreementNotifyRequest $request + * @return Model\Web3AgreementNotifyResponse + * @throws YopClientException + */ + public function web3AgreementNotify(Model\Web3AgreementNotifyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\Web3AgreementNotifyRequestMarshaller::getInstance(), + Model\Web3AgreementNotifyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\Web3AgreementPaymentCancelRequest $request + * @return Model\Web3AgreementPaymentCancelResponse + * @throws YopClientException + */ + public function web3AgreementPaymentCancel(Model\Web3AgreementPaymentCancelRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\Web3AgreementPaymentCancelRequestMarshaller::getInstance(), + Model\Web3AgreementPaymentCancelResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\Web3AgreementPaymentQueryRequest $request + * @return Model\Web3AgreementPaymentQueryResponse + * @throws YopClientException + */ + public function web3AgreementPaymentQuery(Model\Web3AgreementPaymentQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo 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\Web3AgreementPaymentQueryRequestMarshaller::getInstance(), + Model\Web3AgreementPaymentQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\Web3AgreementPaymentSignRequest $request + * @return Model\Web3AgreementPaymentSignResponse + * @throws YopClientException + */ + public function web3AgreementPaymentSign(Model\Web3AgreementPaymentSignRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\Web3AgreementPaymentSignRequestMarshaller::getInstance(), + Model\Web3AgreementPaymentSignResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\Web3CouponListQueryRequest $request + * @return Model\Web3CouponListQueryResponse + * @throws YopClientException + */ + public function web3CouponListQuery(Model\Web3CouponListQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo 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->getQueryType() == null) { + throw new YopClientException("request.queryType is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\Web3CouponListQueryRequestMarshaller::getInstance(), + Model\Web3CouponListQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\Web3PaymentManageRequest $request + * @return Model\Web3PaymentManageResponse + * @throws YopClientException + */ + public function web3PaymentManage(Model\Web3PaymentManageRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\Web3PaymentManageRequestMarshaller::getInstance(), + Model\Web3PaymentManageResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\WithdrawInitiateRequest $request + * @return Model\WithdrawInitiateResponse + * @throws YopClientException + */ + public function withdrawInitiate(Model\WithdrawInitiateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WithdrawInitiateRequestMarshaller::getInstance(), + Model\WithdrawInitiateResponseUnMarshaller::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->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo 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); + } + /** + * @param Model\WithdrawInitiateV10Request $request + * @return Model\WithdrawInitiateV10Response + * @throws YopClientException + */ + public function withdraw_initiate_v1_0(Model\WithdrawInitiateV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WithdrawInitiateV10RequestMarshaller::getInstance(), + Model\WithdrawInitiateV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\WithdrawQueryV10Request $request + * @return Model\WithdrawQueryV10Response + * @throws YopClientException + */ + public function withdraw_query_v1_0(Model\WithdrawQueryV10Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\WithdrawQueryV10RequestMarshaller::getInstance(), + Model\WithdrawQueryV10ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/MWallet/MWalletClientBuilder.php b/lib/Service/MWallet/MWalletClientBuilder.php new file mode 100644 index 0000000..00b3ee6 --- /dev/null +++ b/lib/Service/MWallet/MWalletClientBuilder.php @@ -0,0 +1,167 @@ +register('accountFaceCertifyOpen', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('accountOpen', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('accountOpenNotify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('accountQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('accountQueryBalance', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('accountQueryQuota', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('account_face_certify_open', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('account_open_notify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('account_open_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('account_query_quota', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('account_query_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreementPaymentCancel', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreementPaymentQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreementPaymentRequest', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreementPaymentSign', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_cancel_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_cancel_web3_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_notify_web3', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_query', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_query_web3_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_request_v1', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_sign_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('agreement_payment_sign_web3_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('autoWithdraw', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('autoWithdrawQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('auto_deduction_create', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('auto_deduction_query', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('auto_withdraw', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('auto_withdraw_query', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountConfirm', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountOpen', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountQueryActivation', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountQueryComplaint', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountQueryOpenResult', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountQueryTrade', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountQueryWithdraw', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountSendMsg', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountUpdateKeyWords', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bankAccountWithdraw', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_confirm_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_open_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_query_activation_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_query_complaint_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_query_open_result_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_query_trade_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_query_withdraw_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_send_msg_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_update_key_words_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bank_account_withdraw_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('billQueryDetail', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('billQueryList', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('billQueryListV2', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('billQueryOverview', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bill_query_detail', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bill_query_list', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('bill_query_overview', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('cardQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('card_query_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('coupon_list_query_web3', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('manageFeeQueryDeduct', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('manage_fee_query_deduct', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('memberCardList', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('memberQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('member_card_list', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('member_query_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('passwordManage', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('password_manage_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('payment_manage_web3_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rechargeInitiate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rechargeQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('recharge_initiate_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('recharge_query_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('subscribeExpireNotify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('subscribe_expire_notify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('tradeAutoDeductionCreate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('tradeAutoDeductionQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('tradeOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('tradeOrderV2', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('trade_order_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('trade_order_v2_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('transferB2cInitiate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('transferB2cMarket', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('transferB2cQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('transfer_b2c_initiate_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('transfer_b2c_market_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('transfer_b2c_query_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('walletCancel', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('walletIndexV2', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('wallet_cancel_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('wallet_index_v2_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('web3AgreementNotify', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('web3AgreementPaymentCancel', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('web3AgreementPaymentQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('web3AgreementPaymentSign', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('web3CouponListQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('web3PaymentManage', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('withdrawInitiate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('withdrawQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('withdraw_initiate_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('withdraw_query_v1_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * MWalletClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new MWalletClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return MWalletClientBuilder + * @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 MWalletClientBuilder($clientParams); + } + +} +MWalletClientBuilder::__init(); diff --git a/lib/Service/MWallet/Model/APIWalletPayResponseDTO.php b/lib/Service/MWallet/Model/APIWalletPayResponseDTO.php new file mode 100644 index 0000000..e8cc88a --- /dev/null +++ b/lib/Service/MWallet/Model/APIWalletPayResponseDTO.php @@ -0,0 +1,363 @@ + 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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', + 'uniqueOrderNo' => 'uniqueOrderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'uniqueOrderNo' => 'setUniqueOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + '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['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 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AccountFaceCertifyOpenRequest.php b/lib/Service/MWallet/Model/AccountFaceCertifyOpenRequest.php new file mode 100644 index 0000000..23c4307 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountFaceCertifyOpenRequest.php @@ -0,0 +1,267 @@ +name; + } + + /** + * Sets name + * + * @param string $name + * @return AccountFaceCertifyOpenRequest + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return AccountFaceCertifyOpenRequest + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return AccountFaceCertifyOpenRequest + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountFaceCertifyOpenRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountFaceCertifyOpenRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountFaceCertifyOpenRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return AccountFaceCertifyOpenRequest + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountFaceCertifyOpenRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return AccountFaceCertifyOpenRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AccountFaceCertifyOpenRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'account_face_certify_open'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountFaceCertifyOpenRequestMarshaller.php b/lib/Service/MWallet/Model/AccountFaceCertifyOpenRequestMarshaller.php new file mode 100644 index 0000000..fa9136e --- /dev/null +++ b/lib/Service/MWallet/Model/AccountFaceCertifyOpenRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string', 'enum')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string', 'notify-url')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountFaceCertifyOpenRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountFaceCertifyOpenResponse.php b/lib/Service/MWallet/Model/AccountFaceCertifyOpenResponse.php new file mode 100644 index 0000000..24ce274 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountFaceCertifyOpenResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletOpenByFaceResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountFaceCertifyOpenResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountFaceCertifyOpenResponseUnMarshaller.php new file mode 100644 index 0000000..2230bcf --- /dev/null +++ b/lib/Service/MWallet/Model/AccountFaceCertifyOpenResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'idCardNo' => 'string', + 'idCardType' => 'string', + 'mobile' => 'string', + 'sex' => 'string', + 'address' => 'string', + 'idCardBeginDate' => 'string', + 'idCardEndDate' => 'string', + 'idCardOrg' => 'string', + 'corpOrationType' => 'string', + 'idImageFront' => 'string', + 'idImageBack' => 'string', + 'faceImage' => 'string', + 'bankNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'memberName' => null, + 'idCardNo' => null, + 'idCardType' => null, + 'mobile' => null, + 'sex' => null, + 'address' => null, + 'idCardBeginDate' => null, + 'idCardEndDate' => null, + 'idCardOrg' => null, + 'corpOrationType' => null, + 'idImageFront' => null, + 'idImageBack' => null, + 'faceImage' => null, + 'bankNo' => 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 = [ + 'memberName' => 'memberName', + 'idCardNo' => 'idCardNo', + 'idCardType' => 'idCardType', + 'mobile' => 'mobile', + 'sex' => 'sex', + 'address' => 'address', + 'idCardBeginDate' => 'idCardBeginDate', + 'idCardEndDate' => 'idCardEndDate', + 'idCardOrg' => 'idCardOrg', + 'corpOrationType' => 'corpOrationType', + 'idImageFront' => 'idImageFront', + 'idImageBack' => 'idImageBack', + 'faceImage' => 'faceImage', + 'bankNo' => 'bankNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'memberName' => 'setMemberName', + 'idCardNo' => 'setIdCardNo', + 'idCardType' => 'setIdCardType', + 'mobile' => 'setMobile', + 'sex' => 'setSex', + 'address' => 'setAddress', + 'idCardBeginDate' => 'setIdCardBeginDate', + 'idCardEndDate' => 'setIdCardEndDate', + 'idCardOrg' => 'setIdCardOrg', + 'corpOrationType' => 'setCorpOrationType', + 'idImageFront' => 'setIdImageFront', + 'idImageBack' => 'setIdImageBack', + 'faceImage' => 'setFaceImage', + 'bankNo' => 'setBankNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'memberName' => 'getMemberName', + 'idCardNo' => 'getIdCardNo', + 'idCardType' => 'getIdCardType', + 'mobile' => 'getMobile', + 'sex' => 'getSex', + 'address' => 'getAddress', + 'idCardBeginDate' => 'getIdCardBeginDate', + 'idCardEndDate' => 'getIdCardEndDate', + 'idCardOrg' => 'getIdCardOrg', + 'corpOrationType' => 'getCorpOrationType', + 'idImageFront' => 'getIdImageFront', + 'idImageBack' => 'getIdImageBack', + 'faceImage' => 'getFaceImage', + 'bankNo' => 'getBankNo' + ]; + + /** + * 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['memberName'] = isset($data['memberName']) ? $data['memberName'] : null; + $this->container['idCardNo'] = isset($data['idCardNo']) ? $data['idCardNo'] : null; + $this->container['idCardType'] = isset($data['idCardType']) ? $data['idCardType'] : null; + $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null; + $this->container['sex'] = isset($data['sex']) ? $data['sex'] : null; + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['idCardBeginDate'] = isset($data['idCardBeginDate']) ? $data['idCardBeginDate'] : null; + $this->container['idCardEndDate'] = isset($data['idCardEndDate']) ? $data['idCardEndDate'] : null; + $this->container['idCardOrg'] = isset($data['idCardOrg']) ? $data['idCardOrg'] : null; + $this->container['corpOrationType'] = isset($data['corpOrationType']) ? $data['corpOrationType'] : null; + $this->container['idImageFront'] = isset($data['idImageFront']) ? $data['idImageFront'] : null; + $this->container['idImageBack'] = isset($data['idImageBack']) ? $data['idImageBack'] : null; + $this->container['faceImage'] = isset($data['faceImage']) ? $data['faceImage'] : null; + $this->container['bankNo'] = isset($data['bankNo']) ? $data['bankNo'] : 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 memberName + * + * @return string + */ + public function getMemberName() + { + return $this->container['memberName']; + } + + /** + * Sets memberName + * + * @param string $memberName 用户姓名
真实姓名 + * + * @return $this + */ + public function setMemberName($memberName) + { + $this->container['memberName'] = $memberName; + + return $this; + } + + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->container['idCardNo']; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo 证件号码 + * + * @return $this + */ + public function setIdCardNo($idCardNo) + { + $this->container['idCardNo'] = $idCardNo; + + return $this; + } + + /** + * Gets idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->container['idCardType']; + } + + /** + * Sets idCardType + * + * @param string $idCardType 证件类型
可选项如下:
ID:身份证 + * + * @return $this + */ + public function setIdCardType($idCardType) + { + $this->container['idCardType'] = $idCardType; + + return $this; + } + + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->container['mobile']; + } + + /** + * Sets mobile + * + * @param string $mobile 手机号 + * + * @return $this + */ + public function setMobile($mobile) + { + $this->container['mobile'] = $mobile; + + return $this; + } + + /** + * Gets sex + * + * @return string + */ + public function getSex() + { + return $this->container['sex']; + } + + /** + * Sets sex + * + * @param string $sex 性别
可选项如下:
MALE:男性
FEMALE:女性 + * + * @return $this + */ + public function setSex($sex) + { + $this->container['sex'] = $sex; + + return $this; + } + + /** + * Gets address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address 通讯地址
长度不少于5个汉字,不超过44个汉字。地址需详细包含省(直辖市),市,区(县)及详细地址 + * + * @return $this + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets idCardBeginDate + * + * @return string + */ + public function getIdCardBeginDate() + { + return $this->container['idCardBeginDate']; + } + + /** + * Sets idCardBeginDate + * + * @param string $idCardBeginDate 证件起始日期
类型为yyyy-MM-dd + * + * @return $this + */ + public function setIdCardBeginDate($idCardBeginDate) + { + $this->container['idCardBeginDate'] = $idCardBeginDate; + + return $this; + } + + /** + * Gets idCardEndDate + * + * @return string + */ + public function getIdCardEndDate() + { + return $this->container['idCardEndDate']; + } + + /** + * Sets idCardEndDate + * + * @param string $idCardEndDate 证件截止日期
类型为yyyy-MM-dd(如果为长期的话传长期) + * + * @return $this + */ + public function setIdCardEndDate($idCardEndDate) + { + $this->container['idCardEndDate'] = $idCardEndDate; + + return $this; + } + + /** + * Gets idCardOrg + * + * @return string + */ + public function getIdCardOrg() + { + return $this->container['idCardOrg']; + } + + /** + * Sets idCardOrg + * + * @param string $idCardOrg 身份证发证机关 + * + * @return $this + */ + public function setIdCardOrg($idCardOrg) + { + $this->container['idCardOrg'] = $idCardOrg; + + return $this; + } + + /** + * Gets corpOrationType + * + * @return string + */ + public function getCorpOrationType() + { + return $this->container['corpOrationType']; + } + + /** + * Sets corpOrationType + * + * @param string $corpOrationType 职业类别
可选项如下:
00:公务员
05:服务业从业人员
06:农、林、牧、渔生产人员
07:工人
12:家庭主妇/主夫
13:教师
14:律师
15:医护人员
17:学生
18:离退休人员
19:私营业主
20:自由职业者
19:私营业主
20:自由职业者
21:无业人员
24:群众团体、社会团队和其他成员组织人员
25:事业单位员工
26:公司员工
30:公司负责人和高管
31:事业单位负责人
32:金融、财务从业者
33:IT技术人员
35:科研人员
37:文学艺术、体育专业人员
38:其他专业技术人员
39:网商经营者 + * + * @return $this + */ + public function setCorpOrationType($corpOrationType) + { + $this->container['corpOrationType'] = $corpOrationType; + + return $this; + } + + /** + * Gets idImageFront + * + * @return string + */ + public function getIdImageFront() + { + return $this->container['idImageFront']; + } + + /** + * Sets idImageFront + * + * @param string $idImageFront 身份证正面图片地址
上传到易宝文件存储后返回的url + * + * @return $this + */ + public function setIdImageFront($idImageFront) + { + $this->container['idImageFront'] = $idImageFront; + + return $this; + } + + /** + * Gets idImageBack + * + * @return string + */ + public function getIdImageBack() + { + return $this->container['idImageBack']; + } + + /** + * Sets idImageBack + * + * @param string $idImageBack 身份证反面照地址

上传到易宝文件存储后返回的url + * + * @return $this + */ + public function setIdImageBack($idImageBack) + { + $this->container['idImageBack'] = $idImageBack; + + return $this; + } + + /** + * Gets faceImage + * + * @return string + */ + public function getFaceImage() + { + return $this->container['faceImage']; + } + + /** + * Sets faceImage + * + * @param string $faceImage 人脸图片地址
上传到易宝文件存储后返回的url + * + * @return $this + */ + public function setFaceImage($faceImage) + { + $this->container['faceImage'] = $faceImage; + + return $this; + } + + /** + * Gets bankNo + * + * @return string + */ + public function getBankNo() + { + return $this->container['bankNo']; + } + + /** + * Sets bankNo + * + * @param string $bankNo 绑定的一类银行卡号
《支持的银行》 + * + * @return $this + */ + public function setBankNo($bankNo) + { + $this->container['bankNo'] = $bankNo; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AccountOpenNotifyRequest.php b/lib/Service/MWallet/Model/AccountOpenNotifyRequest.php new file mode 100644 index 0000000..3b18d44 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenNotifyRequest.php @@ -0,0 +1,167 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountOpenNotifyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountOpenNotifyRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets walletUserNo + * + * @return string + */ + public function getWalletUserNo() + { + return $this->walletUserNo; + } + + /** + * Sets walletUserNo + * + * @param string $walletUserNo + * @return AccountOpenNotifyRequest + */ + public function setWalletUserNo($walletUserNo) + { + $this->walletUserNo = $walletUserNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AccountOpenNotifyRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountOpenNotifyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->businessNo; + } + + /** + * Sets businessNo + * + * @param string $businessNo + * @return AccountOpenNotifyRequest + */ + public function setBusinessNo($businessNo) + { + $this->businessNo = $businessNo; + return $this; + } + + public static function getOperationId() + { + return 'account_open_notify'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountOpenNotifyRequestMarshaller.php b/lib/Service/MWallet/Model/AccountOpenNotifyRequestMarshaller.php new file mode 100644 index 0000000..0b96fef --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenNotifyRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getWalletUserNo() != null){ + $internalRequest->addParameter('walletUserNo', ObjectSerializer::sanitizeForSerialization($request->getWalletUserNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getBusinessNo() != null){ + $internalRequest->addParameter('businessNo', ObjectSerializer::sanitizeForSerialization($request->getBusinessNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountOpenNotifyRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountOpenNotifyResponse.php b/lib/Service/MWallet/Model/AccountOpenNotifyResponse.php new file mode 100644 index 0000000..cf38ad7 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenNotifyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OpenSuccessNotifyResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountOpenNotifyResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountOpenNotifyResponseUnMarshaller.php new file mode 100644 index 0000000..b7d6ae7 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenNotifyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +name; + } + + /** + * Sets name + * + * @param string $name + * @return AccountOpenRequest + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return AccountOpenRequest + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return AccountOpenRequest + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountOpenRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountOpenRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountOpenRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return AccountOpenRequest + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountOpenRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'accountOpen'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountOpenRequestMarshaller.php b/lib/Service/MWallet/Model/AccountOpenRequestMarshaller.php new file mode 100644 index 0000000..d26919e --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountOpenRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountOpenResponse.php b/lib/Service/MWallet/Model/AccountOpenResponse.php new file mode 100644 index 0000000..2f12eaf --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletRequestRecordResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountOpenResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountOpenResponseUnMarshaller.php new file mode 100644 index 0000000..52ac2a7 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenResponseUnMarshaller.php @@ -0,0 +1,39 @@ +name; + } + + /** + * Sets name + * + * @param string $name + * @return AccountOpenV10Request + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return AccountOpenV10Request + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return AccountOpenV10Request + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AccountOpenV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountOpenV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountOpenV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return AccountOpenV10Request + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountOpenV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'account_open_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountOpenV10RequestMarshaller.php b/lib/Service/MWallet/Model/AccountOpenV10RequestMarshaller.php new file mode 100644 index 0000000..10261ef --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenV10RequestMarshaller.php @@ -0,0 +1,101 @@ +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->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountOpenV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountOpenV10Response.php b/lib/Service/MWallet/Model/AccountOpenV10Response.php new file mode 100644 index 0000000..985bc44 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletRequestRecordResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountOpenV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountOpenV10ResponseUnMarshaller.php new file mode 100644 index 0000000..76cac1d --- /dev/null +++ b/lib/Service/MWallet/Model/AccountOpenV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'accountStatus' => 'string', + 'balance' => 'float', + 'bankAccountNo' => 'string', + 'bankAccountLevel' => 'string', + 'mobile' => 'string', + 'accountType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'elecAccount' => null, + 'accountStatus' => null, + 'balance' => null, + 'bankAccountNo' => null, + 'bankAccountLevel' => null, + 'mobile' => null, + 'accountType' => 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 = [ + 'elecAccount' => 'elecAccount', + 'accountStatus' => 'accountStatus', + 'balance' => 'balance', + 'bankAccountNo' => 'bankAccountNo', + 'bankAccountLevel' => 'bankAccountLevel', + 'mobile' => 'mobile', + 'accountType' => 'accountType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'elecAccount' => 'setElecAccount', + 'accountStatus' => 'setAccountStatus', + 'balance' => 'setBalance', + 'bankAccountNo' => 'setBankAccountNo', + 'bankAccountLevel' => 'setBankAccountLevel', + 'mobile' => 'setMobile', + 'accountType' => 'setAccountType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'elecAccount' => 'getElecAccount', + 'accountStatus' => 'getAccountStatus', + 'balance' => 'getBalance', + 'bankAccountNo' => 'getBankAccountNo', + 'bankAccountLevel' => 'getBankAccountLevel', + 'mobile' => 'getMobile', + 'accountType' => 'getAccountType' + ]; + + /** + * 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['elecAccount'] = isset($data['elecAccount']) ? $data['elecAccount'] : null; + $this->container['accountStatus'] = isset($data['accountStatus']) ? $data['accountStatus'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['bankAccountNo'] = isset($data['bankAccountNo']) ? $data['bankAccountNo'] : null; + $this->container['bankAccountLevel'] = isset($data['bankAccountLevel']) ? $data['bankAccountLevel'] : null; + $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : 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 elecAccount + * + * @return string + */ + public function getElecAccount() + { + return $this->container['elecAccount']; + } + + /** + * Sets elecAccount + * + * @param string $elecAccount 账户账号 + * + * @return $this + */ + public function setElecAccount($elecAccount) + { + $this->container['elecAccount'] = $elecAccount; + + 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; + } + + /** + * 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 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 bankAccountLevel + * + * @return string + */ + public function getBankAccountLevel() + { + return $this->container['bankAccountLevel']; + } + + /** + * Sets bankAccountLevel + * + * @param string $bankAccountLevel 账户等级(一类户,二类户,三类户) + * + * @return $this + */ + public function setBankAccountLevel($bankAccountLevel) + { + $this->container['bankAccountLevel'] = $bankAccountLevel; + + return $this; + } + + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->container['mobile']; + } + + /** + * Sets mobile + * + * @param string $mobile 手机号 + * + * @return $this + */ + public function setMobile($mobile) + { + $this->container['mobile'] = $mobile; + + return $this; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AccountQueryBalanceQueryBalanceResponseDTOResult.php b/lib/Service/MWallet/Model/AccountQueryBalanceQueryBalanceResponseDTOResult.php new file mode 100644 index 0000000..7c94fed --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryBalanceQueryBalanceResponseDTOResult.php @@ -0,0 +1,362 @@ + 'string', + 'returnMsg' => 'string', + 'queryAccountInfoDTOList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryAccountInfoDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'queryAccountInfoDTOList' => 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', + 'queryAccountInfoDTOList' => 'queryAccountInfoDTOList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'queryAccountInfoDTOList' => 'setQueryAccountInfoDTOList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'queryAccountInfoDTOList' => 'getQueryAccountInfoDTOList' + ]; + + /** + * 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['queryAccountInfoDTOList'] = isset($data['queryAccountInfoDTOList']) ? $data['queryAccountInfoDTOList'] : 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 queryAccountInfoDTOList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryAccountInfoDTOResult[] + */ + public function getQueryAccountInfoDTOList() + { + return $this->container['queryAccountInfoDTOList']; + } + + /** + * Sets queryAccountInfoDTOList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountQueryBalanceQueryAccountInfoDTOResult[] $queryAccountInfoDTOList 账户信息集合 + * + * @return $this + */ + public function setQueryAccountInfoDTOList($queryAccountInfoDTOList) + { + $this->container['queryAccountInfoDTOList'] = $queryAccountInfoDTOList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AccountQueryBalanceRequest.php b/lib/Service/MWallet/Model/AccountQueryBalanceRequest.php new file mode 100644 index 0000000..4042a12 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryBalanceRequest.php @@ -0,0 +1,142 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return AccountQueryBalanceRequest + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountQueryBalanceRequest + */ + 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 AccountQueryBalanceRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->accountType; + } + + /** + * Sets accountType + * + * @param string $accountType + * @return AccountQueryBalanceRequest + */ + public function setAccountType($accountType) + { + $this->accountType = $accountType; + return $this; + } + /** + * Gets elecAccount + * + * @return string + */ + public function getElecAccount() + { + return $this->elecAccount; + } + + /** + * Sets elecAccount + * + * @param string $elecAccount + * @return AccountQueryBalanceRequest + */ + public function setElecAccount($elecAccount) + { + $this->elecAccount = $elecAccount; + return $this; + } + + public static function getOperationId() + { + return 'accountQueryBalance'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountQueryBalanceRequestMarshaller.php b/lib/Service/MWallet/Model/AccountQueryBalanceRequestMarshaller.php new file mode 100644 index 0000000..9e44206 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryBalanceRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + 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->getAccountType() != null){ + $internalRequest->addParameter('accountType', ObjectSerializer::sanitizeForSerialization($request->getAccountType(), 'string')); + } + if($request->getElecAccount() != null){ + $internalRequest->addParameter('elecAccount', ObjectSerializer::sanitizeForSerialization($request->getElecAccount(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountQueryBalanceRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountQueryBalanceResponse.php b/lib/Service/MWallet/Model/AccountQueryBalanceResponse.php new file mode 100644 index 0000000..a99e493 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryBalanceResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AccountQueryBalanceQueryBalanceResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountQueryBalanceResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountQueryBalanceResponseUnMarshaller.php new file mode 100644 index 0000000..908b291 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryBalanceResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AccountQueryQuotaRequest + */ + 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 AccountQueryQuotaRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountQueryQuotaRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + + public static function getOperationId() + { + return 'account_query_quota'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountQueryQuotaRequestMarshaller.php b/lib/Service/MWallet/Model/AccountQueryQuotaRequestMarshaller.php new file mode 100644 index 0000000..f7ec9e1 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryQuotaRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountQueryQuotaRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountQueryQuotaResponse.php b/lib/Service/MWallet/Model/AccountQueryQuotaResponse.php new file mode 100644 index 0000000..b4b414b --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryQuotaResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryMemberBalanceQuotaRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountQueryQuotaResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountQueryQuotaResponseUnMarshaller.php new file mode 100644 index 0000000..46e5408 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryQuotaResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountQueryRequest + */ + 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 AccountQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'accountQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountQueryRequestMarshaller.php b/lib/Service/MWallet/Model/AccountQueryRequestMarshaller.php new file mode 100644 index 0000000..9df52ec --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountQueryResponse.php b/lib/Service/MWallet/Model/AccountQueryResponse.php new file mode 100644 index 0000000..9eb0631 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletMemberResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountQueryResponseUnMarshaller.php new file mode 100644 index 0000000..b93d443 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AccountQueryV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AccountQueryV10Request + */ + 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 AccountQueryV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'account_query_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AccountQueryV10RequestMarshaller.php b/lib/Service/MWallet/Model/AccountQueryV10RequestMarshaller.php new file mode 100644 index 0000000..5aa0bb7 --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AccountQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AccountQueryV10Response.php b/lib/Service/MWallet/Model/AccountQueryV10Response.php new file mode 100644 index 0000000..b3d018a --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletMemberResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AccountQueryV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AccountQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..8ea140f --- /dev/null +++ b/lib/Service/MWallet/Model/AccountQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +operateReason; + } + + /** + * Sets operateReason + * + * @param string $operateReason + * @return AgreementPaymentCancelRequest + */ + public function setOperateReason($operateReason) + { + $this->operateReason = $operateReason; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentCancelRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentCancelRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentCancelRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentCancelRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentCancelRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreementPaymentCancel'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelRequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentCancelRequestMarshaller.php new file mode 100644 index 0000000..c7da6f9 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getOperateReason() != null){ + $internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentCancelRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelResponse.php b/lib/Service/MWallet/Model/AgreementPaymentCancelResponse.php new file mode 100644 index 0000000..861c00c --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretCancelResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentCancelResponseUnMarshaller.php new file mode 100644 index 0000000..a200234 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelResponseUnMarshaller.php @@ -0,0 +1,39 @@ +operateReason; + } + + /** + * Sets operateReason + * + * @param string $operateReason + * @return AgreementPaymentCancelV10Request + */ + public function setOperateReason($operateReason) + { + $this->operateReason = $operateReason; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentCancelV10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentCancelV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentCancelV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentCancelV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentCancelV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_cancel_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelV10RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentCancelV10RequestMarshaller.php new file mode 100644 index 0000000..596ba83 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelV10RequestMarshaller.php @@ -0,0 +1,95 @@ +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->getOperateReason() != null){ + $internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentCancelV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelV10Response.php b/lib/Service/MWallet/Model/AgreementPaymentCancelV10Response.php new file mode 100644 index 0000000..04606fc --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretCancelResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentCancelV10ResponseUnMarshaller.php new file mode 100644 index 0000000..30f3818 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentCancelWeb3V10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operateReason + * + * @return string + */ + public function getOperateReason() + { + return $this->operateReason; + } + + /** + * Sets operateReason + * + * @param string $operateReason + * @return AgreementPaymentCancelWeb3V10Request + */ + public function setOperateReason($operateReason) + { + $this->operateReason = $operateReason; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return AgreementPaymentCancelWeb3V10Request + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentCancelWeb3V10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentCancelWeb3V10Request + */ + 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 AgreementPaymentCancelWeb3V10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentCancelWeb3V10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_cancel_web3_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10RequestMarshaller.php new file mode 100644 index 0000000..2d61996 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10RequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperateReason() != null){ + $internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentCancelWeb3V10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10Response.php b/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10Response.php new file mode 100644 index 0000000..146970e --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretCancelRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10ResponseUnMarshaller.php new file mode 100644 index 0000000..7429bb5 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentCancelWeb3V10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentNotifyWeb3Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operateTime + * + * @return string + */ + public function getOperateTime() + { + return $this->operateTime; + } + + /** + * Sets operateTime + * + * @param string $operateTime + * @return AgreementPaymentNotifyWeb3Request + */ + public function setOperateTime($operateTime) + { + $this->operateTime = $operateTime; + return $this; + } + /** + * Gets operateType + * + * @return string + */ + public function getOperateType() + { + return $this->operateType; + } + + /** + * Sets operateType + * + * @param string $operateType + * @return AgreementPaymentNotifyWeb3Request + */ + public function setOperateType($operateType) + { + $this->operateType = $operateType; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentNotifyWeb3Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets endTime + * + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param string $endTime + * @return AgreementPaymentNotifyWeb3Request + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentNotifyWeb3Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentNotifyWeb3Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_notify_web3'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3RequestMarshaller.php new file mode 100644 index 0000000..a6b29e6 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3RequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperateTime() != null){ + $internalRequest->addParameter('operateTime', ObjectSerializer::sanitizeForSerialization($request->getOperateTime(), 'string')); + } + if($request->getOperateType() != null){ + $internalRequest->addParameter('operateType', ObjectSerializer::sanitizeForSerialization($request->getOperateType(), 'string', 'enum')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentNotifyWeb3RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Response.php b/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Response.php new file mode 100644 index 0000000..fe7bfcc --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretNotifyRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3ResponseUnMarshaller.php new file mode 100644 index 0000000..5d3e33d --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentNotifyWeb3ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentQueryRequest + */ + 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 AgreementPaymentQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_query'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentQueryRequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentQueryRequestMarshaller.php new file mode 100644 index 0000000..499471b --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentQueryResponse.php b/lib/Service/MWallet/Model/AgreementPaymentQueryResponse.php new file mode 100644 index 0000000..4e99446 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentQueryResponseUnMarshaller.php new file mode 100644 index 0000000..1a27435 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentQueryWeb3V10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentQueryWeb3V10Request + */ + 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 AgreementPaymentQueryWeb3V10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return AgreementPaymentQueryWeb3V10Request + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_query_web3_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10RequestMarshaller.php new file mode 100644 index 0000000..7732792 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + 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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentQueryWeb3V10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10Response.php b/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10Response.php new file mode 100644 index 0000000..866b613 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretQueryRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10ResponseUnMarshaller.php new file mode 100644 index 0000000..3440b02 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentQueryWeb3V10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentRequestRequest + */ + 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 AgreementPaymentRequestRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentRequestRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentRequestRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return AgreementPaymentRequestRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentRequestRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'agreementPaymentRequest'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentRequestRequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentRequestRequestMarshaller.php new file mode 100644 index 0000000..fb6aba8 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentRequestRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentRequestRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentRequestResponse.php b/lib/Service/MWallet/Model/AgreementPaymentRequestResponse.php new file mode 100644 index 0000000..742acbe --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentRequestResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentRequestResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentRequestResponseUnMarshaller.php new file mode 100644 index 0000000..5f55908 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentRequestResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentRequestV1Request + */ + 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 AgreementPaymentRequestV1Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentRequestV1Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentRequestV1Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return AgreementPaymentRequestV1Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentRequestV1Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_request_v1'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentRequestV1RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentRequestV1RequestMarshaller.php new file mode 100644 index 0000000..5a44825 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentRequestV1RequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentRequestV1RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentRequestV1Response.php b/lib/Service/MWallet/Model/AgreementPaymentRequestV1Response.php new file mode 100644 index 0000000..ee6d6db --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentRequestV1Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentRequestV1ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentRequestV1ResponseUnMarshaller.php new file mode 100644 index 0000000..b8b2bd0 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentRequestV1ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return AgreementPaymentSignRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentSignRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentSignRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentSignRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentSignRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentSignRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreementPaymentSign'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignRequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentSignRequestMarshaller.php new file mode 100644 index 0000000..28162c4 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentSignRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignResponse.php b/lib/Service/MWallet/Model/AgreementPaymentSignResponse.php new file mode 100644 index 0000000..4d9c8d9 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentSignResponseUnMarshaller.php new file mode 100644 index 0000000..b3b4c75 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignResponseUnMarshaller.php @@ -0,0 +1,39 @@ +returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return AgreementPaymentSignV10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentSignV10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AgreementPaymentSignV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentSignV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentSignV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentSignV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_sign_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignV10RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentSignV10RequestMarshaller.php new file mode 100644 index 0000000..298c1e4 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignV10RequestMarshaller.php @@ -0,0 +1,95 @@ +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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentSignV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignV10Response.php b/lib/Service/MWallet/Model/AgreementPaymentSignV10Response.php new file mode 100644 index 0000000..e6a1b1a --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentSignV10ResponseUnMarshaller.php new file mode 100644 index 0000000..d20ebe1 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AgreementPaymentSignWeb3V10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return AgreementPaymentSignWeb3V10Request + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AgreementPaymentSignWeb3V10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AgreementPaymentSignWeb3V10Request + */ + 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 AgreementPaymentSignWeb3V10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return AgreementPaymentSignWeb3V10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AgreementPaymentSignWeb3V10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'agreement_payment_sign_web3_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10RequestMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10RequestMarshaller.php new file mode 100644 index 0000000..73f37b7 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10RequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AgreementPaymentSignWeb3V10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Response.php b/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Response.php new file mode 100644 index 0000000..f2bf70e --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretSignRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10ResponseUnMarshaller.php new file mode 100644 index 0000000..04b6162 --- /dev/null +++ b/lib/Service/MWallet/Model/AgreementPaymentSignWeb3V10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AutoDeductionCreateRequest + */ + 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 AutoDeductionCreateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AutoDeductionCreateRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AutoDeductionCreateRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return AutoDeductionCreateRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets bindCardId + * + * @return string + */ + public function getBindCardId() + { + return $this->bindCardId; + } + + /** + * Sets bindCardId + * + * @param string $bindCardId + * @return AutoDeductionCreateRequest + */ + public function setBindCardId($bindCardId) + { + $this->bindCardId = $bindCardId; + return $this; + } + /** + * Gets payWay + * + * @return string + */ + public function getPayWay() + { + return $this->payWay; + } + + /** + * Sets payWay + * + * @param string $payWay + * @return AutoDeductionCreateRequest + */ + public function setPayWay($payWay) + { + $this->payWay = $payWay; + return $this; + } + /** + * Gets expireTime + * + * @return \DateTime + */ + public function getExpireTime() + { + return $this->expireTime; + } + + /** + * Sets expireTime + * + * @param \DateTime $expireTime + * @return AutoDeductionCreateRequest + */ + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return AutoDeductionCreateRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + + public static function getOperationId() + { + return 'auto_deduction_create'; + } + + +} diff --git a/lib/Service/MWallet/Model/AutoDeductionCreateRequestMarshaller.php b/lib/Service/MWallet/Model/AutoDeductionCreateRequestMarshaller.php new file mode 100644 index 0000000..737876c --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionCreateRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getBindCardId() != null){ + $internalRequest->addParameter('bindCardId', ObjectSerializer::sanitizeForSerialization($request->getBindCardId(), 'string')); + } + if($request->getPayWay() != null){ + $internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string', 'enum')); + } + if($request->getExpireTime() != null){ + $internalRequest->addParameter('expireTime', ObjectSerializer::sanitizeForSerialization($request->getExpireTime(), '\DateTime', 'date-time')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AutoDeductionCreateRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AutoDeductionCreateResponse.php b/lib/Service/MWallet/Model/AutoDeductionCreateResponse.php new file mode 100644 index 0000000..9f02215 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionCreateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AutoDeductionResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AutoDeductionCreateResponseUnMarshaller.php b/lib/Service/MWallet/Model/AutoDeductionCreateResponseUnMarshaller.php new file mode 100644 index 0000000..e0e3e2f --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionCreateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AutoDeductionQueryRequest + */ + 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 AutoDeductionQueryRequest + */ + 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 AutoDeductionQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'auto_deduction_query'; + } + + +} diff --git a/lib/Service/MWallet/Model/AutoDeductionQueryRequestMarshaller.php b/lib/Service/MWallet/Model/AutoDeductionQueryRequestMarshaller.php new file mode 100644 index 0000000..d15a0b0 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AutoDeductionQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AutoDeductionQueryResponse.php b/lib/Service/MWallet/Model/AutoDeductionQueryResponse.php new file mode 100644 index 0000000..03b7b87 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AutoDeductionQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AutoDeductionQueryResponseDTO.php b/lib/Service/MWallet/Model/AutoDeductionQueryResponseDTO.php new file mode 100644 index 0000000..bc806e1 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionQueryResponseDTO.php @@ -0,0 +1,423 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'uniqueOrderNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'uniqueOrderNo' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'requestNo' => 'requestNo', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'uniqueOrderNo' => 'getUniqueOrderNo', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : 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 code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * 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 uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->container['uniqueOrderNo']; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo uniqueOrderNo + * + * @return $this + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->container['uniqueOrderNo'] = $uniqueOrderNo; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AutoDeductionQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/AutoDeductionQueryResponseUnMarshaller.php new file mode 100644 index 0000000..656f81c --- /dev/null +++ b/lib/Service/MWallet/Model/AutoDeductionQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'requestNo' => 'requestNo', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * 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 status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AutoWithdrawQueryRequest.php b/lib/Service/MWallet/Model/AutoWithdrawQueryRequest.php new file mode 100644 index 0000000..d7c307c --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawQueryRequest.php @@ -0,0 +1,117 @@ +operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return AutoWithdrawQueryRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AutoWithdrawQueryRequest + */ + 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 AutoWithdrawQueryRequest + */ + 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 AutoWithdrawQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'auto_withdraw_query'; + } + + +} diff --git a/lib/Service/MWallet/Model/AutoWithdrawQueryRequestMarshaller.php b/lib/Service/MWallet/Model/AutoWithdrawQueryRequestMarshaller.php new file mode 100644 index 0000000..0cb6007 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + 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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AutoWithdrawQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AutoWithdrawQueryResponse.php b/lib/Service/MWallet/Model/AutoWithdrawQueryResponse.php new file mode 100644 index 0000000..b6ff419 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AutoWithdrawQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AutoWithdrawQueryResponseDTO.php b/lib/Service/MWallet/Model/AutoWithdrawQueryResponseDTO.php new file mode 100644 index 0000000..33af785 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawQueryResponseDTO.php @@ -0,0 +1,513 @@ + 'string', + 'message' => 'string', + 'businessNo' => 'string', + 'withdrawAmount' => 'string', + 'deductionAmount' => 'string', + 'arrivalAmount' => 'string', + 'orderStatus' => 'string', + 'completeTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'businessNo' => null, + 'withdrawAmount' => null, + 'deductionAmount' => null, + 'arrivalAmount' => null, + 'orderStatus' => null, + 'completeTime' => 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', + 'businessNo' => 'businessNo', + 'withdrawAmount' => 'withdrawAmount', + 'deductionAmount' => 'deductionAmount', + 'arrivalAmount' => 'arrivalAmount', + 'orderStatus' => 'orderStatus', + 'completeTime' => 'completeTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'businessNo' => 'setBusinessNo', + 'withdrawAmount' => 'setWithdrawAmount', + 'deductionAmount' => 'setDeductionAmount', + 'arrivalAmount' => 'setArrivalAmount', + 'orderStatus' => 'setOrderStatus', + 'completeTime' => 'setCompleteTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'businessNo' => 'getBusinessNo', + 'withdrawAmount' => 'getWithdrawAmount', + 'deductionAmount' => 'getDeductionAmount', + 'arrivalAmount' => 'getArrivalAmount', + 'orderStatus' => 'getOrderStatus', + 'completeTime' => 'getCompleteTime' + ]; + + /** + * 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['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['withdrawAmount'] = isset($data['withdrawAmount']) ? $data['withdrawAmount'] : null; + $this->container['deductionAmount'] = isset($data['deductionAmount']) ? $data['deductionAmount'] : null; + $this->container['arrivalAmount'] = isset($data['arrivalAmount']) ? $data['arrivalAmount'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['completeTime'] = isset($data['completeTime']) ? $data['completeTime'] : 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo

易宝业务订单号

+ * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + return $this; + } + + /** + * Gets withdrawAmount + * + * @return string + */ + public function getWithdrawAmount() + { + return $this->container['withdrawAmount']; + } + + /** + * Sets withdrawAmount + * + * @param string $withdrawAmount

提现金额

+ * + * @return $this + */ + public function setWithdrawAmount($withdrawAmount) + { + $this->container['withdrawAmount'] = $withdrawAmount; + + return $this; + } + + /** + * Gets deductionAmount + * + * @return string + */ + public function getDeductionAmount() + { + return $this->container['deductionAmount']; + } + + /** + * Sets deductionAmount + * + * @param string $deductionAmount

扣账金额

+ * + * @return $this + */ + public function setDeductionAmount($deductionAmount) + { + $this->container['deductionAmount'] = $deductionAmount; + + return $this; + } + + /** + * Gets arrivalAmount + * + * @return string + */ + public function getArrivalAmount() + { + return $this->container['arrivalAmount']; + } + + /** + * Sets arrivalAmount + * + * @param string $arrivalAmount

到账金额

+ * + * @return $this + */ + public function setArrivalAmount($arrivalAmount) + { + $this->container['arrivalAmount'] = $arrivalAmount; + + return $this; + } + + /** + * Gets orderStatus + * + * @return string + */ + public function getOrderStatus() + { + return $this->container['orderStatus']; + } + + /** + * Sets orderStatus + * + * @param string $orderStatus

订单状态

PROCESS:请求处理中

FAIL:处理失败
SUCCESS:处理成功
+ * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets completeTime + * + * @return string + */ + public function getCompleteTime() + { + return $this->container['completeTime']; + } + + /** + * Sets completeTime + * + * @param string $completeTime

提现完成时间

+ * + * @return $this + */ + public function setCompleteTime($completeTime) + { + $this->container['completeTime'] = $completeTime; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AutoWithdrawQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/AutoWithdrawQueryResponseUnMarshaller.php new file mode 100644 index 0000000..9f319a6 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return AutoWithdrawRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return AutoWithdrawRequest + */ + 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 AutoWithdrawRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return AutoWithdrawRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return AutoWithdrawRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return AutoWithdrawRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'auto_withdraw'; + } + + +} diff --git a/lib/Service/MWallet/Model/AutoWithdrawRequestMarshaller.php b/lib/Service/MWallet/Model/AutoWithdrawRequestMarshaller.php new file mode 100644 index 0000000..85d7204 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + 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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AutoWithdrawRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/AutoWithdrawResponse.php b/lib/Service/MWallet/Model/AutoWithdrawResponse.php new file mode 100644 index 0000000..c5d468e --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AutoWithdrawResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/AutoWithdrawResponseDTO.php b/lib/Service/MWallet/Model/AutoWithdrawResponseDTO.php new file mode 100644 index 0000000..86f4bfd --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawResponseDTO.php @@ -0,0 +1,393 @@ + 'string', + 'code' => 'string', + 'orderStatus' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'businessNo' => null, + 'code' => null, + 'orderStatus' => null, + 'message' => 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 = [ + 'businessNo' => 'businessNo', + 'code' => 'code', + 'orderStatus' => 'orderStatus', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'businessNo' => 'setBusinessNo', + 'code' => 'setCode', + 'orderStatus' => 'setOrderStatus', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'businessNo' => 'getBusinessNo', + 'code' => 'getCode', + 'orderStatus' => 'getOrderStatus', + 'message' => 'getMessage' + ]; + + /** + * 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['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo businessNo + * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + return $this; + } + + /** + * Gets code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets orderStatus + * + * @return string + */ + public function getOrderStatus() + { + return $this->container['orderStatus']; + } + + /** + * Sets orderStatus + * + * @param string $orderStatus orderStatus + * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/AutoWithdrawResponseUnMarshaller.php b/lib/Service/MWallet/Model/AutoWithdrawResponseUnMarshaller.php new file mode 100644 index 0000000..a397f66 --- /dev/null +++ b/lib/Service/MWallet/Model/AutoWithdrawResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountConfirmRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets shortMsg + * + * @return string + */ + public function getShortMsg() + { + return $this->shortMsg; + } + + /** + * Sets shortMsg + * + * @param string $shortMsg + * @return BankAccountConfirmRequest + */ + public function setShortMsg($shortMsg) + { + $this->shortMsg = $shortMsg; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountConfirmRequest + */ + 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 BankAccountConfirmRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountConfirm'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountConfirmRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountConfirmRequestMarshaller.php new file mode 100644 index 0000000..036dff0 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountConfirmRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getShortMsg() != null){ + $internalRequest->addParameter('shortMsg', ObjectSerializer::sanitizeForSerialization($request->getShortMsg(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountConfirmRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountConfirmResponse.php b/lib/Service/MWallet/Model/BankAccountConfirmResponse.php new file mode 100644 index 0000000..163d7fb --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountConfirmResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ConfirmBankAccountResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountConfirmResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountConfirmResponseUnMarshaller.php new file mode 100644 index 0000000..7cc0215 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountConfirmResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountConfirmV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets shortMsg + * + * @return string + */ + public function getShortMsg() + { + return $this->shortMsg; + } + + /** + * Sets shortMsg + * + * @param string $shortMsg + * @return BankAccountConfirmV10Request + */ + public function setShortMsg($shortMsg) + { + $this->shortMsg = $shortMsg; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountConfirmV10Request + */ + 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 BankAccountConfirmV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_confirm_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountConfirmV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountConfirmV10RequestMarshaller.php new file mode 100644 index 0000000..2ebfe36 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountConfirmV10RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getShortMsg() != null){ + $internalRequest->addParameter('shortMsg', ObjectSerializer::sanitizeForSerialization($request->getShortMsg(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountConfirmV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountConfirmV10Response.php b/lib/Service/MWallet/Model/BankAccountConfirmV10Response.php new file mode 100644 index 0000000..6e3f533 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountConfirmV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ConfirmBankAccountResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountConfirmV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountConfirmV10ResponseUnMarshaller.php new file mode 100644 index 0000000..5c92b27 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountConfirmV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return BankAccountOpenRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountOpen'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountOpenRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountOpenRequestMarshaller.php new file mode 100644 index 0000000..2e89802 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountOpenRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountOpenRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountOpenResponse.php b/lib/Service/MWallet/Model/BankAccountOpenResponse.php new file mode 100644 index 0000000..3b34e71 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountOpenResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankAccountResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountOpenResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountOpenResponseUnMarshaller.php new file mode 100644 index 0000000..1d73c0c --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountOpenResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return BankAccountOpenV10Request + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_open_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountOpenV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountOpenV10RequestMarshaller.php new file mode 100644 index 0000000..eb3dc91 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountOpenV10RequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountOpenV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountOpenV10Response.php b/lib/Service/MWallet/Model/BankAccountOpenV10Response.php new file mode 100644 index 0000000..68d9d47 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountOpenV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankAccountResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountOpenV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountOpenV10ResponseUnMarshaller.php new file mode 100644 index 0000000..0640847 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountOpenV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountQueryActivationRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryActivationRequest + */ + 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 BankAccountQueryActivationRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountQueryActivation'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryActivationRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryActivationRequestMarshaller.php new file mode 100644 index 0000000..66dd6c9 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryActivationRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryActivationRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryActivationResponse.php b/lib/Service/MWallet/Model/BankAccountQueryActivationResponse.php new file mode 100644 index 0000000..75853ce --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryActivationResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryBankAccountActivationRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryActivationResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryActivationResponseUnMarshaller.php new file mode 100644 index 0000000..b470b22 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryActivationResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountQueryActivationV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryActivationV10Request + */ + 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 BankAccountQueryActivationV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_query_activation_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryActivationV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryActivationV10RequestMarshaller.php new file mode 100644 index 0000000..1d06202 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryActivationV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryActivationV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryActivationV10Response.php b/lib/Service/MWallet/Model/BankAccountQueryActivationV10Response.php new file mode 100644 index 0000000..0fe1dde --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryActivationV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryBankAccountActivationRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryActivationV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryActivationV10ResponseUnMarshaller.php new file mode 100644 index 0000000..823f5dc --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryActivationV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountQueryComplaintRequest + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountQueryComplaintRequest + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets bankTradeNo + * + * @return string + */ + public function getBankTradeNo() + { + return $this->bankTradeNo; + } + + /** + * Sets bankTradeNo + * + * @param string $bankTradeNo + * @return BankAccountQueryComplaintRequest + */ + public function setBankTradeNo($bankTradeNo) + { + $this->bankTradeNo = $bankTradeNo; + return $this; + } + /** + * Gets tradeTime + * + * @return string + */ + public function getTradeTime() + { + return $this->tradeTime; + } + + /** + * Sets tradeTime + * + * @param string $tradeTime + * @return BankAccountQueryComplaintRequest + */ + public function setTradeTime($tradeTime) + { + $this->tradeTime = $tradeTime; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryComplaintRequest + */ + 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 BankAccountQueryComplaintRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountQueryComplaint'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryComplaintRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryComplaintRequestMarshaller.php new file mode 100644 index 0000000..a8be75c --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryComplaintRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getBankTradeNo() != null){ + $internalRequest->addParameter('bankTradeNo', ObjectSerializer::sanitizeForSerialization($request->getBankTradeNo(), 'string')); + } + if($request->getTradeTime() != null){ + $internalRequest->addParameter('tradeTime', ObjectSerializer::sanitizeForSerialization($request->getTradeTime(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryComplaintRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryComplaintResponse.php b/lib/Service/MWallet/Model/BankAccountQueryComplaintResponse.php new file mode 100644 index 0000000..0896d5d --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryComplaintResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryComplaintOrderRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryComplaintResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryComplaintResponseUnMarshaller.php new file mode 100644 index 0000000..3fd82ce --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryComplaintResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountQueryComplaintV10Request + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountQueryComplaintV10Request + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets bankTradeNo + * + * @return string + */ + public function getBankTradeNo() + { + return $this->bankTradeNo; + } + + /** + * Sets bankTradeNo + * + * @param string $bankTradeNo + * @return BankAccountQueryComplaintV10Request + */ + public function setBankTradeNo($bankTradeNo) + { + $this->bankTradeNo = $bankTradeNo; + return $this; + } + /** + * Gets tradeTime + * + * @return string + */ + public function getTradeTime() + { + return $this->tradeTime; + } + + /** + * Sets tradeTime + * + * @param string $tradeTime + * @return BankAccountQueryComplaintV10Request + */ + public function setTradeTime($tradeTime) + { + $this->tradeTime = $tradeTime; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryComplaintV10Request + */ + 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 BankAccountQueryComplaintV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_query_complaint_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryComplaintV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryComplaintV10RequestMarshaller.php new file mode 100644 index 0000000..2dc8dff --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryComplaintV10RequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getBankTradeNo() != null){ + $internalRequest->addParameter('bankTradeNo', ObjectSerializer::sanitizeForSerialization($request->getBankTradeNo(), 'string')); + } + if($request->getTradeTime() != null){ + $internalRequest->addParameter('tradeTime', ObjectSerializer::sanitizeForSerialization($request->getTradeTime(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryComplaintV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryComplaintV10Response.php b/lib/Service/MWallet/Model/BankAccountQueryComplaintV10Response.php new file mode 100644 index 0000000..3c14bb7 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryComplaintV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryComplaintOrderRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryComplaintV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryComplaintV10ResponseUnMarshaller.php new file mode 100644 index 0000000..1c59e99 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryComplaintV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountQueryOpenResultRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryOpenResultRequest + */ + 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 BankAccountQueryOpenResultRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountQueryOpenResult'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryOpenResultRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryOpenResultRequestMarshaller.php new file mode 100644 index 0000000..9f75c72 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryOpenResultRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryOpenResultRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryOpenResultResponse.php b/lib/Service/MWallet/Model/BankAccountQueryOpenResultResponse.php new file mode 100644 index 0000000..c342c80 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryOpenResultResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryOpenResultResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryOpenResultResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryOpenResultResponseUnMarshaller.php new file mode 100644 index 0000000..9cec1a3 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryOpenResultResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountQueryOpenResultV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryOpenResultV10Request + */ + 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 BankAccountQueryOpenResultV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_query_open_result_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10RequestMarshaller.php new file mode 100644 index 0000000..5941313 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryOpenResultV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10Response.php b/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10Response.php new file mode 100644 index 0000000..7b83a56 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryOpenResultResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10ResponseUnMarshaller.php new file mode 100644 index 0000000..3b1723c --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryOpenResultV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountQueryTradeRequest + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountQueryTradeRequest + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets beginDate + * + * @return string + */ + public function getBeginDate() + { + return $this->beginDate; + } + + /** + * Sets beginDate + * + * @param string $beginDate + * @return BankAccountQueryTradeRequest + */ + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + return $this; + } + /** + * Gets endDate + * + * @return string + */ + public function getEndDate() + { + return $this->endDate; + } + + /** + * Sets endDate + * + * @param string $endDate + * @return BankAccountQueryTradeRequest + */ + public function setEndDate($endDate) + { + $this->endDate = $endDate; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryTradeRequest + */ + 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 BankAccountQueryTradeRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets loanFlag + * + * @return string + */ + public function getLoanFlag() + { + return $this->loanFlag; + } + + /** + * Sets loanFlag + * + * @param string $loanFlag + * @return BankAccountQueryTradeRequest + */ + public function setLoanFlag($loanFlag) + { + $this->loanFlag = $loanFlag; + return $this; + } + /** + * Gets startNum + * + * @return int + */ + public function getStartNum() + { + return $this->startNum; + } + + /** + * Sets startNum + * + * @param int $startNum + * @return BankAccountQueryTradeRequest + */ + public function setStartNum($startNum) + { + $this->startNum = $startNum; + return $this; + } + /** + * Gets queryNum + * + * @return int + */ + public function getQueryNum() + { + return $this->queryNum; + } + + /** + * Sets queryNum + * + * @param int $queryNum + * @return BankAccountQueryTradeRequest + */ + public function setQueryNum($queryNum) + { + $this->queryNum = $queryNum; + return $this; + } + /** + * Gets queryToken + * + * @return string + */ + public function getQueryToken() + { + return $this->queryToken; + } + + /** + * Sets queryToken + * + * @param string $queryToken + * @return BankAccountQueryTradeRequest + */ + public function setQueryToken($queryToken) + { + $this->queryToken = $queryToken; + return $this; + } + /** + * Gets queryTime + * + * @return string + */ + public function getQueryTime() + { + return $this->queryTime; + } + + /** + * Sets queryTime + * + * @param string $queryTime + * @return BankAccountQueryTradeRequest + */ + public function setQueryTime($queryTime) + { + $this->queryTime = $queryTime; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountQueryTrade'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryTradeRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryTradeRequestMarshaller.php new file mode 100644 index 0000000..7090242 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryTradeRequestMarshaller.php @@ -0,0 +1,110 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getBeginDate() != null){ + $internalRequest->addParameter('beginDate', ObjectSerializer::sanitizeForSerialization($request->getBeginDate(), 'string')); + } + if($request->getEndDate() != null){ + $internalRequest->addParameter('endDate', ObjectSerializer::sanitizeForSerialization($request->getEndDate(), 'string')); + } + 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->getLoanFlag() != null){ + $internalRequest->addParameter('loanFlag', ObjectSerializer::sanitizeForSerialization($request->getLoanFlag(), 'string')); + } + if($request->getStartNum() != null){ + $internalRequest->addParameter('startNum', ObjectSerializer::sanitizeForSerialization($request->getStartNum(), 'int', 'int32')); + } + if($request->getQueryNum() != null){ + $internalRequest->addParameter('queryNum', ObjectSerializer::sanitizeForSerialization($request->getQueryNum(), 'int', 'int32')); + } + if($request->getQueryToken() != null){ + $internalRequest->addParameter('queryToken', ObjectSerializer::sanitizeForSerialization($request->getQueryToken(), 'string')); + } + if($request->getQueryTime() != null){ + $internalRequest->addParameter('queryTime', ObjectSerializer::sanitizeForSerialization($request->getQueryTime(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryTradeRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryTradeResponse.php b/lib/Service/MWallet/Model/BankAccountQueryTradeResponse.php new file mode 100644 index 0000000..852e3c6 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryTradeResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryBankAccountTradeRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryTradeResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryTradeResponseUnMarshaller.php new file mode 100644 index 0000000..9671528 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryTradeResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountQueryTradeV10Request + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountQueryTradeV10Request + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets beginDate + * + * @return string + */ + public function getBeginDate() + { + return $this->beginDate; + } + + /** + * Sets beginDate + * + * @param string $beginDate + * @return BankAccountQueryTradeV10Request + */ + public function setBeginDate($beginDate) + { + $this->beginDate = $beginDate; + return $this; + } + /** + * Gets endDate + * + * @return string + */ + public function getEndDate() + { + return $this->endDate; + } + + /** + * Sets endDate + * + * @param string $endDate + * @return BankAccountQueryTradeV10Request + */ + public function setEndDate($endDate) + { + $this->endDate = $endDate; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryTradeV10Request + */ + 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 BankAccountQueryTradeV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets loanFlag + * + * @return string + */ + public function getLoanFlag() + { + return $this->loanFlag; + } + + /** + * Sets loanFlag + * + * @param string $loanFlag + * @return BankAccountQueryTradeV10Request + */ + public function setLoanFlag($loanFlag) + { + $this->loanFlag = $loanFlag; + return $this; + } + /** + * Gets startNum + * + * @return int + */ + public function getStartNum() + { + return $this->startNum; + } + + /** + * Sets startNum + * + * @param int $startNum + * @return BankAccountQueryTradeV10Request + */ + public function setStartNum($startNum) + { + $this->startNum = $startNum; + return $this; + } + /** + * Gets queryNum + * + * @return int + */ + public function getQueryNum() + { + return $this->queryNum; + } + + /** + * Sets queryNum + * + * @param int $queryNum + * @return BankAccountQueryTradeV10Request + */ + public function setQueryNum($queryNum) + { + $this->queryNum = $queryNum; + return $this; + } + /** + * Gets queryToken + * + * @return string + */ + public function getQueryToken() + { + return $this->queryToken; + } + + /** + * Sets queryToken + * + * @param string $queryToken + * @return BankAccountQueryTradeV10Request + */ + public function setQueryToken($queryToken) + { + $this->queryToken = $queryToken; + return $this; + } + /** + * Gets queryTime + * + * @return string + */ + public function getQueryTime() + { + return $this->queryTime; + } + + /** + * Sets queryTime + * + * @param string $queryTime + * @return BankAccountQueryTradeV10Request + */ + public function setQueryTime($queryTime) + { + $this->queryTime = $queryTime; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_query_trade_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryTradeV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryTradeV10RequestMarshaller.php new file mode 100644 index 0000000..b4caa35 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryTradeV10RequestMarshaller.php @@ -0,0 +1,110 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getBeginDate() != null){ + $internalRequest->addParameter('beginDate', ObjectSerializer::sanitizeForSerialization($request->getBeginDate(), 'string')); + } + if($request->getEndDate() != null){ + $internalRequest->addParameter('endDate', ObjectSerializer::sanitizeForSerialization($request->getEndDate(), 'string')); + } + 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->getLoanFlag() != null){ + $internalRequest->addParameter('loanFlag', ObjectSerializer::sanitizeForSerialization($request->getLoanFlag(), 'string')); + } + if($request->getStartNum() != null){ + $internalRequest->addParameter('startNum', ObjectSerializer::sanitizeForSerialization($request->getStartNum(), 'int', 'int32')); + } + if($request->getQueryNum() != null){ + $internalRequest->addParameter('queryNum', ObjectSerializer::sanitizeForSerialization($request->getQueryNum(), 'int', 'int32')); + } + if($request->getQueryToken() != null){ + $internalRequest->addParameter('queryToken', ObjectSerializer::sanitizeForSerialization($request->getQueryToken(), 'string')); + } + if($request->getQueryTime() != null){ + $internalRequest->addParameter('queryTime', ObjectSerializer::sanitizeForSerialization($request->getQueryTime(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryTradeV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryTradeV10Response.php b/lib/Service/MWallet/Model/BankAccountQueryTradeV10Response.php new file mode 100644 index 0000000..d96ad08 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryTradeV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryBankAccountTradeRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryTradeV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryTradeV10ResponseUnMarshaller.php new file mode 100644 index 0000000..bc24b53 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryTradeV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountQueryWithdrawRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryWithdrawRequest + */ + 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 BankAccountQueryWithdrawRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountQueryWithdraw'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryWithdrawRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryWithdrawRequestMarshaller.php new file mode 100644 index 0000000..cd9ffe5 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryWithdrawRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryWithdrawRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryWithdrawResponse.php b/lib/Service/MWallet/Model/BankAccountQueryWithdrawResponse.php new file mode 100644 index 0000000..491aaff --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryWithdrawResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryBankAccountWithDrawRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryWithdrawResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryWithdrawResponseUnMarshaller.php new file mode 100644 index 0000000..6a06178 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryWithdrawResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountQueryWithdrawV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountQueryWithdrawV10Request + */ + 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 BankAccountQueryWithdrawV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_query_withdraw_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10RequestMarshaller.php new file mode 100644 index 0000000..a53342b --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryWithdrawV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10Response.php b/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10Response.php new file mode 100644 index 0000000..17d88ba --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryBankAccountWithDrawRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10ResponseUnMarshaller.php new file mode 100644 index 0000000..570849e --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountQueryWithdrawV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'merchantMemberNo' => 'string', + 'accountType' => 'string', + 'bankAccountLevel' => 'string', + 'memberInfo' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\AccountMemberDTO' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'merchantMemberNo' => null, + 'accountType' => null, + 'bankAccountLevel' => null, + 'memberInfo' => 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 = [ + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo', + 'merchantMemberNo' => 'merchantMemberNo', + 'accountType' => 'accountType', + 'bankAccountLevel' => 'bankAccountLevel', + 'memberInfo' => 'memberInfo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'merchantMemberNo' => 'setMerchantMemberNo', + 'accountType' => 'setAccountType', + 'bankAccountLevel' => 'setBankAccountLevel', + 'memberInfo' => 'setMemberInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'merchantMemberNo' => 'getMerchantMemberNo', + 'accountType' => 'getAccountType', + 'bankAccountLevel' => 'getBankAccountLevel', + 'memberInfo' => 'getMemberInfo' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['merchantMemberNo'] = isset($data['merchantMemberNo']) ? $data['merchantMemberNo'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null; + $this->container['bankAccountLevel'] = isset($data['bankAccountLevel']) ? $data['bankAccountLevel'] : null; + $this->container['memberInfo'] = isset($data['memberInfo']) ? $data['memberInfo'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号
易宝支付分配的的商户唯一标识 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + 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 merchantMemberNo + * + * @return string + */ + public function getMerchantMemberNo() + { + return $this->container['merchantMemberNo']; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo 商户侧会员编号
商户侧存的会员编号,不同人的会员编号不能相同 + * + * @return $this + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->container['merchantMemberNo'] = $merchantMemberNo; + + return $this; + } + + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->container['accountType']; + } + + /** + * Sets accountType + * + * @param string $accountType 银行编码
可选项如下:
CNCB:中信银行 + * + * @return $this + */ + public function setAccountType($accountType) + { + $this->container['accountType'] = $accountType; + + return $this; + } + + /** + * Gets bankAccountLevel + * + * @return string + */ + public function getBankAccountLevel() + { + return $this->container['bankAccountLevel']; + } + + /** + * Sets bankAccountLevel + * + * @param string $bankAccountLevel 银行账户等级
可选项如下:
ONEACCOUNT:一类户
TWOACCOUNT:二类户
THREEACCOUNT:三类户 + * + * @return $this + */ + public function setBankAccountLevel($bankAccountLevel) + { + $this->container['bankAccountLevel'] = $bankAccountLevel; + + return $this; + } + + /** + * Gets memberInfo + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountMemberDTO + */ + public function getMemberInfo() + { + return $this->container['memberInfo']; + } + + /** + * Sets memberInfo + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\AccountMemberDTO $memberInfo memberInfo + * + * @return $this + */ + public function setMemberInfo($memberInfo) + { + $this->container['memberInfo'] = $memberInfo; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BankAccountResponseDTO.php b/lib/Service/MWallet/Model/BankAccountResponseDTO.php new file mode 100644 index 0000000..e50383f --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountResponseDTO.php @@ -0,0 +1,483 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'yeepayOrderNo' => 'string', + 'applyStatus' => 'string', + 'merchantNo' => 'string', + 'yeepayMemberNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'yeepayOrderNo' => null, + 'applyStatus' => null, + 'merchantNo' => null, + 'yeepayMemberNo' => 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', + 'yeepayOrderNo' => 'yeepayOrderNo', + 'applyStatus' => 'applyStatus', + 'merchantNo' => 'merchantNo', + 'yeepayMemberNo' => 'yeepayMemberNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'yeepayOrderNo' => 'setYeepayOrderNo', + 'applyStatus' => 'setApplyStatus', + 'merchantNo' => 'setMerchantNo', + 'yeepayMemberNo' => 'setYeepayMemberNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'yeepayOrderNo' => 'getYeepayOrderNo', + 'applyStatus' => 'getApplyStatus', + 'merchantNo' => 'getMerchantNo', + 'yeepayMemberNo' => 'getYeepayMemberNo' + ]; + + /** + * 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['yeepayOrderNo'] = isset($data['yeepayOrderNo']) ? $data['yeepayOrderNo'] : null; + $this->container['applyStatus'] = isset($data['applyStatus']) ? $data['applyStatus'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['yeepayMemberNo'] = isset($data['yeepayMemberNo']) ? $data['yeepayMemberNo'] : 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 yeepayOrderNo + * + * @return string + */ + public function getYeepayOrderNo() + { + return $this->container['yeepayOrderNo']; + } + + /** + * Sets yeepayOrderNo + * + * @param string $yeepayOrderNo 易宝开户请求号 + * + * @return $this + */ + public function setYeepayOrderNo($yeepayOrderNo) + { + $this->container['yeepayOrderNo'] = $yeepayOrderNo; + + return $this; + } + + /** + * Gets applyStatus + * + * @return string + */ + public function getApplyStatus() + { + return $this->container['applyStatus']; + } + + /** + * Sets applyStatus + * + * @param string $applyStatus 开户状态
可选项如下:
UNACTIVATED:处理中-等待回填短验
FAIL:开户失败 + * + * @return $this + */ + public function setApplyStatus($applyStatus) + { + $this->container['applyStatus'] = $applyStatus; + + 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 yeepayMemberNo + * + * @return string + */ + public function getYeepayMemberNo() + { + return $this->container['yeepayMemberNo']; + } + + /** + * Sets yeepayMemberNo + * + * @param string $yeepayMemberNo 易宝会员编号 + * + * @return $this + */ + public function setYeepayMemberNo($yeepayMemberNo) + { + $this->container['yeepayMemberNo'] = $yeepayMemberNo; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgRequest.php b/lib/Service/MWallet/Model/BankAccountSendMsgRequest.php new file mode 100644 index 0000000..c7292a7 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgRequest.php @@ -0,0 +1,117 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountSendMsgRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantMemberNo + * + * @return string + */ + public function getMerchantMemberNo() + { + return $this->merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountSendMsgRequest + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountSendMsgRequest + */ + 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 BankAccountSendMsgRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountSendMsg'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountSendMsgRequestMarshaller.php new file mode 100644 index 0000000..7a7c5d4 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountSendMsgRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgResponse.php b/lib/Service/MWallet/Model/BankAccountSendMsgResponse.php new file mode 100644 index 0000000..217cb8b --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankShortMsgResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountSendMsgResponseUnMarshaller.php new file mode 100644 index 0000000..708d6b1 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountSendMsgV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantMemberNo + * + * @return string + */ + public function getMerchantMemberNo() + { + return $this->merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountSendMsgV10Request + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountSendMsgV10Request + */ + 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 BankAccountSendMsgV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_send_msg_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountSendMsgV10RequestMarshaller.php new file mode 100644 index 0000000..700fd73 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgV10RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountSendMsgV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgV10Response.php b/lib/Service/MWallet/Model/BankAccountSendMsgV10Response.php new file mode 100644 index 0000000..0b83b53 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankShortMsgResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountSendMsgV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountSendMsgV10ResponseUnMarshaller.php new file mode 100644 index 0000000..70cabdf --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountSendMsgV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'trxTime' => 'string', + 'loanFlag' => 'string', + 'transAmount' => 'string', + 'balance' => 'string', + 'otherAccNo' => 'string', + 'otherAccountName' => 'string', + 'tranNo' => 'string', + 'channel' => 'string', + 'tradeDetail' => 'string', + 'memo' => 'string', + 'tranaccreason' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'trxDate' => null, + 'trxTime' => null, + 'loanFlag' => null, + 'transAmount' => null, + 'balance' => null, + 'otherAccNo' => null, + 'otherAccountName' => null, + 'tranNo' => null, + 'channel' => null, + 'tradeDetail' => null, + 'memo' => null, + 'tranaccreason' => 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 = [ + 'trxDate' => 'trxDate', + 'trxTime' => 'trxTime', + 'loanFlag' => 'loanFlag', + 'transAmount' => 'transAmount', + 'balance' => 'balance', + 'otherAccNo' => 'otherAccNo', + 'otherAccountName' => 'otherAccountName', + 'tranNo' => 'tranNo', + 'channel' => 'channel', + 'tradeDetail' => 'tradeDetail', + 'memo' => 'memo', + 'tranaccreason' => 'tranaccreason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'trxDate' => 'setTrxDate', + 'trxTime' => 'setTrxTime', + 'loanFlag' => 'setLoanFlag', + 'transAmount' => 'setTransAmount', + 'balance' => 'setBalance', + 'otherAccNo' => 'setOtherAccNo', + 'otherAccountName' => 'setOtherAccountName', + 'tranNo' => 'setTranNo', + 'channel' => 'setChannel', + 'tradeDetail' => 'setTradeDetail', + 'memo' => 'setMemo', + 'tranaccreason' => 'setTranaccreason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'trxDate' => 'getTrxDate', + 'trxTime' => 'getTrxTime', + 'loanFlag' => 'getLoanFlag', + 'transAmount' => 'getTransAmount', + 'balance' => 'getBalance', + 'otherAccNo' => 'getOtherAccNo', + 'otherAccountName' => 'getOtherAccountName', + 'tranNo' => 'getTranNo', + 'channel' => 'getChannel', + 'tradeDetail' => 'getTradeDetail', + 'memo' => 'getMemo', + 'tranaccreason' => 'getTranaccreason' + ]; + + /** + * 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['trxDate'] = isset($data['trxDate']) ? $data['trxDate'] : null; + $this->container['trxTime'] = isset($data['trxTime']) ? $data['trxTime'] : null; + $this->container['loanFlag'] = isset($data['loanFlag']) ? $data['loanFlag'] : null; + $this->container['transAmount'] = isset($data['transAmount']) ? $data['transAmount'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['otherAccNo'] = isset($data['otherAccNo']) ? $data['otherAccNo'] : null; + $this->container['otherAccountName'] = isset($data['otherAccountName']) ? $data['otherAccountName'] : null; + $this->container['tranNo'] = isset($data['tranNo']) ? $data['tranNo'] : null; + $this->container['channel'] = isset($data['channel']) ? $data['channel'] : null; + $this->container['tradeDetail'] = isset($data['tradeDetail']) ? $data['tradeDetail'] : null; + $this->container['memo'] = isset($data['memo']) ? $data['memo'] : null; + $this->container['tranaccreason'] = isset($data['tranaccreason']) ? $data['tranaccreason'] : 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 trxDate + * + * @return string + */ + public function getTrxDate() + { + return $this->container['trxDate']; + } + + /** + * Sets trxDate + * + * @param string $trxDate 交易日期 + * + * @return $this + */ + public function setTrxDate($trxDate) + { + $this->container['trxDate'] = $trxDate; + + return $this; + } + + /** + * Gets trxTime + * + * @return string + */ + public function getTrxTime() + { + return $this->container['trxTime']; + } + + /** + * Sets trxTime + * + * @param string $trxTime 交易时间 + * + * @return $this + */ + public function setTrxTime($trxTime) + { + $this->container['trxTime'] = $trxTime; + + return $this; + } + + /** + * Gets loanFlag + * + * @return string + */ + public function getLoanFlag() + { + return $this->container['loanFlag']; + } + + /** + * Sets loanFlag + * + * @param string $loanFlag 借贷标志
可选项如下:
INCOME:收入
PAY:支出 + * + * @return $this + */ + public function setLoanFlag($loanFlag) + { + $this->container['loanFlag'] = $loanFlag; + + return $this; + } + + /** + * Gets transAmount + * + * @return string + */ + public function getTransAmount() + { + return $this->container['transAmount']; + } + + /** + * Sets transAmount + * + * @param string $transAmount 交易金额 + * + * @return $this + */ + public function setTransAmount($transAmount) + { + $this->container['transAmount'] = $transAmount; + + return $this; + } + + /** + * Gets balance + * + * @return string + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param string $balance 账户余额 + * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + return $this; + } + + /** + * Gets otherAccNo + * + * @return string + */ + public function getOtherAccNo() + { + return $this->container['otherAccNo']; + } + + /** + * Sets otherAccNo + * + * @param string $otherAccNo 对方卡/折号 + * + * @return $this + */ + public function setOtherAccNo($otherAccNo) + { + $this->container['otherAccNo'] = $otherAccNo; + + return $this; + } + + /** + * Gets otherAccountName + * + * @return string + */ + public function getOtherAccountName() + { + return $this->container['otherAccountName']; + } + + /** + * Sets otherAccountName + * + * @param string $otherAccountName 对方账户名称 + * + * @return $this + */ + public function setOtherAccountName($otherAccountName) + { + $this->container['otherAccountName'] = $otherAccountName; + + return $this; + } + + /** + * Gets tranNo + * + * @return string + */ + public function getTranNo() + { + return $this->container['tranNo']; + } + + /** + * Sets tranNo + * + * @param string $tranNo 交易流水号 + * + * @return $this + */ + public function setTranNo($tranNo) + { + $this->container['tranNo'] = $tranNo; + + return $this; + } + + /** + * Gets channel + * + * @return string + */ + public function getChannel() + { + return $this->container['channel']; + } + + /** + * Sets channel + * + * @param string $channel 发起方渠道 + * + * @return $this + */ + public function setChannel($channel) + { + $this->container['channel'] = $channel; + + return $this; + } + + /** + * Gets tradeDetail + * + * @return string + */ + public function getTradeDetail() + { + return $this->container['tradeDetail']; + } + + /** + * Sets tradeDetail + * + * @param string $tradeDetail 交易详情 + * + * @return $this + */ + public function setTradeDetail($tradeDetail) + { + $this->container['tradeDetail'] = $tradeDetail; + + return $this; + } + + /** + * Gets memo + * + * @return string + */ + public function getMemo() + { + return $this->container['memo']; + } + + /** + * Sets memo + * + * @param string $memo 摘要 + * + * @return $this + */ + public function setMemo($memo) + { + $this->container['memo'] = $memo; + + return $this; + } + + /** + * Gets tranaccreason + * + * @return string + */ + public function getTranaccreason() + { + return $this->container['tranaccreason']; + } + + /** + * Sets tranaccreason + * + * @param string $tranaccreason 转账原因 + * + * @return $this + */ + public function setTranaccreason($tranaccreason) + { + $this->container['tranaccreason'] = $tranaccreason; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequest.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequest.php new file mode 100644 index 0000000..e49f952 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequest.php @@ -0,0 +1,117 @@ +operateType; + } + + /** + * Sets operateType + * + * @param string $operateType + * @return BankAccountUpdateKeyWordsRequest + */ + public function setOperateType($operateType) + { + $this->operateType = $operateType; + return $this; + } + /** + * Gets keyWordStrs + * + * @return string + */ + public function getKeyWordStrs() + { + return $this->keyWordStrs; + } + + /** + * Sets keyWordStrs + * + * @param string $keyWordStrs + * @return BankAccountUpdateKeyWordsRequest + */ + public function setKeyWordStrs($keyWordStrs) + { + $this->keyWordStrs = $keyWordStrs; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountUpdateKeyWordsRequest + */ + 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 BankAccountUpdateKeyWordsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountUpdateKeyWords'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequestMarshaller.php new file mode 100644 index 0000000..a10125c --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOperateType() != null){ + $internalRequest->addParameter('operateType', ObjectSerializer::sanitizeForSerialization($request->getOperateType(), 'string')); + } + if($request->getKeyWordStrs() != null){ + $internalRequest->addParameter('keyWordStrs', ObjectSerializer::sanitizeForSerialization($request->getKeyWordStrs(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountUpdateKeyWordsRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponse.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponse.php new file mode 100644 index 0000000..35c77b1 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankKeyWordsResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponseUnMarshaller.php new file mode 100644 index 0000000..a476270 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsResponseUnMarshaller.php @@ -0,0 +1,39 @@ +operateType; + } + + /** + * Sets operateType + * + * @param string $operateType + * @return BankAccountUpdateKeyWordsV10Request + */ + public function setOperateType($operateType) + { + $this->operateType = $operateType; + return $this; + } + /** + * Gets keyWordStrs + * + * @return string + */ + public function getKeyWordStrs() + { + return $this->keyWordStrs; + } + + /** + * Sets keyWordStrs + * + * @param string $keyWordStrs + * @return BankAccountUpdateKeyWordsV10Request + */ + public function setKeyWordStrs($keyWordStrs) + { + $this->keyWordStrs = $keyWordStrs; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountUpdateKeyWordsV10Request + */ + 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 BankAccountUpdateKeyWordsV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_update_key_words_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10RequestMarshaller.php new file mode 100644 index 0000000..b8c544e --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOperateType() != null){ + $internalRequest->addParameter('operateType', ObjectSerializer::sanitizeForSerialization($request->getOperateType(), 'string')); + } + if($request->getKeyWordStrs() != null){ + $internalRequest->addParameter('keyWordStrs', ObjectSerializer::sanitizeForSerialization($request->getKeyWordStrs(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountUpdateKeyWordsV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10Response.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10Response.php new file mode 100644 index 0000000..87aa4fb --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankKeyWordsResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10ResponseUnMarshaller.php new file mode 100644 index 0000000..7034158 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountUpdateKeyWordsV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'status' => 'string', + 'finishTime' => 'string', + 'createTime' => 'string', + 'requestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'status' => null, + 'finishTime' => null, + 'createTime' => null, + 'requestNo' => 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', + 'finishTime' => 'finishTime', + 'createTime' => 'createTime', + 'requestNo' => 'requestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'status' => 'setStatus', + 'finishTime' => 'setFinishTime', + 'createTime' => 'setCreateTime', + 'requestNo' => 'setRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'status' => 'getStatus', + 'finishTime' => 'getFinishTime', + 'createTime' => 'getCreateTime', + 'requestNo' => 'getRequestNo' + ]; + + /** + * 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; + $this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 订单状态
可选项如下:
SUCCESS:提现成功
FAIL:提现失败
PROCESS:提现中 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets finishTime + * + * @return string + */ + public function getFinishTime() + { + return $this->container['finishTime']; + } + + /** + * Sets finishTime + * + * @param string $finishTime 完成时间
时间格式为:yyyy-MM-dd HH:mm:ss + * + * @return $this + */ + public function setFinishTime($finishTime) + { + $this->container['finishTime'] = $finishTime; + + return $this; + } + + /** + * Gets createTime + * + * @return string + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param string $createTime 创建时间
时间格式为:yyyy-MM-dd HH:mm:ss + * + * @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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawRequest.php b/lib/Service/MWallet/Model/BankAccountWithdrawRequest.php new file mode 100644 index 0000000..411b787 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawRequest.php @@ -0,0 +1,267 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountWithdrawRequest + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountWithdrawRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountWithdrawRequest + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->accountType; + } + + /** + * Sets accountType + * + * @param string $accountType + * @return BankAccountWithdrawRequest + */ + public function setAccountType($accountType) + { + $this->accountType = $accountType; + return $this; + } + /** + * Gets oneAccountBankNo + * + * @return string + */ + public function getOneAccountBankNo() + { + return $this->oneAccountBankNo; + } + + /** + * Sets oneAccountBankNo + * + * @param string $oneAccountBankNo + * @return BankAccountWithdrawRequest + */ + public function setOneAccountBankNo($oneAccountBankNo) + { + $this->oneAccountBankNo = $oneAccountBankNo; + return $this; + } + /** + * Gets bindBankPhone + * + * @return string + */ + public function getBindBankPhone() + { + return $this->bindBankPhone; + } + + /** + * Sets bindBankPhone + * + * @param string $bindBankPhone + * @return BankAccountWithdrawRequest + */ + public function setBindBankPhone($bindBankPhone) + { + $this->bindBankPhone = $bindBankPhone; + return $this; + } + /** + * Gets withdrawPrice + * + * @return float + */ + public function getWithdrawPrice() + { + return $this->withdrawPrice; + } + + /** + * Sets withdrawPrice + * + * @param float $withdrawPrice + * @return BankAccountWithdrawRequest + */ + public function setWithdrawPrice($withdrawPrice) + { + $this->withdrawPrice = $withdrawPrice; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return BankAccountWithdrawRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountWithdrawRequest + */ + 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 BankAccountWithdrawRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountWithdraw'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawRequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountWithdrawRequestMarshaller.php new file mode 100644 index 0000000..1988a7b --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getAccountType() != null){ + $internalRequest->addParameter('accountType', ObjectSerializer::sanitizeForSerialization($request->getAccountType(), 'string')); + } + if($request->getOneAccountBankNo() != null){ + $internalRequest->addParameter('oneAccountBankNo', ObjectSerializer::sanitizeForSerialization($request->getOneAccountBankNo(), 'string')); + } + if($request->getBindBankPhone() != null){ + $internalRequest->addParameter('bindBankPhone', ObjectSerializer::sanitizeForSerialization($request->getBindBankPhone(), 'string')); + } + if($request->getWithdrawPrice() != null){ + $internalRequest->addParameter('withdrawPrice', ObjectSerializer::sanitizeForSerialization($request->getWithdrawPrice(), 'float')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountWithdrawRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawResponse.php b/lib/Service/MWallet/Model/BankAccountWithdrawResponse.php new file mode 100644 index 0000000..00ec132 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankAccountWithDrawRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountWithdrawResponseUnMarshaller.php new file mode 100644 index 0000000..79d58be --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantMemberNo; + } + + /** + * Sets merchantMemberNo + * + * @param string $merchantMemberNo + * @return BankAccountWithdrawV10Request + */ + public function setMerchantMemberNo($merchantMemberNo) + { + $this->merchantMemberNo = $merchantMemberNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return BankAccountWithdrawV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountWithdrawV10Request + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->accountType; + } + + /** + * Sets accountType + * + * @param string $accountType + * @return BankAccountWithdrawV10Request + */ + public function setAccountType($accountType) + { + $this->accountType = $accountType; + return $this; + } + /** + * Gets oneAccountBankNo + * + * @return string + */ + public function getOneAccountBankNo() + { + return $this->oneAccountBankNo; + } + + /** + * Sets oneAccountBankNo + * + * @param string $oneAccountBankNo + * @return BankAccountWithdrawV10Request + */ + public function setOneAccountBankNo($oneAccountBankNo) + { + $this->oneAccountBankNo = $oneAccountBankNo; + return $this; + } + /** + * Gets bindBankPhone + * + * @return string + */ + public function getBindBankPhone() + { + return $this->bindBankPhone; + } + + /** + * Sets bindBankPhone + * + * @param string $bindBankPhone + * @return BankAccountWithdrawV10Request + */ + public function setBindBankPhone($bindBankPhone) + { + $this->bindBankPhone = $bindBankPhone; + return $this; + } + /** + * Gets withdrawPrice + * + * @return float + */ + public function getWithdrawPrice() + { + return $this->withdrawPrice; + } + + /** + * Sets withdrawPrice + * + * @param float $withdrawPrice + * @return BankAccountWithdrawV10Request + */ + public function setWithdrawPrice($withdrawPrice) + { + $this->withdrawPrice = $withdrawPrice; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return BankAccountWithdrawV10Request + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BankAccountWithdrawV10Request + */ + 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 BankAccountWithdrawV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bank_account_withdraw_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawV10RequestMarshaller.php b/lib/Service/MWallet/Model/BankAccountWithdrawV10RequestMarshaller.php new file mode 100644 index 0000000..b4ac10b --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawV10RequestMarshaller.php @@ -0,0 +1,107 @@ +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->getMerchantMemberNo() != null){ + $internalRequest->addParameter('merchantMemberNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantMemberNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getAccountType() != null){ + $internalRequest->addParameter('accountType', ObjectSerializer::sanitizeForSerialization($request->getAccountType(), 'string')); + } + if($request->getOneAccountBankNo() != null){ + $internalRequest->addParameter('oneAccountBankNo', ObjectSerializer::sanitizeForSerialization($request->getOneAccountBankNo(), 'string')); + } + if($request->getBindBankPhone() != null){ + $internalRequest->addParameter('bindBankPhone', ObjectSerializer::sanitizeForSerialization($request->getBindBankPhone(), 'string')); + } + if($request->getWithdrawPrice() != null){ + $internalRequest->addParameter('withdrawPrice', ObjectSerializer::sanitizeForSerialization($request->getWithdrawPrice(), 'float')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountWithdrawV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawV10Response.php b/lib/Service/MWallet/Model/BankAccountWithdrawV10Response.php new file mode 100644 index 0000000..da2c4df --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankAccountWithDrawRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BankAccountWithdrawV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BankAccountWithdrawV10ResponseUnMarshaller.php new file mode 100644 index 0000000..3b954c9 --- /dev/null +++ b/lib/Service/MWallet/Model/BankAccountWithdrawV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + '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 返回状态
可选项如下:
SUCCESS:成功
FAIL:失败 + * + * @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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BankShortMsgResponseDTO.php b/lib/Service/MWallet/Model/BankShortMsgResponseDTO.php new file mode 100644 index 0000000..bdb518e --- /dev/null +++ b/lib/Service/MWallet/Model/BankShortMsgResponseDTO.php @@ -0,0 +1,393 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => 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', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + '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['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 status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 发送状态
可选项如下:
SUCCESS:成功
FAIL:失败 + * + * @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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillDetailResponseDto.php b/lib/Service/MWallet/Model/BillDetailResponseDto.php new file mode 100644 index 0000000..a92120d --- /dev/null +++ b/lib/Service/MWallet/Model/BillDetailResponseDto.php @@ -0,0 +1,807 @@ + 'string', + 'message' => 'string', + 'createTime' => 'string', + 'requestNo' => 'string', + 'uniqueOrderNo' => 'string', + 'orderType' => 'string', + 'status' => 'string', + 'payWay' => 'string', + 'amount' => 'string', + 'fee' => 'string', + 'completedTime' => 'string', + 'productName' => 'string', + 'remark' => 'string', + 'orderAmount' => 'string', + 'marketingInfoList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\MarketingInfoModel[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'createTime' => null, + 'requestNo' => null, + 'uniqueOrderNo' => null, + 'orderType' => 'enum', + 'status' => 'enum', + 'payWay' => null, + 'amount' => null, + 'fee' => null, + 'completedTime' => null, + 'productName' => null, + 'remark' => null, + 'orderAmount' => null, + 'marketingInfoList' => 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', + 'createTime' => 'createTime', + 'requestNo' => 'requestNo', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'orderType' => 'orderType', + 'status' => 'status', + 'payWay' => 'payWay', + 'amount' => 'amount', + 'fee' => 'fee', + 'completedTime' => 'completedTime', + 'productName' => 'productName', + 'remark' => 'remark', + 'orderAmount' => 'orderAmount', + 'marketingInfoList' => 'marketingInfoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'createTime' => 'setCreateTime', + 'requestNo' => 'setRequestNo', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'orderType' => 'setOrderType', + 'status' => 'setStatus', + 'payWay' => 'setPayWay', + 'amount' => 'setAmount', + 'fee' => 'setFee', + 'completedTime' => 'setCompletedTime', + 'productName' => 'setProductName', + 'remark' => 'setRemark', + 'orderAmount' => 'setOrderAmount', + 'marketingInfoList' => 'setMarketingInfoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'createTime' => 'getCreateTime', + 'requestNo' => 'getRequestNo', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'orderType' => 'getOrderType', + 'status' => 'getStatus', + 'payWay' => 'getPayWay', + 'amount' => 'getAmount', + 'fee' => 'getFee', + 'completedTime' => 'getCompletedTime', + 'productName' => 'getProductName', + 'remark' => 'getRemark', + 'orderAmount' => 'getOrderAmount', + 'marketingInfoList' => 'getMarketingInfoList' + ]; + + /** + * 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; + } + + const ORDER_TYPE_WITHDRAW = 'WITHDRAW'; + const ORDER_TYPE_RECHARGE = 'RECHARGE'; + const ORDER_TYPE_PAYMENT = 'PAYMENT'; + const ORDER_TYPE_DIVIDE = 'DIVIDE'; + const ORDER_TYPE_DIVIDE_REFUND = 'DIVIDE_REFUND'; + const ORDER_TYPE_REFUND = 'REFUND'; + const ORDER_TYPE_PAYMENT_MANAGE = 'PAYMENT_MANAGE'; + const ORDER_TYPE_BONUS = 'BONUS'; + const STATUS_PROCESSING = 'PROCESSING'; + const STATUS_SUCCESS = 'SUCCESS'; + const STATUS_FAIL = 'FAIL'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOrderTypeAllowableValues() + { + return [ + self::ORDER_TYPE_WITHDRAW, + self::ORDER_TYPE_RECHARGE, + self::ORDER_TYPE_PAYMENT, + self::ORDER_TYPE_DIVIDE, + self::ORDER_TYPE_DIVIDE_REFUND, + self::ORDER_TYPE_REFUND, + self::ORDER_TYPE_PAYMENT_MANAGE, + self::ORDER_TYPE_BONUS, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PROCESSING, + self::STATUS_SUCCESS, + self::STATUS_FAIL, + ]; + } + + + /** + * 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['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null; + $this->container['orderType'] = isset($data['orderType']) ? $data['orderType'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['payWay'] = isset($data['payWay']) ? $data['payWay'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['fee'] = isset($data['fee']) ? $data['fee'] : null; + $this->container['completedTime'] = isset($data['completedTime']) ? $data['completedTime'] : null; + $this->container['productName'] = isset($data['productName']) ? $data['productName'] : null; + $this->container['remark'] = isset($data['remark']) ? $data['remark'] : null; + $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['marketingInfoList'] = isset($data['marketingInfoList']) ? $data['marketingInfoList'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderType'] === null) { + $invalidProperties[] = "'orderType' can't be null"; + } + $allowedValues = $this->getOrderTypeAllowableValues(); + if (!is_null($this->container['orderType']) && !in_array($this->container['orderType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'orderType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets createTime + * + * @return string + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param string $createTime

订单创建时间

(yyyy-MM-dd HH:mm:ss)
+ * + * @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 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 orderType + * + * @return string + */ + public function getOrderType() + { + return $this->container['orderType']; + } + + /** + * Sets orderType + * + * @param string $orderType

订单类型

可选项如下: WITHDRAW:提现 RECHARGE:充值 PAYMENT:支付 DIVIDE:分账 DIVIDE_REFUND:分账退回 REFUND:退款 PAYMENT_MANAGE:管理费 BONUS:红包 + * + * @return $this + */ + public function setOrderType($orderType) + { + $allowedValues = $this->getOrderTypeAllowableValues(); + if (!in_array($orderType, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'orderType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['orderType'] = $orderType; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status

订单状态

可选项如下: PROCESSING:处理中 SUCCESS:成功 FAIL:失败 + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets payWay + * + * @return string + */ + public function getPayWay() + { + return $this->container['payWay']; + } + + /** + * Sets payWay + * + * @param string $payWay

交易渠道

+ * + * @return $this + */ + public function setPayWay($payWay) + { + $this->container['payWay'] = $payWay; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount

订单金额

(精确到2位小数)

+ * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets fee + * + * @return string + */ + public function getFee() + { + return $this->container['fee']; + } + + /** + * Sets fee + * + * @param string $fee

手续费金额

+ * + * @return $this + */ + public function setFee($fee) + { + $this->container['fee'] = $fee; + + return $this; + } + + /** + * Gets completedTime + * + * @return string + */ + public function getCompletedTime() + { + return $this->container['completedTime']; + } + + /** + * Sets completedTime + * + * @param string $completedTime

订单完成时间

+ * + * @return $this + */ + public function setCompletedTime($completedTime) + { + $this->container['completedTime'] = $completedTime; + + return $this; + } + + /** + * Gets productName + * + * @return string + */ + public function getProductName() + { + return $this->container['productName']; + } + + /** + * Sets productName + * + * @param string $productName

产品名称

+ * + * @return $this + */ + public function setProductName($productName) + { + $this->container['productName'] = $productName; + + 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 orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->container['orderAmount']; + } + + /** + * Sets orderAmount + * + * @param string $orderAmount

订单金额

+ * + * @return $this + */ + public function setOrderAmount($orderAmount) + { + $this->container['orderAmount'] = $orderAmount; + + return $this; + } + + /** + * Gets marketingInfoList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\MarketingInfoModel[] + */ + public function getMarketingInfoList() + { + return $this->container['marketingInfoList']; + } + + /** + * Sets marketingInfoList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\MarketingInfoModel[] $marketingInfoList

营销列表

+ * + * @return $this + */ + public function setMarketingInfoList($marketingInfoList) + { + $this->container['marketingInfoList'] = $marketingInfoList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillListDetailDto.php b/lib/Service/MWallet/Model/BillListDetailDto.php new file mode 100644 index 0000000..2ea6efc --- /dev/null +++ b/lib/Service/MWallet/Model/BillListDetailDto.php @@ -0,0 +1,537 @@ + 'string', + 'amount' => 'string', + 'createTime' => 'string', + 'uniqueOrderNo' => 'string', + 'productName' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'orderType' => 'enum', + 'amount' => null, + 'createTime' => null, + 'uniqueOrderNo' => null, + 'productName' => null, + 'status' => 'enum' + ]; + + /** + * 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 = [ + 'orderType' => 'orderType', + 'amount' => 'amount', + 'createTime' => 'createTime', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'productName' => 'productName', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'orderType' => 'setOrderType', + 'amount' => 'setAmount', + 'createTime' => 'setCreateTime', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'productName' => 'setProductName', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'orderType' => 'getOrderType', + 'amount' => 'getAmount', + 'createTime' => 'getCreateTime', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'productName' => 'getProductName', + '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; + } + + const ORDER_TYPE_WITHDRAW = 'WITHDRAW'; + const ORDER_TYPE_RECHARGE = 'RECHARGE'; + const ORDER_TYPE_PAYMENT = 'PAYMENT'; + const ORDER_TYPE_DIVIDE = 'DIVIDE'; + const ORDER_TYPE_DIVIDE_REFUND = 'DIVIDE_REFUND'; + const ORDER_TYPE_REFUND = 'REFUND'; + const ORDER_TYPE_PAYMENT_MANAGE = 'PAYMENT_MANAGE'; + const ORDER_TYPE_BONUS = 'BONUS'; + const STATUS_PROCESSING = 'PROCESSING'; + const STATUS_SUCCESS = 'SUCCESS'; + const STATUS_FAIL = 'FAIL'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getOrderTypeAllowableValues() + { + return [ + self::ORDER_TYPE_WITHDRAW, + self::ORDER_TYPE_RECHARGE, + self::ORDER_TYPE_PAYMENT, + self::ORDER_TYPE_DIVIDE, + self::ORDER_TYPE_DIVIDE_REFUND, + self::ORDER_TYPE_REFUND, + self::ORDER_TYPE_PAYMENT_MANAGE, + self::ORDER_TYPE_BONUS, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStatusAllowableValues() + { + return [ + self::STATUS_PROCESSING, + self::STATUS_SUCCESS, + self::STATUS_FAIL, + ]; + } + + + /** + * 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['orderType'] = isset($data['orderType']) ? $data['orderType'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null; + $this->container['productName'] = isset($data['productName']) ? $data['productName'] : 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 = []; + + if ($this->container['orderType'] === null) { + $invalidProperties[] = "'orderType' can't be null"; + } + $allowedValues = $this->getOrderTypeAllowableValues(); + if (!is_null($this->container['orderType']) && !in_array($this->container['orderType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'orderType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + $allowedValues = $this->getStatusAllowableValues(); + if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + 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 orderType + * + * @return string + */ + public function getOrderType() + { + return $this->container['orderType']; + } + + /** + * Sets orderType + * + * @param string $orderType

订单类型

可选项如下: WITHDRAW:提现 RECHARGE:充值 PAYMENT:支付 DIVIDE:分账 DIVIDE_REFUND:分账退回 REFUND:退款 PAYMENT_MANAGE:管理费 BONUS:红包 + * + * @return $this + */ + public function setOrderType($orderType) + { + $allowedValues = $this->getOrderTypeAllowableValues(); + if (!in_array($orderType, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'orderType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['orderType'] = $orderType; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount

订单金额

+ * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets createTime + * + * @return string + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param string $createTime

订单创建时间

yyyy-MM-dd HH:mm:ss
+ * + * @return $this + */ + public function setCreateTime($createTime) + { + $this->container['createTime'] = $createTime; + + return $this; + } + + /** + * Gets uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->container['uniqueOrderNo']; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo uniqueOrderNo + * + * @return $this + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->container['uniqueOrderNo'] = $uniqueOrderNo; + + return $this; + } + + /** + * Gets productName + * + * @return string + */ + public function getProductName() + { + return $this->container['productName']; + } + + /** + * Sets productName + * + * @param string $productName productName + * + * @return $this + */ + public function setProductName($productName) + { + $this->container['productName'] = $productName; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status

订单状态

可选项如下: PROCESSING:处理中 SUCCESS:成功 FAIL:失败 + * + * @return $this + */ + public function setStatus($status) + { + $allowedValues = $this->getStatusAllowableValues(); + if (!in_array($status, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'status', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillListResponseDto.php b/lib/Service/MWallet/Model/BillListResponseDto.php new file mode 100644 index 0000000..5a7ba0d --- /dev/null +++ b/lib/Service/MWallet/Model/BillListResponseDto.php @@ -0,0 +1,363 @@ + 'string', + 'billList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\BillListDetailDto[]', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'billList' => null, + 'message' => 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', + 'billList' => 'billList', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'billList' => 'setBillList', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'billList' => 'getBillList', + 'message' => 'getMessage' + ]; + + /** + * 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['billList'] = isset($data['billList']) ? $data['billList'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets billList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\BillListDetailDto[] + */ + public function getBillList() + { + return $this->container['billList']; + } + + /** + * Sets billList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\BillListDetailDto[] $billList billList + * + * @return $this + */ + public function setBillList($billList) + { + $this->container['billList'] = $billList; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillOverviewDetailDto.php b/lib/Service/MWallet/Model/BillOverviewDetailDto.php new file mode 100644 index 0000000..d2283dd --- /dev/null +++ b/lib/Service/MWallet/Model/BillOverviewDetailDto.php @@ -0,0 +1,380 @@ + 'string', + 'amount' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'trxCode' => 'enum', + 'amount' => 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 = [ + 'trxCode' => 'trxCode', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'trxCode' => 'setTrxCode', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'trxCode' => 'getTrxCode', + 'amount' => 'getAmount' + ]; + + /** + * 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; + } + + const TRX_CODE_RECHARGE = 'RECHARGE'; + const TRX_CODE_WITHDRAW = 'WITHDRAW'; + const TRX_CODE_BALANCE_PAY = 'BALANCE_PAY'; + const TRX_CODE_CARD_PAY = 'CARD_PAY'; + const TRX_CODE_BANK_TRANSFER = 'BANK_TRANSFER'; + const TRX_CODE_PAY_REFUND = 'PAY_REFUND'; + const TRX_CODE_DIVIDE = 'DIVIDE'; + const TRX_CODE_DIVIED_REFUND = 'DIVIED_REFUND'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTrxCodeAllowableValues() + { + return [ + self::TRX_CODE_RECHARGE, + self::TRX_CODE_WITHDRAW, + self::TRX_CODE_BALANCE_PAY, + self::TRX_CODE_CARD_PAY, + self::TRX_CODE_BANK_TRANSFER, + self::TRX_CODE_PAY_REFUND, + self::TRX_CODE_DIVIDE, + self::TRX_CODE_DIVIED_REFUND, + ]; + } + + + /** + * 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['trxCode'] = isset($data['trxCode']) ? $data['trxCode'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['trxCode'] === null) { + $invalidProperties[] = "'trxCode' can't be null"; + } + $allowedValues = $this->getTrxCodeAllowableValues(); + if (!is_null($this->container['trxCode']) && !in_array($this->container['trxCode'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'trxCode', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + 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 trxCode + * + * @return string + */ + public function getTrxCode() + { + return $this->container['trxCode']; + } + + /** + * Sets trxCode + * + * @param string $trxCode
交易类型
可选项如下: RECHARGE:充值 WITHDRAW:提现 BALANCE_PAY:余额支付 CARD_PAY:绑卡支付 BANK_TRANSFER:银行卡转账 PAY_REFUND:退款 DIVIDE:分账 DIVIED_REFUND:分账退回 + * + * @return $this + */ + public function setTrxCode($trxCode) + { + $allowedValues = $this->getTrxCodeAllowableValues(); + if (!in_array($trxCode, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'trxCode', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['trxCode'] = $trxCode; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount

汇总金额

精确至两位小数
+ * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillOverviewDto.php b/lib/Service/MWallet/Model/BillOverviewDto.php new file mode 100644 index 0000000..93c9d13 --- /dev/null +++ b/lib/Service/MWallet/Model/BillOverviewDto.php @@ -0,0 +1,336 @@ + 'string', + 'detailList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\BillOverviewDetailDto[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'month' => null, + 'detailList' => 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 = [ + 'month' => 'month', + 'detailList' => 'detailList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'month' => 'setMonth', + 'detailList' => 'setDetailList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'month' => 'getMonth', + 'detailList' => 'getDetailList' + ]; + + /** + * 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['month'] = isset($data['month']) ? $data['month'] : null; + $this->container['detailList'] = isset($data['detailList']) ? $data['detailList'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['month'] === null) { + $invalidProperties[] = "'month' can't be null"; + } + 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 month + * + * @return string + */ + public function getMonth() + { + return $this->container['month']; + } + + /** + * Sets month + * + * @param string $month

汇总月份

(202212)

+ * + * @return $this + */ + public function setMonth($month) + { + $this->container['month'] = $month; + + return $this; + } + + /** + * Gets detailList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\BillOverviewDetailDto[] + */ + public function getDetailList() + { + return $this->container['detailList']; + } + + /** + * Sets detailList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\BillOverviewDetailDto[] $detailList

详情列表

+ * + * @return $this + */ + public function setDetailList($detailList) + { + $this->container['detailList'] = $detailList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillOverviewResponseDto.php b/lib/Service/MWallet/Model/BillOverviewResponseDto.php new file mode 100644 index 0000000..64df392 --- /dev/null +++ b/lib/Service/MWallet/Model/BillOverviewResponseDto.php @@ -0,0 +1,363 @@ + 'string', + 'message' => 'string', + 'overviewList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\BillOverviewDto[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'overviewList' => 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', + 'overviewList' => 'overviewList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'overviewList' => 'setOverviewList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'overviewList' => 'getOverviewList' + ]; + + /** + * 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['overviewList'] = isset($data['overviewList']) ? $data['overviewList'] : 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets overviewList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\BillOverviewDto[] + */ + public function getOverviewList() + { + return $this->container['overviewList']; + } + + /** + * Sets overviewList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\BillOverviewDto[] $overviewList

总览列表

+ * + * @return $this + */ + public function setOverviewList($overviewList) + { + $this->container['overviewList'] = $overviewList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/BillQueryDetailRequest.php b/lib/Service/MWallet/Model/BillQueryDetailRequest.php new file mode 100644 index 0000000..78cc36b --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryDetailRequest.php @@ -0,0 +1,167 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BillQueryDetailRequest + */ + 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 BillQueryDetailRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return BillQueryDetailRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->uniqueOrderNo; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo + * @return BillQueryDetailRequest + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->uniqueOrderNo = $uniqueOrderNo; + return $this; + } + /** + * Gets orderType + * + * @return string + */ + public function getOrderType() + { + return $this->orderType; + } + + /** + * Sets orderType + * + * @param string $orderType + * @return BillQueryDetailRequest + */ + public function setOrderType($orderType) + { + $this->orderType = $orderType; + return $this; + } + /** + * Gets orderDate + * + * @return \DateTime + */ + public function getOrderDate() + { + return $this->orderDate; + } + + /** + * Sets orderDate + * + * @param \DateTime $orderDate + * @return BillQueryDetailRequest + */ + public function setOrderDate($orderDate) + { + $this->orderDate = $orderDate; + return $this; + } + + public static function getOperationId() + { + return 'bill_query_detail'; + } + + +} diff --git a/lib/Service/MWallet/Model/BillQueryDetailRequestMarshaller.php b/lib/Service/MWallet/Model/BillQueryDetailRequestMarshaller.php new file mode 100644 index 0000000..1c7b367 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryDetailRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getUniqueOrderNo() != null){ + $internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string')); + } + if($request->getOrderType() != null){ + $internalRequest->addParameter('orderType', ObjectSerializer::sanitizeForSerialization($request->getOrderType(), 'string', 'enum')); + } + if($request->getOrderDate() != null){ + $internalRequest->addParameter('orderDate', ObjectSerializer::sanitizeForSerialization($request->getOrderDate(), '\DateTime', 'date-time')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillQueryDetailRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BillQueryDetailResponse.php b/lib/Service/MWallet/Model/BillQueryDetailResponse.php new file mode 100644 index 0000000..bc26bf3 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryDetailResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillDetailResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BillQueryDetailResponseUnMarshaller.php b/lib/Service/MWallet/Model/BillQueryDetailResponseUnMarshaller.php new file mode 100644 index 0000000..8c6142b --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryDetailResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BillQueryListRequest + */ + 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 BillQueryListRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return BillQueryListRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets orderType + * + * @return string + */ + public function getOrderType() + { + return $this->orderType; + } + + /** + * Sets orderType + * + * @param string $orderType + * @return BillQueryListRequest + */ + public function setOrderType($orderType) + { + $this->orderType = $orderType; + return $this; + } + /** + * Gets page + * + * @return int + */ + public function getPage() + { + return $this->page; + } + + /** + * Sets page + * + * @param int $page + * @return BillQueryListRequest + */ + public function setPage($page) + { + $this->page = $page; + return $this; + } + /** + * Gets pageNum + * + * @return int + */ + public function getPageNum() + { + return $this->pageNum; + } + + /** + * Sets pageNum + * + * @param int $pageNum + * @return BillQueryListRequest + */ + public function setPageNum($pageNum) + { + $this->pageNum = $pageNum; + return $this; + } + /** + * Gets endTime + * + * @return \DateTime + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param \DateTime $endTime + * @return BillQueryListRequest + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + + public static function getOperationId() + { + return 'bill_query_list'; + } + + +} diff --git a/lib/Service/MWallet/Model/BillQueryListRequestMarshaller.php b/lib/Service/MWallet/Model/BillQueryListRequestMarshaller.php new file mode 100644 index 0000000..d64dee3 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryListRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOrderType() != null){ + $internalRequest->addParameter('orderType', ObjectSerializer::sanitizeForSerialization($request->getOrderType(), 'string', 'enum')); + } + if($request->getPage() != null){ + $internalRequest->addParameter('page', ObjectSerializer::sanitizeForSerialization($request->getPage(), 'int', 'int32')); + } + if($request->getPageNum() != null){ + $internalRequest->addParameter('pageNum', ObjectSerializer::sanitizeForSerialization($request->getPageNum(), 'int', 'int32')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), '\DateTime', 'date-time')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillQueryListRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BillQueryListResponse.php b/lib/Service/MWallet/Model/BillQueryListResponse.php new file mode 100644 index 0000000..ec5f41e --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryListResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillListResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BillQueryListResponseUnMarshaller.php b/lib/Service/MWallet/Model/BillQueryListResponseUnMarshaller.php new file mode 100644 index 0000000..d3bf718 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryListResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BillQueryListV2Request + */ + 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 BillQueryListV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return BillQueryListV2Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets page + * + * @return int + */ + public function getPage() + { + return $this->page; + } + + /** + * Sets page + * + * @param int $page + * @return BillQueryListV2Request + */ + public function setPage($page) + { + $this->page = $page; + return $this; + } + /** + * Gets pageNum + * + * @return int + */ + public function getPageNum() + { + return $this->pageNum; + } + + /** + * Sets pageNum + * + * @param int $pageNum + * @return BillQueryListV2Request + */ + public function setPageNum($pageNum) + { + $this->pageNum = $pageNum; + return $this; + } + /** + * Gets endTime + * + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param string $endTime + * @return BillQueryListV2Request + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + /** + * Gets orderType + * + * @return string + */ + public function getOrderType() + { + return $this->orderType; + } + + /** + * Sets orderType + * + * @param string $orderType + * @return BillQueryListV2Request + */ + public function setOrderType($orderType) + { + $this->orderType = $orderType; + return $this; + } + /** + * Gets fundDirection + * + * @return string + */ + public function getFundDirection() + { + return $this->fundDirection; + } + + /** + * Sets fundDirection + * + * @param string $fundDirection + * @return BillQueryListV2Request + */ + public function setFundDirection($fundDirection) + { + $this->fundDirection = $fundDirection; + return $this; + } + + public static function getOperationId() + { + return 'billQueryListV2'; + } + + +} diff --git a/lib/Service/MWallet/Model/BillQueryListV2RequestMarshaller.php b/lib/Service/MWallet/Model/BillQueryListV2RequestMarshaller.php new file mode 100644 index 0000000..c57be0a --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryListV2RequestMarshaller.php @@ -0,0 +1,101 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getPage() != null){ + $internalRequest->addParameter('page', ObjectSerializer::sanitizeForSerialization($request->getPage(), 'int', 'int32')); + } + if($request->getPageNum() != null){ + $internalRequest->addParameter('pageNum', ObjectSerializer::sanitizeForSerialization($request->getPageNum(), 'int', 'int32')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string')); + } + if($request->getOrderType() != null){ + $internalRequest->addParameter('orderType', ObjectSerializer::sanitizeForSerialization($request->getOrderType(), 'string', 'enum')); + } + if($request->getFundDirection() != null){ + $internalRequest->addParameter('fundDirection', ObjectSerializer::sanitizeForSerialization($request->getFundDirection(), 'string', 'enum')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillQueryListV2RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BillQueryListV2Response.php b/lib/Service/MWallet/Model/BillQueryListV2Response.php new file mode 100644 index 0000000..bca7d22 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryListV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillListResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BillQueryListV2ResponseUnMarshaller.php b/lib/Service/MWallet/Model/BillQueryListV2ResponseUnMarshaller.php new file mode 100644 index 0000000..cfff501 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryListV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BillQueryOverviewRequest + */ + 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 BillQueryOverviewRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return BillQueryOverviewRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets startMonth + * + * @return string + */ + public function getStartMonth() + { + return $this->startMonth; + } + + /** + * Sets startMonth + * + * @param string $startMonth + * @return BillQueryOverviewRequest + */ + public function setStartMonth($startMonth) + { + $this->startMonth = $startMonth; + return $this; + } + /** + * Gets endMonth + * + * @return string + */ + public function getEndMonth() + { + return $this->endMonth; + } + + /** + * Sets endMonth + * + * @param string $endMonth + * @return BillQueryOverviewRequest + */ + public function setEndMonth($endMonth) + { + $this->endMonth = $endMonth; + return $this; + } + + public static function getOperationId() + { + return 'bill_query_overview'; + } + + +} diff --git a/lib/Service/MWallet/Model/BillQueryOverviewRequestMarshaller.php b/lib/Service/MWallet/Model/BillQueryOverviewRequestMarshaller.php new file mode 100644 index 0000000..b4e9315 --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryOverviewRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getStartMonth() != null){ + $internalRequest->addParameter('startMonth', ObjectSerializer::sanitizeForSerialization($request->getStartMonth(), 'string')); + } + if($request->getEndMonth() != null){ + $internalRequest->addParameter('endMonth', ObjectSerializer::sanitizeForSerialization($request->getEndMonth(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillQueryOverviewRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/BillQueryOverviewResponse.php b/lib/Service/MWallet/Model/BillQueryOverviewResponse.php new file mode 100644 index 0000000..1e00c2f --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryOverviewResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillOverviewResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/BillQueryOverviewResponseUnMarshaller.php b/lib/Service/MWallet/Model/BillQueryOverviewResponseUnMarshaller.php new file mode 100644 index 0000000..3aac4de --- /dev/null +++ b/lib/Service/MWallet/Model/BillQueryOverviewResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'disable' => 'bool', + 'cardId' => 'string', + 'cardType' => 'string', + 'bankName' => 'string', + 'cardNo' => 'string', + 'bindId' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bankCode' => null, + 'disable' => null, + 'cardId' => null, + 'cardType' => null, + 'bankName' => null, + 'cardNo' => null, + 'bindId' => 'int64' + ]; + + /** + * 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 = [ + 'bankCode' => 'bankCode', + 'disable' => 'disable', + 'cardId' => 'cardId', + 'cardType' => 'cardType', + 'bankName' => 'bankName', + 'cardNo' => 'cardNo', + 'bindId' => 'bindId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bankCode' => 'setBankCode', + 'disable' => 'setDisable', + 'cardId' => 'setCardId', + 'cardType' => 'setCardType', + 'bankName' => 'setBankName', + 'cardNo' => 'setCardNo', + 'bindId' => 'setBindId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bankCode' => 'getBankCode', + 'disable' => 'getDisable', + 'cardId' => 'getCardId', + 'cardType' => 'getCardType', + 'bankName' => 'getBankName', + 'cardNo' => 'getCardNo', + 'bindId' => 'getBindId' + ]; + + /** + * 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['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['disable'] = isset($data['disable']) ? $data['disable'] : null; + $this->container['cardId'] = isset($data['cardId']) ? $data['cardId'] : null; + $this->container['cardType'] = isset($data['cardType']) ? $data['cardType'] : null; + $this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null; + $this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : 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 bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->container['bankCode']; + } + + /** + * Sets bankCode + * + * @param string $bankCode bankCode + * + * @return $this + */ + public function setBankCode($bankCode) + { + $this->container['bankCode'] = $bankCode; + + return $this; + } + + /** + * Gets disable + * + * @return bool + */ + public function getDisable() + { + return $this->container['disable']; + } + + /** + * Sets disable + * + * @param bool $disable disable + * + * @return $this + */ + public function setDisable($disable) + { + $this->container['disable'] = $disable; + + return $this; + } + + /** + * Gets cardId + * + * @return string + */ + public function getCardId() + { + return $this->container['cardId']; + } + + /** + * Sets cardId + * + * @param string $cardId cardId + * + * @return $this + */ + public function setCardId($cardId) + { + $this->container['cardId'] = $cardId; + + return $this; + } + + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->container['cardType']; + } + + /** + * Sets cardType + * + * @param string $cardType cardType + * + * @return $this + */ + public function setCardType($cardType) + { + $this->container['cardType'] = $cardType; + + return $this; + } + + /** + * Gets bankName + * + * @return string + */ + public function getBankName() + { + return $this->container['bankName']; + } + + /** + * Sets bankName + * + * @param string $bankName bankName + * + * @return $this + */ + public function setBankName($bankName) + { + $this->container['bankName'] = $bankName; + + return $this; + } + + /** + * Gets cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->container['cardNo']; + } + + /** + * Sets cardNo + * + * @param string $cardNo cardNo + * + * @return $this + */ + public function setCardNo($cardNo) + { + $this->container['cardNo'] = $cardNo; + + return $this; + } + + /** + * Gets bindId + * + * @return int + */ + public function getBindId() + { + return $this->container['bindId']; + } + + /** + * Sets bindId + * + * @param int $bindId bindId + * + * @return $this + */ + public function setBindId($bindId) + { + $this->container['bindId'] = $bindId; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/CardQueryRequest.php b/lib/Service/MWallet/Model/CardQueryRequest.php new file mode 100644 index 0000000..3260deb --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryRequest.php @@ -0,0 +1,142 @@ +returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return CardQueryRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CardQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CardQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return CardQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return CardQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'cardQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/CardQueryRequestMarshaller.php b/lib/Service/MWallet/Model/CardQueryRequestMarshaller.php new file mode 100644 index 0000000..64182a9 --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CardQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/CardQueryResponse.php b/lib/Service/MWallet/Model/CardQueryResponse.php new file mode 100644 index 0000000..63d579b --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/CardQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/CardQueryResponseUnMarshaller.php new file mode 100644 index 0000000..93a4d49 --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return CardQueryV10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CardQueryV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CardQueryV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return CardQueryV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return CardQueryV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'card_query_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/CardQueryV10RequestMarshaller.php b/lib/Service/MWallet/Model/CardQueryV10RequestMarshaller.php new file mode 100644 index 0000000..887d966 --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryV10RequestMarshaller.php @@ -0,0 +1,92 @@ +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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CardQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/CardQueryV10Response.php b/lib/Service/MWallet/Model/CardQueryV10Response.php new file mode 100644 index 0000000..e85c5af --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/CardQueryV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/CardQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..c9f7d5f --- /dev/null +++ b/lib/Service/MWallet/Model/CardQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'yeepayOrderNo' => 'string', + 'applyStatus' => 'string', + 'elecAccount' => 'string', + 'yeepayMemberNo' => 'string', + 'retryConfirm' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'yeepayOrderNo' => null, + 'applyStatus' => null, + 'elecAccount' => null, + 'yeepayMemberNo' => null, + 'retryConfirm' => 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', + 'yeepayOrderNo' => 'yeepayOrderNo', + 'applyStatus' => 'applyStatus', + 'elecAccount' => 'elecAccount', + 'yeepayMemberNo' => 'yeepayMemberNo', + 'retryConfirm' => 'retryConfirm' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'yeepayOrderNo' => 'setYeepayOrderNo', + 'applyStatus' => 'setApplyStatus', + 'elecAccount' => 'setElecAccount', + 'yeepayMemberNo' => 'setYeepayMemberNo', + 'retryConfirm' => 'setRetryConfirm' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'yeepayOrderNo' => 'getYeepayOrderNo', + 'applyStatus' => 'getApplyStatus', + 'elecAccount' => 'getElecAccount', + 'yeepayMemberNo' => 'getYeepayMemberNo', + 'retryConfirm' => 'getRetryConfirm' + ]; + + /** + * 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['yeepayOrderNo'] = isset($data['yeepayOrderNo']) ? $data['yeepayOrderNo'] : null; + $this->container['applyStatus'] = isset($data['applyStatus']) ? $data['applyStatus'] : null; + $this->container['elecAccount'] = isset($data['elecAccount']) ? $data['elecAccount'] : null; + $this->container['yeepayMemberNo'] = isset($data['yeepayMemberNo']) ? $data['yeepayMemberNo'] : null; + $this->container['retryConfirm'] = isset($data['retryConfirm']) ? $data['retryConfirm'] : 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 yeepayOrderNo + * + * @return string + */ + public function getYeepayOrderNo() + { + return $this->container['yeepayOrderNo']; + } + + /** + * Sets yeepayOrderNo + * + * @param string $yeepayOrderNo 易宝开户申请号 + * + * @return $this + */ + public function setYeepayOrderNo($yeepayOrderNo) + { + $this->container['yeepayOrderNo'] = $yeepayOrderNo; + + return $this; + } + + /** + * Gets applyStatus + * + * @return string + */ + public function getApplyStatus() + { + return $this->container['applyStatus']; + } + + /** + * Sets applyStatus + * + * @param string $applyStatus 开户状态
可选项如下:
UNACTIVATED:开户成功-卡片激活失败
SUCCESS:开户成功-卡片激活成功
FAIL:开户失败 + * + * @return $this + */ + public function setApplyStatus($applyStatus) + { + $this->container['applyStatus'] = $applyStatus; + + return $this; + } + + /** + * Gets elecAccount + * + * @return string + */ + public function getElecAccount() + { + return $this->container['elecAccount']; + } + + /** + * Sets elecAccount + * + * @param string $elecAccount 银行电子账号 + * + * @return $this + */ + public function setElecAccount($elecAccount) + { + $this->container['elecAccount'] = $elecAccount; + + return $this; + } + + /** + * Gets yeepayMemberNo + * + * @return string + */ + public function getYeepayMemberNo() + { + return $this->container['yeepayMemberNo']; + } + + /** + * Sets yeepayMemberNo + * + * @param string $yeepayMemberNo 易宝会员号 + * + * @return $this + */ + public function setYeepayMemberNo($yeepayMemberNo) + { + $this->container['yeepayMemberNo'] = $yeepayMemberNo; + + return $this; + } + + /** + * Gets retryConfirm + * + * @return string + */ + public function getRetryConfirm() + { + return $this->container['retryConfirm']; + } + + /** + * Sets retryConfirm + * + * @param string $retryConfirm 是否可以重试
可选项如下:
ON:可以重试
OFF:不可以重试 + * + * @return $this + */ + public function setRetryConfirm($retryConfirm) + { + $this->container['retryConfirm'] = $retryConfirm; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/CouponInfoDTO.php b/lib/Service/MWallet/Model/CouponInfoDTO.php new file mode 100644 index 0000000..2579718 --- /dev/null +++ b/lib/Service/MWallet/Model/CouponInfoDTO.php @@ -0,0 +1,603 @@ + 'string', + 'useScope' => 'string', + 'expireTime' => 'string', + 'couponType' => 'string', + 'maxDiscountAmount' => 'float', + 'discountAmount' => 'float', + 'couponNo' => 'string', + 'effectTime' => 'string', + 'couponRemark' => 'string', + 'minUseAmount' => 'float', + 'discountRatio' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'couponName' => null, + 'useScope' => null, + 'expireTime' => null, + 'couponType' => null, + 'maxDiscountAmount' => null, + 'discountAmount' => null, + 'couponNo' => null, + 'effectTime' => null, + 'couponRemark' => null, + 'minUseAmount' => null, + 'discountRatio' => 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 = [ + 'couponName' => 'couponName', + 'useScope' => 'useScope', + 'expireTime' => 'expireTime', + 'couponType' => 'couponType', + 'maxDiscountAmount' => 'maxDiscountAmount', + 'discountAmount' => 'discountAmount', + 'couponNo' => 'couponNo', + 'effectTime' => 'effectTime', + 'couponRemark' => 'couponRemark', + 'minUseAmount' => 'minUseAmount', + 'discountRatio' => 'discountRatio' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'couponName' => 'setCouponName', + 'useScope' => 'setUseScope', + 'expireTime' => 'setExpireTime', + 'couponType' => 'setCouponType', + 'maxDiscountAmount' => 'setMaxDiscountAmount', + 'discountAmount' => 'setDiscountAmount', + 'couponNo' => 'setCouponNo', + 'effectTime' => 'setEffectTime', + 'couponRemark' => 'setCouponRemark', + 'minUseAmount' => 'setMinUseAmount', + 'discountRatio' => 'setDiscountRatio' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'couponName' => 'getCouponName', + 'useScope' => 'getUseScope', + 'expireTime' => 'getExpireTime', + 'couponType' => 'getCouponType', + 'maxDiscountAmount' => 'getMaxDiscountAmount', + 'discountAmount' => 'getDiscountAmount', + 'couponNo' => 'getCouponNo', + 'effectTime' => 'getEffectTime', + 'couponRemark' => 'getCouponRemark', + 'minUseAmount' => 'getMinUseAmount', + 'discountRatio' => 'getDiscountRatio' + ]; + + /** + * 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['couponName'] = isset($data['couponName']) ? $data['couponName'] : null; + $this->container['useScope'] = isset($data['useScope']) ? $data['useScope'] : null; + $this->container['expireTime'] = isset($data['expireTime']) ? $data['expireTime'] : null; + $this->container['couponType'] = isset($data['couponType']) ? $data['couponType'] : null; + $this->container['maxDiscountAmount'] = isset($data['maxDiscountAmount']) ? $data['maxDiscountAmount'] : null; + $this->container['discountAmount'] = isset($data['discountAmount']) ? $data['discountAmount'] : null; + $this->container['couponNo'] = isset($data['couponNo']) ? $data['couponNo'] : null; + $this->container['effectTime'] = isset($data['effectTime']) ? $data['effectTime'] : null; + $this->container['couponRemark'] = isset($data['couponRemark']) ? $data['couponRemark'] : null; + $this->container['minUseAmount'] = isset($data['minUseAmount']) ? $data['minUseAmount'] : null; + $this->container['discountRatio'] = isset($data['discountRatio']) ? $data['discountRatio'] : 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 couponName + * + * @return string + */ + public function getCouponName() + { + return $this->container['couponName']; + } + + /** + * Sets couponName + * + * @param string $couponName couponName + * + * @return $this + */ + public function setCouponName($couponName) + { + $this->container['couponName'] = $couponName; + + return $this; + } + + /** + * Gets useScope + * + * @return string + */ + public function getUseScope() + { + return $this->container['useScope']; + } + + /** + * Sets useScope + * + * @param string $useScope useScope + * + * @return $this + */ + public function setUseScope($useScope) + { + $this->container['useScope'] = $useScope; + + return $this; + } + + /** + * Gets expireTime + * + * @return string + */ + public function getExpireTime() + { + return $this->container['expireTime']; + } + + /** + * Sets expireTime + * + * @param string $expireTime expireTime + * + * @return $this + */ + public function setExpireTime($expireTime) + { + $this->container['expireTime'] = $expireTime; + + return $this; + } + + /** + * Gets couponType + * + * @return string + */ + public function getCouponType() + { + return $this->container['couponType']; + } + + /** + * Sets couponType + * + * @param string $couponType couponType + * + * @return $this + */ + public function setCouponType($couponType) + { + $this->container['couponType'] = $couponType; + + return $this; + } + + /** + * Gets maxDiscountAmount + * + * @return float + */ + public function getMaxDiscountAmount() + { + return $this->container['maxDiscountAmount']; + } + + /** + * Sets maxDiscountAmount + * + * @param float $maxDiscountAmount maxDiscountAmount + * + * @return $this + */ + public function setMaxDiscountAmount($maxDiscountAmount) + { + $this->container['maxDiscountAmount'] = $maxDiscountAmount; + + return $this; + } + + /** + * Gets discountAmount + * + * @return float + */ + public function getDiscountAmount() + { + return $this->container['discountAmount']; + } + + /** + * Sets discountAmount + * + * @param float $discountAmount discountAmount + * + * @return $this + */ + public function setDiscountAmount($discountAmount) + { + $this->container['discountAmount'] = $discountAmount; + + return $this; + } + + /** + * Gets couponNo + * + * @return string + */ + public function getCouponNo() + { + return $this->container['couponNo']; + } + + /** + * Sets couponNo + * + * @param string $couponNo couponNo + * + * @return $this + */ + public function setCouponNo($couponNo) + { + $this->container['couponNo'] = $couponNo; + + return $this; + } + + /** + * Gets effectTime + * + * @return string + */ + public function getEffectTime() + { + return $this->container['effectTime']; + } + + /** + * Sets effectTime + * + * @param string $effectTime effectTime + * + * @return $this + */ + public function setEffectTime($effectTime) + { + $this->container['effectTime'] = $effectTime; + + return $this; + } + + /** + * Gets couponRemark + * + * @return string + */ + public function getCouponRemark() + { + return $this->container['couponRemark']; + } + + /** + * Sets couponRemark + * + * @param string $couponRemark couponRemark + * + * @return $this + */ + public function setCouponRemark($couponRemark) + { + $this->container['couponRemark'] = $couponRemark; + + return $this; + } + + /** + * Gets minUseAmount + * + * @return float + */ + public function getMinUseAmount() + { + return $this->container['minUseAmount']; + } + + /** + * Sets minUseAmount + * + * @param float $minUseAmount minUseAmount + * + * @return $this + */ + public function setMinUseAmount($minUseAmount) + { + $this->container['minUseAmount'] = $minUseAmount; + + return $this; + } + + /** + * Gets discountRatio + * + * @return float + */ + public function getDiscountRatio() + { + return $this->container['discountRatio']; + } + + /** + * Sets discountRatio + * + * @param float $discountRatio discountRatio + * + * @return $this + */ + public function setDiscountRatio($discountRatio) + { + $this->container['discountRatio'] = $discountRatio; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/CouponListQueryWeb3Request.php b/lib/Service/MWallet/Model/CouponListQueryWeb3Request.php new file mode 100644 index 0000000..deaa8d8 --- /dev/null +++ b/lib/Service/MWallet/Model/CouponListQueryWeb3Request.php @@ -0,0 +1,242 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return CouponListQueryWeb3Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return CouponListQueryWeb3Request + */ + 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 CouponListQueryWeb3Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets queryType + * + * @return string + */ + public function getQueryType() + { + return $this->queryType; + } + + /** + * Sets queryType + * + * @param string $queryType + * @return CouponListQueryWeb3Request + */ + public function setQueryType($queryType) + { + $this->queryType = $queryType; + return $this; + } + /** + * Gets applyEndTime + * + * @return string + */ + public function getApplyEndTime() + { + return $this->applyEndTime; + } + + /** + * Sets applyEndTime + * + * @param string $applyEndTime + * @return CouponListQueryWeb3Request + */ + public function setApplyEndTime($applyEndTime) + { + $this->applyEndTime = $applyEndTime; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return CouponListQueryWeb3Request + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return CouponListQueryWeb3Request + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return CouponListQueryWeb3Request + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets applyStartTime + * + * @return string + */ + public function getApplyStartTime() + { + return $this->applyStartTime; + } + + /** + * Sets applyStartTime + * + * @param string $applyStartTime + * @return CouponListQueryWeb3Request + */ + public function setApplyStartTime($applyStartTime) + { + $this->applyStartTime = $applyStartTime; + return $this; + } + + public static function getOperationId() + { + return 'coupon_list_query_web3'; + } + + +} diff --git a/lib/Service/MWallet/Model/CouponListQueryWeb3RequestMarshaller.php b/lib/Service/MWallet/Model/CouponListQueryWeb3RequestMarshaller.php new file mode 100644 index 0000000..21a7cbd --- /dev/null +++ b/lib/Service/MWallet/Model/CouponListQueryWeb3RequestMarshaller.php @@ -0,0 +1,104 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + 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->getQueryType() != null){ + $internalRequest->addParameter('queryType', ObjectSerializer::sanitizeForSerialization($request->getQueryType(), 'string')); + } + if($request->getApplyEndTime() != null){ + $internalRequest->addParameter('applyEndTime', ObjectSerializer::sanitizeForSerialization($request->getApplyEndTime(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getApplyStartTime() != null){ + $internalRequest->addParameter('applyStartTime', ObjectSerializer::sanitizeForSerialization($request->getApplyStartTime(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CouponListQueryWeb3RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/CouponListQueryWeb3Response.php b/lib/Service/MWallet/Model/CouponListQueryWeb3Response.php new file mode 100644 index 0000000..2da5e5a --- /dev/null +++ b/lib/Service/MWallet/Model/CouponListQueryWeb3Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CouponQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/CouponListQueryWeb3ResponseUnMarshaller.php b/lib/Service/MWallet/Model/CouponListQueryWeb3ResponseUnMarshaller.php new file mode 100644 index 0000000..7d23c91 --- /dev/null +++ b/lib/Service/MWallet/Model/CouponListQueryWeb3ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'couponList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\CouponInfoDTO[]', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'couponList' => null, + 'message' => 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', + 'couponList' => 'couponList', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'couponList' => 'setCouponList', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'couponList' => 'getCouponList', + 'message' => 'getMessage' + ]; + + /** + * 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['couponList'] = isset($data['couponList']) ? $data['couponList'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets couponList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\CouponInfoDTO[] + */ + public function getCouponList() + { + return $this->container['couponList']; + } + + /** + * Sets couponList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\CouponInfoDTO[] $couponList couponList + * + * @return $this + */ + public function setCouponList($couponList) + { + $this->container['couponList'] = $couponList; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/FreeSecretCancelRespDTO.php b/lib/Service/MWallet/Model/FreeSecretCancelRespDTO.php new file mode 100644 index 0000000..7a12d49 --- /dev/null +++ b/lib/Service/MWallet/Model/FreeSecretCancelRespDTO.php @@ -0,0 +1,363 @@ + 'string', + 'message' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return string + */ + public function getCode() + { + return $this->container['code']; + } + + /** + * Sets code + * + * @param string $code 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/FreeSecretCancelResponseDTO.php b/lib/Service/MWallet/Model/FreeSecretCancelResponseDTO.php new file mode 100644 index 0000000..3148fd0 --- /dev/null +++ b/lib/Service/MWallet/Model/FreeSecretCancelResponseDTO.php @@ -0,0 +1,363 @@ + 'string', + 'message' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 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 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/FreeSecretNotifyRespDTO.php b/lib/Service/MWallet/Model/FreeSecretNotifyRespDTO.php new file mode 100644 index 0000000..ed1f0b9 --- /dev/null +++ b/lib/Service/MWallet/Model/FreeSecretNotifyRespDTO.php @@ -0,0 +1,333 @@ + 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/FreeSecretQueryRespDTO.php b/lib/Service/MWallet/Model/FreeSecretQueryRespDTO.php new file mode 100644 index 0000000..6a83e6f --- /dev/null +++ b/lib/Service/MWallet/Model/FreeSecretQueryRespDTO.php @@ -0,0 +1,363 @@ + 'string', + 'agreementStatus' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'agreementStatus' => null, + 'message' => 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', + 'agreementStatus' => 'agreementStatus', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'agreementStatus' => 'setAgreementStatus', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'agreementStatus' => 'getAgreementStatus', + 'message' => 'getMessage' + ]; + + /** + * 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['agreementStatus'] = isset($data['agreementStatus']) ? $data['agreementStatus'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets agreementStatus + * + * @return string + */ + public function getAgreementStatus() + { + return $this->container['agreementStatus']; + } + + /** + * Sets agreementStatus + * + * @param string $agreementStatus agreementStatus + * + * @return $this + */ + public function setAgreementStatus($agreementStatus) + { + $this->container['agreementStatus'] = $agreementStatus; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/FreeSecretQueryResponseDTO.php b/lib/Service/MWallet/Model/FreeSecretQueryResponseDTO.php new file mode 100644 index 0000000..e88a8c0 --- /dev/null +++ b/lib/Service/MWallet/Model/FreeSecretQueryResponseDTO.php @@ -0,0 +1,363 @@ + 'string', + 'agreementStatus' => 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'agreementStatus' => null, + 'message' => 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', + 'agreementStatus' => 'agreementStatus', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'agreementStatus' => 'setAgreementStatus', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'agreementStatus' => 'getAgreementStatus', + 'message' => 'getMessage' + ]; + + /** + * 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['agreementStatus'] = isset($data['agreementStatus']) ? $data['agreementStatus'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets agreementStatus + * + * @return string + */ + public function getAgreementStatus() + { + return $this->container['agreementStatus']; + } + + /** + * Sets agreementStatus + * + * @param string $agreementStatus agreementStatus + * + * @return $this + */ + public function setAgreementStatus($agreementStatus) + { + $this->container['agreementStatus'] = $agreementStatus; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/FreeSecretSignRespDTO.php b/lib/Service/MWallet/Model/FreeSecretSignRespDTO.php new file mode 100644 index 0000000..42df048 --- /dev/null +++ b/lib/Service/MWallet/Model/FreeSecretSignRespDTO.php @@ -0,0 +1,363 @@ + 'string', + 'message' => 'string', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'url' => 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', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'url' => 'getUrl' + ]; + + /** + * 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['url'] = isset($data['url']) ? $data['url'] : 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 url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url

验密签约确认控件URL

+ * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/ManageFeeDeductQueryRespDTO.php b/lib/Service/MWallet/Model/ManageFeeDeductQueryRespDTO.php new file mode 100644 index 0000000..93a7f07 --- /dev/null +++ b/lib/Service/MWallet/Model/ManageFeeDeductQueryRespDTO.php @@ -0,0 +1,363 @@ + 'string', + 'message' => 'string', + 'mainBodyList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\ManageFeeDeductResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'mainBodyList' => 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', + 'mainBodyList' => 'mainBodyList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'mainBodyList' => 'setMainBodyList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'mainBodyList' => 'getMainBodyList' + ]; + + /** + * 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['mainBodyList'] = isset($data['mainBodyList']) ? $data['mainBodyList'] : 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 mainBodyList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\ManageFeeDeductResult[] + */ + public function getMainBodyList() + { + return $this->container['mainBodyList']; + } + + /** + * Sets mainBodyList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\ManageFeeDeductResult[] $mainBodyList

会员主体信息列表

+ * + * @return $this + */ + public function setMainBodyList($mainBodyList) + { + $this->container['mainBodyList'] = $mainBodyList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/ManageFeeDeductResult.php b/lib/Service/MWallet/Model/ManageFeeDeductResult.php new file mode 100644 index 0000000..3a239c5 --- /dev/null +++ b/lib/Service/MWallet/Model/ManageFeeDeductResult.php @@ -0,0 +1,393 @@ + 'string', + 'recentChargeTimeList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\ManageFeeDeductResult[]', + 'merchantNo' => 'string', + 'merchantName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'subscribeNo' => null, + 'recentChargeTimeList' => null, + 'merchantNo' => null, + 'merchantName' => 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 = [ + 'subscribeNo' => 'subscribeNo', + 'recentChargeTimeList' => 'recentChargeTimeList', + 'merchantNo' => 'merchantNo', + 'merchantName' => 'merchantName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'subscribeNo' => 'setSubscribeNo', + 'recentChargeTimeList' => 'setRecentChargeTimeList', + 'merchantNo' => 'setMerchantNo', + 'merchantName' => 'setMerchantName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'subscribeNo' => 'getSubscribeNo', + 'recentChargeTimeList' => 'getRecentChargeTimeList', + 'merchantNo' => 'getMerchantNo', + 'merchantName' => 'getMerchantName' + ]; + + /** + * 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['subscribeNo'] = isset($data['subscribeNo']) ? $data['subscribeNo'] : null; + $this->container['recentChargeTimeList'] = isset($data['recentChargeTimeList']) ? $data['recentChargeTimeList'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantName'] = isset($data['merchantName']) ? $data['merchantName'] : 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 subscribeNo + * + * @return string + */ + public function getSubscribeNo() + { + return $this->container['subscribeNo']; + } + + /** + * Sets subscribeNo + * + * @param string $subscribeNo subscribeNo + * + * @return $this + */ + public function setSubscribeNo($subscribeNo) + { + $this->container['subscribeNo'] = $subscribeNo; + + return $this; + } + + /** + * Gets recentChargeTimeList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\ManageFeeDeductResult[] + */ + public function getRecentChargeTimeList() + { + return $this->container['recentChargeTimeList']; + } + + /** + * Sets recentChargeTimeList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\ManageFeeDeductResult[] $recentChargeTimeList

扣费时间:yyyy-MM-dd hh:mm:ss

+ * + * @return $this + */ + public function setRecentChargeTimeList($recentChargeTimeList) + { + $this->container['recentChargeTimeList'] = $recentChargeTimeList; + + 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 merchantName + * + * @return string + */ + public function getMerchantName() + { + return $this->container['merchantName']; + } + + /** + * Sets merchantName + * + * @param string $merchantName merchantName + * + * @return $this + */ + public function setMerchantName($merchantName) + { + $this->container['merchantName'] = $merchantName; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/ManageFeeQueryDeductRequest.php b/lib/Service/MWallet/Model/ManageFeeQueryDeductRequest.php new file mode 100644 index 0000000..2f07315 --- /dev/null +++ b/lib/Service/MWallet/Model/ManageFeeQueryDeductRequest.php @@ -0,0 +1,92 @@ +realName; + } + + /** + * Sets realName + * + * @param string $realName + * @return ManageFeeQueryDeductRequest + */ + public function setRealName($realName) + { + $this->realName = $realName; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return ManageFeeQueryDeductRequest + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets registerMobile + * + * @return string + */ + public function getRegisterMobile() + { + return $this->registerMobile; + } + + /** + * Sets registerMobile + * + * @param string $registerMobile + * @return ManageFeeQueryDeductRequest + */ + public function setRegisterMobile($registerMobile) + { + $this->registerMobile = $registerMobile; + return $this; + } + + public static function getOperationId() + { + return 'manage_fee_query_deduct'; + } + + +} diff --git a/lib/Service/MWallet/Model/ManageFeeQueryDeductRequestMarshaller.php b/lib/Service/MWallet/Model/ManageFeeQueryDeductRequestMarshaller.php new file mode 100644 index 0000000..421403a --- /dev/null +++ b/lib/Service/MWallet/Model/ManageFeeQueryDeductRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRealName() != null){ + $internalRequest->addParameter('realName', ObjectSerializer::sanitizeForSerialization($request->getRealName(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getRegisterMobile() != null){ + $internalRequest->addParameter('registerMobile', ObjectSerializer::sanitizeForSerialization($request->getRegisterMobile(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ManageFeeQueryDeductRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/ManageFeeQueryDeductResponse.php b/lib/Service/MWallet/Model/ManageFeeQueryDeductResponse.php new file mode 100644 index 0000000..3bb0e38 --- /dev/null +++ b/lib/Service/MWallet/Model/ManageFeeQueryDeductResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ManageFeeDeductQueryRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/ManageFeeQueryDeductResponseUnMarshaller.php b/lib/Service/MWallet/Model/ManageFeeQueryDeductResponseUnMarshaller.php new file mode 100644 index 0000000..90cd131 --- /dev/null +++ b/lib/Service/MWallet/Model/ManageFeeQueryDeductResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'marketType' => 'string', + 'preferentialAmount' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'marketOrderNo' => null, + 'marketType' => null, + 'preferentialAmount' => 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 = [ + 'marketOrderNo' => 'marketOrderNo', + 'marketType' => 'marketType', + 'preferentialAmount' => 'preferentialAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'marketOrderNo' => 'setMarketOrderNo', + 'marketType' => 'setMarketType', + 'preferentialAmount' => 'setPreferentialAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'marketOrderNo' => 'getMarketOrderNo', + 'marketType' => 'getMarketType', + 'preferentialAmount' => 'getPreferentialAmount' + ]; + + /** + * 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['marketOrderNo'] = isset($data['marketOrderNo']) ? $data['marketOrderNo'] : null; + $this->container['marketType'] = isset($data['marketType']) ? $data['marketType'] : null; + $this->container['preferentialAmount'] = isset($data['preferentialAmount']) ? $data['preferentialAmount'] : 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 marketOrderNo + * + * @return string + */ + public function getMarketOrderNo() + { + return $this->container['marketOrderNo']; + } + + /** + * Sets marketOrderNo + * + * @param string $marketOrderNo

营销订单号

+ * + * @return $this + */ + public function setMarketOrderNo($marketOrderNo) + { + $this->container['marketOrderNo'] = $marketOrderNo; + + return $this; + } + + /** + * Gets marketType + * + * @return string + */ + public function getMarketType() + { + return $this->container['marketType']; + } + + /** + * Sets marketType + * + * @param string $marketType

优惠券类型

+ * + * @return $this + */ + public function setMarketType($marketType) + { + $this->container['marketType'] = $marketType; + + return $this; + } + + /** + * Gets preferentialAmount + * + * @return string + */ + public function getPreferentialAmount() + { + return $this->container['preferentialAmount']; + } + + /** + * Sets preferentialAmount + * + * @param string $preferentialAmount

优惠金额

+ * + * @return $this + */ + public function setPreferentialAmount($preferentialAmount) + { + $this->container['preferentialAmount'] = $preferentialAmount; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/MemberCancelResponseDTO.php b/lib/Service/MWallet/Model/MemberCancelResponseDTO.php new file mode 100644 index 0000000..3eb99f5 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberCancelResponseDTO.php @@ -0,0 +1,333 @@ + 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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 返回码
注销成功时返回:SUCCESS + * + * @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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/MemberCardListRequest.php b/lib/Service/MWallet/Model/MemberCardListRequest.php new file mode 100644 index 0000000..9f61254 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberCardListRequest.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return MemberCardListRequest + */ + 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 MemberCardListRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return MemberCardListRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + + public static function getOperationId() + { + return 'member_card_list'; + } + + +} diff --git a/lib/Service/MWallet/Model/MemberCardListRequestMarshaller.php b/lib/Service/MWallet/Model/MemberCardListRequestMarshaller.php new file mode 100644 index 0000000..55094c8 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberCardListRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MemberCardListRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/MemberCardListResponse.php b/lib/Service/MWallet/Model/MemberCardListResponse.php new file mode 100644 index 0000000..8e0b210 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberCardListResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MemberQueryBindCardListResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/MemberCardListResponseUnMarshaller.php b/lib/Service/MWallet/Model/MemberCardListResponseUnMarshaller.php new file mode 100644 index 0000000..639ed06 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberCardListResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'bindCardInfoList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\BindCardInfo[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'bindCardInfoList' => 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', + 'bindCardInfoList' => 'bindCardInfoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'bindCardInfoList' => 'setBindCardInfoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'bindCardInfoList' => 'getBindCardInfoList' + ]; + + /** + * 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['bindCardInfoList'] = isset($data['bindCardInfoList']) ? $data['bindCardInfoList'] : 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets bindCardInfoList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\BindCardInfo[] + */ + public function getBindCardInfoList() + { + return $this->container['bindCardInfoList']; + } + + /** + * Sets bindCardInfoList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\BindCardInfo[] $bindCardInfoList bindCardInfoList + * + * @return $this + */ + public function setBindCardInfoList($bindCardInfoList) + { + $this->container['bindCardInfoList'] = $bindCardInfoList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/MemberQueryRequest.php b/lib/Service/MWallet/Model/MemberQueryRequest.php new file mode 100644 index 0000000..4e423e6 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryRequest.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return MemberQueryRequest + */ + 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 MemberQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets externalUserId + * + * @return string + */ + public function getExternalUserId() + { + return $this->externalUserId; + } + + /** + * Sets externalUserId + * + * @param string $externalUserId + * @return MemberQueryRequest + */ + public function setExternalUserId($externalUserId) + { + $this->externalUserId = $externalUserId; + return $this; + } + /** + * Gets memberNo + * + * @return string + */ + public function getMemberNo() + { + return $this->memberNo; + } + + /** + * Sets memberNo + * + * @param string $memberNo + * @return MemberQueryRequest + */ + public function setMemberNo($memberNo) + { + $this->memberNo = $memberNo; + return $this; + } + + public static function getOperationId() + { + return 'memberQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/MemberQueryRequestMarshaller.php b/lib/Service/MWallet/Model/MemberQueryRequestMarshaller.php new file mode 100644 index 0000000..e460266 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getExternalUserId() != null){ + $internalRequest->addParameter('externalUserId', ObjectSerializer::sanitizeForSerialization($request->getExternalUserId(), 'string')); + } + if($request->getMemberNo() != null){ + $internalRequest->addParameter('memberNo', ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MemberQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/MemberQueryResponse.php b/lib/Service/MWallet/Model/MemberQueryResponse.php new file mode 100644 index 0000000..a80f96e --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryMemberInfoResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/MemberQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/MemberQueryResponseUnMarshaller.php new file mode 100644 index 0000000..db6f17a --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return MemberQueryV10Request + */ + 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 MemberQueryV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets externalUserId + * + * @return string + */ + public function getExternalUserId() + { + return $this->externalUserId; + } + + /** + * Sets externalUserId + * + * @param string $externalUserId + * @return MemberQueryV10Request + */ + public function setExternalUserId($externalUserId) + { + $this->externalUserId = $externalUserId; + return $this; + } + /** + * Gets memberNo + * + * @return string + */ + public function getMemberNo() + { + return $this->memberNo; + } + + /** + * Sets memberNo + * + * @param string $memberNo + * @return MemberQueryV10Request + */ + public function setMemberNo($memberNo) + { + $this->memberNo = $memberNo; + return $this; + } + + public static function getOperationId() + { + return 'member_query_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/MemberQueryV10RequestMarshaller.php b/lib/Service/MWallet/Model/MemberQueryV10RequestMarshaller.php new file mode 100644 index 0000000..562b02f --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryV10RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getExternalUserId() != null){ + $internalRequest->addParameter('externalUserId', ObjectSerializer::sanitizeForSerialization($request->getExternalUserId(), 'string')); + } + if($request->getMemberNo() != null){ + $internalRequest->addParameter('memberNo', ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MemberQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/MemberQueryV10Response.php b/lib/Service/MWallet/Model/MemberQueryV10Response.php new file mode 100644 index 0000000..db6dc29 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryMemberInfoResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/MemberQueryV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/MemberQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..ac98434 --- /dev/null +++ b/lib/Service/MWallet/Model/MemberQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'walletUserNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantUserNo' => null, + 'walletUserNo' => 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 = [ + 'merchantUserNo' => 'merchantUserNo', + 'walletUserNo' => 'walletUserNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantUserNo' => 'setMerchantUserNo', + 'walletUserNo' => 'setWalletUserNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantUserNo' => 'getMerchantUserNo', + 'walletUserNo' => 'getWalletUserNo' + ]; + + /** + * 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['merchantUserNo'] = isset($data['merchantUserNo']) ? $data['merchantUserNo'] : null; + $this->container['walletUserNo'] = isset($data['walletUserNo']) ? $data['walletUserNo'] : 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 merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->container['merchantUserNo']; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo

会员外部用户标识

+ * + * @return $this + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->container['merchantUserNo'] = $merchantUserNo; + + return $this; + } + + /** + * Gets walletUserNo + * + * @return string + */ + public function getWalletUserNo() + { + return $this->container['walletUserNo']; + } + + /** + * Sets walletUserNo + * + * @param string $walletUserNo
易宝会员编号
+ * + * @return $this + */ + public function setWalletUserNo($walletUserNo) + { + $this->container['walletUserNo'] = $walletUserNo; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/MemberTradOrderResp.php b/lib/Service/MWallet/Model/MemberTradOrderResp.php new file mode 100644 index 0000000..d67631b --- /dev/null +++ b/lib/Service/MWallet/Model/MemberTradOrderResp.php @@ -0,0 +1,483 @@ + 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string', + 'requestNo' => 'string', + 'merchantNo' => 'string', + 'parentMerchantNo' => 'string', + 'cashierUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'uniqueOrderNo' => null, + 'requestNo' => null, + 'merchantNo' => null, + 'parentMerchantNo' => null, + 'cashierUrl' => 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', + 'requestNo' => 'requestNo', + 'merchantNo' => 'merchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'cashierUrl' => 'cashierUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'requestNo' => 'setRequestNo', + 'merchantNo' => 'setMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'cashierUrl' => 'setCashierUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'requestNo' => 'getRequestNo', + 'merchantNo' => 'getMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'cashierUrl' => 'getCashierUrl' + ]; + + /** + * 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['cashierUrl'] = isset($data['cashierUrl']) ? $data['cashierUrl'] : 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 返回码
WLT0000:成功 + * + * @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 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo 业务发起方商编
支付用户所在的平台商编 + * + * @return $this + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->container['parentMerchantNo'] = $parentMerchantNo; + + return $this; + } + + /** + * Gets cashierUrl + * + * @return string + */ + public function getCashierUrl() + { + return $this->container['cashierUrl']; + } + + /** + * Sets cashierUrl + * + * @param string $cashierUrl 收银台链接

收银台链接

+ * + * @return $this + */ + public function setCashierUrl($cashierUrl) + { + $this->container['cashierUrl'] = $cashierUrl; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/OpenSuccessNotifyResponseDTO.php b/lib/Service/MWallet/Model/OpenSuccessNotifyResponseDTO.php new file mode 100644 index 0000000..40c9f3b --- /dev/null +++ b/lib/Service/MWallet/Model/OpenSuccessNotifyResponseDTO.php @@ -0,0 +1,333 @@ + 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/PasswordManageRequest.php b/lib/Service/MWallet/Model/PasswordManageRequest.php new file mode 100644 index 0000000..b288b28 --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageRequest.php @@ -0,0 +1,142 @@ +returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return PasswordManageRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return PasswordManageRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return PasswordManageRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return PasswordManageRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PasswordManageRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'passwordManage'; + } + + +} diff --git a/lib/Service/MWallet/Model/PasswordManageRequestMarshaller.php b/lib/Service/MWallet/Model/PasswordManageRequestMarshaller.php new file mode 100644 index 0000000..d80a529 --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PasswordManageRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/PasswordManageResponse.php b/lib/Service/MWallet/Model/PasswordManageResponse.php new file mode 100644 index 0000000..39dff24 --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/PasswordManageResponseUnMarshaller.php b/lib/Service/MWallet/Model/PasswordManageResponseUnMarshaller.php new file mode 100644 index 0000000..244ba02 --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageResponseUnMarshaller.php @@ -0,0 +1,39 @@ +returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return PasswordManageV10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return PasswordManageV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return PasswordManageV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return PasswordManageV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PasswordManageV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'password_manage_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/PasswordManageV10RequestMarshaller.php b/lib/Service/MWallet/Model/PasswordManageV10RequestMarshaller.php new file mode 100644 index 0000000..ce30a65 --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageV10RequestMarshaller.php @@ -0,0 +1,92 @@ +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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PasswordManageV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/PasswordManageV10Response.php b/lib/Service/MWallet/Model/PasswordManageV10Response.php new file mode 100644 index 0000000..076bcb0 --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/PasswordManageV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/PasswordManageV10ResponseUnMarshaller.php new file mode 100644 index 0000000..62c0e4b --- /dev/null +++ b/lib/Service/MWallet/Model/PasswordManageV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return PaymentManageWeb3V10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return PaymentManageWeb3V10Request + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PaymentManageWeb3V10Request + */ + 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 PaymentManageWeb3V10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return PaymentManageWeb3V10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'payment_manage_web3_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/PaymentManageWeb3V10RequestMarshaller.php b/lib/Service/MWallet/Model/PaymentManageWeb3V10RequestMarshaller.php new file mode 100644 index 0000000..3199127 --- /dev/null +++ b/lib/Service/MWallet/Model/PaymentManageWeb3V10RequestMarshaller.php @@ -0,0 +1,92 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), '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->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PaymentManageWeb3V10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/PaymentManageWeb3V10Response.php b/lib/Service/MWallet/Model/PaymentManageWeb3V10Response.php new file mode 100644 index 0000000..c1fa7d8 --- /dev/null +++ b/lib/Service/MWallet/Model/PaymentManageWeb3V10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletAdapterRequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/PaymentManageWeb3V10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/PaymentManageWeb3V10ResponseUnMarshaller.php new file mode 100644 index 0000000..755d928 --- /dev/null +++ b/lib/Service/MWallet/Model/PaymentManageWeb3V10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'status' => 'string', + 'requestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'status' => null, + 'requestNo' => 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', + 'requestNo' => 'requestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'status' => 'setStatus', + 'requestNo' => 'setRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'status' => 'getStatus', + 'requestNo' => 'getRequestNo' + ]; + + /** + * 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; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 状态
可选项如下:
SUCCESS:成功
FAIL:失败
PROCESS:处理中 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryBankAccountTradeRespDTO.php b/lib/Service/MWallet/Model/QueryBankAccountTradeRespDTO.php new file mode 100644 index 0000000..e27be2c --- /dev/null +++ b/lib/Service/MWallet/Model/QueryBankAccountTradeRespDTO.php @@ -0,0 +1,573 @@ + 'string', + 'returnMsg' => 'string', + 'totalNum' => 'string', + 'debitSum' => 'string', + 'debitAmt' => 'string', + 'loanSum' => 'string', + 'loanAmt' => 'string', + 'queryToken' => 'string', + 'queryTime' => 'string', + 'detailList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\BankAccountTradeDTO[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'totalNum' => null, + 'debitSum' => null, + 'debitAmt' => null, + 'loanSum' => null, + 'loanAmt' => null, + 'queryToken' => null, + 'queryTime' => null, + 'detailList' => 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', + 'totalNum' => 'totalNum', + 'debitSum' => 'debitSum', + 'debitAmt' => 'debitAmt', + 'loanSum' => 'loanSum', + 'loanAmt' => 'loanAmt', + 'queryToken' => 'queryToken', + 'queryTime' => 'queryTime', + 'detailList' => 'detailList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'totalNum' => 'setTotalNum', + 'debitSum' => 'setDebitSum', + 'debitAmt' => 'setDebitAmt', + 'loanSum' => 'setLoanSum', + 'loanAmt' => 'setLoanAmt', + 'queryToken' => 'setQueryToken', + 'queryTime' => 'setQueryTime', + 'detailList' => 'setDetailList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'totalNum' => 'getTotalNum', + 'debitSum' => 'getDebitSum', + 'debitAmt' => 'getDebitAmt', + 'loanSum' => 'getLoanSum', + 'loanAmt' => 'getLoanAmt', + 'queryToken' => 'getQueryToken', + 'queryTime' => 'getQueryTime', + 'detailList' => 'getDetailList' + ]; + + /** + * 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['totalNum'] = isset($data['totalNum']) ? $data['totalNum'] : null; + $this->container['debitSum'] = isset($data['debitSum']) ? $data['debitSum'] : null; + $this->container['debitAmt'] = isset($data['debitAmt']) ? $data['debitAmt'] : null; + $this->container['loanSum'] = isset($data['loanSum']) ? $data['loanSum'] : null; + $this->container['loanAmt'] = isset($data['loanAmt']) ? $data['loanAmt'] : null; + $this->container['queryToken'] = isset($data['queryToken']) ? $data['queryToken'] : null; + $this->container['queryTime'] = isset($data['queryTime']) ? $data['queryTime'] : null; + $this->container['detailList'] = isset($data['detailList']) ? $data['detailList'] : 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 totalNum + * + * @return string + */ + public function getTotalNum() + { + return $this->container['totalNum']; + } + + /** + * Sets totalNum + * + * @param string $totalNum 总记录条数 + * + * @return $this + */ + public function setTotalNum($totalNum) + { + $this->container['totalNum'] = $totalNum; + + return $this; + } + + /** + * Gets debitSum + * + * @return string + */ + public function getDebitSum() + { + return $this->container['debitSum']; + } + + /** + * Sets debitSum + * + * @param string $debitSum 支出总笔数 + * + * @return $this + */ + public function setDebitSum($debitSum) + { + $this->container['debitSum'] = $debitSum; + + return $this; + } + + /** + * Gets debitAmt + * + * @return string + */ + public function getDebitAmt() + { + return $this->container['debitAmt']; + } + + /** + * Sets debitAmt + * + * @param string $debitAmt 支出总金额 + * + * @return $this + */ + public function setDebitAmt($debitAmt) + { + $this->container['debitAmt'] = $debitAmt; + + return $this; + } + + /** + * Gets loanSum + * + * @return string + */ + public function getLoanSum() + { + return $this->container['loanSum']; + } + + /** + * Sets loanSum + * + * @param string $loanSum 收入总笔数 + * + * @return $this + */ + public function setLoanSum($loanSum) + { + $this->container['loanSum'] = $loanSum; + + return $this; + } + + /** + * Gets loanAmt + * + * @return string + */ + public function getLoanAmt() + { + return $this->container['loanAmt']; + } + + /** + * Sets loanAmt + * + * @param string $loanAmt 收入总金额 + * + * @return $this + */ + public function setLoanAmt($loanAmt) + { + $this->container['loanAmt'] = $loanAmt; + + return $this; + } + + /** + * Gets queryToken + * + * @return string + */ + public function getQueryToken() + { + return $this->container['queryToken']; + } + + /** + * Sets queryToken + * + * @param string $queryToken 查询token
用于下次分页查询使用,若返回为空代表已经全部查完 + * + * @return $this + */ + public function setQueryToken($queryToken) + { + $this->container['queryToken'] = $queryToken; + + return $this; + } + + /** + * Gets queryTime + * + * @return string + */ + public function getQueryTime() + { + return $this->container['queryTime']; + } + + /** + * Sets queryTime + * + * @param string $queryTime 查询时间戳
用于下次分页查询使用,若返回为空代表已经全部查完 + * + * @return $this + */ + public function setQueryTime($queryTime) + { + $this->container['queryTime'] = $queryTime; + + return $this; + } + + /** + * Gets detailList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\BankAccountTradeDTO[] + */ + public function getDetailList() + { + return $this->container['detailList']; + } + + /** + * Sets detailList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\BankAccountTradeDTO[] $detailList detailList + * + * @return $this + */ + public function setDetailList($detailList) + { + $this->container['detailList'] = $detailList; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryBankAccountWithDrawRespDTO.php b/lib/Service/MWallet/Model/QueryBankAccountWithDrawRespDTO.php new file mode 100644 index 0000000..e58fa0e --- /dev/null +++ b/lib/Service/MWallet/Model/QueryBankAccountWithDrawRespDTO.php @@ -0,0 +1,633 @@ + 'string', + 'returnMsg' => 'string', + 'status' => 'string', + 'finishTime' => 'string', + 'createTime' => 'string', + 'requestNo' => 'string', + 'withdrawPrice' => 'float', + 'accountNo' => 'string', + 'accountType' => 'string', + 'oneAccountBankNo' => 'string', + 'bindBankPhone' => 'string', + 'remark' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'status' => null, + 'finishTime' => null, + 'createTime' => null, + 'requestNo' => null, + 'withdrawPrice' => null, + 'accountNo' => null, + 'accountType' => null, + 'oneAccountBankNo' => null, + 'bindBankPhone' => 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 = [ + 'returnCode' => 'returnCode', + 'returnMsg' => 'returnMsg', + 'status' => 'status', + 'finishTime' => 'finishTime', + 'createTime' => 'createTime', + 'requestNo' => 'requestNo', + 'withdrawPrice' => 'withdrawPrice', + 'accountNo' => 'accountNo', + 'accountType' => 'accountType', + 'oneAccountBankNo' => 'oneAccountBankNo', + 'bindBankPhone' => 'bindBankPhone', + 'remark' => 'remark' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'status' => 'setStatus', + 'finishTime' => 'setFinishTime', + 'createTime' => 'setCreateTime', + 'requestNo' => 'setRequestNo', + 'withdrawPrice' => 'setWithdrawPrice', + 'accountNo' => 'setAccountNo', + 'accountType' => 'setAccountType', + 'oneAccountBankNo' => 'setOneAccountBankNo', + 'bindBankPhone' => 'setBindBankPhone', + 'remark' => 'setRemark' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'status' => 'getStatus', + 'finishTime' => 'getFinishTime', + 'createTime' => 'getCreateTime', + 'requestNo' => 'getRequestNo', + 'withdrawPrice' => 'getWithdrawPrice', + 'accountNo' => 'getAccountNo', + 'accountType' => 'getAccountType', + 'oneAccountBankNo' => 'getOneAccountBankNo', + 'bindBankPhone' => 'getBindBankPhone', + '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['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; + $this->container['finishTime'] = isset($data['finishTime']) ? $data['finishTime'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['withdrawPrice'] = isset($data['withdrawPrice']) ? $data['withdrawPrice'] : null; + $this->container['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null; + $this->container['oneAccountBankNo'] = isset($data['oneAccountBankNo']) ? $data['oneAccountBankNo'] : null; + $this->container['bindBankPhone'] = isset($data['bindBankPhone']) ? $data['bindBankPhone'] : 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 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 订单状态
可选项如下:
SUCCESS:提现成功
FAIL:提现失败
PROCESS:提现中 + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets finishTime + * + * @return string + */ + public function getFinishTime() + { + return $this->container['finishTime']; + } + + /** + * Sets finishTime + * + * @param string $finishTime 完成时间
时间格式为:yyyy-MM-dd HH:mm:ss + * + * @return $this + */ + public function setFinishTime($finishTime) + { + $this->container['finishTime'] = $finishTime; + + return $this; + } + + /** + * Gets createTime + * + * @return string + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param string $createTime 创建时间
时间格式为:yyyy-MM-dd HH:mm:ss + * + * @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 withdrawPrice + * + * @return float + */ + public function getWithdrawPrice() + { + return $this->container['withdrawPrice']; + } + + /** + * Sets withdrawPrice + * + * @param float $withdrawPrice 提现金额 + * + * @return $this + */ + public function setWithdrawPrice($withdrawPrice) + { + $this->container['withdrawPrice'] = $withdrawPrice; + + 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 accountType + * + * @return string + */ + public function getAccountType() + { + return $this->container['accountType']; + } + + /** + * Sets accountType + * + * @param string $accountType 账户类型
可选项如下:
CNCB:中信银行 + * + * @return $this + */ + public function setAccountType($accountType) + { + $this->container['accountType'] = $accountType; + + return $this; + } + + /** + * Gets oneAccountBankNo + * + * @return string + */ + public function getOneAccountBankNo() + { + return $this->container['oneAccountBankNo']; + } + + /** + * Sets oneAccountBankNo + * + * @param string $oneAccountBankNo 绑定的一类卡号 + * + * @return $this + */ + public function setOneAccountBankNo($oneAccountBankNo) + { + $this->container['oneAccountBankNo'] = $oneAccountBankNo; + + return $this; + } + + /** + * Gets bindBankPhone + * + * @return string + */ + public function getBindBankPhone() + { + return $this->container['bindBankPhone']; + } + + /** + * Sets bindBankPhone + * + * @param string $bindBankPhone 绑定的手机号 + * + * @return $this + */ + public function setBindBankPhone($bindBankPhone) + { + $this->container['bindBankPhone'] = $bindBankPhone; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryComplaintOrderRespDTO.php b/lib/Service/MWallet/Model/QueryComplaintOrderRespDTO.php new file mode 100644 index 0000000..c1e1575 --- /dev/null +++ b/lib/Service/MWallet/Model/QueryComplaintOrderRespDTO.php @@ -0,0 +1,513 @@ + 'string', + 'returnMsg' => 'string', + 'accountNo' => 'string', + 'tradeTime' => 'string', + 'bankTradeNo' => 'string', + 'amountGear' => 'string', + 'tradeDetail' => 'string', + 'tradeType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'accountNo' => null, + 'tradeTime' => null, + 'bankTradeNo' => null, + 'amountGear' => null, + 'tradeDetail' => null, + 'tradeType' => 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', + 'accountNo' => 'accountNo', + 'tradeTime' => 'tradeTime', + 'bankTradeNo' => 'bankTradeNo', + 'amountGear' => 'amountGear', + 'tradeDetail' => 'tradeDetail', + 'tradeType' => 'tradeType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'accountNo' => 'setAccountNo', + 'tradeTime' => 'setTradeTime', + 'bankTradeNo' => 'setBankTradeNo', + 'amountGear' => 'setAmountGear', + 'tradeDetail' => 'setTradeDetail', + 'tradeType' => 'setTradeType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'accountNo' => 'getAccountNo', + 'tradeTime' => 'getTradeTime', + 'bankTradeNo' => 'getBankTradeNo', + 'amountGear' => 'getAmountGear', + 'tradeDetail' => 'getTradeDetail', + 'tradeType' => 'getTradeType' + ]; + + /** + * 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['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null; + $this->container['tradeTime'] = isset($data['tradeTime']) ? $data['tradeTime'] : null; + $this->container['bankTradeNo'] = isset($data['bankTradeNo']) ? $data['bankTradeNo'] : null; + $this->container['amountGear'] = isset($data['amountGear']) ? $data['amountGear'] : null; + $this->container['tradeDetail'] = isset($data['tradeDetail']) ? $data['tradeDetail'] : null; + $this->container['tradeType'] = isset($data['tradeType']) ? $data['tradeType'] : 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 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 tradeTime + * + * @return string + */ + public function getTradeTime() + { + return $this->container['tradeTime']; + } + + /** + * Sets tradeTime + * + * @param string $tradeTime 订单交易日期
参数格式为:yyyyMMdd + * + * @return $this + */ + public function setTradeTime($tradeTime) + { + $this->container['tradeTime'] = $tradeTime; + + return $this; + } + + /** + * Gets bankTradeNo + * + * @return string + */ + public function getBankTradeNo() + { + return $this->container['bankTradeNo']; + } + + /** + * Sets bankTradeNo + * + * @param string $bankTradeNo 银行交易流水 + * + * @return $this + */ + public function setBankTradeNo($bankTradeNo) + { + $this->container['bankTradeNo'] = $bankTradeNo; + + return $this; + } + + /** + * Gets amountGear + * + * @return string + */ + public function getAmountGear() + { + return $this->container['amountGear']; + } + + /** + * Sets amountGear + * + * @param string $amountGear 交易金额档位 + * + * @return $this + */ + public function setAmountGear($amountGear) + { + $this->container['amountGear'] = $amountGear; + + return $this; + } + + /** + * Gets tradeDetail + * + * @return string + */ + public function getTradeDetail() + { + return $this->container['tradeDetail']; + } + + /** + * Sets tradeDetail + * + * @param string $tradeDetail 摘要 + * + * @return $this + */ + public function setTradeDetail($tradeDetail) + { + $this->container['tradeDetail'] = $tradeDetail; + + return $this; + } + + /** + * Gets tradeType + * + * @return string + */ + public function getTradeType() + { + return $this->container['tradeType']; + } + + /** + * Sets tradeType + * + * @param string $tradeType 交易类型
可选项如下:
PAY:支付
REFUND:退款 + * + * @return $this + */ + public function setTradeType($tradeType) + { + $this->container['tradeType'] = $tradeType; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryMGB2CResponseDTO.php b/lib/Service/MWallet/Model/QueryMGB2CResponseDTO.php new file mode 100644 index 0000000..c5707c6 --- /dev/null +++ b/lib/Service/MWallet/Model/QueryMGB2CResponseDTO.php @@ -0,0 +1,543 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'businessNo' => 'string', + 'orderAmount' => 'float', + 'orderStatus' => 'string', + 'fromMerchantNo' => 'string', + 'toMerchantNo' => 'string', + 'toMemberNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'businessNo' => null, + 'orderAmount' => null, + 'orderStatus' => null, + 'fromMerchantNo' => null, + 'toMerchantNo' => null, + 'toMemberNo' => 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', + 'requestNo' => 'requestNo', + 'businessNo' => 'businessNo', + 'orderAmount' => 'orderAmount', + 'orderStatus' => 'orderStatus', + 'fromMerchantNo' => 'fromMerchantNo', + 'toMerchantNo' => 'toMerchantNo', + 'toMemberNo' => 'toMemberNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'businessNo' => 'setBusinessNo', + 'orderAmount' => 'setOrderAmount', + 'orderStatus' => 'setOrderStatus', + 'fromMerchantNo' => 'setFromMerchantNo', + 'toMerchantNo' => 'setToMerchantNo', + 'toMemberNo' => 'setToMemberNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'businessNo' => 'getBusinessNo', + 'orderAmount' => 'getOrderAmount', + 'orderStatus' => 'getOrderStatus', + 'fromMerchantNo' => 'getFromMerchantNo', + 'toMerchantNo' => 'getToMerchantNo', + 'toMemberNo' => 'getToMemberNo' + ]; + + /** + * 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['fromMerchantNo'] = isset($data['fromMerchantNo']) ? $data['fromMerchantNo'] : null; + $this->container['toMerchantNo'] = isset($data['toMerchantNo']) ? $data['toMerchantNo'] : null; + $this->container['toMemberNo'] = isset($data['toMemberNo']) ? $data['toMemberNo'] : 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 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo 易宝订单号 + * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + 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 转账订单状态
转账订单的4个状态
可选项如下:
UNCREDITED:已受理-处理中
NOT_VERIFIED:待确认
CREDITED:转账成功
COMMIT_FAILURE:转账失败 + * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->container['fromMerchantNo']; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo 交易主体商编
转出方商户编号 + * + * @return $this + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->container['fromMerchantNo'] = $fromMerchantNo; + + return $this; + } + + /** + * Gets toMerchantNo + * + * @return string + */ + public function getToMerchantNo() + { + return $this->container['toMerchantNo']; + } + + /** + * Sets toMerchantNo + * + * @param string $toMerchantNo 转帐接收方平台商编
转帐接收方用户所在平台商编 + * + * @return $this + */ + public function setToMerchantNo($toMerchantNo) + { + $this->container['toMerchantNo'] = $toMerchantNo; + + return $this; + } + + /** + * Gets toMemberNo + * + * @return string + */ + public function getToMemberNo() + { + return $this->container['toMemberNo']; + } + + /** + * Sets toMemberNo + * + * @param string $toMemberNo 转出方易宝用户编号 + * + * @return $this + */ + public function setToMemberNo($toMemberNo) + { + $this->container['toMemberNo'] = $toMemberNo; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryMemberInfoResponseDTO.php b/lib/Service/MWallet/Model/QueryMemberInfoResponseDTO.php new file mode 100644 index 0000000..d321a08 --- /dev/null +++ b/lib/Service/MWallet/Model/QueryMemberInfoResponseDTO.php @@ -0,0 +1,483 @@ + 'string', + 'message' => 'string', + 'memberNo' => 'string', + 'externalUserId' => 'string', + 'walletStatus' => 'string', + 'walletCategory' => 'string', + 'renewStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'memberNo' => null, + 'externalUserId' => null, + 'walletStatus' => null, + 'walletCategory' => null, + 'renewStatus' => 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', + 'memberNo' => 'memberNo', + 'externalUserId' => 'externalUserId', + 'walletStatus' => 'walletStatus', + 'walletCategory' => 'walletCategory', + 'renewStatus' => 'renewStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'memberNo' => 'setMemberNo', + 'externalUserId' => 'setExternalUserId', + 'walletStatus' => 'setWalletStatus', + 'walletCategory' => 'setWalletCategory', + 'renewStatus' => 'setRenewStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'memberNo' => 'getMemberNo', + 'externalUserId' => 'getExternalUserId', + 'walletStatus' => 'getWalletStatus', + 'walletCategory' => 'getWalletCategory', + 'renewStatus' => 'getRenewStatus' + ]; + + /** + * 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['memberNo'] = isset($data['memberNo']) ? $data['memberNo'] : null; + $this->container['externalUserId'] = isset($data['externalUserId']) ? $data['externalUserId'] : null; + $this->container['walletStatus'] = isset($data['walletStatus']) ? $data['walletStatus'] : null; + $this->container['walletCategory'] = isset($data['walletCategory']) ? $data['walletCategory'] : null; + $this->container['renewStatus'] = isset($data['renewStatus']) ? $data['renewStatus'] : 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 返回码
000000 请求成功 + * + * @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 memberNo + * + * @return string + */ + public function getMemberNo() + { + return $this->container['memberNo']; + } + + /** + * Sets memberNo + * + * @param string $memberNo 会员号 + * + * @return $this + */ + public function setMemberNo($memberNo) + { + $this->container['memberNo'] = $memberNo; + + return $this; + } + + /** + * Gets externalUserId + * + * @return string + */ + public function getExternalUserId() + { + return $this->container['externalUserId']; + } + + /** + * Sets externalUserId + * + * @param string $externalUserId 商户用户ID
用户在商户侧的用户ID + * + * @return $this + */ + public function setExternalUserId($externalUserId) + { + $this->container['externalUserId'] = $externalUserId; + + return $this; + } + + /** + * Gets walletStatus + * + * @return string + */ + public function getWalletStatus() + { + return $this->container['walletStatus']; + } + + /** + * Sets walletStatus + * + * @param string $walletStatus 钱包账户状态
可选项如下:
UNACTIVED:未激活
AVAILABLY:正常
FREEZE:冻结
CANCEL:已注销 + * + * @return $this + */ + public function setWalletStatus($walletStatus) + { + $this->container['walletStatus'] = $walletStatus; + + return $this; + } + + /** + * Gets walletCategory + * + * @return string + */ + public function getWalletCategory() + { + return $this->container['walletCategory']; + } + + /** + * Sets walletCategory + * + * @param string $walletCategory 钱包账户等级
可选项如下:
ONE_CATEGORY:一类
TWO_CATEGORY:二类
THREE_CATEGORY:三类 + * + * @return $this + */ + public function setWalletCategory($walletCategory) + { + $this->container['walletCategory'] = $walletCategory; + + return $this; + } + + /** + * Gets renewStatus + * + * @return string + */ + public function getRenewStatus() + { + return $this->container['renewStatus']; + } + + /** + * Sets renewStatus + * + * @param string $renewStatus 续费状态
可选项如下:
VALID:有效
INVALID:失效 + * + * @return $this + */ + public function setRenewStatus($renewStatus) + { + $this->container['renewStatus'] = $renewStatus; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryOpenResultResponseDTO.php b/lib/Service/MWallet/Model/QueryOpenResultResponseDTO.php new file mode 100644 index 0000000..a1d777e --- /dev/null +++ b/lib/Service/MWallet/Model/QueryOpenResultResponseDTO.php @@ -0,0 +1,543 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'yeepayOrderNo' => 'string', + 'applyStatus' => 'string', + 'elecAccount' => 'string', + 'bankAccountLevel' => 'string', + 'accountType' => 'string', + 'yeepayMemberNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'yeepayOrderNo' => null, + 'applyStatus' => null, + 'elecAccount' => null, + 'bankAccountLevel' => null, + 'accountType' => null, + 'yeepayMemberNo' => 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', + 'yeepayOrderNo' => 'yeepayOrderNo', + 'applyStatus' => 'applyStatus', + 'elecAccount' => 'elecAccount', + 'bankAccountLevel' => 'bankAccountLevel', + 'accountType' => 'accountType', + 'yeepayMemberNo' => 'yeepayMemberNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'yeepayOrderNo' => 'setYeepayOrderNo', + 'applyStatus' => 'setApplyStatus', + 'elecAccount' => 'setElecAccount', + 'bankAccountLevel' => 'setBankAccountLevel', + 'accountType' => 'setAccountType', + 'yeepayMemberNo' => 'setYeepayMemberNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'yeepayOrderNo' => 'getYeepayOrderNo', + 'applyStatus' => 'getApplyStatus', + 'elecAccount' => 'getElecAccount', + 'bankAccountLevel' => 'getBankAccountLevel', + 'accountType' => 'getAccountType', + 'yeepayMemberNo' => 'getYeepayMemberNo' + ]; + + /** + * 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['yeepayOrderNo'] = isset($data['yeepayOrderNo']) ? $data['yeepayOrderNo'] : null; + $this->container['applyStatus'] = isset($data['applyStatus']) ? $data['applyStatus'] : null; + $this->container['elecAccount'] = isset($data['elecAccount']) ? $data['elecAccount'] : null; + $this->container['bankAccountLevel'] = isset($data['bankAccountLevel']) ? $data['bankAccountLevel'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null; + $this->container['yeepayMemberNo'] = isset($data['yeepayMemberNo']) ? $data['yeepayMemberNo'] : 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 yeepayOrderNo + * + * @return string + */ + public function getYeepayOrderNo() + { + return $this->container['yeepayOrderNo']; + } + + /** + * Sets yeepayOrderNo + * + * @param string $yeepayOrderNo 易宝开户申请号 + * + * @return $this + */ + public function setYeepayOrderNo($yeepayOrderNo) + { + $this->container['yeepayOrderNo'] = $yeepayOrderNo; + + return $this; + } + + /** + * Gets applyStatus + * + * @return string + */ + public function getApplyStatus() + { + return $this->container['applyStatus']; + } + + /** + * Sets applyStatus + * + * @param string $applyStatus 开户状态
可选项如下:
WAITPROVE:开户处理中-等待回填短验
UNACTIVATED:开户成功-卡片激活失败
SUCCESS:开户成功-卡片已激活
FAIL:开户失败 + * + * @return $this + */ + public function setApplyStatus($applyStatus) + { + $this->container['applyStatus'] = $applyStatus; + + return $this; + } + + /** + * Gets elecAccount + * + * @return string + */ + public function getElecAccount() + { + return $this->container['elecAccount']; + } + + /** + * Sets elecAccount + * + * @param string $elecAccount 银行电子账号 + * + * @return $this + */ + public function setElecAccount($elecAccount) + { + $this->container['elecAccount'] = $elecAccount; + + return $this; + } + + /** + * Gets bankAccountLevel + * + * @return string + */ + public function getBankAccountLevel() + { + return $this->container['bankAccountLevel']; + } + + /** + * Sets bankAccountLevel + * + * @param string $bankAccountLevel 银行账户的等级
可选项如下:
ONEACCOUNT:一类户
TWOACCOUNT:二类户
THREEACCOUNT:三类户 + * + * @return $this + */ + public function setBankAccountLevel($bankAccountLevel) + { + $this->container['bankAccountLevel'] = $bankAccountLevel; + + return $this; + } + + /** + * 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 yeepayMemberNo + * + * @return string + */ + public function getYeepayMemberNo() + { + return $this->container['yeepayMemberNo']; + } + + /** + * Sets yeepayMemberNo + * + * @param string $yeepayMemberNo 易宝会员编号 + * + * @return $this + */ + public function setYeepayMemberNo($yeepayMemberNo) + { + $this->container['yeepayMemberNo'] = $yeepayMemberNo; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/QueryRechargeResponseDTO.php b/lib/Service/MWallet/Model/QueryRechargeResponseDTO.php new file mode 100644 index 0000000..8bdd8cf --- /dev/null +++ b/lib/Service/MWallet/Model/QueryRechargeResponseDTO.php @@ -0,0 +1,633 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'businessNo' => 'string', + 'amount' => 'float', + 'bindId' => 'string', + 'cardNo' => 'string', + 'bankName' => 'string', + 'bankCode' => 'string', + 'orderStatus' => 'string', + 'orderTime' => '\DateTime', + 'userFee' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'businessNo' => null, + 'amount' => null, + 'bindId' => null, + 'cardNo' => null, + 'bankName' => null, + 'bankCode' => null, + 'orderStatus' => null, + 'orderTime' => 'date-time', + 'userFee' => 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', + 'requestNo' => 'requestNo', + 'businessNo' => 'businessNo', + 'amount' => 'amount', + 'bindId' => 'bindId', + 'cardNo' => 'cardNo', + 'bankName' => 'bankName', + 'bankCode' => 'bankCode', + 'orderStatus' => 'orderStatus', + 'orderTime' => 'orderTime', + 'userFee' => 'userFee' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'businessNo' => 'setBusinessNo', + 'amount' => 'setAmount', + 'bindId' => 'setBindId', + 'cardNo' => 'setCardNo', + 'bankName' => 'setBankName', + 'bankCode' => 'setBankCode', + 'orderStatus' => 'setOrderStatus', + 'orderTime' => 'setOrderTime', + 'userFee' => 'setUserFee' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'businessNo' => 'getBusinessNo', + 'amount' => 'getAmount', + 'bindId' => 'getBindId', + 'cardNo' => 'getCardNo', + 'bankName' => 'getBankName', + 'bankCode' => 'getBankCode', + 'orderStatus' => 'getOrderStatus', + 'orderTime' => 'getOrderTime', + 'userFee' => 'getUserFee' + ]; + + /** + * 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null; + $this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null; + $this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null; + $this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['orderTime'] = isset($data['orderTime']) ? $data['orderTime'] : null; + $this->container['userFee'] = isset($data['userFee']) ? $data['userFee'] : 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 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo 易宝订单号 + * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + 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 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 cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->container['cardNo']; + } + + /** + * Sets cardNo + * + * @param string $cardNo 卡号
显示前6后4,中间为* + * + * @return $this + */ + public function setCardNo($cardNo) + { + $this->container['cardNo'] = $cardNo; + + 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 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 orderStatus + * + * @return string + */ + public function getOrderStatus() + { + return $this->container['orderStatus']; + } + + /** + * Sets orderStatus + * + * @param string $orderStatus 订单状态
可选项如下:
SUCCESS:充值成功
FAIL:充值失败 + * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets orderTime + * + * @return \DateTime + */ + public function getOrderTime() + { + return $this->container['orderTime']; + } + + /** + * Sets orderTime + * + * @param \DateTime $orderTime 订单完成时间 + * + * @return $this + */ + public function setOrderTime($orderTime) + { + $this->container['orderTime'] = $orderTime; + + return $this; + } + + /** + * Gets userFee + * + * @return float + */ + public function getUserFee() + { + return $this->container['userFee']; + } + + /** + * Sets userFee + * + * @param float $userFee 用户手续费
当手续费不是用户承担时该字段为空 + * + * @return $this + */ + public function setUserFee($userFee) + { + $this->container['userFee'] = $userFee; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/RechargeInitiateRequest.php b/lib/Service/MWallet/Model/RechargeInitiateRequest.php new file mode 100644 index 0000000..8db3c21 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateRequest.php @@ -0,0 +1,192 @@ +amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return RechargeInitiateRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return RechargeInitiateRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return RechargeInitiateRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RechargeInitiateRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RechargeInitiateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return RechargeInitiateRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RechargeInitiateRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'rechargeInitiate'; + } + + +} diff --git a/lib/Service/MWallet/Model/RechargeInitiateRequestMarshaller.php b/lib/Service/MWallet/Model/RechargeInitiateRequestMarshaller.php new file mode 100644 index 0000000..720b7a6 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeInitiateRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/RechargeInitiateResponse.php b/lib/Service/MWallet/Model/RechargeInitiateResponse.php new file mode 100644 index 0000000..359cc0f --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/RechargeInitiateResponseUnMarshaller.php b/lib/Service/MWallet/Model/RechargeInitiateResponseUnMarshaller.php new file mode 100644 index 0000000..3531c7f --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return RechargeInitiateV10Request + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return RechargeInitiateV10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return RechargeInitiateV10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RechargeInitiateV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RechargeInitiateV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return RechargeInitiateV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RechargeInitiateV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'recharge_initiate_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/RechargeInitiateV10RequestMarshaller.php b/lib/Service/MWallet/Model/RechargeInitiateV10RequestMarshaller.php new file mode 100644 index 0000000..c3f4672 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateV10RequestMarshaller.php @@ -0,0 +1,98 @@ +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->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeInitiateV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/RechargeInitiateV10Response.php b/lib/Service/MWallet/Model/RechargeInitiateV10Response.php new file mode 100644 index 0000000..507ae01 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/RechargeInitiateV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/RechargeInitiateV10ResponseUnMarshaller.php new file mode 100644 index 0000000..f605b42 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeInitiateV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RechargeQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + 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 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; + } + + public static function getOperationId() + { + return 'rechargeQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/RechargeQueryRequestMarshaller.php b/lib/Service/MWallet/Model/RechargeQueryRequestMarshaller.php new file mode 100644 index 0000000..1e49a5b --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/RechargeQueryResponse.php b/lib/Service/MWallet/Model/RechargeQueryResponse.php new file mode 100644 index 0000000..ccb3cb2 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryRechargeResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/RechargeQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/RechargeQueryResponseUnMarshaller.php new file mode 100644 index 0000000..ebaa48b --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RechargeQueryV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RechargeQueryV10Request + */ + 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 RechargeQueryV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'recharge_query_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/RechargeQueryV10RequestMarshaller.php b/lib/Service/MWallet/Model/RechargeQueryV10RequestMarshaller.php new file mode 100644 index 0000000..4147b87 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeQueryV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RechargeQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/RechargeQueryV10Response.php b/lib/Service/MWallet/Model/RechargeQueryV10Response.php new file mode 100644 index 0000000..47abf89 --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryRechargeResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/RechargeQueryV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/RechargeQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..81cb30e --- /dev/null +++ b/lib/Service/MWallet/Model/RechargeQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'url' => 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', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'url' => 'getUrl' + ]; + + /** + * 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['url'] = isset($data['url']) ? $data['url'] : 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 url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url 验密签约确认控件URL + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/SubscribeExpireNotifyRequest.php b/lib/Service/MWallet/Model/SubscribeExpireNotifyRequest.php new file mode 100644 index 0000000..26a606e --- /dev/null +++ b/lib/Service/MWallet/Model/SubscribeExpireNotifyRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return SubscribeExpireNotifyRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'subscribe_expire_notify'; + } + + +} diff --git a/lib/Service/MWallet/Model/SubscribeExpireNotifyRequestMarshaller.php b/lib/Service/MWallet/Model/SubscribeExpireNotifyRequestMarshaller.php new file mode 100644 index 0000000..4138f02 --- /dev/null +++ b/lib/Service/MWallet/Model/SubscribeExpireNotifyRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SubscribeExpireNotifyRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/SubscribeExpireNotifyResponse.php b/lib/Service/MWallet/Model/SubscribeExpireNotifyResponse.php new file mode 100644 index 0000000..3e8379c --- /dev/null +++ b/lib/Service/MWallet/Model/SubscribeExpireNotifyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SubscribeNotifyResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/SubscribeExpireNotifyResponseUnMarshaller.php b/lib/Service/MWallet/Model/SubscribeExpireNotifyResponseUnMarshaller.php new file mode 100644 index 0000000..28d77de --- /dev/null +++ b/lib/Service/MWallet/Model/SubscribeExpireNotifyResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'requestNo' => 'string', + 'notifyUrl' => 'string', + 'memberList' => '\Yeepay\Yop\Sdk\Service\MWallet\Model\MemberSubscribeNotifyInfo[]', + 'notifyType' => 'string', + 'operateTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantNo' => null, + 'requestNo' => null, + 'notifyUrl' => null, + 'memberList' => null, + 'notifyType' => 'enum', + 'operateTime' => 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 = [ + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo', + 'notifyUrl' => 'notifyUrl', + 'memberList' => 'memberList', + 'notifyType' => 'notifyType', + 'operateTime' => 'operateTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'notifyUrl' => 'setNotifyUrl', + 'memberList' => 'setMemberList', + 'notifyType' => 'setNotifyType', + 'operateTime' => 'setOperateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'notifyUrl' => 'getNotifyUrl', + 'memberList' => 'getMemberList', + 'notifyType' => 'getNotifyType', + 'operateTime' => 'getOperateTime' + ]; + + /** + * 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; + } + + const NOTIFY_TYPE_ENABLE = 'ENABLE'; + const NOTIFY_TYPE_EXPIRE = 'EXPIRE'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getNotifyTypeAllowableValues() + { + return [ + self::NOTIFY_TYPE_ENABLE, + self::NOTIFY_TYPE_EXPIRE, + ]; + } + + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; + $this->container['memberList'] = isset($data['memberList']) ? $data['memberList'] : null; + $this->container['notifyType'] = isset($data['notifyType']) ? $data['notifyType'] : null; + $this->container['operateTime'] = isset($data['operateTime']) ? $data['operateTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['requestNo'] === null) { + $invalidProperties[] = "'requestNo' can't be null"; + } + if ($this->container['memberList'] === null) { + $invalidProperties[] = "'memberList' can't be null"; + } + if ($this->container['notifyType'] === null) { + $invalidProperties[] = "'notifyType' can't be null"; + } + $allowedValues = $this->getNotifyTypeAllowableValues(); + if (!is_null($this->container['notifyType']) && !in_array($this->container['notifyType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'notifyType', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + if ($this->container['operateTime'] === null) { + $invalidProperties[] = "'operateTime' can't be null"; + } + 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 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 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 notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->container['notifyUrl']; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl

通知商户地址

+ * + * @return $this + */ + public function setNotifyUrl($notifyUrl) + { + $this->container['notifyUrl'] = $notifyUrl; + + return $this; + } + + /** + * Gets memberList + * + * @return \Yeepay\Yop\Sdk\Service\MWallet\Model\MemberSubscribeNotifyInfo[] + */ + public function getMemberList() + { + return $this->container['memberList']; + } + + /** + * Sets memberList + * + * @param \Yeepay\Yop\Sdk\Service\MWallet\Model\MemberSubscribeNotifyInfo[] $memberList

会员列表

+ * + * @return $this + */ + public function setMemberList($memberList) + { + $this->container['memberList'] = $memberList; + + return $this; + } + + /** + * Gets notifyType + * + * @return string + */ + public function getNotifyType() + { + return $this->container['notifyType']; + } + + /** + * Sets notifyType + * + * @param string $notifyType

变更通知类型

可选项如下: ENABLE:会员续期有效 EXPIRE:会员订阅到期 + * + * @return $this + */ + public function setNotifyType($notifyType) + { + $allowedValues = $this->getNotifyTypeAllowableValues(); + if (!in_array($notifyType, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'notifyType', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['notifyType'] = $notifyType; + + return $this; + } + + /** + * Gets operateTime + * + * @return string + */ + public function getOperateTime() + { + return $this->container['operateTime']; + } + + /** + * Sets operateTime + * + * @param string $operateTime

变更时间

+ * + * @return $this + */ + public function setOperateTime($operateTime) + { + $this->container['operateTime'] = $operateTime; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/SubscribeNotifyResponseDTO.php b/lib/Service/MWallet/Model/SubscribeNotifyResponseDTO.php new file mode 100644 index 0000000..fe43c7e --- /dev/null +++ b/lib/Service/MWallet/Model/SubscribeNotifyResponseDTO.php @@ -0,0 +1,333 @@ + 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionCreateRequest.php b/lib/Service/MWallet/Model/TradeAutoDeductionCreateRequest.php new file mode 100644 index 0000000..5a09caf --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionCreateRequest.php @@ -0,0 +1,242 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TradeAutoDeductionCreateRequest + */ + 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 TradeAutoDeductionCreateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return TradeAutoDeductionCreateRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TradeAutoDeductionCreateRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return TradeAutoDeductionCreateRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets bindCardId + * + * @return string + */ + public function getBindCardId() + { + return $this->bindCardId; + } + + /** + * Sets bindCardId + * + * @param string $bindCardId + * @return TradeAutoDeductionCreateRequest + */ + public function setBindCardId($bindCardId) + { + $this->bindCardId = $bindCardId; + return $this; + } + /** + * Gets payWay + * + * @return string + */ + public function getPayWay() + { + return $this->payWay; + } + + /** + * Sets payWay + * + * @param string $payWay + * @return TradeAutoDeductionCreateRequest + */ + public function setPayWay($payWay) + { + $this->payWay = $payWay; + return $this; + } + /** + * Gets expireTime + * + * @return \DateTime + */ + public function getExpireTime() + { + return $this->expireTime; + } + + /** + * Sets expireTime + * + * @param \DateTime $expireTime + * @return TradeAutoDeductionCreateRequest + */ + public function setExpireTime($expireTime) + { + $this->expireTime = $expireTime; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return TradeAutoDeductionCreateRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + + public static function getOperationId() + { + return 'tradeAutoDeductionCreate'; + } + + +} diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionCreateRequestMarshaller.php b/lib/Service/MWallet/Model/TradeAutoDeductionCreateRequestMarshaller.php new file mode 100644 index 0000000..a9134db --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionCreateRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getBindCardId() != null){ + $internalRequest->addParameter('bindCardId', ObjectSerializer::sanitizeForSerialization($request->getBindCardId(), 'string')); + } + if($request->getPayWay() != null){ + $internalRequest->addParameter('payWay', ObjectSerializer::sanitizeForSerialization($request->getPayWay(), 'string', 'enum')); + } + if($request->getExpireTime() != null){ + $internalRequest->addParameter('expireTime', ObjectSerializer::sanitizeForSerialization($request->getExpireTime(), '\DateTime', 'date-time')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TradeAutoDeductionCreateRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionCreateResponse.php b/lib/Service/MWallet/Model/TradeAutoDeductionCreateResponse.php new file mode 100644 index 0000000..57b0eae --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionCreateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AutoDeductionResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionCreateResponseUnMarshaller.php b/lib/Service/MWallet/Model/TradeAutoDeductionCreateResponseUnMarshaller.php new file mode 100644 index 0000000..e83b2b3 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionCreateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TradeAutoDeductionQueryRequest + */ + 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 TradeAutoDeductionQueryRequest + */ + 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 TradeAutoDeductionQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'tradeAutoDeductionQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionQueryRequestMarshaller.php b/lib/Service/MWallet/Model/TradeAutoDeductionQueryRequestMarshaller.php new file mode 100644 index 0000000..4ff8f56 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TradeAutoDeductionQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionQueryResponse.php b/lib/Service/MWallet/Model/TradeAutoDeductionQueryResponse.php new file mode 100644 index 0000000..d0932b5 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AutoDeductionQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TradeAutoDeductionQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/TradeAutoDeductionQueryResponseUnMarshaller.php new file mode 100644 index 0000000..8c25d25 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeAutoDeductionQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TradeOrderRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TradeOrderRequest + */ + 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 TradeOrderRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return TradeOrderRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets payAmount + * + * @return string + */ + public function getPayAmount() + { + return $this->payAmount; + } + + /** + * Sets payAmount + * + * @param string $payAmount + * @return TradeOrderRequest + */ + public function setPayAmount($payAmount) + { + $this->payAmount = $payAmount; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TradeOrderRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return TradeOrderRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets productName + * + * @return string + */ + public function getProductName() + { + return $this->productName; + } + + /** + * Sets productName + * + * @param string $productName + * @return TradeOrderRequest + */ + public function setProductName($productName) + { + $this->productName = $productName; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return TradeOrderRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return TradeOrderRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + + public static function getOperationId() + { + return 'tradeOrder'; + } + + +} diff --git a/lib/Service/MWallet/Model/TradeOrderRequestMarshaller.php b/lib/Service/MWallet/Model/TradeOrderRequestMarshaller.php new file mode 100644 index 0000000..5342ae3 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + 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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getPayAmount() != null){ + $internalRequest->addParameter('payAmount', ObjectSerializer::sanitizeForSerialization($request->getPayAmount(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getProductName() != null){ + $internalRequest->addParameter('productName', ObjectSerializer::sanitizeForSerialization($request->getProductName(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TradeOrderRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TradeOrderResponse.php b/lib/Service/MWallet/Model/TradeOrderResponse.php new file mode 100644 index 0000000..319d01c --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MemberTradOrderResp + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TradeOrderResponseUnMarshaller.php b/lib/Service/MWallet/Model/TradeOrderResponseUnMarshaller.php new file mode 100644 index 0000000..ba4da28 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TradeOrderV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TradeOrderV10Request + */ + 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 TradeOrderV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return TradeOrderV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets payAmount + * + * @return string + */ + public function getPayAmount() + { + return $this->payAmount; + } + + /** + * Sets payAmount + * + * @param string $payAmount + * @return TradeOrderV10Request + */ + public function setPayAmount($payAmount) + { + $this->payAmount = $payAmount; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TradeOrderV10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return TradeOrderV10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets productName + * + * @return string + */ + public function getProductName() + { + return $this->productName; + } + + /** + * Sets productName + * + * @param string $productName + * @return TradeOrderV10Request + */ + public function setProductName($productName) + { + $this->productName = $productName; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return TradeOrderV10Request + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return TradeOrderV10Request + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + + public static function getOperationId() + { + return 'trade_order_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/TradeOrderV10RequestMarshaller.php b/lib/Service/MWallet/Model/TradeOrderV10RequestMarshaller.php new file mode 100644 index 0000000..a5dbc55 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV10RequestMarshaller.php @@ -0,0 +1,107 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + 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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getPayAmount() != null){ + $internalRequest->addParameter('payAmount', ObjectSerializer::sanitizeForSerialization($request->getPayAmount(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getProductName() != null){ + $internalRequest->addParameter('productName', ObjectSerializer::sanitizeForSerialization($request->getProductName(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TradeOrderV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TradeOrderV10Response.php b/lib/Service/MWallet/Model/TradeOrderV10Response.php new file mode 100644 index 0000000..849ee53 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MemberTradOrderResp + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TradeOrderV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/TradeOrderV10ResponseUnMarshaller.php new file mode 100644 index 0000000..c9c34c9 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TradeOrderV20Request + */ + 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 TradeOrderV20Request + */ + 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 TradeOrderV20Request + */ + 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 TradeOrderV20Request + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets expiredTime + * + * @return \DateTime + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param \DateTime $expiredTime + * @return TradeOrderV20Request + */ + 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 TradeOrderV20Request + */ + 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 TradeOrderV20Request + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return TradeOrderV20Request + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return TradeOrderV20Request + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets memberNo + * + * @return string + */ + public function getMemberNo() + { + return $this->memberNo; + } + + /** + * Sets memberNo + * + * @param string $memberNo + * @return TradeOrderV20Request + */ + public function setMemberNo($memberNo) + { + $this->memberNo = $memberNo; + return $this; + } + /** + * Gets payerIp + * + * @return string + */ + public function getPayerIp() + { + return $this->payerIp; + } + + /** + * Sets payerIp + * + * @param string $payerIp + * @return TradeOrderV20Request + */ + public function setPayerIp($payerIp) + { + $this->payerIp = $payerIp; + return $this; + } + /** + * Gets payAgreement + * + * @return string + */ + public function getPayAgreement() + { + return $this->payAgreement; + } + + /** + * Sets payAgreement + * + * @param string $payAgreement + * @return TradeOrderV20Request + */ + public function setPayAgreement($payAgreement) + { + $this->payAgreement = $payAgreement; + return $this; + } + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return TradeOrderV20Request + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + + public static function getOperationId() + { + return 'trade_order_v2_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/TradeOrderV20RequestMarshaller.php b/lib/Service/MWallet/Model/TradeOrderV20RequestMarshaller.php new file mode 100644 index 0000000..27db40e --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV20RequestMarshaller.php @@ -0,0 +1,116 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), '\DateTime', 'date-time')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getMemberNo() != null){ + $internalRequest->addParameter('memberNo', ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string')); + } + if($request->getPayerIp() != null){ + $internalRequest->addParameter('payerIp', ObjectSerializer::sanitizeForSerialization($request->getPayerIp(), 'string')); + } + if($request->getPayAgreement() != null){ + $internalRequest->addParameter('payAgreement', ObjectSerializer::sanitizeForSerialization($request->getPayAgreement(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TradeOrderV20RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TradeOrderV20Response.php b/lib/Service/MWallet/Model/TradeOrderV20Response.php new file mode 100644 index 0000000..6808477 --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV20Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return APIWalletPayResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TradeOrderV20ResponseUnMarshaller.php b/lib/Service/MWallet/Model/TradeOrderV20ResponseUnMarshaller.php new file mode 100644 index 0000000..f9c399b --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV20ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TradeOrderV2Request + */ + 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 TradeOrderV2Request + */ + 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 TradeOrderV2Request + */ + 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 TradeOrderV2Request + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets expiredTime + * + * @return \DateTime + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param \DateTime $expiredTime + * @return TradeOrderV2Request + */ + 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 TradeOrderV2Request + */ + 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 TradeOrderV2Request + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return TradeOrderV2Request + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return TradeOrderV2Request + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets memberNo + * + * @return string + */ + public function getMemberNo() + { + return $this->memberNo; + } + + /** + * Sets memberNo + * + * @param string $memberNo + * @return TradeOrderV2Request + */ + public function setMemberNo($memberNo) + { + $this->memberNo = $memberNo; + return $this; + } + /** + * Gets payerIp + * + * @return string + */ + public function getPayerIp() + { + return $this->payerIp; + } + + /** + * Sets payerIp + * + * @param string $payerIp + * @return TradeOrderV2Request + */ + public function setPayerIp($payerIp) + { + $this->payerIp = $payerIp; + return $this; + } + /** + * Gets payAgreement + * + * @return string + */ + public function getPayAgreement() + { + return $this->payAgreement; + } + + /** + * Sets payAgreement + * + * @param string $payAgreement + * @return TradeOrderV2Request + */ + public function setPayAgreement($payAgreement) + { + $this->payAgreement = $payAgreement; + return $this; + } + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return TradeOrderV2Request + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + + public static function getOperationId() + { + return 'tradeOrderV2'; + } + + +} diff --git a/lib/Service/MWallet/Model/TradeOrderV2RequestMarshaller.php b/lib/Service/MWallet/Model/TradeOrderV2RequestMarshaller.php new file mode 100644 index 0000000..12a4c9e --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV2RequestMarshaller.php @@ -0,0 +1,116 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), '\DateTime', 'date-time')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getMemberNo() != null){ + $internalRequest->addParameter('memberNo', ObjectSerializer::sanitizeForSerialization($request->getMemberNo(), 'string')); + } + if($request->getPayerIp() != null){ + $internalRequest->addParameter('payerIp', ObjectSerializer::sanitizeForSerialization($request->getPayerIp(), 'string')); + } + if($request->getPayAgreement() != null){ + $internalRequest->addParameter('payAgreement', ObjectSerializer::sanitizeForSerialization($request->getPayAgreement(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TradeOrderV2RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TradeOrderV2Response.php b/lib/Service/MWallet/Model/TradeOrderV2Response.php new file mode 100644 index 0000000..40876ea --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return APIWalletPayResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TradeOrderV2ResponseUnMarshaller.php b/lib/Service/MWallet/Model/TradeOrderV2ResponseUnMarshaller.php new file mode 100644 index 0000000..32fac7b --- /dev/null +++ b/lib/Service/MWallet/Model/TradeOrderV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferB2cInitiateRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return TransferB2cInitiateRequest + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets toMerchantNo + * + * @return string + */ + public function getToMerchantNo() + { + return $this->toMerchantNo; + } + + /** + * Sets toMerchantNo + * + * @param string $toMerchantNo + * @return TransferB2cInitiateRequest + */ + public function setToMerchantNo($toMerchantNo) + { + $this->toMerchantNo = $toMerchantNo; + return $this; + } + /** + * Gets toMerchantUserNo + * + * @return string + */ + public function getToMerchantUserNo() + { + return $this->toMerchantUserNo; + } + + /** + * Sets toMerchantUserNo + * + * @param string $toMerchantUserNo + * @return TransferB2cInitiateRequest + */ + public function setToMerchantUserNo($toMerchantUserNo) + { + $this->toMerchantUserNo = $toMerchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferB2cInitiateRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->orderAmount; + } + + /** + * Sets orderAmount + * + * @param string $orderAmount + * @return TransferB2cInitiateRequest + */ + 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 TransferB2cInitiateRequest + */ + public function setFeeChargeSide($feeChargeSide) + { + $this->feeChargeSide = $feeChargeSide; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TransferB2cInitiateRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'transferB2cInitiate'; + } + + +} diff --git a/lib/Service/MWallet/Model/TransferB2cInitiateRequestMarshaller.php b/lib/Service/MWallet/Model/TransferB2cInitiateRequestMarshaller.php new file mode 100644 index 0000000..9f387da --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cInitiateRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getToMerchantNo() != null){ + $internalRequest->addParameter('toMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantNo(), 'string')); + } + if($request->getToMerchantUserNo() != null){ + $internalRequest->addParameter('toMerchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'string')); + } + if($request->getFeeChargeSide() != null){ + $internalRequest->addParameter('feeChargeSide', ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferB2cInitiateRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TransferB2cInitiateResponse.php b/lib/Service/MWallet/Model/TransferB2cInitiateResponse.php new file mode 100644 index 0000000..447482b --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cInitiateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletTransferB2CResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TransferB2cInitiateResponseUnMarshaller.php b/lib/Service/MWallet/Model/TransferB2cInitiateResponseUnMarshaller.php new file mode 100644 index 0000000..08e72d1 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cInitiateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferB2cInitiateV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return TransferB2cInitiateV10Request + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets toMerchantNo + * + * @return string + */ + public function getToMerchantNo() + { + return $this->toMerchantNo; + } + + /** + * Sets toMerchantNo + * + * @param string $toMerchantNo + * @return TransferB2cInitiateV10Request + */ + public function setToMerchantNo($toMerchantNo) + { + $this->toMerchantNo = $toMerchantNo; + return $this; + } + /** + * Gets toMerchantUserNo + * + * @return string + */ + public function getToMerchantUserNo() + { + return $this->toMerchantUserNo; + } + + /** + * Sets toMerchantUserNo + * + * @param string $toMerchantUserNo + * @return TransferB2cInitiateV10Request + */ + public function setToMerchantUserNo($toMerchantUserNo) + { + $this->toMerchantUserNo = $toMerchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferB2cInitiateV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->orderAmount; + } + + /** + * Sets orderAmount + * + * @param string $orderAmount + * @return TransferB2cInitiateV10Request + */ + 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 TransferB2cInitiateV10Request + */ + public function setFeeChargeSide($feeChargeSide) + { + $this->feeChargeSide = $feeChargeSide; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TransferB2cInitiateV10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'transfer_b2c_initiate_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/TransferB2cInitiateV10RequestMarshaller.php b/lib/Service/MWallet/Model/TransferB2cInitiateV10RequestMarshaller.php new file mode 100644 index 0000000..e547f49 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cInitiateV10RequestMarshaller.php @@ -0,0 +1,101 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getToMerchantNo() != null){ + $internalRequest->addParameter('toMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantNo(), 'string')); + } + if($request->getToMerchantUserNo() != null){ + $internalRequest->addParameter('toMerchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'string')); + } + if($request->getFeeChargeSide() != null){ + $internalRequest->addParameter('feeChargeSide', ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferB2cInitiateV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TransferB2cInitiateV10Response.php b/lib/Service/MWallet/Model/TransferB2cInitiateV10Response.php new file mode 100644 index 0000000..48cdcee --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cInitiateV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletTransferB2CResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TransferB2cInitiateV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/TransferB2cInitiateV10ResponseUnMarshaller.php new file mode 100644 index 0000000..c139cac --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cInitiateV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferB2cMarketRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return TransferB2cMarketRequest + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets toMerchantNo + * + * @return string + */ + public function getToMerchantNo() + { + return $this->toMerchantNo; + } + + /** + * Sets toMerchantNo + * + * @param string $toMerchantNo + * @return TransferB2cMarketRequest + */ + public function setToMerchantNo($toMerchantNo) + { + $this->toMerchantNo = $toMerchantNo; + return $this; + } + /** + * Gets toMerchantUserNo + * + * @return string + */ + public function getToMerchantUserNo() + { + return $this->toMerchantUserNo; + } + + /** + * Sets toMerchantUserNo + * + * @param string $toMerchantUserNo + * @return TransferB2cMarketRequest + */ + public function setToMerchantUserNo($toMerchantUserNo) + { + $this->toMerchantUserNo = $toMerchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferB2cMarketRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->orderAmount; + } + + /** + * Sets orderAmount + * + * @param string $orderAmount + * @return TransferB2cMarketRequest + */ + 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 TransferB2cMarketRequest + */ + public function setFeeChargeSide($feeChargeSide) + { + $this->feeChargeSide = $feeChargeSide; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TransferB2cMarketRequest + */ + 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 TransferB2cMarketRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + + public static function getOperationId() + { + return 'transferB2cMarket'; + } + + +} diff --git a/lib/Service/MWallet/Model/TransferB2cMarketRequestMarshaller.php b/lib/Service/MWallet/Model/TransferB2cMarketRequestMarshaller.php new file mode 100644 index 0000000..b510c43 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cMarketRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getToMerchantNo() != null){ + $internalRequest->addParameter('toMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantNo(), 'string')); + } + if($request->getToMerchantUserNo() != null){ + $internalRequest->addParameter('toMerchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'string')); + } + if($request->getFeeChargeSide() != null){ + $internalRequest->addParameter('feeChargeSide', ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), '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; + } +} +TransferB2cMarketRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TransferB2cMarketResponse.php b/lib/Service/MWallet/Model/TransferB2cMarketResponse.php new file mode 100644 index 0000000..4592c32 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cMarketResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletTransferB2CResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TransferB2cMarketResponseUnMarshaller.php b/lib/Service/MWallet/Model/TransferB2cMarketResponseUnMarshaller.php new file mode 100644 index 0000000..918c1a9 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cMarketResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferB2cMarketV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return TransferB2cMarketV10Request + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets toMerchantNo + * + * @return string + */ + public function getToMerchantNo() + { + return $this->toMerchantNo; + } + + /** + * Sets toMerchantNo + * + * @param string $toMerchantNo + * @return TransferB2cMarketV10Request + */ + public function setToMerchantNo($toMerchantNo) + { + $this->toMerchantNo = $toMerchantNo; + return $this; + } + /** + * Gets toMerchantUserNo + * + * @return string + */ + public function getToMerchantUserNo() + { + return $this->toMerchantUserNo; + } + + /** + * Sets toMerchantUserNo + * + * @param string $toMerchantUserNo + * @return TransferB2cMarketV10Request + */ + public function setToMerchantUserNo($toMerchantUserNo) + { + $this->toMerchantUserNo = $toMerchantUserNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferB2cMarketV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->orderAmount; + } + + /** + * Sets orderAmount + * + * @param string $orderAmount + * @return TransferB2cMarketV10Request + */ + 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 TransferB2cMarketV10Request + */ + public function setFeeChargeSide($feeChargeSide) + { + $this->feeChargeSide = $feeChargeSide; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return TransferB2cMarketV10Request + */ + 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 TransferB2cMarketV10Request + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + + public static function getOperationId() + { + return 'transfer_b2c_market_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/TransferB2cMarketV10RequestMarshaller.php b/lib/Service/MWallet/Model/TransferB2cMarketV10RequestMarshaller.php new file mode 100644 index 0000000..2b38cdb --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cMarketV10RequestMarshaller.php @@ -0,0 +1,104 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getToMerchantNo() != null){ + $internalRequest->addParameter('toMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantNo(), 'string')); + } + if($request->getToMerchantUserNo() != null){ + $internalRequest->addParameter('toMerchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getToMerchantUserNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'string')); + } + if($request->getFeeChargeSide() != null){ + $internalRequest->addParameter('feeChargeSide', ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), '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; + } +} +TransferB2cMarketV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TransferB2cMarketV10Response.php b/lib/Service/MWallet/Model/TransferB2cMarketV10Response.php new file mode 100644 index 0000000..3f40a0e --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cMarketV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletTransferB2CResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TransferB2cMarketV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/TransferB2cMarketV10ResponseUnMarshaller.php new file mode 100644 index 0000000..72e4512 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cMarketV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferB2cQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return TransferB2cQueryRequest + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferB2cQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->businessNo; + } + + /** + * Sets businessNo + * + * @param string $businessNo + * @return TransferB2cQueryRequest + */ + public function setBusinessNo($businessNo) + { + $this->businessNo = $businessNo; + return $this; + } + + public static function getOperationId() + { + return 'transferB2cQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/TransferB2cQueryRequestMarshaller.php b/lib/Service/MWallet/Model/TransferB2cQueryRequestMarshaller.php new file mode 100644 index 0000000..a673a0b --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getBusinessNo() != null){ + $internalRequest->addParameter('businessNo', ObjectSerializer::sanitizeForSerialization($request->getBusinessNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferB2cQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TransferB2cQueryResponse.php b/lib/Service/MWallet/Model/TransferB2cQueryResponse.php new file mode 100644 index 0000000..b867b74 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryMGB2CResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TransferB2cQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/TransferB2cQueryResponseUnMarshaller.php new file mode 100644 index 0000000..9bd9c69 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return TransferB2cQueryV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets fromMerchantNo + * + * @return string + */ + public function getFromMerchantNo() + { + return $this->fromMerchantNo; + } + + /** + * Sets fromMerchantNo + * + * @param string $fromMerchantNo + * @return TransferB2cQueryV10Request + */ + public function setFromMerchantNo($fromMerchantNo) + { + $this->fromMerchantNo = $fromMerchantNo; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return TransferB2cQueryV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->businessNo; + } + + /** + * Sets businessNo + * + * @param string $businessNo + * @return TransferB2cQueryV10Request + */ + public function setBusinessNo($businessNo) + { + $this->businessNo = $businessNo; + return $this; + } + + public static function getOperationId() + { + return 'transfer_b2c_query_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/TransferB2cQueryV10RequestMarshaller.php b/lib/Service/MWallet/Model/TransferB2cQueryV10RequestMarshaller.php new file mode 100644 index 0000000..c0216ad --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cQueryV10RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getFromMerchantNo() != null){ + $internalRequest->addParameter('fromMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getFromMerchantNo(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getBusinessNo() != null){ + $internalRequest->addParameter('businessNo', ObjectSerializer::sanitizeForSerialization($request->getBusinessNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +TransferB2cQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/TransferB2cQueryV10Response.php b/lib/Service/MWallet/Model/TransferB2cQueryV10Response.php new file mode 100644 index 0000000..8b1999d --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryMGB2CResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/TransferB2cQueryV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/TransferB2cQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..0b6a432 --- /dev/null +++ b/lib/Service/MWallet/Model/TransferB2cQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'url' => 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', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'url' => 'getUrl' + ]; + + /** + * 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['url'] = isset($data['url']) ? $data['url'] : 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url url + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/WalletCancelRequest.php b/lib/Service/MWallet/Model/WalletCancelRequest.php new file mode 100644 index 0000000..379f114 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelRequest.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WalletCancelRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return WalletCancelRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WalletCancelRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'walletCancel'; + } + + +} diff --git a/lib/Service/MWallet/Model/WalletCancelRequestMarshaller.php b/lib/Service/MWallet/Model/WalletCancelRequestMarshaller.php new file mode 100644 index 0000000..a0f14ed --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WalletCancelRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WalletCancelResponse.php b/lib/Service/MWallet/Model/WalletCancelResponse.php new file mode 100644 index 0000000..f25a55a --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MemberCancelResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WalletCancelResponseUnMarshaller.php b/lib/Service/MWallet/Model/WalletCancelResponseUnMarshaller.php new file mode 100644 index 0000000..b9be201 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WalletCancelV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return WalletCancelV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WalletCancelV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'wallet_cancel_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/WalletCancelV10RequestMarshaller.php b/lib/Service/MWallet/Model/WalletCancelV10RequestMarshaller.php new file mode 100644 index 0000000..ff43f21 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WalletCancelV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WalletCancelV10Response.php b/lib/Service/MWallet/Model/WalletCancelV10Response.php new file mode 100644 index 0000000..565e13e --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MemberCancelResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WalletCancelV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/WalletCancelV10ResponseUnMarshaller.php new file mode 100644 index 0000000..d9f50fd --- /dev/null +++ b/lib/Service/MWallet/Model/WalletCancelV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WalletIndexV20Request + */ + 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 WalletIndexV20Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return WalletIndexV20Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets userMerchantNo + * + * @return string + */ + public function getUserMerchantNo() + { + return $this->userMerchantNo; + } + + /** + * Sets userMerchantNo + * + * @param string $userMerchantNo + * @return WalletIndexV20Request + */ + public function setUserMerchantNo($userMerchantNo) + { + $this->userMerchantNo = $userMerchantNo; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return WalletIndexV20Request + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return WalletIndexV20Request + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return WalletIndexV20Request + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return WalletIndexV20Request + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return WalletIndexV20Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return WalletIndexV20Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return WalletIndexV20Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'wallet_index_v2_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/WalletIndexV20RequestMarshaller.php b/lib/Service/MWallet/Model/WalletIndexV20RequestMarshaller.php new file mode 100644 index 0000000..7bbac82 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletIndexV20RequestMarshaller.php @@ -0,0 +1,110 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getUserMerchantNo() != null){ + $internalRequest->addParameter('userMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getUserMerchantNo(), 'string')); + } + if($request->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WalletIndexV20RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WalletIndexV20Response.php b/lib/Service/MWallet/Model/WalletIndexV20Response.php new file mode 100644 index 0000000..d92dbc0 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletIndexV20Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WalletIndexV20ResponseUnMarshaller.php b/lib/Service/MWallet/Model/WalletIndexV20ResponseUnMarshaller.php new file mode 100644 index 0000000..1281fc2 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletIndexV20ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WalletIndexV2Request + */ + 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 WalletIndexV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return WalletIndexV2Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets userMerchantNo + * + * @return string + */ + public function getUserMerchantNo() + { + return $this->userMerchantNo; + } + + /** + * Sets userMerchantNo + * + * @param string $userMerchantNo + * @return WalletIndexV2Request + */ + public function setUserMerchantNo($userMerchantNo) + { + $this->userMerchantNo = $userMerchantNo; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return WalletIndexV2Request + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->certificateType; + } + + /** + * Sets certificateType + * + * @param string $certificateType + * @return WalletIndexV2Request + */ + public function setCertificateType($certificateType) + { + $this->certificateType = $certificateType; + return $this; + } + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->certificateNo; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo + * @return WalletIndexV2Request + */ + public function setCertificateNo($certificateNo) + { + $this->certificateNo = $certificateNo; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return WalletIndexV2Request + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return WalletIndexV2Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return WalletIndexV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return WalletIndexV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'walletIndexV2'; + } + + +} diff --git a/lib/Service/MWallet/Model/WalletIndexV2RequestMarshaller.php b/lib/Service/MWallet/Model/WalletIndexV2RequestMarshaller.php new file mode 100644 index 0000000..e80eaed --- /dev/null +++ b/lib/Service/MWallet/Model/WalletIndexV2RequestMarshaller.php @@ -0,0 +1,110 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getUserMerchantNo() != null){ + $internalRequest->addParameter('userMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getUserMerchantNo(), 'string')); + } + if($request->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getCertificateType() != null){ + $internalRequest->addParameter('certificateType', ObjectSerializer::sanitizeForSerialization($request->getCertificateType(), 'string')); + } + if($request->getCertificateNo() != null){ + $internalRequest->addParameter('certificateNo', ObjectSerializer::sanitizeForSerialization($request->getCertificateNo(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'notify-url')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WalletIndexV2RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WalletIndexV2Response.php b/lib/Service/MWallet/Model/WalletIndexV2Response.php new file mode 100644 index 0000000..f832438 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletIndexV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WalletIndexV2ResponseUnMarshaller.php b/lib/Service/MWallet/Model/WalletIndexV2ResponseUnMarshaller.php new file mode 100644 index 0000000..a9248a0 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletIndexV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'walletUserNo' => 'string', + 'walletStatus' => 'string', + 'balance' => 'string', + 'name' => 'string', + 'certificateType' => 'string', + 'certificateNo' => 'string', + 'walletCategory' => 'string', + 'tradePswdSet' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'walletUserNo' => null, + 'walletStatus' => null, + 'balance' => null, + 'name' => null, + 'certificateType' => null, + 'certificateNo' => null, + 'walletCategory' => null, + 'tradePswdSet' => 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', + 'walletUserNo' => 'walletUserNo', + 'walletStatus' => 'walletStatus', + 'balance' => 'balance', + 'name' => 'name', + 'certificateType' => 'certificateType', + 'certificateNo' => 'certificateNo', + 'walletCategory' => 'walletCategory', + 'tradePswdSet' => 'tradePswdSet' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'walletUserNo' => 'setWalletUserNo', + 'walletStatus' => 'setWalletStatus', + 'balance' => 'setBalance', + 'name' => 'setName', + 'certificateType' => 'setCertificateType', + 'certificateNo' => 'setCertificateNo', + 'walletCategory' => 'setWalletCategory', + 'tradePswdSet' => 'setTradePswdSet' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'walletUserNo' => 'getWalletUserNo', + 'walletStatus' => 'getWalletStatus', + 'balance' => 'getBalance', + 'name' => 'getName', + 'certificateType' => 'getCertificateType', + 'certificateNo' => 'getCertificateNo', + 'walletCategory' => 'getWalletCategory', + 'tradePswdSet' => 'getTradePswdSet' + ]; + + /** + * 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['walletUserNo'] = isset($data['walletUserNo']) ? $data['walletUserNo'] : null; + $this->container['walletStatus'] = isset($data['walletStatus']) ? $data['walletStatus'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['certificateType'] = isset($data['certificateType']) ? $data['certificateType'] : null; + $this->container['certificateNo'] = isset($data['certificateNo']) ? $data['certificateNo'] : null; + $this->container['walletCategory'] = isset($data['walletCategory']) ? $data['walletCategory'] : null; + $this->container['tradePswdSet'] = isset($data['tradePswdSet']) ? $data['tradePswdSet'] : 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 walletUserNo + * + * @return string + */ + public function getWalletUserNo() + { + return $this->container['walletUserNo']; + } + + /** + * Sets walletUserNo + * + * @param string $walletUserNo 钱包账户ID
用户在易宝钱包生成的唯一编号 + * + * @return $this + */ + public function setWalletUserNo($walletUserNo) + { + $this->container['walletUserNo'] = $walletUserNo; + + return $this; + } + + /** + * Gets walletStatus + * + * @return string + */ + public function getWalletStatus() + { + return $this->container['walletStatus']; + } + + /** + * Sets walletStatus + * + * @param string $walletStatus 钱包账户状态
可选项如下:
AVAILABLY:正常
FREEZE:冻结
CANCAEL:已注销 + * + * @return $this + */ + public function setWalletStatus($walletStatus) + { + $this->container['walletStatus'] = $walletStatus; + + return $this; + } + + /** + * Gets balance + * + * @return string + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param string $balance 钱包账户余额
钱包账户当前总余额,单位元,精确到小数点后两位 + * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name 姓名 + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets certificateType + * + * @return string + */ + public function getCertificateType() + { + return $this->container['certificateType']; + } + + /** + * Sets certificateType + * + * @param string $certificateType 证件类型
IDENTITY_CARD:身份证 + * + * @return $this + */ + public function setCertificateType($certificateType) + { + $this->container['certificateType'] = $certificateType; + + return $this; + } + + /** + * Gets certificateNo + * + * @return string + */ + public function getCertificateNo() + { + return $this->container['certificateNo']; + } + + /** + * Sets certificateNo + * + * @param string $certificateNo 证件号码
显示前6后2,中间为* + * + * @return $this + */ + public function setCertificateNo($certificateNo) + { + $this->container['certificateNo'] = $certificateNo; + + return $this; + } + + /** + * Gets walletCategory + * + * @return string + */ + public function getWalletCategory() + { + return $this->container['walletCategory']; + } + + /** + * Sets walletCategory + * + * @param string $walletCategory 钱包账户等级
可选项如下:
ONE_CATEGORY:一类
TWO_CATEGORY:二类
THREE_CATEGORY:三类 + * + * @return $this + */ + public function setWalletCategory($walletCategory) + { + $this->container['walletCategory'] = $walletCategory; + + return $this; + } + + /** + * Gets tradePswdSet + * + * @return bool + */ + public function getTradePswdSet() + { + return $this->container['tradePswdSet']; + } + + /** + * Sets tradePswdSet + * + * @param bool $tradePswdSet 是否已设置交易密码
TRUE:已设置 + * + * @return $this + */ + public function setTradePswdSet($tradePswdSet) + { + $this->container['tradePswdSet'] = $tradePswdSet; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/WalletOpenByFaceResponseDTO.php b/lib/Service/MWallet/Model/WalletOpenByFaceResponseDTO.php new file mode 100644 index 0000000..8f103d3 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletOpenByFaceResponseDTO.php @@ -0,0 +1,517 @@ + 'string', + 'message' => 'string', + 'businessNo' => 'string', + 'walletUserNo' => 'string', + 'walletCategory' => 'string', + 'needVerifyFace' => 'bool', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'businessNo' => null, + 'walletUserNo' => null, + 'walletCategory' => 'enum', + 'needVerifyFace' => null, + 'url' => 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', + 'businessNo' => 'businessNo', + 'walletUserNo' => 'walletUserNo', + 'walletCategory' => 'walletCategory', + 'needVerifyFace' => 'needVerifyFace', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'businessNo' => 'setBusinessNo', + 'walletUserNo' => 'setWalletUserNo', + 'walletCategory' => 'setWalletCategory', + 'needVerifyFace' => 'setNeedVerifyFace', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'businessNo' => 'getBusinessNo', + 'walletUserNo' => 'getWalletUserNo', + 'walletCategory' => 'getWalletCategory', + 'needVerifyFace' => 'getNeedVerifyFace', + 'url' => 'getUrl' + ]; + + /** + * 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; + } + + const WALLET_CATEGORY_ONE_CATEGORY = 'ONE_CATEGORY'; + const WALLET_CATEGORY_TWO_CATEGORY = 'TWO_CATEGORY'; + const WALLET_CATEGORY_THREE_CATEGORY = 'THREE_CATEGORY'; + + + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getWalletCategoryAllowableValues() + { + return [ + self::WALLET_CATEGORY_ONE_CATEGORY, + self::WALLET_CATEGORY_TWO_CATEGORY, + self::WALLET_CATEGORY_THREE_CATEGORY, + ]; + } + + + /** + * 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['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['walletUserNo'] = isset($data['walletUserNo']) ? $data['walletUserNo'] : null; + $this->container['walletCategory'] = isset($data['walletCategory']) ? $data['walletCategory'] : null; + $this->container['needVerifyFace'] = isset($data['needVerifyFace']) ? $data['needVerifyFace'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getWalletCategoryAllowableValues(); + if (!is_null($this->container['walletCategory']) && !in_array($this->container['walletCategory'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value for 'walletCategory', must be one of '%s'", + implode("', '", $allowedValues) + ); + } + + 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo

易宝订单号
易宝生成的唯一订单号

+ * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + return $this; + } + + /** + * Gets walletUserNo + * + * @return string + */ + public function getWalletUserNo() + { + return $this->container['walletUserNo']; + } + + /** + * Sets walletUserNo + * + * @param string $walletUserNo

钱包账户ID
已开立成功的会员则返回同一钱包账户ID。用户在易宝钱包生成的唯一编号

+ * + * @return $this + */ + public function setWalletUserNo($walletUserNo) + { + $this->container['walletUserNo'] = $walletUserNo; + + return $this; + } + + /** + * Gets walletCategory + * + * @return string + */ + public function getWalletCategory() + { + return $this->container['walletCategory']; + } + + /** + * Sets walletCategory + * + * @param string $walletCategory

钱包账户等级

可选项如下: ONE_CATEGORY:一类 TWO_CATEGORY:二类 THREE_CATEGORY:三类 + * + * @return $this + */ + public function setWalletCategory($walletCategory) + { + $allowedValues = $this->getWalletCategoryAllowableValues(); + if (!is_null($walletCategory) && !in_array($walletCategory, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value for 'walletCategory', must be one of '%s'", + implode("', '", $allowedValues) + ) + ); + } + $this->container['walletCategory'] = $walletCategory; + + return $this; + } + + /** + * Gets needVerifyFace + * + * @return bool + */ + public function getNeedVerifyFace() + { + return $this->container['needVerifyFace']; + } + + /** + * Sets needVerifyFace + * + * @param bool $needVerifyFace

是否需要人脸识别

+ * + * @return $this + */ + public function setNeedVerifyFace($needVerifyFace) + { + $this->container['needVerifyFace'] = $needVerifyFace; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url

人脸识别注册页面地址

+ * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/WalletQueryWithdrawResultDTO.php b/lib/Service/MWallet/Model/WalletQueryWithdrawResultDTO.php new file mode 100644 index 0000000..2aab921 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletQueryWithdrawResultDTO.php @@ -0,0 +1,783 @@ + 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'businessNo' => 'string', + 'amount' => 'float', + 'bindId' => 'string', + 'cardNo' => 'string', + 'bankName' => 'string', + 'bankCode' => 'string', + 'tradeStatus' => 'string', + 'acceptTime' => '\DateTime', + 'completeTime' => '\DateTime', + 'userFee' => 'float', + 'withdrawType' => 'string', + 'deductionAmount' => 'float', + 'arrivalAmount' => 'float', + 'feeInnerType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'businessNo' => null, + 'amount' => null, + 'bindId' => null, + 'cardNo' => null, + 'bankName' => null, + 'bankCode' => null, + 'tradeStatus' => null, + 'acceptTime' => 'date-time', + 'completeTime' => 'date-time', + 'userFee' => null, + 'withdrawType' => null, + 'deductionAmount' => null, + 'arrivalAmount' => null, + 'feeInnerType' => 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', + 'requestNo' => 'requestNo', + 'businessNo' => 'businessNo', + 'amount' => 'amount', + 'bindId' => 'bindId', + 'cardNo' => 'cardNo', + 'bankName' => 'bankName', + 'bankCode' => 'bankCode', + 'tradeStatus' => 'tradeStatus', + 'acceptTime' => 'acceptTime', + 'completeTime' => 'completeTime', + 'userFee' => 'userFee', + 'withdrawType' => 'withdrawType', + 'deductionAmount' => 'deductionAmount', + 'arrivalAmount' => 'arrivalAmount', + 'feeInnerType' => 'feeInnerType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'businessNo' => 'setBusinessNo', + 'amount' => 'setAmount', + 'bindId' => 'setBindId', + 'cardNo' => 'setCardNo', + 'bankName' => 'setBankName', + 'bankCode' => 'setBankCode', + 'tradeStatus' => 'setTradeStatus', + 'acceptTime' => 'setAcceptTime', + 'completeTime' => 'setCompleteTime', + 'userFee' => 'setUserFee', + 'withdrawType' => 'setWithdrawType', + 'deductionAmount' => 'setDeductionAmount', + 'arrivalAmount' => 'setArrivalAmount', + 'feeInnerType' => 'setFeeInnerType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'businessNo' => 'getBusinessNo', + 'amount' => 'getAmount', + 'bindId' => 'getBindId', + 'cardNo' => 'getCardNo', + 'bankName' => 'getBankName', + 'bankCode' => 'getBankCode', + 'tradeStatus' => 'getTradeStatus', + 'acceptTime' => 'getAcceptTime', + 'completeTime' => 'getCompleteTime', + 'userFee' => 'getUserFee', + 'withdrawType' => 'getWithdrawType', + 'deductionAmount' => 'getDeductionAmount', + 'arrivalAmount' => 'getArrivalAmount', + 'feeInnerType' => 'getFeeInnerType' + ]; + + /** + * 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['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['bindId'] = isset($data['bindId']) ? $data['bindId'] : null; + $this->container['cardNo'] = isset($data['cardNo']) ? $data['cardNo'] : null; + $this->container['bankName'] = isset($data['bankName']) ? $data['bankName'] : null; + $this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['tradeStatus'] = isset($data['tradeStatus']) ? $data['tradeStatus'] : null; + $this->container['acceptTime'] = isset($data['acceptTime']) ? $data['acceptTime'] : null; + $this->container['completeTime'] = isset($data['completeTime']) ? $data['completeTime'] : null; + $this->container['userFee'] = isset($data['userFee']) ? $data['userFee'] : null; + $this->container['withdrawType'] = isset($data['withdrawType']) ? $data['withdrawType'] : null; + $this->container['deductionAmount'] = isset($data['deductionAmount']) ? $data['deductionAmount'] : null; + $this->container['arrivalAmount'] = isset($data['arrivalAmount']) ? $data['arrivalAmount'] : null; + $this->container['feeInnerType'] = isset($data['feeInnerType']) ? $data['feeInnerType'] : 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 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo 易宝订单号 + * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + 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 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 cardNo + * + * @return string + */ + public function getCardNo() + { + return $this->container['cardNo']; + } + + /** + * Sets cardNo + * + * @param string $cardNo 卡号
显示前4后2,中间* + * + * @return $this + */ + public function setCardNo($cardNo) + { + $this->container['cardNo'] = $cardNo; + + 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 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 tradeStatus + * + * @return string + */ + public function getTradeStatus() + { + return $this->container['tradeStatus']; + } + + /** + * Sets tradeStatus + * + * @param string $tradeStatus 状态
可选项如下:
SUCCESS:成功
FAIL:失败
ACCEPTED:打款中 + * + * @return $this + */ + public function setTradeStatus($tradeStatus) + { + $this->container['tradeStatus'] = $tradeStatus; + + return $this; + } + + /** + * Gets acceptTime + * + * @return \DateTime + */ + public function getAcceptTime() + { + return $this->container['acceptTime']; + } + + /** + * Sets acceptTime + * + * @param \DateTime $acceptTime 受理时间 + * + * @return $this + */ + public function setAcceptTime($acceptTime) + { + $this->container['acceptTime'] = $acceptTime; + + return $this; + } + + /** + * Gets completeTime + * + * @return \DateTime + */ + public function getCompleteTime() + { + return $this->container['completeTime']; + } + + /** + * Sets completeTime + * + * @param \DateTime $completeTime 完成时间 + * + * @return $this + */ + public function setCompleteTime($completeTime) + { + $this->container['completeTime'] = $completeTime; + + return $this; + } + + /** + * Gets userFee + * + * @return float + */ + public function getUserFee() + { + return $this->container['userFee']; + } + + /** + * Sets userFee + * + * @param float $userFee 用户手续费 + * + * @return $this + */ + public function setUserFee($userFee) + { + $this->container['userFee'] = $userFee; + + return $this; + } + + /** + * Gets withdrawType + * + * @return string + */ + public function getWithdrawType() + { + return $this->container['withdrawType']; + } + + /** + * Sets withdrawType + * + * @param string $withdrawType 提现方式
可选项如下:
0:提现实时到账
1:提现2小时到账
2:次日到账 + * + * @return $this + */ + public function setWithdrawType($withdrawType) + { + $this->container['withdrawType'] = $withdrawType; + + return $this; + } + + /** + * Gets deductionAmount + * + * @return float + */ + public function getDeductionAmount() + { + return $this->container['deductionAmount']; + } + + /** + * Sets deductionAmount + * + * @param float $deductionAmount 实际扣款金额 + * + * @return $this + */ + public function setDeductionAmount($deductionAmount) + { + $this->container['deductionAmount'] = $deductionAmount; + + return $this; + } + + /** + * Gets arrivalAmount + * + * @return float + */ + public function getArrivalAmount() + { + return $this->container['arrivalAmount']; + } + + /** + * Sets arrivalAmount + * + * @param float $arrivalAmount 到账金额 + * + * @return $this + */ + public function setArrivalAmount($arrivalAmount) + { + $this->container['arrivalAmount'] = $arrivalAmount; + + return $this; + } + + /** + * Gets feeInnerType + * + * @return string + */ + public function getFeeInnerType() + { + return $this->container['feeInnerType']; + } + + /** + * Sets feeInnerType + * + * @param string $feeInnerType 手续费扣除方式
可选项如下:
INNER:内扣
OUTER:外扣
OUTER_TO_INNER:外扣转内扣 + * + * @return $this + */ + public function setFeeInnerType($feeInnerType) + { + $this->container['feeInnerType'] = $feeInnerType; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/WalletRequestRecordResponseDTO.php b/lib/Service/MWallet/Model/WalletRequestRecordResponseDTO.php new file mode 100644 index 0000000..caa2166 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletRequestRecordResponseDTO.php @@ -0,0 +1,423 @@ + 'string', + 'message' => 'string', + 'businessNo' => 'string', + 'walletUserNo' => 'string', + 'walletCategory' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'businessNo' => null, + 'walletUserNo' => null, + 'walletCategory' => 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', + 'businessNo' => 'businessNo', + 'walletUserNo' => 'walletUserNo', + 'walletCategory' => 'walletCategory' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'businessNo' => 'setBusinessNo', + 'walletUserNo' => 'setWalletUserNo', + 'walletCategory' => 'setWalletCategory' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'businessNo' => 'getBusinessNo', + 'walletUserNo' => 'getWalletUserNo', + 'walletCategory' => 'getWalletCategory' + ]; + + /** + * 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['businessNo'] = isset($data['businessNo']) ? $data['businessNo'] : null; + $this->container['walletUserNo'] = isset($data['walletUserNo']) ? $data['walletUserNo'] : null; + $this->container['walletCategory'] = isset($data['walletCategory']) ? $data['walletCategory'] : 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 businessNo + * + * @return string + */ + public function getBusinessNo() + { + return $this->container['businessNo']; + } + + /** + * Sets businessNo + * + * @param string $businessNo 易宝订单号
易宝生成的唯一订单号 + * + * @return $this + */ + public function setBusinessNo($businessNo) + { + $this->container['businessNo'] = $businessNo; + + return $this; + } + + /** + * Gets walletUserNo + * + * @return string + */ + public function getWalletUserNo() + { + return $this->container['walletUserNo']; + } + + /** + * Sets walletUserNo + * + * @param string $walletUserNo 钱包账户ID
已开立成功的会员则返回同一钱包账户ID。用户在易宝钱包生成的唯一编号 + * + * @return $this + */ + public function setWalletUserNo($walletUserNo) + { + $this->container['walletUserNo'] = $walletUserNo; + + return $this; + } + + /** + * Gets walletCategory + * + * @return string + */ + public function getWalletCategory() + { + return $this->container['walletCategory']; + } + + /** + * Sets walletCategory + * + * @param string $walletCategory 钱包账户等级
可选项如下:
ONE_CATEGORY:一类 
TWO_CATEGORY:二类
THREE_CATEGORY:三类 + * + * @return $this + */ + public function setWalletCategory($walletCategory) + { + $this->container['walletCategory'] = $walletCategory; + + 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)); + } +} + + diff --git a/lib/Service/MWallet/Model/WalletTransferB2CResponseDTO.php b/lib/Service/MWallet/Model/WalletTransferB2CResponseDTO.php new file mode 100644 index 0000000..ae12bd3 --- /dev/null +++ b/lib/Service/MWallet/Model/WalletTransferB2CResponseDTO.php @@ -0,0 +1,453 @@ + 'string', + 'returnMsg' => 'string', + 'status' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'orderAmount' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'status' => null, + 'requestNo' => null, + 'orderNo' => 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', + 'status' => 'status', + 'requestNo' => 'requestNo', + 'orderNo' => 'orderNo', + 'orderAmount' => 'orderAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'status' => 'setStatus', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'orderAmount' => 'setOrderAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'status' => 'getStatus', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + '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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : 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 status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status 请求结果状态
请求状态
可选项如下:
REQUEST_RECEIVE:请求已接收(易宝正在处理中,请勿重复下单)   
FAIL:失败(该笔订单转账失败,可重新发起转账) + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + 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 orderAmount + * + * @return string + */ + public function getOrderAmount() + { + return $this->container['orderAmount']; + } + + /** + * Sets orderAmount + * + * @param string $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)); + } +} + + diff --git a/lib/Service/MWallet/Model/Web3AgreementNotifyRequest.php b/lib/Service/MWallet/Model/Web3AgreementNotifyRequest.php new file mode 100644 index 0000000..abfa9a4 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementNotifyRequest.php @@ -0,0 +1,192 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return Web3AgreementNotifyRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operateTime + * + * @return string + */ + public function getOperateTime() + { + return $this->operateTime; + } + + /** + * Sets operateTime + * + * @param string $operateTime + * @return Web3AgreementNotifyRequest + */ + public function setOperateTime($operateTime) + { + $this->operateTime = $operateTime; + return $this; + } + /** + * Gets operateType + * + * @return string + */ + public function getOperateType() + { + return $this->operateType; + } + + /** + * Sets operateType + * + * @param string $operateType + * @return Web3AgreementNotifyRequest + */ + public function setOperateType($operateType) + { + $this->operateType = $operateType; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return Web3AgreementNotifyRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets endTime + * + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param string $endTime + * @return Web3AgreementNotifyRequest + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return Web3AgreementNotifyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return Web3AgreementNotifyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'web3AgreementNotify'; + } + + +} diff --git a/lib/Service/MWallet/Model/Web3AgreementNotifyRequestMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementNotifyRequestMarshaller.php new file mode 100644 index 0000000..096ba88 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementNotifyRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperateTime() != null){ + $internalRequest->addParameter('operateTime', ObjectSerializer::sanitizeForSerialization($request->getOperateTime(), 'string')); + } + if($request->getOperateType() != null){ + $internalRequest->addParameter('operateType', ObjectSerializer::sanitizeForSerialization($request->getOperateType(), 'string', 'enum')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +Web3AgreementNotifyRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/Web3AgreementNotifyResponse.php b/lib/Service/MWallet/Model/Web3AgreementNotifyResponse.php new file mode 100644 index 0000000..9274da1 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementNotifyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretNotifyRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/Web3AgreementNotifyResponseUnMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementNotifyResponseUnMarshaller.php new file mode 100644 index 0000000..ce4b1ea --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementNotifyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return Web3AgreementPaymentCancelRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operateReason + * + * @return string + */ + public function getOperateReason() + { + return $this->operateReason; + } + + /** + * Sets operateReason + * + * @param string $operateReason + * @return Web3AgreementPaymentCancelRequest + */ + public function setOperateReason($operateReason) + { + $this->operateReason = $operateReason; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return Web3AgreementPaymentCancelRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return Web3AgreementPaymentCancelRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return Web3AgreementPaymentCancelRequest + */ + 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 Web3AgreementPaymentCancelRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return Web3AgreementPaymentCancelRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'web3AgreementPaymentCancel'; + } + + +} diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentCancelRequestMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementPaymentCancelRequestMarshaller.php new file mode 100644 index 0000000..c4cecd9 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentCancelRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperateReason() != null){ + $internalRequest->addParameter('operateReason', ObjectSerializer::sanitizeForSerialization($request->getOperateReason(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +Web3AgreementPaymentCancelRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponse.php b/lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponse.php new file mode 100644 index 0000000..da1100a --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretCancelRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponseUnMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponseUnMarshaller.php new file mode 100644 index 0000000..e03eece --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentCancelResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return Web3AgreementPaymentQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return Web3AgreementPaymentQueryRequest + */ + 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 Web3AgreementPaymentQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return Web3AgreementPaymentQueryRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'web3AgreementPaymentQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentQueryRequestMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementPaymentQueryRequestMarshaller.php new file mode 100644 index 0000000..370a563 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + 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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +Web3AgreementPaymentQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponse.php b/lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponse.php new file mode 100644 index 0000000..ef6d36f --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretQueryRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponseUnMarshaller.php new file mode 100644 index 0000000..e3c2a8e --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return Web3AgreementPaymentSignRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return Web3AgreementPaymentSignRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return Web3AgreementPaymentSignRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return Web3AgreementPaymentSignRequest + */ + 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 Web3AgreementPaymentSignRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return Web3AgreementPaymentSignRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return Web3AgreementPaymentSignRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'web3AgreementPaymentSign'; + } + + +} diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentSignRequestMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementPaymentSignRequestMarshaller.php new file mode 100644 index 0000000..614ed25 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentSignRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), '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->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +Web3AgreementPaymentSignRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentSignResponse.php b/lib/Service/MWallet/Model/Web3AgreementPaymentSignResponse.php new file mode 100644 index 0000000..d5f1242 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentSignResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FreeSecretSignRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/Web3AgreementPaymentSignResponseUnMarshaller.php b/lib/Service/MWallet/Model/Web3AgreementPaymentSignResponseUnMarshaller.php new file mode 100644 index 0000000..edff047 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3AgreementPaymentSignResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return Web3CouponListQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return Web3CouponListQueryRequest + */ + 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 Web3CouponListQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets queryType + * + * @return string + */ + public function getQueryType() + { + return $this->queryType; + } + + /** + * Sets queryType + * + * @param string $queryType + * @return Web3CouponListQueryRequest + */ + public function setQueryType($queryType) + { + $this->queryType = $queryType; + return $this; + } + /** + * Gets applyEndTime + * + * @return string + */ + public function getApplyEndTime() + { + return $this->applyEndTime; + } + + /** + * Sets applyEndTime + * + * @param string $applyEndTime + * @return Web3CouponListQueryRequest + */ + public function setApplyEndTime($applyEndTime) + { + $this->applyEndTime = $applyEndTime; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return Web3CouponListQueryRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return Web3CouponListQueryRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return Web3CouponListQueryRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets applyStartTime + * + * @return string + */ + public function getApplyStartTime() + { + return $this->applyStartTime; + } + + /** + * Sets applyStartTime + * + * @param string $applyStartTime + * @return Web3CouponListQueryRequest + */ + public function setApplyStartTime($applyStartTime) + { + $this->applyStartTime = $applyStartTime; + return $this; + } + + public static function getOperationId() + { + return 'web3CouponListQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/Web3CouponListQueryRequestMarshaller.php b/lib/Service/MWallet/Model/Web3CouponListQueryRequestMarshaller.php new file mode 100644 index 0000000..f800030 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3CouponListQueryRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + 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->getQueryType() != null){ + $internalRequest->addParameter('queryType', ObjectSerializer::sanitizeForSerialization($request->getQueryType(), 'string')); + } + if($request->getApplyEndTime() != null){ + $internalRequest->addParameter('applyEndTime', ObjectSerializer::sanitizeForSerialization($request->getApplyEndTime(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getApplyStartTime() != null){ + $internalRequest->addParameter('applyStartTime', ObjectSerializer::sanitizeForSerialization($request->getApplyStartTime(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +Web3CouponListQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/Web3CouponListQueryResponse.php b/lib/Service/MWallet/Model/Web3CouponListQueryResponse.php new file mode 100644 index 0000000..fbc12e5 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3CouponListQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CouponQueryResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/Web3CouponListQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/Web3CouponListQueryResponseUnMarshaller.php new file mode 100644 index 0000000..31c43f3 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3CouponListQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return Web3PaymentManageRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return Web3PaymentManageRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return Web3PaymentManageRequest + */ + 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 Web3PaymentManageRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return Web3PaymentManageRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'web3PaymentManage'; + } + + +} diff --git a/lib/Service/MWallet/Model/Web3PaymentManageRequestMarshaller.php b/lib/Service/MWallet/Model/Web3PaymentManageRequestMarshaller.php new file mode 100644 index 0000000..d2e0445 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3PaymentManageRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), '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->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +Web3PaymentManageRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/Web3PaymentManageResponse.php b/lib/Service/MWallet/Model/Web3PaymentManageResponse.php new file mode 100644 index 0000000..ae5f12a --- /dev/null +++ b/lib/Service/MWallet/Model/Web3PaymentManageResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletAdapterRequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/Web3PaymentManageResponseUnMarshaller.php b/lib/Service/MWallet/Model/Web3PaymentManageResponseUnMarshaller.php new file mode 100644 index 0000000..1015032 --- /dev/null +++ b/lib/Service/MWallet/Model/Web3PaymentManageResponseUnMarshaller.php @@ -0,0 +1,39 @@ +amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return WithdrawInitiateRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return WithdrawInitiateRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return WithdrawInitiateRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return WithdrawInitiateRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WithdrawInitiateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return WithdrawInitiateRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets feeInnerType + * + * @return string + */ + public function getFeeInnerType() + { + return $this->feeInnerType; + } + + /** + * Sets feeInnerType + * + * @param string $feeInnerType + * @return WithdrawInitiateRequest + */ + public function setFeeInnerType($feeInnerType) + { + $this->feeInnerType = $feeInnerType; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WithdrawInitiateRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets withdrawType + * + * @return string + */ + public function getWithdrawType() + { + return $this->withdrawType; + } + + /** + * Sets withdrawType + * + * @param string $withdrawType + * @return WithdrawInitiateRequest + */ + public function setWithdrawType($withdrawType) + { + $this->withdrawType = $withdrawType; + return $this; + } + + public static function getOperationId() + { + return 'withdrawInitiate'; + } + + +} diff --git a/lib/Service/MWallet/Model/WithdrawInitiateRequestMarshaller.php b/lib/Service/MWallet/Model/WithdrawInitiateRequestMarshaller.php new file mode 100644 index 0000000..9e9d12f --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawInitiateRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getFeeInnerType() != null){ + $internalRequest->addParameter('feeInnerType', ObjectSerializer::sanitizeForSerialization($request->getFeeInnerType(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getWithdrawType() != null){ + $internalRequest->addParameter('withdrawType', ObjectSerializer::sanitizeForSerialization($request->getWithdrawType(), 'string', 'enum')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WithdrawInitiateRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WithdrawInitiateResponse.php b/lib/Service/MWallet/Model/WithdrawInitiateResponse.php new file mode 100644 index 0000000..e6dbc0c --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawInitiateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WithdrawInitiateResponseUnMarshaller.php b/lib/Service/MWallet/Model/WithdrawInitiateResponseUnMarshaller.php new file mode 100644 index 0000000..98f0f58 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawInitiateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +amount; + } + + /** + * Sets amount + * + * @param string $amount + * @return WithdrawInitiateV10Request + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return WithdrawInitiateV10Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return WithdrawInitiateV10Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return WithdrawInitiateV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WithdrawInitiateV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return WithdrawInitiateV10Request + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets feeInnerType + * + * @return string + */ + public function getFeeInnerType() + { + return $this->feeInnerType; + } + + /** + * Sets feeInnerType + * + * @param string $feeInnerType + * @return WithdrawInitiateV10Request + */ + public function setFeeInnerType($feeInnerType) + { + $this->feeInnerType = $feeInnerType; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return WithdrawInitiateV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets withdrawType + * + * @return string + */ + public function getWithdrawType() + { + return $this->withdrawType; + } + + /** + * Sets withdrawType + * + * @param string $withdrawType + * @return WithdrawInitiateV10Request + */ + public function setWithdrawType($withdrawType) + { + $this->withdrawType = $withdrawType; + return $this; + } + + public static function getOperationId() + { + return 'withdraw_initiate_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/WithdrawInitiateV10RequestMarshaller.php b/lib/Service/MWallet/Model/WithdrawInitiateV10RequestMarshaller.php new file mode 100644 index 0000000..87bb92c --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawInitiateV10RequestMarshaller.php @@ -0,0 +1,104 @@ +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->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getFeeInnerType() != null){ + $internalRequest->addParameter('feeInnerType', ObjectSerializer::sanitizeForSerialization($request->getFeeInnerType(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getWithdrawType() != null){ + $internalRequest->addParameter('withdrawType', ObjectSerializer::sanitizeForSerialization($request->getWithdrawType(), 'string', 'enum')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WithdrawInitiateV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WithdrawInitiateV10Response.php b/lib/Service/MWallet/Model/WithdrawInitiateV10Response.php new file mode 100644 index 0000000..0724e82 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawInitiateV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RequestURLResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WithdrawInitiateV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/WithdrawInitiateV10ResponseUnMarshaller.php new file mode 100644 index 0000000..1dbf710 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawInitiateV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return WithdrawQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WithdrawQueryRequest + */ + 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 WithdrawQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'withdrawQuery'; + } + + +} diff --git a/lib/Service/MWallet/Model/WithdrawQueryRequestMarshaller.php b/lib/Service/MWallet/Model/WithdrawQueryRequestMarshaller.php new file mode 100644 index 0000000..23b1d93 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WithdrawQueryRequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WithdrawQueryResponse.php b/lib/Service/MWallet/Model/WithdrawQueryResponse.php new file mode 100644 index 0000000..eca2e01 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletQueryWithdrawResultDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WithdrawQueryResponseUnMarshaller.php b/lib/Service/MWallet/Model/WithdrawQueryResponseUnMarshaller.php new file mode 100644 index 0000000..3bc3b22 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return WithdrawQueryV10Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return WithdrawQueryV10Request + */ + 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 WithdrawQueryV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'withdraw_query_v1_0'; + } + + +} diff --git a/lib/Service/MWallet/Model/WithdrawQueryV10RequestMarshaller.php b/lib/Service/MWallet/Model/WithdrawQueryV10RequestMarshaller.php new file mode 100644 index 0000000..67a6ae9 --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawQueryV10RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +WithdrawQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/MWallet/Model/WithdrawQueryV10Response.php b/lib/Service/MWallet/Model/WithdrawQueryV10Response.php new file mode 100644 index 0000000..fdc756a --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return WalletQueryWithdrawResultDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/MWallet/Model/WithdrawQueryV10ResponseUnMarshaller.php b/lib/Service/MWallet/Model/WithdrawQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..19ed9ff --- /dev/null +++ b/lib/Service/MWallet/Model/WithdrawQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'memberNo' => 'string', + 'availableQuota' => 'string', + 'memberCategory' => 'string', + 'limitQuota' => 'string', + 'usedQuota' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'memberNo' => null, + 'availableQuota' => null, + 'memberCategory' => null, + 'limitQuota' => null, + 'usedQuota' => 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', + 'memberNo' => 'memberNo', + 'availableQuota' => 'availableQuota', + 'memberCategory' => 'memberCategory', + 'limitQuota' => 'limitQuota', + 'usedQuota' => 'usedQuota' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'memberNo' => 'setMemberNo', + 'availableQuota' => 'setAvailableQuota', + 'memberCategory' => 'setMemberCategory', + 'limitQuota' => 'setLimitQuota', + 'usedQuota' => 'setUsedQuota' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'memberNo' => 'getMemberNo', + 'availableQuota' => 'getAvailableQuota', + 'memberCategory' => 'getMemberCategory', + 'limitQuota' => 'getLimitQuota', + 'usedQuota' => 'getUsedQuota' + ]; + + /** + * 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['memberNo'] = isset($data['memberNo']) ? $data['memberNo'] : null; + $this->container['availableQuota'] = isset($data['availableQuota']) ? $data['availableQuota'] : null; + $this->container['memberCategory'] = isset($data['memberCategory']) ? $data['memberCategory'] : null; + $this->container['limitQuota'] = isset($data['limitQuota']) ? $data['limitQuota'] : null; + $this->container['usedQuota'] = isset($data['usedQuota']) ? $data['usedQuota'] : 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 memberNo + * + * @return string + */ + public function getMemberNo() + { + return $this->container['memberNo']; + } + + /** + * Sets memberNo + * + * @param string $memberNo

易宝会员编号

+ * + * @return $this + */ + public function setMemberNo($memberNo) + { + $this->container['memberNo'] = $memberNo; + + return $this; + } + + /** + * Gets availableQuota + * + * @return string + */ + public function getAvailableQuota() + { + return $this->container['availableQuota']; + } + + /** + * Sets availableQuota + * + * @param string $availableQuota

可用余额支付额度

精确至两位小数 

+ * + * @return $this + */ + public function setAvailableQuota($availableQuota) + { + $this->container['availableQuota'] = $availableQuota; + + return $this; + } + + /** + * Gets memberCategory + * + * @return string + */ + public function getMemberCategory() + { + return $this->container['memberCategory']; + } + + /** + * Sets memberCategory + * + * @param string $memberCategory
钱包账户等级
可选项如下:
ONE_CATEGORY:一类
TWO_CATEGORY:二类
THREE_CATEGORY:三类
+ * + * @return $this + */ + public function setMemberCategory($memberCategory) + { + $this->container['memberCategory'] = $memberCategory; + + return $this; + } + + /** + * Gets limitQuota + * + * @return string + */ + public function getLimitQuota() + { + return $this->container['limitQuota']; + } + + /** + * Sets limitQuota + * + * @param string $limitQuota

余额支付总额度

精确至两位小数 

+ * + * @return $this + */ + public function setLimitQuota($limitQuota) + { + $this->container['limitQuota'] = $limitQuota; + + return $this; + } + + /** + * Gets usedQuota + * + * @return string + */ + public function getUsedQuota() + { + return $this->container['usedQuota']; + } + + /** + * Sets usedQuota + * + * @param string $usedQuota

已使用的余额支付额度

精确至两位小数

+ * + * @return $this + */ + public function setUsedQuota($usedQuota) + { + $this->container['usedQuota'] = $usedQuota; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthDtoResult.php b/lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthDtoResult.php new file mode 100644 index 0000000..b126c57 --- /dev/null +++ b/lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthDtoResult.php @@ -0,0 +1,423 @@ + 'string', + 'feeType' => 'string', + 'authorizeState' => 'string', + 'returnCode' => 'string', + 'returnMsg' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'reportMerchantNo' => null, + 'feeType' => null, + 'authorizeState' => null, + '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 = [ + 'reportMerchantNo' => 'reportMerchantNo', + 'feeType' => 'feeType', + 'authorizeState' => 'authorizeState', + 'returnCode' => 'returnCode', + 'returnMsg' => 'returnMsg' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'reportMerchantNo' => 'setReportMerchantNo', + 'feeType' => 'setFeeType', + 'authorizeState' => 'setAuthorizeState', + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'reportMerchantNo' => 'getReportMerchantNo', + 'feeType' => 'getFeeType', + 'authorizeState' => 'getAuthorizeState', + '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['reportMerchantNo'] = isset($data['reportMerchantNo']) ? $data['reportMerchantNo'] : null; + $this->container['feeType'] = isset($data['feeType']) ? $data['feeType'] : null; + $this->container['authorizeState'] = isset($data['authorizeState']) ? $data['authorizeState'] : 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 reportMerchantNo + * + * @return string + */ + public function getReportMerchantNo() + { + return $this->container['reportMerchantNo']; + } + + /** + * Sets reportMerchantNo + * + * @param string $reportMerchantNo 报备商户号 + * + * @return $this + */ + public function setReportMerchantNo($reportMerchantNo) + { + $this->container['reportMerchantNo'] = $reportMerchantNo; + + return $this; + } + + /** + * Gets feeType + * + * @return string + */ + public function getFeeType() + { + return $this->container['feeType']; + } + + /** + * Sets feeType + * + * @param string $feeType 报备费率 + * + * @return $this + */ + public function setFeeType($feeType) + { + $this->container['feeType'] = $feeType; + + return $this; + } + + /** + * Gets authorizeState + * + * @return string + */ + public function getAuthorizeState() + { + return $this->container['authorizeState']; + } + + /** + * Sets authorizeState + * + * @param string $authorizeState 授权状态 + * + * @return $this + */ + public function setAuthorizeState($authorizeState) + { + $this->container['authorizeState'] = $authorizeState; + + return $this; + } + + /** + * 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)); + } +} + + diff --git a/lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthStateResDtoResult.php b/lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthStateResDtoResult.php new file mode 100644 index 0000000..4072b33 --- /dev/null +++ b/lib/Service/Mer/Model/AuthStateQueryV2IdentityAuthStateResDtoResult.php @@ -0,0 +1,362 @@ + 'string', + 'returnMsg' => 'string', + 'identityAuthDtos' => '\Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'identityAuthDtos' => 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', + 'identityAuthDtos' => 'identityAuthDtos' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'identityAuthDtos' => 'setIdentityAuthDtos' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'identityAuthDtos' => 'getIdentityAuthDtos' + ]; + + /** + * 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['identityAuthDtos'] = isset($data['identityAuthDtos']) ? $data['identityAuthDtos'] : 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 identityAuthDtos + * + * @return \Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthDtoResult[] + */ + public function getIdentityAuthDtos() + { + return $this->container['identityAuthDtos']; + } + + /** + * Sets identityAuthDtos + * + * @param \Yeepay\Yop\Sdk\Service\Mer\Model\AuthStateQueryV2IdentityAuthDtoResult[] $identityAuthDtos 认证信息 + * + * @return $this + */ + public function setIdentityAuthDtos($identityAuthDtos) + { + $this->container['identityAuthDtos'] = $identityAuthDtos; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/AuthStateQueryV2Request.php b/lib/Service/Mer/Model/AuthStateQueryV2Request.php new file mode 100644 index 0000000..dd31a09 --- /dev/null +++ b/lib/Service/Mer/Model/AuthStateQueryV2Request.php @@ -0,0 +1,92 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AuthStateQueryV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets reportMerchantNo + * + * @return string + */ + public function getReportMerchantNo() + { + return $this->reportMerchantNo; + } + + /** + * Sets reportMerchantNo + * + * @param string $reportMerchantNo + * @return AuthStateQueryV2Request + */ + public function setReportMerchantNo($reportMerchantNo) + { + $this->reportMerchantNo = $reportMerchantNo; + return $this; + } + /** + * Gets feeType + * + * @return string + */ + public function getFeeType() + { + return $this->feeType; + } + + /** + * Sets feeType + * + * @param string $feeType + * @return AuthStateQueryV2Request + */ + public function setFeeType($feeType) + { + $this->feeType = $feeType; + return $this; + } + + public static function getOperationId() + { + return 'authStateQueryV2'; + } + + +} diff --git a/lib/Service/Mer/Model/AuthStateQueryV2RequestMarshaller.php b/lib/Service/Mer/Model/AuthStateQueryV2RequestMarshaller.php new file mode 100644 index 0000000..fa1ec76 --- /dev/null +++ b/lib/Service/Mer/Model/AuthStateQueryV2RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getReportMerchantNo() != null){ + $internalRequest->addParameter('reportMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getReportMerchantNo(), 'string')); + } + if($request->getFeeType() != null){ + $internalRequest->addParameter('feeType', ObjectSerializer::sanitizeForSerialization($request->getFeeType(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AuthStateQueryV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/AuthStateQueryV2Response.php b/lib/Service/Mer/Model/AuthStateQueryV2Response.php new file mode 100644 index 0000000..82f5bfc --- /dev/null +++ b/lib/Service/Mer/Model/AuthStateQueryV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return AuthStateQueryV2IdentityAuthStateResDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/AuthStateQueryV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/AuthStateQueryV2ResponseUnMarshaller.php new file mode 100644 index 0000000..6af68ed --- /dev/null +++ b/lib/Service/Mer/Model/AuthStateQueryV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'applicationNo' => 'string', + 'applicationStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'applicationNo' => 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', + 'applicationNo' => 'applicationNo', + 'applicationStatus' => 'applicationStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'applicationNo' => 'setApplicationNo', + 'applicationStatus' => 'setApplicationStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'applicationNo' => 'getApplicationNo', + '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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 工单号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/MerchantInfoModifyRequest.php b/lib/Service/Mer/Model/MerchantInfoModifyRequest.php new file mode 100644 index 0000000..277490f --- /dev/null +++ b/lib/Service/Mer/Model/MerchantInfoModifyRequest.php @@ -0,0 +1,267 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return MerchantInfoModifyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return MerchantInfoModifyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return MerchantInfoModifyRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets merchantSubjectInfo + * + * @return string + */ + public function getMerchantSubjectInfo() + { + return $this->merchantSubjectInfo; + } + + /** + * Sets merchantSubjectInfo + * + * @param string $merchantSubjectInfo + * @return MerchantInfoModifyRequest + */ + public function setMerchantSubjectInfo($merchantSubjectInfo) + { + $this->merchantSubjectInfo = $merchantSubjectInfo; + return $this; + } + /** + * Gets merchantCorporationInfo + * + * @return string + */ + public function getMerchantCorporationInfo() + { + return $this->merchantCorporationInfo; + } + + /** + * Sets merchantCorporationInfo + * + * @param string $merchantCorporationInfo + * @return MerchantInfoModifyRequest + */ + public function setMerchantCorporationInfo($merchantCorporationInfo) + { + $this->merchantCorporationInfo = $merchantCorporationInfo; + return $this; + } + /** + * Gets merchantContactInfo + * + * @return string + */ + public function getMerchantContactInfo() + { + return $this->merchantContactInfo; + } + + /** + * Sets merchantContactInfo + * + * @param string $merchantContactInfo + * @return MerchantInfoModifyRequest + */ + public function setMerchantContactInfo($merchantContactInfo) + { + $this->merchantContactInfo = $merchantContactInfo; + return $this; + } + /** + * Gets industryCategoryInfo + * + * @return string + */ + public function getIndustryCategoryInfo() + { + return $this->industryCategoryInfo; + } + + /** + * Sets industryCategoryInfo + * + * @param string $industryCategoryInfo + * @return MerchantInfoModifyRequest + */ + public function setIndustryCategoryInfo($industryCategoryInfo) + { + $this->industryCategoryInfo = $industryCategoryInfo; + return $this; + } + /** + * Gets businessAddressInfo + * + * @return string + */ + public function getBusinessAddressInfo() + { + return $this->businessAddressInfo; + } + + /** + * Sets businessAddressInfo + * + * @param string $businessAddressInfo + * @return MerchantInfoModifyRequest + */ + public function setBusinessAddressInfo($businessAddressInfo) + { + $this->businessAddressInfo = $businessAddressInfo; + return $this; + } + /** + * Gets accountInfo + * + * @return string + */ + public function getAccountInfo() + { + return $this->accountInfo; + } + + /** + * Sets accountInfo + * + * @param string $accountInfo + * @return MerchantInfoModifyRequest + */ + public function setAccountInfo($accountInfo) + { + $this->accountInfo = $accountInfo; + return $this; + } + /** + * Gets bankToken + * + * @return string + */ + public function getBankToken() + { + return $this->bankToken; + } + + /** + * Sets bankToken + * + * @param string $bankToken + * @return MerchantInfoModifyRequest + */ + public function setBankToken($bankToken) + { + $this->bankToken = $bankToken; + return $this; + } + + public static function getOperationId() + { + return 'merchantInfoModify'; + } + + +} diff --git a/lib/Service/Mer/Model/MerchantInfoModifyRequestMarshaller.php b/lib/Service/Mer/Model/MerchantInfoModifyRequestMarshaller.php new file mode 100644 index 0000000..3da1d47 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantInfoModifyRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url')); + } + if($request->getMerchantSubjectInfo() != null){ + $internalRequest->addParameter('merchantSubjectInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantSubjectInfo(), 'string')); + } + if($request->getMerchantCorporationInfo() != null){ + $internalRequest->addParameter('merchantCorporationInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantCorporationInfo(), 'string')); + } + if($request->getMerchantContactInfo() != null){ + $internalRequest->addParameter('merchantContactInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantContactInfo(), 'string')); + } + if($request->getIndustryCategoryInfo() != null){ + $internalRequest->addParameter('industryCategoryInfo', ObjectSerializer::sanitizeForSerialization($request->getIndustryCategoryInfo(), 'string')); + } + if($request->getBusinessAddressInfo() != null){ + $internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string')); + } + if($request->getAccountInfo() != null){ + $internalRequest->addParameter('accountInfo', ObjectSerializer::sanitizeForSerialization($request->getAccountInfo(), 'string')); + } + if($request->getBankToken() != null){ + $internalRequest->addParameter('bankToken', ObjectSerializer::sanitizeForSerialization($request->getBankToken(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MerchantInfoModifyRequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/MerchantInfoModifyResponse.php b/lib/Service/Mer/Model/MerchantInfoModifyResponse.php new file mode 100644 index 0000000..f2822d4 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantInfoModifyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MerchantInfoModifyMerchantInfoModifyRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/MerchantInfoModifyResponseUnMarshaller.php b/lib/Service/Mer/Model/MerchantInfoModifyResponseUnMarshaller.php new file mode 100644 index 0000000..04c348c --- /dev/null +++ b/lib/Service/Mer/Model/MerchantInfoModifyResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'qualifications' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'qualifications' => 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', + 'qualifications' => 'qualifications' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'qualifications' => 'setQualifications' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'qualifications' => 'getQualifications' + ]; + + /** + * 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['qualifications'] = isset($data['qualifications']) ? $data['qualifications'] : 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 qualifications + * + * @return string + */ + public function getQualifications() + { + return $this->container['qualifications']; + } + + /** + * Sets qualifications + * + * @param string $qualifications 后补资质类型 + * + * @return $this + */ + public function setQualifications($qualifications) + { + $this->container['qualifications'] = $qualifications; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequest.php b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequest.php new file mode 100644 index 0000000..f09852c --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequest.php @@ -0,0 +1,42 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return MerchantSupplementQualificationQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'merchantSupplementQualificationQuery'; + } + + +} diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequestMarshaller.php b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequestMarshaller.php new file mode 100644 index 0000000..223d549 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryRequestMarshaller.php @@ -0,0 +1,80 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MerchantSupplementQualificationQueryRequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponse.php b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponse.php new file mode 100644 index 0000000..7720f05 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MerchantSupplementQualificationQueryQueryMopQuaInfoRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponseUnMarshaller.php b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponseUnMarshaller.php new file mode 100644 index 0000000..b6c6e00 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return MerchantSupplementQualificationSubmitRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets qualifications + * + * @return string + */ + public function getQualifications() + { + return $this->qualifications; + } + + /** + * Sets qualifications + * + * @param string $qualifications + * @return MerchantSupplementQualificationSubmitRequest + */ + public function setQualifications($qualifications) + { + $this->qualifications = $qualifications; + return $this; + } + + public static function getOperationId() + { + return 'merchantSupplementQualificationSubmit'; + } + + +} diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitRequestMarshaller.php b/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitRequestMarshaller.php new file mode 100644 index 0000000..6af9fa2 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getQualifications() != null){ + $internalRequest->addParameter('qualifications', ObjectSerializer::sanitizeForSerialization($request->getQualifications(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +MerchantSupplementQualificationSubmitRequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponse.php b/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponse.php new file mode 100644 index 0000000..3af0274 --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return MerchantSupplementQualificationSubmitSubmitMopQuaInfoRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponseUnMarshaller.php b/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponseUnMarshaller.php new file mode 100644 index 0000000..db9c62d --- /dev/null +++ b/lib/Service/Mer/Model/MerchantSupplementQualificationSubmitResponseUnMarshaller.php @@ -0,0 +1,39 @@ + '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)); + } +} + + diff --git a/lib/Service/Mer/Model/NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult.php b/lib/Service/Mer/Model/NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult.php new file mode 100644 index 0000000..ad14f5e --- /dev/null +++ b/lib/Service/Mer/Model/NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult.php @@ -0,0 +1,392 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => 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', + 'applicationNo' => 'applicationNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo' + ]; + + /** + * 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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号:易宝内部商户入网申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/NotifyRepeatV2Request.php b/lib/Service/Mer/Model/NotifyRepeatV2Request.php new file mode 100644 index 0000000..1b810d8 --- /dev/null +++ b/lib/Service/Mer/Model/NotifyRepeatV2Request.php @@ -0,0 +1,92 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return NotifyRepeatV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->applicationNo; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo + * @return NotifyRepeatV2Request + */ + public function setApplicationNo($applicationNo) + { + $this->applicationNo = $applicationNo; + return $this; + } + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->type; + } + + /** + * Sets type + * + * @param string $type + * @return NotifyRepeatV2Request + */ + public function setType($type) + { + $this->type = $type; + return $this; + } + + public static function getOperationId() + { + return 'notifyRepeatV2'; + } + + +} diff --git a/lib/Service/Mer/Model/NotifyRepeatV2RequestMarshaller.php b/lib/Service/Mer/Model/NotifyRepeatV2RequestMarshaller.php new file mode 100644 index 0000000..0ee04e4 --- /dev/null +++ b/lib/Service/Mer/Model/NotifyRepeatV2RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getApplicationNo() != null){ + $internalRequest->addParameter('applicationNo', ObjectSerializer::sanitizeForSerialization($request->getApplicationNo(), 'string')); + } + if($request->getType() != null){ + $internalRequest->addParameter('type', ObjectSerializer::sanitizeForSerialization($request->getType(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +NotifyRepeatV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/NotifyRepeatV2Response.php b/lib/Service/Mer/Model/NotifyRepeatV2Response.php new file mode 100644 index 0000000..754f887 --- /dev/null +++ b/lib/Service/Mer/Model/NotifyRepeatV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return NotifyRepeatV2MerchantNetInRepeatNotifyRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/NotifyRepeatV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/NotifyRepeatV2ResponseUnMarshaller.php new file mode 100644 index 0000000..5fb1a58 --- /dev/null +++ b/lib/Service/Mer/Model/NotifyRepeatV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string', + 'applicationStatus' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => null, + 'applicationStatus' => null, + 'merchantNo' => 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', + 'applicationNo' => 'applicationNo', + 'applicationStatus' => 'applicationStatus', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo', + 'applicationStatus' => 'setApplicationStatus', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo', + 'applicationStatus' => 'getApplicationStatus', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Mer/Model/ProductFeeModifyV2Request.php b/lib/Service/Mer/Model/ProductFeeModifyV2Request.php new file mode 100644 index 0000000..56be6ad --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeModifyV2Request.php @@ -0,0 +1,242 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return ProductFeeModifyV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ProductFeeModifyV2Request + */ + 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 ProductFeeModifyV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return ProductFeeModifyV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return ProductFeeModifyV2Request + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets productQualificationInfo + * + * @return string + */ + public function getProductQualificationInfo() + { + return $this->productQualificationInfo; + } + + /** + * Sets productQualificationInfo + * + * @param string $productQualificationInfo + * @return ProductFeeModifyV2Request + */ + public function setProductQualificationInfo($productQualificationInfo) + { + $this->productQualificationInfo = $productQualificationInfo; + return $this; + } + /** + * Gets settlementAccountInfo + * + * @return string + */ + public function getSettlementAccountInfo() + { + return $this->settlementAccountInfo; + } + + /** + * Sets settlementAccountInfo + * + * @param string $settlementAccountInfo + * @return ProductFeeModifyV2Request + */ + public function setSettlementAccountInfo($settlementAccountInfo) + { + $this->settlementAccountInfo = $settlementAccountInfo; + return $this; + } + /** + * Gets functionService + * + * @return string + */ + public function getFunctionService() + { + return $this->functionService; + } + + /** + * Sets functionService + * + * @param string $functionService + * @return ProductFeeModifyV2Request + */ + public function setFunctionService($functionService) + { + $this->functionService = $functionService; + return $this; + } + /** + * Gets functionServiceQualificationInfo + * + * @return string + */ + public function getFunctionServiceQualificationInfo() + { + return $this->functionServiceQualificationInfo; + } + + /** + * Sets functionServiceQualificationInfo + * + * @param string $functionServiceQualificationInfo + * @return ProductFeeModifyV2Request + */ + public function setFunctionServiceQualificationInfo($functionServiceQualificationInfo) + { + $this->functionServiceQualificationInfo = $functionServiceQualificationInfo; + return $this; + } + + public static function getOperationId() + { + return 'productFeeModifyV2'; + } + + +} diff --git a/lib/Service/Mer/Model/ProductFeeModifyV2RequestMarshaller.php b/lib/Service/Mer/Model/ProductFeeModifyV2RequestMarshaller.php new file mode 100644 index 0000000..c29187d --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeModifyV2RequestMarshaller.php @@ -0,0 +1,104 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + 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->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getProductQualificationInfo() != null){ + $internalRequest->addParameter('productQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getProductQualificationInfo(), 'string')); + } + if($request->getSettlementAccountInfo() != null){ + $internalRequest->addParameter('settlementAccountInfo', ObjectSerializer::sanitizeForSerialization($request->getSettlementAccountInfo(), 'string')); + } + if($request->getFunctionService() != null){ + $internalRequest->addParameter('functionService', ObjectSerializer::sanitizeForSerialization($request->getFunctionService(), 'string')); + } + if($request->getFunctionServiceQualificationInfo() != null){ + $internalRequest->addParameter('functionServiceQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getFunctionServiceQualificationInfo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ProductFeeModifyV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/ProductFeeModifyV2Response.php b/lib/Service/Mer/Model/ProductFeeModifyV2Response.php new file mode 100644 index 0000000..6826be0 --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeModifyV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ProductFeeModifyV2ModifyProductFeeRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/ProductFeeModifyV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/ProductFeeModifyV2ResponseUnMarshaller.php new file mode 100644 index 0000000..149e8a4 --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeModifyV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'productInfo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'productInfo' => 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', + 'productInfo' => 'productInfo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'productInfo' => 'setProductInfo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'productInfo' => 'getProductInfo' + ]; + + /** + * 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['productInfo'] = isset($data['productInfo']) ? $data['productInfo'] : 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 productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->container['productInfo']; + } + + /** + * Sets productInfo + * + * @param string $productInfo 产品费率数据 + * + * @return $this + */ + public function setProductInfo($productInfo) + { + $this->container['productInfo'] = $productInfo; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/ProductFeeQueryV2Request.php b/lib/Service/Mer/Model/ProductFeeQueryV2Request.php new file mode 100644 index 0000000..7b6b6b4 --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeQueryV2Request.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ProductFeeQueryV2Request + */ + 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 ProductFeeQueryV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets productCode + * + * @return string + */ + public function getProductCode() + { + return $this->productCode; + } + + /** + * Sets productCode + * + * @param string $productCode + * @return ProductFeeQueryV2Request + */ + public function setProductCode($productCode) + { + $this->productCode = $productCode; + return $this; + } + + public static function getOperationId() + { + return 'productFeeQueryV2'; + } + + +} diff --git a/lib/Service/Mer/Model/ProductFeeQueryV2RequestMarshaller.php b/lib/Service/Mer/Model/ProductFeeQueryV2RequestMarshaller.php new file mode 100644 index 0000000..c222a2c --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeQueryV2RequestMarshaller.php @@ -0,0 +1,86 @@ +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->getProductCode() != null){ + $internalRequest->addParameter('productCode', ObjectSerializer::sanitizeForSerialization($request->getProductCode(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ProductFeeQueryV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/ProductFeeQueryV2Response.php b/lib/Service/Mer/Model/ProductFeeQueryV2Response.php new file mode 100644 index 0000000..c7e9827 --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeQueryV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ProductFeeQueryV2QueryProductFeeRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/ProductFeeQueryV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/ProductFeeQueryV2ResponseUnMarshaller.php new file mode 100644 index 0000000..f3d826e --- /dev/null +++ b/lib/Service/Mer/Model/ProductFeeQueryV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string', + 'applicationStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => 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', + 'applicationNo' => 'applicationNo', + 'applicationStatus' => 'applicationStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo', + 'applicationStatus' => 'setApplicationStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo', + '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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/ProductIncrementSettleOpenV2Request.php b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2Request.php new file mode 100644 index 0000000..0869b88 --- /dev/null +++ b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2Request.php @@ -0,0 +1,117 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return ProductIncrementSettleOpenV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return ProductIncrementSettleOpenV2Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return ProductIncrementSettleOpenV2Request + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return ProductIncrementSettleOpenV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + + public static function getOperationId() + { + return 'productIncrementSettleOpenV2'; + } + + +} diff --git a/lib/Service/Mer/Model/ProductIncrementSettleOpenV2RequestMarshaller.php b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2RequestMarshaller.php new file mode 100644 index 0000000..a190d4f --- /dev/null +++ b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2RequestMarshaller.php @@ -0,0 +1,89 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ProductIncrementSettleOpenV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/ProductIncrementSettleOpenV2Response.php b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2Response.php new file mode 100644 index 0000000..4fc47f9 --- /dev/null +++ b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ProductIncrementSettleOpenV2AddIncrementSettleProductRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/ProductIncrementSettleOpenV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2ResponseUnMarshaller.php new file mode 100644 index 0000000..b5ed215 --- /dev/null +++ b/lib/Service/Mer/Model/ProductIncrementSettleOpenV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string', + 'merchantNo' => 'string', + 'applicationStatus' => 'string', + 'auditOpinion' => 'string', + 'progressDescription' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => null, + 'merchantNo' => null, + 'applicationStatus' => null, + 'auditOpinion' => null, + 'progressDescription' => 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', + 'applicationNo' => 'applicationNo', + 'merchantNo' => 'merchantNo', + 'applicationStatus' => 'applicationStatus', + 'auditOpinion' => 'auditOpinion', + 'progressDescription' => 'progressDescription' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo', + 'merchantNo' => 'setMerchantNo', + 'applicationStatus' => 'setApplicationStatus', + 'auditOpinion' => 'setAuditOpinion', + 'progressDescription' => 'setProgressDescription' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo', + 'merchantNo' => 'getMerchantNo', + 'applicationStatus' => 'getApplicationStatus', + 'auditOpinion' => 'getAuditOpinion', + 'progressDescription' => 'getProgressDescription' + ]; + + /** + * 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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['auditOpinion'] = isset($data['auditOpinion']) ? $data['auditOpinion'] : null; + $this->container['progressDescription'] = isset($data['progressDescription']) ? $data['progressDescription'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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; + } + + /** + * Gets auditOpinion + * + * @return string + */ + public function getAuditOpinion() + { + return $this->container['auditOpinion']; + } + + /** + * Sets auditOpinion + * + * @param string $auditOpinion 审核意见 + * + * @return $this + */ + public function setAuditOpinion($auditOpinion) + { + $this->container['auditOpinion'] = $auditOpinion; + + return $this; + } + + /** + * Gets progressDescription + * + * @return string + */ + public function getProgressDescription() + { + return $this->container['progressDescription']; + } + + /** + * Sets progressDescription + * + * @param string $progressDescription 产品变更进度说明 + * + * @return $this + */ + public function setProgressDescription($progressDescription) + { + $this->container['progressDescription'] = $progressDescription; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/ProductModifyQueryV2Request.php b/lib/Service/Mer/Model/ProductModifyQueryV2Request.php new file mode 100644 index 0000000..819d8a6 --- /dev/null +++ b/lib/Service/Mer/Model/ProductModifyQueryV2Request.php @@ -0,0 +1,42 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return ProductModifyQueryV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'productModifyQueryV2'; + } + + +} diff --git a/lib/Service/Mer/Model/ProductModifyQueryV2RequestMarshaller.php b/lib/Service/Mer/Model/ProductModifyQueryV2RequestMarshaller.php new file mode 100644 index 0000000..77a3d4e --- /dev/null +++ b/lib/Service/Mer/Model/ProductModifyQueryV2RequestMarshaller.php @@ -0,0 +1,80 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ProductModifyQueryV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/ProductModifyQueryV2Response.php b/lib/Service/Mer/Model/ProductModifyQueryV2Response.php new file mode 100644 index 0000000..56ec538 --- /dev/null +++ b/lib/Service/Mer/Model/ProductModifyQueryV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ProductModifyQueryV2ProductModifyProgressQueryRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/ProductModifyQueryV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/ProductModifyQueryV2ResponseUnMarshaller.php new file mode 100644 index 0000000..7c17be7 --- /dev/null +++ b/lib/Service/Mer/Model/ProductModifyQueryV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string', + 'merchantNo' => 'string', + 'applicationStatus' => 'string', + 'auditOpinion' => 'string', + 'progressDescription' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => null, + 'merchantNo' => null, + 'applicationStatus' => null, + 'auditOpinion' => null, + 'progressDescription' => 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', + 'applicationNo' => 'applicationNo', + 'merchantNo' => 'merchantNo', + 'applicationStatus' => 'applicationStatus', + 'auditOpinion' => 'auditOpinion', + 'progressDescription' => 'progressDescription' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo', + 'merchantNo' => 'setMerchantNo', + 'applicationStatus' => 'setApplicationStatus', + 'auditOpinion' => 'setAuditOpinion', + 'progressDescription' => 'setProgressDescription' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo', + 'merchantNo' => 'getMerchantNo', + 'applicationStatus' => 'getApplicationStatus', + 'auditOpinion' => 'getAuditOpinion', + 'progressDescription' => 'getProgressDescription' + ]; + + /** + * 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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['auditOpinion'] = isset($data['auditOpinion']) ? $data['auditOpinion'] : null; + $this->container['progressDescription'] = isset($data['progressDescription']) ? $data['progressDescription'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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; + } + + /** + * Gets auditOpinion + * + * @return string + */ + public function getAuditOpinion() + { + return $this->container['auditOpinion']; + } + + /** + * Sets auditOpinion + * + * @param string $auditOpinion 审核意见 + * + * @return $this + */ + public function setAuditOpinion($auditOpinion) + { + $this->container['auditOpinion'] = $auditOpinion; + + return $this; + } + + /** + * Gets progressDescription + * + * @return string + */ + public function getProgressDescription() + { + return $this->container['progressDescription']; + } + + /** + * Sets progressDescription + * + * @param string $progressDescription 入网进度说明 + * + * @return $this + */ + public function setProgressDescription($progressDescription) + { + $this->container['progressDescription'] = $progressDescription; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/RegisterQueryV2Request.php b/lib/Service/Mer/Model/RegisterQueryV2Request.php new file mode 100644 index 0000000..01da543 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterQueryV2Request.php @@ -0,0 +1,42 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RegisterQueryV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + + public static function getOperationId() + { + return 'registerQueryV2'; + } + + +} diff --git a/lib/Service/Mer/Model/RegisterQueryV2RequestMarshaller.php b/lib/Service/Mer/Model/RegisterQueryV2RequestMarshaller.php new file mode 100644 index 0000000..27df2c3 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterQueryV2RequestMarshaller.php @@ -0,0 +1,80 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RegisterQueryV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/RegisterQueryV2Response.php b/lib/Service/Mer/Model/RegisterQueryV2Response.php new file mode 100644 index 0000000..af7b1cc --- /dev/null +++ b/lib/Service/Mer/Model/RegisterQueryV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RegisterQueryV2NetInProgressQueryRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/RegisterQueryV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/RegisterQueryV2ResponseUnMarshaller.php new file mode 100644 index 0000000..94727b5 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterQueryV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RegisterSaasIndexV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RegisterSaasIndexV2Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return RegisterSaasIndexV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return RegisterSaasIndexV2Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return RegisterSaasIndexV2Request + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Sets name + * + * @param string $name + * @return RegisterSaasIndexV2Request + */ + public function setName($name) + { + $this->name = $name; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return RegisterSaasIndexV2Request + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets walletUserNo + * + * @return string + */ + public function getWalletUserNo() + { + return $this->walletUserNo; + } + + /** + * Sets walletUserNo + * + * @param string $walletUserNo + * @return RegisterSaasIndexV2Request + */ + public function setWalletUserNo($walletUserNo) + { + $this->walletUserNo = $walletUserNo; + return $this; + } + + public static function getOperationId() + { + return 'registerSaasIndexV2'; + } + + +} diff --git a/lib/Service/Mer/Model/RegisterSaasIndexV2RequestMarshaller.php b/lib/Service/Mer/Model/RegisterSaasIndexV2RequestMarshaller.php new file mode 100644 index 0000000..134834f --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasIndexV2RequestMarshaller.php @@ -0,0 +1,101 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string', 'mobile')); + } + if($request->getName() != null){ + $internalRequest->addParameter('name', ObjectSerializer::sanitizeForSerialization($request->getName(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getWalletUserNo() != null){ + $internalRequest->addParameter('walletUserNo', ObjectSerializer::sanitizeForSerialization($request->getWalletUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RegisterSaasIndexV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/RegisterSaasIndexV2Response.php b/lib/Service/Mer/Model/RegisterSaasIndexV2Response.php new file mode 100644 index 0000000..60387f2 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasIndexV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RegisterSaasIndexV2UserPreRegisterRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/RegisterSaasIndexV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/RegisterSaasIndexV2ResponseUnMarshaller.php new file mode 100644 index 0000000..7ef0f3c --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasIndexV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'msg' => 'string', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'msg' => null, + 'url' => 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', + 'msg' => 'msg', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'msg' => 'setMsg', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'msg' => 'getMsg', + 'url' => 'getUrl' + ]; + + /** + * 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['msg'] = isset($data['msg']) ? $data['msg'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : 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 msg + * + * @return string + */ + public function getMsg() + { + return $this->container['msg']; + } + + /** + * Sets msg + * + * @param string $msg 返回信息 + * + * @return $this + */ + public function setMsg($msg) + { + $this->container['msg'] = $msg; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url 访问小微商户入网的注册页面地址 + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult.php b/lib/Service/Mer/Model/RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult.php new file mode 100644 index 0000000..1abf1ad --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult.php @@ -0,0 +1,452 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string', + 'applicationStatus' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => null, + 'applicationStatus' => null, + 'merchantNo' => 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', + 'applicationNo' => 'applicationNo', + 'applicationStatus' => 'applicationStatus', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo', + 'applicationStatus' => 'setApplicationStatus', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo', + 'applicationStatus' => 'getApplicationStatus', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Mer/Model/RegisterSaasMerchantV2Request.php b/lib/Service/Mer/Model/RegisterSaasMerchantV2Request.php new file mode 100644 index 0000000..eab9929 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMerchantV2Request.php @@ -0,0 +1,367 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RegisterSaasMerchantV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets businessRole + * + * @return string + */ + public function getBusinessRole() + { + return $this->businessRole; + } + + /** + * Sets businessRole + * + * @param string $businessRole + * @return RegisterSaasMerchantV2Request + */ + public function setBusinessRole($businessRole) + { + $this->businessRole = $businessRole; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RegisterSaasMerchantV2Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets merchantSubjectInfo + * + * @return string + */ + public function getMerchantSubjectInfo() + { + return $this->merchantSubjectInfo; + } + + /** + * Sets merchantSubjectInfo + * + * @param string $merchantSubjectInfo + * @return RegisterSaasMerchantV2Request + */ + public function setMerchantSubjectInfo($merchantSubjectInfo) + { + $this->merchantSubjectInfo = $merchantSubjectInfo; + return $this; + } + /** + * Gets merchantCorporationInfo + * + * @return string + */ + public function getMerchantCorporationInfo() + { + return $this->merchantCorporationInfo; + } + + /** + * Sets merchantCorporationInfo + * + * @param string $merchantCorporationInfo + * @return RegisterSaasMerchantV2Request + */ + public function setMerchantCorporationInfo($merchantCorporationInfo) + { + $this->merchantCorporationInfo = $merchantCorporationInfo; + return $this; + } + /** + * Gets merchantContactInfo + * + * @return string + */ + public function getMerchantContactInfo() + { + return $this->merchantContactInfo; + } + + /** + * Sets merchantContactInfo + * + * @param string $merchantContactInfo + * @return RegisterSaasMerchantV2Request + */ + public function setMerchantContactInfo($merchantContactInfo) + { + $this->merchantContactInfo = $merchantContactInfo; + return $this; + } + /** + * Gets industryCategoryInfo + * + * @return string + */ + public function getIndustryCategoryInfo() + { + return $this->industryCategoryInfo; + } + + /** + * Sets industryCategoryInfo + * + * @param string $industryCategoryInfo + * @return RegisterSaasMerchantV2Request + */ + public function setIndustryCategoryInfo($industryCategoryInfo) + { + $this->industryCategoryInfo = $industryCategoryInfo; + return $this; + } + /** + * Gets businessAddressInfo + * + * @return string + */ + public function getBusinessAddressInfo() + { + return $this->businessAddressInfo; + } + + /** + * Sets businessAddressInfo + * + * @param string $businessAddressInfo + * @return RegisterSaasMerchantV2Request + */ + public function setBusinessAddressInfo($businessAddressInfo) + { + $this->businessAddressInfo = $businessAddressInfo; + return $this; + } + /** + * Gets settlementAccountInfo + * + * @return string + */ + public function getSettlementAccountInfo() + { + return $this->settlementAccountInfo; + } + + /** + * Sets settlementAccountInfo + * + * @param string $settlementAccountInfo + * @return RegisterSaasMerchantV2Request + */ + public function setSettlementAccountInfo($settlementAccountInfo) + { + $this->settlementAccountInfo = $settlementAccountInfo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return RegisterSaasMerchantV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return RegisterSaasMerchantV2Request + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets productQualificationInfo + * + * @return string + */ + public function getProductQualificationInfo() + { + return $this->productQualificationInfo; + } + + /** + * Sets productQualificationInfo + * + * @param string $productQualificationInfo + * @return RegisterSaasMerchantV2Request + */ + public function setProductQualificationInfo($productQualificationInfo) + { + $this->productQualificationInfo = $productQualificationInfo; + return $this; + } + /** + * Gets functionService + * + * @return string + */ + public function getFunctionService() + { + return $this->functionService; + } + + /** + * Sets functionService + * + * @param string $functionService + * @return RegisterSaasMerchantV2Request + */ + public function setFunctionService($functionService) + { + $this->functionService = $functionService; + return $this; + } + /** + * Gets functionServiceQualificationInfo + * + * @return string + */ + public function getFunctionServiceQualificationInfo() + { + return $this->functionServiceQualificationInfo; + } + + /** + * Sets functionServiceQualificationInfo + * + * @param string $functionServiceQualificationInfo + * @return RegisterSaasMerchantV2Request + */ + public function setFunctionServiceQualificationInfo($functionServiceQualificationInfo) + { + $this->functionServiceQualificationInfo = $functionServiceQualificationInfo; + return $this; + } + + public static function getOperationId() + { + return 'registerSaasMerchantV2'; + } + + +} diff --git a/lib/Service/Mer/Model/RegisterSaasMerchantV2RequestMarshaller.php b/lib/Service/Mer/Model/RegisterSaasMerchantV2RequestMarshaller.php new file mode 100644 index 0000000..1f8eb54 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMerchantV2RequestMarshaller.php @@ -0,0 +1,119 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getBusinessRole() != null){ + $internalRequest->addParameter('businessRole', ObjectSerializer::sanitizeForSerialization($request->getBusinessRole(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantSubjectInfo() != null){ + $internalRequest->addParameter('merchantSubjectInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantSubjectInfo(), 'string')); + } + if($request->getMerchantCorporationInfo() != null){ + $internalRequest->addParameter('merchantCorporationInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantCorporationInfo(), 'string')); + } + if($request->getMerchantContactInfo() != null){ + $internalRequest->addParameter('merchantContactInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantContactInfo(), 'string')); + } + if($request->getIndustryCategoryInfo() != null){ + $internalRequest->addParameter('industryCategoryInfo', ObjectSerializer::sanitizeForSerialization($request->getIndustryCategoryInfo(), 'string')); + } + if($request->getBusinessAddressInfo() != null){ + $internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string')); + } + if($request->getSettlementAccountInfo() != null){ + $internalRequest->addParameter('settlementAccountInfo', ObjectSerializer::sanitizeForSerialization($request->getSettlementAccountInfo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getProductQualificationInfo() != null){ + $internalRequest->addParameter('productQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getProductQualificationInfo(), 'string')); + } + if($request->getFunctionService() != null){ + $internalRequest->addParameter('functionService', ObjectSerializer::sanitizeForSerialization($request->getFunctionService(), 'string')); + } + if($request->getFunctionServiceQualificationInfo() != null){ + $internalRequest->addParameter('functionServiceQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getFunctionServiceQualificationInfo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RegisterSaasMerchantV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/RegisterSaasMerchantV2Response.php b/lib/Service/Mer/Model/RegisterSaasMerchantV2Response.php new file mode 100644 index 0000000..e099b2f --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMerchantV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RegisterSaasMerchantV2ContributeMerchantNetInRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/RegisterSaasMerchantV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/RegisterSaasMerchantV2ResponseUnMarshaller.php new file mode 100644 index 0000000..0238b5f --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMerchantV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'applicationNo' => 'string', + 'applicationStatus' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'applicationNo' => null, + 'applicationStatus' => null, + 'merchantNo' => 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', + 'applicationNo' => 'applicationNo', + 'applicationStatus' => 'applicationStatus', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'applicationNo' => 'setApplicationNo', + 'applicationStatus' => 'setApplicationStatus', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'applicationNo' => 'getApplicationNo', + 'applicationStatus' => 'getApplicationStatus', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['applicationNo'] = isset($data['applicationNo']) ? $data['applicationNo'] : null; + $this->container['applicationStatus'] = isset($data['applicationStatus']) ? $data['applicationStatus'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 applicationNo + * + * @return string + */ + public function getApplicationNo() + { + return $this->container['applicationNo']; + } + + /** + * Sets applicationNo + * + * @param string $applicationNo 申请单编号 + * + * @return $this + */ + public function setApplicationNo($applicationNo) + { + $this->container['applicationNo'] = $applicationNo; + + 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; + } + + /** + * 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Mer/Model/RegisterSaasMicroV2Request.php b/lib/Service/Mer/Model/RegisterSaasMicroV2Request.php new file mode 100644 index 0000000..d2df61d --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMicroV2Request.php @@ -0,0 +1,317 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return RegisterSaasMicroV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets businessRole + * + * @return string + */ + public function getBusinessRole() + { + return $this->businessRole; + } + + /** + * Sets businessRole + * + * @param string $businessRole + * @return RegisterSaasMicroV2Request + */ + public function setBusinessRole($businessRole) + { + $this->businessRole = $businessRole; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RegisterSaasMicroV2Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets merchantSubjectInfo + * + * @return string + */ + public function getMerchantSubjectInfo() + { + return $this->merchantSubjectInfo; + } + + /** + * Sets merchantSubjectInfo + * + * @param string $merchantSubjectInfo + * @return RegisterSaasMicroV2Request + */ + public function setMerchantSubjectInfo($merchantSubjectInfo) + { + $this->merchantSubjectInfo = $merchantSubjectInfo; + return $this; + } + /** + * Gets businessAddressInfo + * + * @return string + */ + public function getBusinessAddressInfo() + { + return $this->businessAddressInfo; + } + + /** + * Sets businessAddressInfo + * + * @param string $businessAddressInfo + * @return RegisterSaasMicroV2Request + */ + public function setBusinessAddressInfo($businessAddressInfo) + { + $this->businessAddressInfo = $businessAddressInfo; + return $this; + } + /** + * Gets merchantCorporationInfo + * + * @return string + */ + public function getMerchantCorporationInfo() + { + return $this->merchantCorporationInfo; + } + + /** + * Sets merchantCorporationInfo + * + * @param string $merchantCorporationInfo + * @return RegisterSaasMicroV2Request + */ + public function setMerchantCorporationInfo($merchantCorporationInfo) + { + $this->merchantCorporationInfo = $merchantCorporationInfo; + return $this; + } + /** + * Gets accountInfo + * + * @return string + */ + public function getAccountInfo() + { + return $this->accountInfo; + } + + /** + * Sets accountInfo + * + * @param string $accountInfo + * @return RegisterSaasMicroV2Request + */ + public function setAccountInfo($accountInfo) + { + $this->accountInfo = $accountInfo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return RegisterSaasMicroV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets productInfo + * + * @return string + */ + public function getProductInfo() + { + return $this->productInfo; + } + + /** + * Sets productInfo + * + * @param string $productInfo + * @return RegisterSaasMicroV2Request + */ + public function setProductInfo($productInfo) + { + $this->productInfo = $productInfo; + return $this; + } + /** + * Gets productQualificationInfo + * + * @return string + */ + public function getProductQualificationInfo() + { + return $this->productQualificationInfo; + } + + /** + * Sets productQualificationInfo + * + * @param string $productQualificationInfo + * @return RegisterSaasMicroV2Request + */ + public function setProductQualificationInfo($productQualificationInfo) + { + $this->productQualificationInfo = $productQualificationInfo; + return $this; + } + /** + * Gets functionService + * + * @return string + */ + public function getFunctionService() + { + return $this->functionService; + } + + /** + * Sets functionService + * + * @param string $functionService + * @return RegisterSaasMicroV2Request + */ + public function setFunctionService($functionService) + { + $this->functionService = $functionService; + return $this; + } + /** + * Gets functionServiceQualificationInfo + * + * @return string + */ + public function getFunctionServiceQualificationInfo() + { + return $this->functionServiceQualificationInfo; + } + + /** + * Sets functionServiceQualificationInfo + * + * @param string $functionServiceQualificationInfo + * @return RegisterSaasMicroV2Request + */ + public function setFunctionServiceQualificationInfo($functionServiceQualificationInfo) + { + $this->functionServiceQualificationInfo = $functionServiceQualificationInfo; + return $this; + } + + public static function getOperationId() + { + return 'registerSaasMicroV2'; + } + + +} diff --git a/lib/Service/Mer/Model/RegisterSaasMicroV2RequestMarshaller.php b/lib/Service/Mer/Model/RegisterSaasMicroV2RequestMarshaller.php new file mode 100644 index 0000000..caf4d2c --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMicroV2RequestMarshaller.php @@ -0,0 +1,113 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getBusinessRole() != null){ + $internalRequest->addParameter('businessRole', ObjectSerializer::sanitizeForSerialization($request->getBusinessRole(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantSubjectInfo() != null){ + $internalRequest->addParameter('merchantSubjectInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantSubjectInfo(), 'string')); + } + if($request->getBusinessAddressInfo() != null){ + $internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string')); + } + if($request->getMerchantCorporationInfo() != null){ + $internalRequest->addParameter('merchantCorporationInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantCorporationInfo(), 'string')); + } + if($request->getAccountInfo() != null){ + $internalRequest->addParameter('accountInfo', ObjectSerializer::sanitizeForSerialization($request->getAccountInfo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getProductInfo() != null){ + $internalRequest->addParameter('productInfo', ObjectSerializer::sanitizeForSerialization($request->getProductInfo(), 'string')); + } + if($request->getProductQualificationInfo() != null){ + $internalRequest->addParameter('productQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getProductQualificationInfo(), 'string')); + } + if($request->getFunctionService() != null){ + $internalRequest->addParameter('functionService', ObjectSerializer::sanitizeForSerialization($request->getFunctionService(), 'string')); + } + if($request->getFunctionServiceQualificationInfo() != null){ + $internalRequest->addParameter('functionServiceQualificationInfo', ObjectSerializer::sanitizeForSerialization($request->getFunctionServiceQualificationInfo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RegisterSaasMicroV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/RegisterSaasMicroV2Response.php b/lib/Service/Mer/Model/RegisterSaasMicroV2Response.php new file mode 100644 index 0000000..be70cf4 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMicroV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RegisterSaasMicroV2ContributeMicroMerchantNetInRespDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/RegisterSaasMicroV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/RegisterSaasMicroV2ResponseUnMarshaller.php new file mode 100644 index 0000000..f59df90 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasMicroV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'msg' => 'string', + 'url' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'msg' => null, + 'url' => 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', + 'msg' => 'msg', + 'url' => 'url' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'msg' => 'setMsg', + 'url' => 'setUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'msg' => 'getMsg', + 'url' => 'getUrl' + ]; + + /** + * 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['msg'] = isset($data['msg']) ? $data['msg'] : null; + $this->container['url'] = isset($data['url']) ? $data['url'] : 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 msg + * + * @return string + */ + public function getMsg() + { + return $this->container['msg']; + } + + /** + * Sets msg + * + * @param string $msg 响应信息 + * + * @return $this + */ + public function setMsg($msg) + { + $this->container['msg'] = $msg; + + return $this; + } + + /** + * Gets url + * + * @return string + */ + public function getUrl() + { + return $this->container['url']; + } + + /** + * Sets url + * + * @param string $url 入网页面首页地址 + * + * @return $this + */ + public function setUrl($url) + { + $this->container['url'] = $url; + + 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)); + } +} + + diff --git a/lib/Service/Mer/Model/RegisterSaasWebIndexV2Request.php b/lib/Service/Mer/Model/RegisterSaasWebIndexV2Request.php new file mode 100644 index 0000000..456aa96 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasWebIndexV2Request.php @@ -0,0 +1,267 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RegisterSaasWebIndexV2Request + */ + 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 RegisterSaasWebIndexV2Request + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets signType + * + * @return string + */ + public function getSignType() + { + return $this->signType; + } + + /** + * Sets signType + * + * @param string $signType + * @return RegisterSaasWebIndexV2Request + */ + public function setSignType($signType) + { + $this->signType = $signType; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return RegisterSaasWebIndexV2Request + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return RegisterSaasWebIndexV2Request + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets productTemplateNo + * + * @return string + */ + public function getProductTemplateNo() + { + return $this->productTemplateNo; + } + + /** + * Sets productTemplateNo + * + * @param string $productTemplateNo + * @return RegisterSaasWebIndexV2Request + */ + public function setProductTemplateNo($productTemplateNo) + { + $this->productTemplateNo = $productTemplateNo; + return $this; + } + /** + * Gets merchantBaseInfo + * + * @return string + */ + public function getMerchantBaseInfo() + { + return $this->merchantBaseInfo; + } + + /** + * Sets merchantBaseInfo + * + * @param string $merchantBaseInfo + * @return RegisterSaasWebIndexV2Request + */ + public function setMerchantBaseInfo($merchantBaseInfo) + { + $this->merchantBaseInfo = $merchantBaseInfo; + return $this; + } + /** + * Gets corporationInfo + * + * @return string + */ + public function getCorporationInfo() + { + return $this->corporationInfo; + } + + /** + * Sets corporationInfo + * + * @param string $corporationInfo + * @return RegisterSaasWebIndexV2Request + */ + public function setCorporationInfo($corporationInfo) + { + $this->corporationInfo = $corporationInfo; + return $this; + } + /** + * Gets contactInfo + * + * @return string + */ + public function getContactInfo() + { + return $this->contactInfo; + } + + /** + * Sets contactInfo + * + * @param string $contactInfo + * @return RegisterSaasWebIndexV2Request + */ + public function setContactInfo($contactInfo) + { + $this->contactInfo = $contactInfo; + return $this; + } + /** + * Gets businessAddressInfo + * + * @return string + */ + public function getBusinessAddressInfo() + { + return $this->businessAddressInfo; + } + + /** + * Sets businessAddressInfo + * + * @param string $businessAddressInfo + * @return RegisterSaasWebIndexV2Request + */ + public function setBusinessAddressInfo($businessAddressInfo) + { + $this->businessAddressInfo = $businessAddressInfo; + return $this; + } + + public static function getOperationId() + { + return 'registerSaasWebIndexV2'; + } + + +} diff --git a/lib/Service/Mer/Model/RegisterSaasWebIndexV2RequestMarshaller.php b/lib/Service/Mer/Model/RegisterSaasWebIndexV2RequestMarshaller.php new file mode 100644 index 0000000..8aaf357 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasWebIndexV2RequestMarshaller.php @@ -0,0 +1,107 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getSignType() != null){ + $internalRequest->addParameter('signType', ObjectSerializer::sanitizeForSerialization($request->getSignType(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string', 'url')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string', 'url')); + } + if($request->getProductTemplateNo() != null){ + $internalRequest->addParameter('productTemplateNo', ObjectSerializer::sanitizeForSerialization($request->getProductTemplateNo(), 'string')); + } + if($request->getMerchantBaseInfo() != null){ + $internalRequest->addParameter('merchantBaseInfo', ObjectSerializer::sanitizeForSerialization($request->getMerchantBaseInfo(), 'string')); + } + if($request->getCorporationInfo() != null){ + $internalRequest->addParameter('corporationInfo', ObjectSerializer::sanitizeForSerialization($request->getCorporationInfo(), 'string')); + } + if($request->getContactInfo() != null){ + $internalRequest->addParameter('contactInfo', ObjectSerializer::sanitizeForSerialization($request->getContactInfo(), 'string')); + } + if($request->getBusinessAddressInfo() != null){ + $internalRequest->addParameter('businessAddressInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessAddressInfo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RegisterSaasWebIndexV2RequestMarshaller::__init(); diff --git a/lib/Service/Mer/Model/RegisterSaasWebIndexV2Response.php b/lib/Service/Mer/Model/RegisterSaasWebIndexV2Response.php new file mode 100644 index 0000000..26c675a --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasWebIndexV2Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RegisterSaasWebIndexV2CreateNetInUrlRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Mer/Model/RegisterSaasWebIndexV2ResponseUnMarshaller.php b/lib/Service/Mer/Model/RegisterSaasWebIndexV2ResponseUnMarshaller.php new file mode 100644 index 0000000..0238630 --- /dev/null +++ b/lib/Service/Mer/Model/RegisterSaasWebIndexV2ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供网银支付相关服务(支付下单等功能)

+ * + * OpenAPI spec version: 1.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\Netpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * OrderOrderResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrderOrderResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrderOrderResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string', + 'requestParam' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'uniqueOrderNo' => null, + 'requestParam' => 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', + 'requestParam' => 'requestParam' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'requestParam' => 'setRequestParam' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'requestParam' => 'getRequestParam' + ]; + + /** + * 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['requestParam'] = isset($data['requestParam']) ? $data['requestParam'] : 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 requestParam + * + * @return string + */ + public function getRequestParam() + { + return $this->container['requestParam']; + } + + /** + * Sets requestParam + * + * @param string $requestParam 返回参数 + * + * @return $this + */ + public function setRequestParam($requestParam) + { + $this->container['requestParam'] = $requestParam; + + 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)); + } +} + + diff --git a/lib/Service/Netpay/Model/OrderRequest.php b/lib/Service/Netpay/Model/OrderRequest.php new file mode 100644 index 0000000..55827f6 --- /dev/null +++ b/lib/Service/Netpay/Model/OrderRequest.php @@ -0,0 +1,517 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return OrderRequest + */ + 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 OrderRequest + */ + 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 OrderRequest + */ + 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 OrderRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets expiredTime + * + * @return string + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param string $expiredTime + * @return OrderRequest + */ + 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 OrderRequest + */ + 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 OrderRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return OrderRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return OrderRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return OrderRequest + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets bankAccountType + * + * @return string + */ + public function getBankAccountType() + { + return $this->bankAccountType; + } + + /** + * Sets bankAccountType + * + * @param string $bankAccountType + * @return OrderRequest + */ + public function setBankAccountType($bankAccountType) + { + $this->bankAccountType = $bankAccountType; + return $this; + } + /** + * Gets bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->bankCode; + } + + /** + * Sets bankCode + * + * @param string $bankCode + * @return OrderRequest + */ + public function setBankCode($bankCode) + { + $this->bankCode = $bankCode; + return $this; + } + /** + * Gets terminalType + * + * @return string + */ + public function getTerminalType() + { + return $this->terminalType; + } + + /** + * Sets terminalType + * + * @param string $terminalType + * @return OrderRequest + */ + public function setTerminalType($terminalType) + { + $this->terminalType = $terminalType; + return $this; + } + /** + * Gets payerIp + * + * @return string + */ + public function getPayerIp() + { + return $this->payerIp; + } + + /** + * Sets payerIp + * + * @param string $payerIp + * @return OrderRequest + */ + public function setPayerIp($payerIp) + { + $this->payerIp = $payerIp; + return $this; + } + /** + * Gets csNotifyUrl + * + * @return string + */ + public function getCsNotifyUrl() + { + return $this->csNotifyUrl; + } + + /** + * Sets csNotifyUrl + * + * @param string $csNotifyUrl + * @return OrderRequest + */ + public function setCsNotifyUrl($csNotifyUrl) + { + $this->csNotifyUrl = $csNotifyUrl; + return $this; + } + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->businessInfo; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo + * @return OrderRequest + */ + public function setBusinessInfo($businessInfo) + { + $this->businessInfo = $businessInfo; + return $this; + } + /** + * Gets returnUrl + * + * @return string + */ + public function getReturnUrl() + { + return $this->returnUrl; + } + + /** + * Sets returnUrl + * + * @param string $returnUrl + * @return OrderRequest + */ + public function setReturnUrl($returnUrl) + { + $this->returnUrl = $returnUrl; + return $this; + } + /** + * Gets orderType + * + * @return string + */ + public function getOrderType() + { + return $this->orderType; + } + + /** + * Sets orderType + * + * @param string $orderType + * @return OrderRequest + */ + public function setOrderType($orderType) + { + $this->orderType = $orderType; + return $this; + } + /** + * Gets payerAccountName + * + * @return string + */ + public function getPayerAccountName() + { + return $this->payerAccountName; + } + + /** + * Sets payerAccountName + * + * @param string $payerAccountName + * @return OrderRequest + */ + public function setPayerAccountName($payerAccountName) + { + $this->payerAccountName = $payerAccountName; + return $this; + } + /** + * Gets payerAccountNo + * + * @return string + */ + public function getPayerAccountNo() + { + return $this->payerAccountNo; + } + + /** + * Sets payerAccountNo + * + * @param string $payerAccountNo + * @return OrderRequest + */ + public function setPayerAccountNo($payerAccountNo) + { + $this->payerAccountNo = $payerAccountNo; + return $this; + } + + public static function getOperationId() + { + return 'order'; + } + + +} diff --git a/lib/Service/Netpay/Model/OrderRequestMarshaller.php b/lib/Service/Netpay/Model/OrderRequestMarshaller.php new file mode 100644 index 0000000..2d8a6e3 --- /dev/null +++ b/lib/Service/Netpay/Model/OrderRequestMarshaller.php @@ -0,0 +1,137 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getBankAccountType() != null){ + $internalRequest->addParameter('bankAccountType', ObjectSerializer::sanitizeForSerialization($request->getBankAccountType(), 'string')); + } + if($request->getBankCode() != null){ + $internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string')); + } + if($request->getTerminalType() != null){ + $internalRequest->addParameter('terminalType', ObjectSerializer::sanitizeForSerialization($request->getTerminalType(), 'string')); + } + if($request->getPayerIp() != null){ + $internalRequest->addParameter('payerIp', ObjectSerializer::sanitizeForSerialization($request->getPayerIp(), 'string')); + } + if($request->getCsNotifyUrl() != null){ + $internalRequest->addParameter('csNotifyUrl', ObjectSerializer::sanitizeForSerialization($request->getCsNotifyUrl(), 'string')); + } + if($request->getBusinessInfo() != null){ + $internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string')); + } + if($request->getReturnUrl() != null){ + $internalRequest->addParameter('returnUrl', ObjectSerializer::sanitizeForSerialization($request->getReturnUrl(), 'string', 'url')); + } + if($request->getOrderType() != null){ + $internalRequest->addParameter('orderType', ObjectSerializer::sanitizeForSerialization($request->getOrderType(), 'string')); + } + if($request->getPayerAccountName() != null){ + $internalRequest->addParameter('payerAccountName', ObjectSerializer::sanitizeForSerialization($request->getPayerAccountName(), 'string')); + } + if($request->getPayerAccountNo() != null){ + $internalRequest->addParameter('payerAccountNo', ObjectSerializer::sanitizeForSerialization($request->getPayerAccountNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +OrderRequestMarshaller::__init(); diff --git a/lib/Service/Netpay/Model/OrderResponse.php b/lib/Service/Netpay/Model/OrderResponse.php new file mode 100644 index 0000000..3cca310 --- /dev/null +++ b/lib/Service/Netpay/Model/OrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OrderOrderResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Netpay/Model/OrderResponseUnMarshaller.php b/lib/Service/Netpay/Model/OrderResponseUnMarshaller.php new file mode 100644 index 0000000..0ae9c9b --- /dev/null +++ b/lib/Service/Netpay/Model/OrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return OrderSdkPayOrderRequest + */ + 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 OrderSdkPayOrderRequest + */ + 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 OrderSdkPayOrderRequest + */ + 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 OrderSdkPayOrderRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets expiredTime + * + * @return string + */ + public function getExpiredTime() + { + return $this->expiredTime; + } + + /** + * Sets expiredTime + * + * @param string $expiredTime + * @return OrderSdkPayOrderRequest + */ + 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 OrderSdkPayOrderRequest + */ + 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 OrderSdkPayOrderRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->goodsName; + } + + /** + * Sets goodsName + * + * @param string $goodsName + * @return OrderSdkPayOrderRequest + */ + public function setGoodsName($goodsName) + { + $this->goodsName = $goodsName; + return $this; + } + /** + * Gets fundProcessType + * + * @return string + */ + public function getFundProcessType() + { + return $this->fundProcessType; + } + + /** + * Sets fundProcessType + * + * @param string $fundProcessType + * @return OrderSdkPayOrderRequest + */ + public function setFundProcessType($fundProcessType) + { + $this->fundProcessType = $fundProcessType; + return $this; + } + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->cardType; + } + + /** + * Sets cardType + * + * @param string $cardType + * @return OrderSdkPayOrderRequest + */ + public function setCardType($cardType) + { + $this->cardType = $cardType; + return $this; + } + /** + * Gets bankAccountType + * + * @return string + */ + public function getBankAccountType() + { + return $this->bankAccountType; + } + + /** + * Sets bankAccountType + * + * @param string $bankAccountType + * @return OrderSdkPayOrderRequest + */ + public function setBankAccountType($bankAccountType) + { + $this->bankAccountType = $bankAccountType; + return $this; + } + /** + * Gets bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->bankCode; + } + + /** + * Sets bankCode + * + * @param string $bankCode + * @return OrderSdkPayOrderRequest + */ + public function setBankCode($bankCode) + { + $this->bankCode = $bankCode; + return $this; + } + /** + * Gets terminalType + * + * @return string + */ + public function getTerminalType() + { + return $this->terminalType; + } + + /** + * Sets terminalType + * + * @param string $terminalType + * @return OrderSdkPayOrderRequest + */ + public function setTerminalType($terminalType) + { + $this->terminalType = $terminalType; + return $this; + } + /** + * Gets payerIp + * + * @return string + */ + public function getPayerIp() + { + return $this->payerIp; + } + + /** + * Sets payerIp + * + * @param string $payerIp + * @return OrderSdkPayOrderRequest + */ + public function setPayerIp($payerIp) + { + $this->payerIp = $payerIp; + return $this; + } + /** + * Gets csUrl + * + * @return string + */ + public function getCsUrl() + { + return $this->csUrl; + } + + /** + * Sets csUrl + * + * @param string $csUrl + * @return OrderSdkPayOrderRequest + */ + public function setCsUrl($csUrl) + { + $this->csUrl = $csUrl; + return $this; + } + /** + * Gets businessInfo + * + * @return string + */ + public function getBusinessInfo() + { + return $this->businessInfo; + } + + /** + * Sets businessInfo + * + * @param string $businessInfo + * @return OrderSdkPayOrderRequest + */ + public function setBusinessInfo($businessInfo) + { + $this->businessInfo = $businessInfo; + return $this; + } + /** + * Gets redirectUrl + * + * @return string + */ + public function getRedirectUrl() + { + return $this->redirectUrl; + } + + /** + * Sets redirectUrl + * + * @param string $redirectUrl + * @return OrderSdkPayOrderRequest + */ + public function setRedirectUrl($redirectUrl) + { + $this->redirectUrl = $redirectUrl; + return $this; + } + + public static function getOperationId() + { + return 'orderSdkPayOrder'; + } + + +} diff --git a/lib/Service/Netpay/Model/OrderSdkPayOrderRequestMarshaller.php b/lib/Service/Netpay/Model/OrderSdkPayOrderRequestMarshaller.php new file mode 100644 index 0000000..c7a7383 --- /dev/null +++ b/lib/Service/Netpay/Model/OrderSdkPayOrderRequestMarshaller.php @@ -0,0 +1,128 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getOrderAmount() != null){ + $internalRequest->addParameter('orderAmount', ObjectSerializer::sanitizeForSerialization($request->getOrderAmount(), 'float')); + } + if($request->getExpiredTime() != null){ + $internalRequest->addParameter('expiredTime', ObjectSerializer::sanitizeForSerialization($request->getExpiredTime(), 'string', 'date-time')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getGoodsName() != null){ + $internalRequest->addParameter('goodsName', ObjectSerializer::sanitizeForSerialization($request->getGoodsName(), 'string')); + } + if($request->getFundProcessType() != null){ + $internalRequest->addParameter('fundProcessType', ObjectSerializer::sanitizeForSerialization($request->getFundProcessType(), 'string')); + } + if($request->getCardType() != null){ + $internalRequest->addParameter('cardType', ObjectSerializer::sanitizeForSerialization($request->getCardType(), 'string')); + } + if($request->getBankAccountType() != null){ + $internalRequest->addParameter('bankAccountType', ObjectSerializer::sanitizeForSerialization($request->getBankAccountType(), 'string')); + } + if($request->getBankCode() != null){ + $internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string')); + } + if($request->getTerminalType() != null){ + $internalRequest->addParameter('terminalType', ObjectSerializer::sanitizeForSerialization($request->getTerminalType(), 'string')); + } + if($request->getPayerIp() != null){ + $internalRequest->addParameter('payerIp', ObjectSerializer::sanitizeForSerialization($request->getPayerIp(), 'string')); + } + if($request->getCsUrl() != null){ + $internalRequest->addParameter('csUrl', ObjectSerializer::sanitizeForSerialization($request->getCsUrl(), 'string')); + } + if($request->getBusinessInfo() != null){ + $internalRequest->addParameter('businessInfo', ObjectSerializer::sanitizeForSerialization($request->getBusinessInfo(), 'string')); + } + if($request->getRedirectUrl() != null){ + $internalRequest->addParameter('redirectUrl', ObjectSerializer::sanitizeForSerialization($request->getRedirectUrl(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +OrderSdkPayOrderRequestMarshaller::__init(); diff --git a/lib/Service/Netpay/Model/OrderSdkPayOrderResponse.php b/lib/Service/Netpay/Model/OrderSdkPayOrderResponse.php new file mode 100644 index 0000000..7fdbb1f --- /dev/null +++ b/lib/Service/Netpay/Model/OrderSdkPayOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OrderSdkPayOrderSdkOrderResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Netpay/Model/OrderSdkPayOrderResponseUnMarshaller.php b/lib/Service/Netpay/Model/OrderSdkPayOrderResponseUnMarshaller.php new file mode 100644 index 0000000..1a11e09 --- /dev/null +++ b/lib/Service/Netpay/Model/OrderSdkPayOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +提供网银支付相关服务(支付下单等功能)

+ * + * OpenAPI spec version: 1.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\Netpay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * OrderSdkPayOrderSdkOrderResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrderSdkPayOrderSdkOrderResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrderSdkPayOrderSdkOrderResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string', + 'requestParam' => 'string', + 'scene' => 'string', + 'payChannel' => 'string', + 'bankCode' => 'string', + 'bankAppName' => 'string', + 'cardType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'uniqueOrderNo' => null, + 'requestParam' => null, + 'scene' => null, + 'payChannel' => null, + 'bankCode' => null, + 'bankAppName' => null, + 'cardType' => 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', + 'requestParam' => 'requestParam', + 'scene' => 'scene', + 'payChannel' => 'payChannel', + 'bankCode' => 'bankCode', + 'bankAppName' => 'bankAppName', + 'cardType' => 'cardType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'requestParam' => 'setRequestParam', + 'scene' => 'setScene', + 'payChannel' => 'setPayChannel', + 'bankCode' => 'setBankCode', + 'bankAppName' => 'setBankAppName', + 'cardType' => 'setCardType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'requestParam' => 'getRequestParam', + 'scene' => 'getScene', + 'payChannel' => 'getPayChannel', + 'bankCode' => 'getBankCode', + 'bankAppName' => 'getBankAppName', + 'cardType' => 'getCardType' + ]; + + /** + * 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['requestParam'] = isset($data['requestParam']) ? $data['requestParam'] : null; + $this->container['scene'] = isset($data['scene']) ? $data['scene'] : null; + $this->container['payChannel'] = isset($data['payChannel']) ? $data['payChannel'] : null; + $this->container['bankCode'] = isset($data['bankCode']) ? $data['bankCode'] : null; + $this->container['bankAppName'] = isset($data['bankAppName']) ? $data['bankAppName'] : null; + $this->container['cardType'] = isset($data['cardType']) ? $data['cardType'] : 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 requestParam + * + * @return string + */ + public function getRequestParam() + { + return $this->container['requestParam']; + } + + /** + * Sets requestParam + * + * @param string $requestParam 返回参数 + * + * @return $this + */ + public function setRequestParam($requestParam) + { + $this->container['requestParam'] = $requestParam; + + return $this; + } + + /** + * Gets scene + * + * @return string + */ + public function getScene() + { + return $this->container['scene']; + } + + /** + * Sets scene + * + * @param string $scene 场景类型 + * + * @return $this + */ + public function setScene($scene) + { + $this->container['scene'] = $scene; + + return $this; + } + + /** + * Gets payChannel + * + * @return string + */ + public function getPayChannel() + { + return $this->container['payChannel']; + } + + /** + * Sets payChannel + * + * @param string $payChannel 支付渠道 + * + * @return $this + */ + public function setPayChannel($payChannel) + { + $this->container['payChannel'] = $payChannel; + + 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 bankAppName + * + * @return string + */ + public function getBankAppName() + { + return $this->container['bankAppName']; + } + + /** + * Sets bankAppName + * + * @param string $bankAppName 银行标识 + * + * @return $this + */ + public function setBankAppName($bankAppName) + { + $this->container['bankAppName'] = $bankAppName; + + return $this; + } + + /** + * Gets cardType + * + * @return string + */ + public function getCardType() + { + return $this->container['cardType']; + } + + /** + * Sets cardType + * + * @param string $cardType 卡种类型 + * + * @return $this + */ + public function setCardType($cardType) + { + $this->container['cardType'] = $cardType; + + 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)); + } +} + + diff --git a/lib/Service/Netpay/NetpayClient.php b/lib/Service/Netpay/NetpayClient.php new file mode 100644 index 0000000..d939bc5 --- /dev/null +++ b/lib/Service/Netpay/NetpayClient.php @@ -0,0 +1,57 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\OrderRequest $request + * @return Model\OrderResponse + * @throws YopClientException + */ + public function order(Model\OrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\OrderRequestMarshaller::getInstance(), + Model\OrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\OrderSdkPayOrderRequest $request + * @return Model\OrderSdkPayOrderResponse + * @throws YopClientException + */ + public function orderSdkPayOrder(Model\OrderSdkPayOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\OrderSdkPayOrderRequestMarshaller::getInstance(), + Model\OrderSdkPayOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Netpay/NetpayClientBuilder.php b/lib/Service/Netpay/NetpayClientBuilder.php new file mode 100644 index 0000000..2880f3d --- /dev/null +++ b/lib/Service/Netpay/NetpayClientBuilder.php @@ -0,0 +1,69 @@ +register('order', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('orderSdkPayOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * NetpayClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new NetpayClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return NetpayClientBuilder + * @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 NetpayClientBuilder($clientParams); + } + +} +NetpayClientBuilder::__init(); diff --git a/lib/Service/Offline/Model/BindRequest.php b/lib/Service/Offline/Model/BindRequest.php new file mode 100644 index 0000000..4825aa6 --- /dev/null +++ b/lib/Service/Offline/Model/BindRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return BindRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'bind'; + } + + +} diff --git a/lib/Service/Offline/Model/BindRequestMarshaller.php b/lib/Service/Offline/Model/BindRequestMarshaller.php new file mode 100644 index 0000000..6e08aa9 --- /dev/null +++ b/lib/Service/Offline/Model/BindRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BindRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/BindRequestTerminalInfo.php b/lib/Service/Offline/Model/BindRequestTerminalInfo.php new file mode 100644 index 0000000..89c6f76 --- /dev/null +++ b/lib/Service/Offline/Model/BindRequestTerminalInfo.php @@ -0,0 +1,336 @@ + 'string', + 'serialNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'shopNo' => null, + 'serialNo' => 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 = [ + 'shopNo' => 'shopNo', + 'serialNo' => 'serialNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'shopNo' => 'setShopNo', + 'serialNo' => 'setSerialNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'shopNo' => 'getShopNo', + 'serialNo' => 'getSerialNo' + ]; + + /** + * 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['shopNo'] = isset($data['shopNo']) ? $data['shopNo'] : null; + $this->container['serialNo'] = isset($data['serialNo']) ? $data['serialNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['serialNo'] === null) { + $invalidProperties[] = "'serialNo' can't be null"; + } + 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 shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->container['shopNo']; + } + + /** + * Sets shopNo + * + * @param string $shopNo
网点编号
+ * + * @return $this + */ + public function setShopNo($shopNo) + { + $this->container['shopNo'] = $shopNo; + + return $this; + } + + /** + * Gets serialNo + * + * @return string + */ + public function getSerialNo() + { + return $this->container['serialNo']; + } + + /** + * Sets serialNo + * + * @param string $serialNo

终端序列号

+ * + * @return $this + */ + public function setSerialNo($serialNo) + { + $this->container['serialNo'] = $serialNo; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/BindResponse.php b/lib/Service/Offline/Model/BindResponse.php new file mode 100644 index 0000000..4b34579 --- /dev/null +++ b/lib/Service/Offline/Model/BindResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopBindTerminalResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/BindResponseTerminalInfo.php b/lib/Service/Offline/Model/BindResponseTerminalInfo.php new file mode 100644 index 0000000..ab18576 --- /dev/null +++ b/lib/Service/Offline/Model/BindResponseTerminalInfo.php @@ -0,0 +1,534 @@ + 'string', + 'terminalNo' => 'string', + 'shopName' => 'string', + 'message' => 'string', + 'shopNo' => 'string', + 'merchantNo' => 'string', + 'serialNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agentMerchantNo' => null, + 'terminalNo' => null, + 'shopName' => null, + 'message' => null, + 'shopNo' => null, + 'merchantNo' => null, + 'serialNo' => 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 = [ + 'agentMerchantNo' => 'agentMerchantNo', + 'terminalNo' => 'terminalNo', + 'shopName' => 'shopName', + 'message' => 'message', + 'shopNo' => 'shopNo', + 'merchantNo' => 'merchantNo', + 'serialNo' => 'serialNo', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agentMerchantNo' => 'setAgentMerchantNo', + 'terminalNo' => 'setTerminalNo', + 'shopName' => 'setShopName', + 'message' => 'setMessage', + 'shopNo' => 'setShopNo', + 'merchantNo' => 'setMerchantNo', + 'serialNo' => 'setSerialNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agentMerchantNo' => 'getAgentMerchantNo', + 'terminalNo' => 'getTerminalNo', + 'shopName' => 'getShopName', + 'message' => 'getMessage', + 'shopNo' => 'getShopNo', + 'merchantNo' => 'getMerchantNo', + 'serialNo' => 'getSerialNo', + '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['agentMerchantNo'] = isset($data['agentMerchantNo']) ? $data['agentMerchantNo'] : null; + $this->container['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null; + $this->container['shopName'] = isset($data['shopName']) ? $data['shopName'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['shopNo'] = isset($data['shopNo']) ? $data['shopNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['serialNo'] = isset($data['serialNo']) ? $data['serialNo'] : 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 = []; + + if ($this->container['agentMerchantNo'] === null) { + $invalidProperties[] = "'agentMerchantNo' can't be null"; + } + if ($this->container['terminalNo'] === null) { + $invalidProperties[] = "'terminalNo' can't be null"; + } + if ($this->container['shopName'] === null) { + $invalidProperties[] = "'shopName' can't be null"; + } + if ($this->container['shopNo'] === null) { + $invalidProperties[] = "'shopNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['serialNo'] === null) { + $invalidProperties[] = "'serialNo' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + 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 agentMerchantNo + * + * @return string + */ + public function getAgentMerchantNo() + { + return $this->container['agentMerchantNo']; + } + + /** + * Sets agentMerchantNo + * + * @param string $agentMerchantNo
采购商商编,指付款采购终端的商编
+ * + * @return $this + */ + public function setAgentMerchantNo($agentMerchantNo) + { + $this->container['agentMerchantNo'] = $agentMerchantNo; + + return $this; + } + + /** + * Gets terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->container['terminalNo']; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo
终端号
+ * + * @return $this + */ + public function setTerminalNo($terminalNo) + { + $this->container['terminalNo'] = $terminalNo; + + return $this; + } + + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->container['shopName']; + } + + /** + * Sets shopName + * + * @param string $shopName
网点名称
+ * + * @return $this + */ + public function setShopName($shopName) + { + $this->container['shopName'] = $shopName; + + 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 shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->container['shopNo']; + } + + /** + * Sets shopNo + * + * @param string $shopNo
网点编号
+ * + * @return $this + */ + public function setShopNo($shopNo) + { + $this->container['shopNo'] = $shopNo; + + 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 serialNo + * + * @return string + */ + public function getSerialNo() + { + return $this->container['serialNo']; + } + + /** + * Sets serialNo + * + * @param string $serialNo

终端序列号

+ * + * @return $this + */ + public function setSerialNo($serialNo) + { + $this->container['serialNo'] = $serialNo; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status
绑定/解绑状态
SUCCESS:成功
FAIL:失败

 

+ * + * @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)); + } +} + + diff --git a/lib/Service/Offline/Model/BindResponseUnMarshaller.php b/lib/Service/Offline/Model/BindResponseUnMarshaller.php new file mode 100644 index 0000000..38a998a --- /dev/null +++ b/lib/Service/Offline/Model/BindResponseUnMarshaller.php @@ -0,0 +1,39 @@ +address; + } + + /** + * Sets address + * + * @param string $address + * @return CreateShopRequest + */ + public function setAddress($address) + { + $this->address = $address; + return $this; + } + /** + * Gets province + * + * @return string + */ + public function getProvince() + { + return $this->province; + } + + /** + * Sets province + * + * @param string $province + * @return CreateShopRequest + */ + public function setProvince($province) + { + $this->province = $province; + return $this; + } + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->city; + } + + /** + * Sets city + * + * @param string $city + * @return CreateShopRequest + */ + public function setCity($city) + { + $this->city = $city; + return $this; + } + /** + * Gets district + * + * @return string + */ + public function getDistrict() + { + return $this->district; + } + + /** + * Sets district + * + * @param string $district + * @return CreateShopRequest + */ + public function setDistrict($district) + { + $this->district = $district; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return CreateShopRequest + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->shopName; + } + + /** + * Sets shopName + * + * @param string $shopName + * @return CreateShopRequest + */ + public function setShopName($shopName) + { + $this->shopName = $shopName; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return CreateShopRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets linkman + * + * @return string + */ + public function getLinkman() + { + return $this->linkman; + } + + /** + * Sets linkman + * + * @param string $linkman + * @return CreateShopRequest + */ + public function setLinkman($linkman) + { + $this->linkman = $linkman; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CreateShopRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'createShop'; + } + + +} diff --git a/lib/Service/Offline/Model/CreateShopRequestMarshaller.php b/lib/Service/Offline/Model/CreateShopRequestMarshaller.php new file mode 100644 index 0000000..aac4aec --- /dev/null +++ b/lib/Service/Offline/Model/CreateShopRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getAddress() != null){ + $internalRequest->addParameter('address', ObjectSerializer::sanitizeForSerialization($request->getAddress(), 'string')); + } + if($request->getProvince() != null){ + $internalRequest->addParameter('province', ObjectSerializer::sanitizeForSerialization($request->getProvince(), 'string')); + } + if($request->getCity() != null){ + $internalRequest->addParameter('city', ObjectSerializer::sanitizeForSerialization($request->getCity(), 'string')); + } + if($request->getDistrict() != null){ + $internalRequest->addParameter('district', ObjectSerializer::sanitizeForSerialization($request->getDistrict(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getShopName() != null){ + $internalRequest->addParameter('shopName', ObjectSerializer::sanitizeForSerialization($request->getShopName(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getLinkman() != null){ + $internalRequest->addParameter('linkman', ObjectSerializer::sanitizeForSerialization($request->getLinkman(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CreateShopRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/CreateShopResponse.php b/lib/Service/Offline/Model/CreateShopResponse.php new file mode 100644 index 0000000..8877037 --- /dev/null +++ b/lib/Service/Offline/Model/CreateShopResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopCreateShopRspDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/CreateShopResponseUnMarshaller.php b/lib/Service/Offline/Model/CreateShopResponseUnMarshaller.php new file mode 100644 index 0000000..c55e8f6 --- /dev/null +++ b/lib/Service/Offline/Model/CreateShopResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return GetShopRequest + */ + 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 GetShopRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->shopName; + } + + /** + * Sets shopName + * + * @param string $shopName + * @return GetShopRequest + */ + public function setShopName($shopName) + { + $this->shopName = $shopName; + return $this; + } + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->shopNo; + } + + /** + * Sets shopNo + * + * @param string $shopNo + * @return GetShopRequest + */ + public function setShopNo($shopNo) + { + $this->shopNo = $shopNo; + return $this; + } + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->status; + } + + /** + * Sets status + * + * @param string $status + * @return GetShopRequest + */ + public function setStatus($status) + { + $this->status = $status; + return $this; + } + + public static function getOperationId() + { + return 'getShop'; + } + + +} diff --git a/lib/Service/Offline/Model/GetShopRequestMarshaller.php b/lib/Service/Offline/Model/GetShopRequestMarshaller.php new file mode 100644 index 0000000..fa36feb --- /dev/null +++ b/lib/Service/Offline/Model/GetShopRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getShopName() != null){ + $internalRequest->addParameter('shopName', ObjectSerializer::sanitizeForSerialization($request->getShopName(), 'string')); + } + if($request->getShopNo() != null){ + $internalRequest->addParameter('shopNo', ObjectSerializer::sanitizeForSerialization($request->getShopNo(), 'string')); + } + if($request->getStatus() != null){ + $internalRequest->addParameter('status', ObjectSerializer::sanitizeForSerialization($request->getStatus(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +GetShopRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/GetShopResponse.php b/lib/Service/Offline/Model/GetShopResponse.php new file mode 100644 index 0000000..cb6014e --- /dev/null +++ b/lib/Service/Offline/Model/GetShopResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopGetShopRspDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/GetShopResponseUnMarshaller.php b/lib/Service/Offline/Model/GetShopResponseUnMarshaller.php new file mode 100644 index 0000000..ba257a3 --- /dev/null +++ b/lib/Service/Offline/Model/GetShopResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'districtName' => 'string', + 'city' => 'string', + 'mobile' => 'string', + 'shopName' => 'string', + 'updateTime' => '\DateTime', + 'linkman' => 'string', + 'province' => 'string', + 'cityName' => 'string', + 'createTime' => '\DateTime', + 'district' => 'string', + 'provinceName' => 'string', + 'shopNo' => 'string', + 'merchantNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'address' => null, + 'districtName' => null, + 'city' => null, + 'mobile' => null, + 'shopName' => null, + 'updateTime' => 'date-time', + 'linkman' => null, + 'province' => null, + 'cityName' => null, + 'createTime' => 'date-time', + 'district' => null, + 'provinceName' => null, + 'shopNo' => null, + 'merchantNo' => 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 = [ + 'address' => 'address', + 'districtName' => 'districtName', + 'city' => 'city', + 'mobile' => 'mobile', + 'shopName' => 'shopName', + 'updateTime' => 'updateTime', + 'linkman' => 'linkman', + 'province' => 'province', + 'cityName' => 'cityName', + 'createTime' => 'createTime', + 'district' => 'district', + 'provinceName' => 'provinceName', + 'shopNo' => 'shopNo', + 'merchantNo' => 'merchantNo', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'address' => 'setAddress', + 'districtName' => 'setDistrictName', + 'city' => 'setCity', + 'mobile' => 'setMobile', + 'shopName' => 'setShopName', + 'updateTime' => 'setUpdateTime', + 'linkman' => 'setLinkman', + 'province' => 'setProvince', + 'cityName' => 'setCityName', + 'createTime' => 'setCreateTime', + 'district' => 'setDistrict', + 'provinceName' => 'setProvinceName', + 'shopNo' => 'setShopNo', + 'merchantNo' => 'setMerchantNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'address' => 'getAddress', + 'districtName' => 'getDistrictName', + 'city' => 'getCity', + 'mobile' => 'getMobile', + 'shopName' => 'getShopName', + 'updateTime' => 'getUpdateTime', + 'linkman' => 'getLinkman', + 'province' => 'getProvince', + 'cityName' => 'getCityName', + 'createTime' => 'getCreateTime', + 'district' => 'getDistrict', + 'provinceName' => 'getProvinceName', + 'shopNo' => 'getShopNo', + 'merchantNo' => 'getMerchantNo', + '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['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['districtName'] = isset($data['districtName']) ? $data['districtName'] : null; + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null; + $this->container['shopName'] = isset($data['shopName']) ? $data['shopName'] : null; + $this->container['updateTime'] = isset($data['updateTime']) ? $data['updateTime'] : null; + $this->container['linkman'] = isset($data['linkman']) ? $data['linkman'] : null; + $this->container['province'] = isset($data['province']) ? $data['province'] : null; + $this->container['cityName'] = isset($data['cityName']) ? $data['cityName'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['district'] = isset($data['district']) ? $data['district'] : null; + $this->container['provinceName'] = isset($data['provinceName']) ? $data['provinceName'] : null; + $this->container['shopNo'] = isset($data['shopNo']) ? $data['shopNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 = []; + + if ($this->container['address'] === null) { + $invalidProperties[] = "'address' can't be null"; + } + if ($this->container['districtName'] === null) { + $invalidProperties[] = "'districtName' can't be null"; + } + if ($this->container['city'] === null) { + $invalidProperties[] = "'city' can't be null"; + } + if ($this->container['mobile'] === null) { + $invalidProperties[] = "'mobile' can't be null"; + } + if ($this->container['shopName'] === null) { + $invalidProperties[] = "'shopName' can't be null"; + } + if ($this->container['updateTime'] === null) { + $invalidProperties[] = "'updateTime' can't be null"; + } + if ($this->container['linkman'] === null) { + $invalidProperties[] = "'linkman' can't be null"; + } + if ($this->container['province'] === null) { + $invalidProperties[] = "'province' can't be null"; + } + if ($this->container['cityName'] === null) { + $invalidProperties[] = "'cityName' can't be null"; + } + if ($this->container['createTime'] === null) { + $invalidProperties[] = "'createTime' can't be null"; + } + if ($this->container['district'] === null) { + $invalidProperties[] = "'district' can't be null"; + } + if ($this->container['provinceName'] === null) { + $invalidProperties[] = "'provinceName' can't be null"; + } + if ($this->container['shopNo'] === null) { + $invalidProperties[] = "'shopNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['status'] === null) { + $invalidProperties[] = "'status' can't be null"; + } + 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 address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address
网点详细地址
+ * + * @return $this + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets districtName + * + * @return string + */ + public function getDistrictName() + { + return $this->container['districtName']; + } + + /** + * Sets districtName + * + * @param string $districtName
网点所在区
+ * + * @return $this + */ + public function setDistrictName($districtName) + { + $this->container['districtName'] = $districtName; + + return $this; + } + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city
网点所在市编码
+ * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->container['mobile']; + } + + /** + * Sets mobile + * + * @param string $mobile
联系手机
+ * + * @return $this + */ + public function setMobile($mobile) + { + $this->container['mobile'] = $mobile; + + return $this; + } + + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->container['shopName']; + } + + /** + * Sets shopName + * + * @param string $shopName
网点名称
+ * + * @return $this + */ + public function setShopName($shopName) + { + $this->container['shopName'] = $shopName; + + return $this; + } + + /** + * Gets updateTime + * + * @return \DateTime + */ + public function getUpdateTime() + { + return $this->container['updateTime']; + } + + /** + * Sets updateTime + * + * @param \DateTime $updateTime
最后修改时间
+ * + * @return $this + */ + public function setUpdateTime($updateTime) + { + $this->container['updateTime'] = $updateTime; + + return $this; + } + + /** + * Gets linkman + * + * @return string + */ + public function getLinkman() + { + return $this->container['linkman']; + } + + /** + * Sets linkman + * + * @param string $linkman
联系人
+ * + * @return $this + */ + public function setLinkman($linkman) + { + $this->container['linkman'] = $linkman; + + return $this; + } + + /** + * Gets province + * + * @return string + */ + public function getProvince() + { + return $this->container['province']; + } + + /** + * Sets province + * + * @param string $province
网点所在省编码
+ * + * @return $this + */ + public function setProvince($province) + { + $this->container['province'] = $province; + + return $this; + } + + /** + * Gets cityName + * + * @return string + */ + public function getCityName() + { + return $this->container['cityName']; + } + + /** + * Sets cityName + * + * @param string $cityName
网点所在市
+ * + * @return $this + */ + public function setCityName($cityName) + { + $this->container['cityName'] = $cityName; + + return $this; + } + + /** + * Gets createTime + * + * @return \DateTime + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param \DateTime $createTime
创建时间
+ * + * @return $this + */ + public function setCreateTime($createTime) + { + $this->container['createTime'] = $createTime; + + return $this; + } + + /** + * Gets district + * + * @return string + */ + public function getDistrict() + { + return $this->container['district']; + } + + /** + * Sets district + * + * @param string $district
网点所在区编码
+ * + * @return $this + */ + public function setDistrict($district) + { + $this->container['district'] = $district; + + return $this; + } + + /** + * Gets provinceName + * + * @return string + */ + public function getProvinceName() + { + return $this->container['provinceName']; + } + + /** + * Sets provinceName + * + * @param string $provinceName
网点所在省
+ * + * @return $this + */ + public function setProvinceName($provinceName) + { + $this->container['provinceName'] = $provinceName; + + return $this; + } + + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->container['shopNo']; + } + + /** + * Sets shopNo + * + * @param string $shopNo
网点编号
+ * + * @return $this + */ + public function setShopNo($shopNo) + { + $this->container['shopNo'] = $shopNo; + + 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
网点状态
枚举值:
PERMIT:活跃
FORBID:关闭
+ * + * @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)); + } +} + + diff --git a/lib/Service/Offline/Model/OperateShopRequest.php b/lib/Service/Offline/Model/OperateShopRequest.php new file mode 100644 index 0000000..5a00730 --- /dev/null +++ b/lib/Service/Offline/Model/OperateShopRequest.php @@ -0,0 +1,117 @@ +operateType; + } + + /** + * Sets operateType + * + * @param string $operateType + * @return OperateShopRequest + */ + public function setOperateType($operateType) + { + $this->operateType = $operateType; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return OperateShopRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->shopNo; + } + + /** + * Sets shopNo + * + * @param string $shopNo + * @return OperateShopRequest + */ + public function setShopNo($shopNo) + { + $this->shopNo = $shopNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return OperateShopRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'operateShop'; + } + + +} diff --git a/lib/Service/Offline/Model/OperateShopRequestMarshaller.php b/lib/Service/Offline/Model/OperateShopRequestMarshaller.php new file mode 100644 index 0000000..2ab32ea --- /dev/null +++ b/lib/Service/Offline/Model/OperateShopRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOperateType() != null){ + $internalRequest->addParameter('operateType', ObjectSerializer::sanitizeForSerialization($request->getOperateType(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getShopNo() != null){ + $internalRequest->addParameter('shopNo', ObjectSerializer::sanitizeForSerialization($request->getShopNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +OperateShopRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/OperateShopResponse.php b/lib/Service/Offline/Model/OperateShopResponse.php new file mode 100644 index 0000000..fc5b0f6 --- /dev/null +++ b/lib/Service/Offline/Model/OperateShopResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopBaseRspDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/OperateShopResponseUnMarshaller.php b/lib/Service/Offline/Model/OperateShopResponseUnMarshaller.php new file mode 100644 index 0000000..4bfbacc --- /dev/null +++ b/lib/Service/Offline/Model/OperateShopResponseUnMarshaller.php @@ -0,0 +1,39 @@ +agentMerchantNo; + } + + /** + * Sets agentMerchantNo + * + * @param string $agentMerchantNo + * @return QueryAgentListRequest + */ + public function setAgentMerchantNo($agentMerchantNo) + { + $this->agentMerchantNo = $agentMerchantNo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return QueryAgentListRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->terminalNo; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo + * @return QueryAgentListRequest + */ + public function setTerminalNo($terminalNo) + { + $this->terminalNo = $terminalNo; + return $this; + } + /** + * Gets serialNo + * + * @return string + */ + public function getSerialNo() + { + return $this->serialNo; + } + + /** + * Sets serialNo + * + * @param string $serialNo + * @return QueryAgentListRequest + */ + public function setSerialNo($serialNo) + { + $this->serialNo = $serialNo; + return $this; + } + + public static function getOperationId() + { + return 'queryAgentList'; + } + + +} diff --git a/lib/Service/Offline/Model/QueryAgentListRequestMarshaller.php b/lib/Service/Offline/Model/QueryAgentListRequestMarshaller.php new file mode 100644 index 0000000..12c8903 --- /dev/null +++ b/lib/Service/Offline/Model/QueryAgentListRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getAgentMerchantNo() != null){ + $internalRequest->addParameter('agentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getAgentMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getTerminalNo() != null){ + $internalRequest->addParameter('terminalNo', ObjectSerializer::sanitizeForSerialization($request->getTerminalNo(), 'string')); + } + if($request->getSerialNo() != null){ + $internalRequest->addParameter('serialNo', ObjectSerializer::sanitizeForSerialization($request->getSerialNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryAgentListRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/QueryAgentListResponse.php b/lib/Service/Offline/Model/QueryAgentListResponse.php new file mode 100644 index 0000000..3eb51af --- /dev/null +++ b/lib/Service/Offline/Model/QueryAgentListResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryAgentRspDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/QueryAgentListResponseUnMarshaller.php b/lib/Service/Offline/Model/QueryAgentListResponseUnMarshaller.php new file mode 100644 index 0000000..2d85012 --- /dev/null +++ b/lib/Service/Offline/Model/QueryAgentListResponseUnMarshaller.php @@ -0,0 +1,39 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return QueryOrderInfoRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return QueryOrderInfoRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'queryOrderInfo'; + } + + +} diff --git a/lib/Service/Offline/Model/QueryOrderInfoRequestMarshaller.php b/lib/Service/Offline/Model/QueryOrderInfoRequestMarshaller.php new file mode 100644 index 0000000..9d769b6 --- /dev/null +++ b/lib/Service/Offline/Model/QueryOrderInfoRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryOrderInfoRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/QueryOrderInfoResponse.php b/lib/Service/Offline/Model/QueryOrderInfoResponse.php new file mode 100644 index 0000000..5806332 --- /dev/null +++ b/lib/Service/Offline/Model/QueryOrderInfoResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryOrderInfoRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/QueryOrderInfoResponseUnMarshaller.php b/lib/Service/Offline/Model/QueryOrderInfoResponseUnMarshaller.php new file mode 100644 index 0000000..b3a527f --- /dev/null +++ b/lib/Service/Offline/Model/QueryOrderInfoResponseUnMarshaller.php @@ -0,0 +1,39 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return QueryPosTrxInfoRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return QueryPosTrxInfoRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'queryPosTrxInfo'; + } + + +} diff --git a/lib/Service/Offline/Model/QueryPosTrxInfoRequestMarshaller.php b/lib/Service/Offline/Model/QueryPosTrxInfoRequestMarshaller.php new file mode 100644 index 0000000..874021e --- /dev/null +++ b/lib/Service/Offline/Model/QueryPosTrxInfoRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryPosTrxInfoRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/QueryPosTrxInfoResponse.php b/lib/Service/Offline/Model/QueryPosTrxInfoResponse.php new file mode 100644 index 0000000..3508378 --- /dev/null +++ b/lib/Service/Offline/Model/QueryPosTrxInfoResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryOrderInfoRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/QueryPosTrxInfoResponseUnMarshaller.php b/lib/Service/Offline/Model/QueryPosTrxInfoResponseUnMarshaller.php new file mode 100644 index 0000000..89d6eeb --- /dev/null +++ b/lib/Service/Offline/Model/QueryPosTrxInfoResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return QueryShopBindListRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->shopNo; + } + + /** + * Sets shopNo + * + * @param string $shopNo + * @return QueryShopBindListRequest + */ + public function setShopNo($shopNo) + { + $this->shopNo = $shopNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return QueryShopBindListRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'queryShopBindList'; + } + + +} diff --git a/lib/Service/Offline/Model/QueryShopBindListRequestMarshaller.php b/lib/Service/Offline/Model/QueryShopBindListRequestMarshaller.php new file mode 100644 index 0000000..4f7e073 --- /dev/null +++ b/lib/Service/Offline/Model/QueryShopBindListRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getShopNo() != null){ + $internalRequest->addParameter('shopNo', ObjectSerializer::sanitizeForSerialization($request->getShopNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryShopBindListRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/QueryShopBindListResponse.php b/lib/Service/Offline/Model/QueryShopBindListResponse.php new file mode 100644 index 0000000..41e05ba --- /dev/null +++ b/lib/Service/Offline/Model/QueryShopBindListResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryShopBindRspDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/QueryShopBindListResponseUnMarshaller.php b/lib/Service/Offline/Model/QueryShopBindListResponseUnMarshaller.php new file mode 100644 index 0000000..96f35a8 --- /dev/null +++ b/lib/Service/Offline/Model/QueryShopBindListResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return UnbindRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'unbind'; + } + + +} diff --git a/lib/Service/Offline/Model/UnbindRequestMarshaller.php b/lib/Service/Offline/Model/UnbindRequestMarshaller.php new file mode 100644 index 0000000..2019761 --- /dev/null +++ b/lib/Service/Offline/Model/UnbindRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UnbindRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/UnbindResponse.php b/lib/Service/Offline/Model/UnbindResponse.php new file mode 100644 index 0000000..510c25a --- /dev/null +++ b/lib/Service/Offline/Model/UnbindResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopUnBindTerminalResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/UnbindResponseUnMarshaller.php b/lib/Service/Offline/Model/UnbindResponseUnMarshaller.php new file mode 100644 index 0000000..934f5ed --- /dev/null +++ b/lib/Service/Offline/Model/UnbindResponseUnMarshaller.php @@ -0,0 +1,39 @@ +address; + } + + /** + * Sets address + * + * @param string $address + * @return UpdateShopRequest + */ + public function setAddress($address) + { + $this->address = $address; + return $this; + } + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->mobile; + } + + /** + * Sets mobile + * + * @param string $mobile + * @return UpdateShopRequest + */ + public function setMobile($mobile) + { + $this->mobile = $mobile; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return UpdateShopRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->shopNo; + } + + /** + * Sets shopNo + * + * @param string $shopNo + * @return UpdateShopRequest + */ + public function setShopNo($shopNo) + { + $this->shopNo = $shopNo; + return $this; + } + /** + * Gets linkman + * + * @return string + */ + public function getLinkman() + { + return $this->linkman; + } + + /** + * Sets linkman + * + * @param string $linkman + * @return UpdateShopRequest + */ + public function setLinkman($linkman) + { + $this->linkman = $linkman; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return UpdateShopRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'updateShop'; + } + + +} diff --git a/lib/Service/Offline/Model/UpdateShopRequestMarshaller.php b/lib/Service/Offline/Model/UpdateShopRequestMarshaller.php new file mode 100644 index 0000000..716f305 --- /dev/null +++ b/lib/Service/Offline/Model/UpdateShopRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getAddress() != null){ + $internalRequest->addParameter('address', ObjectSerializer::sanitizeForSerialization($request->getAddress(), 'string')); + } + if($request->getMobile() != null){ + $internalRequest->addParameter('mobile', ObjectSerializer::sanitizeForSerialization($request->getMobile(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getShopNo() != null){ + $internalRequest->addParameter('shopNo', ObjectSerializer::sanitizeForSerialization($request->getShopNo(), 'string')); + } + if($request->getLinkman() != null){ + $internalRequest->addParameter('linkman', ObjectSerializer::sanitizeForSerialization($request->getLinkman(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UpdateShopRequestMarshaller::__init(); diff --git a/lib/Service/Offline/Model/UpdateShopResponse.php b/lib/Service/Offline/Model/UpdateShopResponse.php new file mode 100644 index 0000000..80af87d --- /dev/null +++ b/lib/Service/Offline/Model/UpdateShopResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopBaseRspDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Offline/Model/UpdateShopResponseUnMarshaller.php b/lib/Service/Offline/Model/UpdateShopResponseUnMarshaller.php new file mode 100644 index 0000000..098e2ad --- /dev/null +++ b/lib/Service/Offline/Model/UpdateShopResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'retMsg' => 'string', + 'timestamp' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'retCode' => null, + 'retMsg' => null, + 'timestamp' => '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 = [ + 'retCode' => 'retCode', + 'retMsg' => 'retMsg', + 'timestamp' => 'timestamp' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg', + 'timestamp' => 'setTimestamp' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg', + 'timestamp' => 'getTimestamp' + ]; + + /** + * 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['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + $this->container['timestamp'] = isset($data['timestamp']) ? $data['timestamp'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + if ($this->container['retMsg'] === null) { + $invalidProperties[] = "'retMsg' can't be null"; + } + if ($this->container['timestamp'] === null) { + $invalidProperties[] = "'timestamp' can't be null"; + } + 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 retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + return $this; + } + + /** + * Gets timestamp + * + * @return \DateTime + */ + public function getTimestamp() + { + return $this->container['timestamp']; + } + + /** + * Sets timestamp + * + * @param \DateTime $timestamp

时间戳

+ * + * @return $this + */ + public function setTimestamp($timestamp) + { + $this->container['timestamp'] = $timestamp; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopBindTerminalRequestDto.php b/lib/Service/Offline/Model/YopBindTerminalRequestDto.php new file mode 100644 index 0000000..ee9ced0 --- /dev/null +++ b/lib/Service/Offline/Model/YopBindTerminalRequestDto.php @@ -0,0 +1,369 @@ + 'string', + 'terminalInfo' => '\Yeepay\Yop\Sdk\Service\Offline\Model\BindRequestTerminalInfo[]', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'parentMerchantNo' => null, + 'terminalInfo' => null, + 'merchantNo' => 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 = [ + 'parentMerchantNo' => 'parentMerchantNo', + 'terminalInfo' => 'terminalInfo', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'parentMerchantNo' => 'setParentMerchantNo', + 'terminalInfo' => 'setTerminalInfo', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'parentMerchantNo' => 'getParentMerchantNo', + 'terminalInfo' => 'getTerminalInfo', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['terminalInfo'] = isset($data['terminalInfo']) ? $data['terminalInfo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminalInfo'] === null) { + $invalidProperties[] = "'terminalInfo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo
发起方商户编号。*标准商户收付款方案中此参数与收款商户编号一致;*平台商户收付款方案中此参数为平台商商户编号;*服务商解决方案中,①标准商户收款时,该参数为标准商户商编 ②平台商收款或平台商入驻商户收款时,该参数为平台商商编
+ * + * @return $this + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->container['parentMerchantNo'] = $parentMerchantNo; + + return $this; + } + + /** + * Gets terminalInfo + * + * @return \Yeepay\Yop\Sdk\Service\Offline\Model\BindRequestTerminalInfo[] + */ + public function getTerminalInfo() + { + return $this->container['terminalInfo']; + } + + /** + * Sets terminalInfo + * + * @param \Yeepay\Yop\Sdk\Service\Offline\Model\BindRequestTerminalInfo[] $terminalInfo
终端绑机信息列表
+ * + * @return $this + */ + public function setTerminalInfo($terminalInfo) + { + $this->container['terminalInfo'] = $terminalInfo; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopBindTerminalResponseDto.php b/lib/Service/Offline/Model/YopBindTerminalResponseDto.php new file mode 100644 index 0000000..e73921d --- /dev/null +++ b/lib/Service/Offline/Model/YopBindTerminalResponseDto.php @@ -0,0 +1,372 @@ + '\Yeepay\Yop\Sdk\Service\Offline\Model\BindResponseTerminalInfo[]', + 'retCode' => 'string', + 'retMsg' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bindResponseTerminalInfoList' => null, + 'retCode' => null, + 'retMsg' => 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 = [ + 'bindResponseTerminalInfoList' => 'bindResponseTerminalInfoList', + 'retCode' => 'retCode', + 'retMsg' => 'retMsg' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bindResponseTerminalInfoList' => 'setBindResponseTerminalInfoList', + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bindResponseTerminalInfoList' => 'getBindResponseTerminalInfoList', + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg' + ]; + + /** + * 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['bindResponseTerminalInfoList'] = isset($data['bindResponseTerminalInfoList']) ? $data['bindResponseTerminalInfoList'] : null; + $this->container['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bindResponseTerminalInfoList'] === null) { + $invalidProperties[] = "'bindResponseTerminalInfoList' can't be null"; + } + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + if ($this->container['retMsg'] === null) { + $invalidProperties[] = "'retMsg' can't be null"; + } + 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 bindResponseTerminalInfoList + * + * @return \Yeepay\Yop\Sdk\Service\Offline\Model\BindResponseTerminalInfo[] + */ + public function getBindResponseTerminalInfoList() + { + return $this->container['bindResponseTerminalInfoList']; + } + + /** + * Sets bindResponseTerminalInfoList + * + * @param \Yeepay\Yop\Sdk\Service\Offline\Model\BindResponseTerminalInfo[] $bindResponseTerminalInfoList
终端绑机信息列表
+ * + * @return $this + */ + public function setBindResponseTerminalInfoList($bindResponseTerminalInfoList) + { + $this->container['bindResponseTerminalInfoList'] = $bindResponseTerminalInfoList; + + return $this; + } + + /** + * Gets retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopCreateShopRspDTO.php b/lib/Service/Offline/Model/YopCreateShopRspDTO.php new file mode 100644 index 0000000..3edf606 --- /dev/null +++ b/lib/Service/Offline/Model/YopCreateShopRspDTO.php @@ -0,0 +1,372 @@ + 'string', + 'retMsg' => 'string', + 'shopNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'retCode' => null, + 'retMsg' => null, + 'shopNo' => 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 = [ + 'retCode' => 'retCode', + 'retMsg' => 'retMsg', + 'shopNo' => 'shopNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg', + 'shopNo' => 'setShopNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg', + 'shopNo' => 'getShopNo' + ]; + + /** + * 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['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + $this->container['shopNo'] = isset($data['shopNo']) ? $data['shopNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + if ($this->container['retMsg'] === null) { + $invalidProperties[] = "'retMsg' can't be null"; + } + if ($this->container['shopNo'] === null) { + $invalidProperties[] = "'shopNo' can't be null"; + } + 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 retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + return $this; + } + + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->container['shopNo']; + } + + /** + * Sets shopNo + * + * @param string $shopNo
网点编号
+ * + * @return $this + */ + public function setShopNo($shopNo) + { + $this->container['shopNo'] = $shopNo; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopGetShopRspDTO.php b/lib/Service/Offline/Model/YopGetShopRspDTO.php new file mode 100644 index 0000000..0686ace --- /dev/null +++ b/lib/Service/Offline/Model/YopGetShopRspDTO.php @@ -0,0 +1,372 @@ + 'string', + 'retMsg' => 'string', + 'shopInfos' => '\Yeepay\Yop\Sdk\Service\Offline\Model\GetShopRspDTO[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'retCode' => null, + 'retMsg' => null, + 'shopInfos' => 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 = [ + 'retCode' => 'retCode', + 'retMsg' => 'retMsg', + 'shopInfos' => 'shopInfos' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg', + 'shopInfos' => 'setShopInfos' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg', + 'shopInfos' => 'getShopInfos' + ]; + + /** + * 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['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + $this->container['shopInfos'] = isset($data['shopInfos']) ? $data['shopInfos'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + if ($this->container['retMsg'] === null) { + $invalidProperties[] = "'retMsg' can't be null"; + } + if ($this->container['shopInfos'] === null) { + $invalidProperties[] = "'shopInfos' can't be null"; + } + 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 retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + return $this; + } + + /** + * Gets shopInfos + * + * @return \Yeepay\Yop\Sdk\Service\Offline\Model\GetShopRspDTO[] + */ + public function getShopInfos() + { + return $this->container['shopInfos']; + } + + /** + * Sets shopInfos + * + * @param \Yeepay\Yop\Sdk\Service\Offline\Model\GetShopRspDTO[] $shopInfos

网点信息

+ * + * @return $this + */ + public function setShopInfos($shopInfos) + { + $this->container['shopInfos'] = $shopInfos; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopQueryAgentResponse.php b/lib/Service/Offline/Model/YopQueryAgentResponse.php new file mode 100644 index 0000000..6542b6e --- /dev/null +++ b/lib/Service/Offline/Model/YopQueryAgentResponse.php @@ -0,0 +1,405 @@ + 'string', + 'terminalNo' => 'string', + 'merchantNo' => 'string', + 'serialNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agentMerchantNo' => null, + 'terminalNo' => null, + 'merchantNo' => null, + 'serialNo' => 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 = [ + 'agentMerchantNo' => 'agentMerchantNo', + 'terminalNo' => 'terminalNo', + 'merchantNo' => 'merchantNo', + 'serialNo' => 'serialNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agentMerchantNo' => 'setAgentMerchantNo', + 'terminalNo' => 'setTerminalNo', + 'merchantNo' => 'setMerchantNo', + 'serialNo' => 'setSerialNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agentMerchantNo' => 'getAgentMerchantNo', + 'terminalNo' => 'getTerminalNo', + 'merchantNo' => 'getMerchantNo', + 'serialNo' => 'getSerialNo' + ]; + + /** + * 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['agentMerchantNo'] = isset($data['agentMerchantNo']) ? $data['agentMerchantNo'] : null; + $this->container['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['serialNo'] = isset($data['serialNo']) ? $data['serialNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['agentMerchantNo'] === null) { + $invalidProperties[] = "'agentMerchantNo' can't be null"; + } + if ($this->container['terminalNo'] === null) { + $invalidProperties[] = "'terminalNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['serialNo'] === null) { + $invalidProperties[] = "'serialNo' can't be null"; + } + 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 agentMerchantNo + * + * @return string + */ + public function getAgentMerchantNo() + { + return $this->container['agentMerchantNo']; + } + + /** + * Sets agentMerchantNo + * + * @param string $agentMerchantNo
终端所属代理商商编,指付款采购终端的商编
+ * + * @return $this + */ + public function setAgentMerchantNo($agentMerchantNo) + { + $this->container['agentMerchantNo'] = $agentMerchantNo; + + return $this; + } + + /** + * Gets terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->container['terminalNo']; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo
终端号
+ * + * @return $this + */ + public function setTerminalNo($terminalNo) + { + $this->container['terminalNo'] = $terminalNo; + + 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 serialNo + * + * @return string + */ + public function getSerialNo() + { + return $this->container['serialNo']; + } + + /** + * Sets serialNo + * + * @param string $serialNo

终端序列号

+ * + * @return $this + */ + public function setSerialNo($serialNo) + { + $this->container['serialNo'] = $serialNo; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopQueryAgentRspDto.php b/lib/Service/Offline/Model/YopQueryAgentRspDto.php new file mode 100644 index 0000000..3a58091 --- /dev/null +++ b/lib/Service/Offline/Model/YopQueryAgentRspDto.php @@ -0,0 +1,372 @@ + '\Yeepay\Yop\Sdk\Service\Offline\Model\YopQueryAgentResponse[]', + 'retCode' => 'string', + 'retMsg' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'yopQueryAgentResponses' => null, + 'retCode' => null, + 'retMsg' => 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 = [ + 'yopQueryAgentResponses' => 'yopQueryAgentResponses', + 'retCode' => 'retCode', + 'retMsg' => 'retMsg' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'yopQueryAgentResponses' => 'setYopQueryAgentResponses', + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'yopQueryAgentResponses' => 'getYopQueryAgentResponses', + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg' + ]; + + /** + * 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['yopQueryAgentResponses'] = isset($data['yopQueryAgentResponses']) ? $data['yopQueryAgentResponses'] : null; + $this->container['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['yopQueryAgentResponses'] === null) { + $invalidProperties[] = "'yopQueryAgentResponses' can't be null"; + } + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + if ($this->container['retMsg'] === null) { + $invalidProperties[] = "'retMsg' can't be null"; + } + 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 yopQueryAgentResponses + * + * @return \Yeepay\Yop\Sdk\Service\Offline\Model\YopQueryAgentResponse[] + */ + public function getYopQueryAgentResponses() + { + return $this->container['yopQueryAgentResponses']; + } + + /** + * Sets yopQueryAgentResponses + * + * @param \Yeepay\Yop\Sdk\Service\Offline\Model\YopQueryAgentResponse[] $yopQueryAgentResponses

代理商信息

+ * + * @return $this + */ + public function setYopQueryAgentResponses($yopQueryAgentResponses) + { + $this->container['yopQueryAgentResponses'] = $yopQueryAgentResponses; + + return $this; + } + + /** + * Gets retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopQueryOrderInfoRespDTO.php b/lib/Service/Offline/Model/YopQueryOrderInfoRespDTO.php new file mode 100644 index 0000000..482cbc0 --- /dev/null +++ b/lib/Service/Offline/Model/YopQueryOrderInfoRespDTO.php @@ -0,0 +1,723 @@ + 'string', + 'orderId' => 'string', + 'bankCardNo' => 'string', + 'paySuccessDate' => '\DateTime', + 'payWay' => 'string', + 'uniqueOrderNo' => 'string', + 'purchaseUrl' => 'string', + 'bankId' => 'string', + 'posRequestNo' => 'string', + 'orderAmount' => 'float', + 'merchantNo' => 'string', + 'status' => 'string', + 'businessOrderNo' => 'string', + 'retCode' => 'string', + 'retMsg' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminalNo' => null, + 'orderId' => null, + 'bankCardNo' => null, + 'paySuccessDate' => 'date-time', + 'payWay' => null, + 'uniqueOrderNo' => null, + 'purchaseUrl' => null, + 'bankId' => null, + 'posRequestNo' => null, + 'orderAmount' => null, + 'merchantNo' => null, + 'status' => null, + 'businessOrderNo' => null, + 'retCode' => null, + 'retMsg' => 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 = [ + 'terminalNo' => 'terminalNo', + 'orderId' => 'orderId', + 'bankCardNo' => 'bankCardNo', + 'paySuccessDate' => 'paySuccessDate', + 'payWay' => 'payWay', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'purchaseUrl' => 'purchaseUrl', + 'bankId' => 'bankId', + 'posRequestNo' => 'posRequestNo', + 'orderAmount' => 'orderAmount', + 'merchantNo' => 'merchantNo', + 'status' => 'status', + 'businessOrderNo' => 'businessOrderNo', + 'retCode' => 'retCode', + 'retMsg' => 'retMsg' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminalNo' => 'setTerminalNo', + 'orderId' => 'setOrderId', + 'bankCardNo' => 'setBankCardNo', + 'paySuccessDate' => 'setPaySuccessDate', + 'payWay' => 'setPayWay', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'purchaseUrl' => 'setPurchaseUrl', + 'bankId' => 'setBankId', + 'posRequestNo' => 'setPosRequestNo', + 'orderAmount' => 'setOrderAmount', + 'merchantNo' => 'setMerchantNo', + 'status' => 'setStatus', + 'businessOrderNo' => 'setBusinessOrderNo', + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminalNo' => 'getTerminalNo', + 'orderId' => 'getOrderId', + 'bankCardNo' => 'getBankCardNo', + 'paySuccessDate' => 'getPaySuccessDate', + 'payWay' => 'getPayWay', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'purchaseUrl' => 'getPurchaseUrl', + 'bankId' => 'getBankId', + 'posRequestNo' => 'getPosRequestNo', + 'orderAmount' => 'getOrderAmount', + 'merchantNo' => 'getMerchantNo', + 'status' => 'getStatus', + 'businessOrderNo' => 'getBusinessOrderNo', + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg' + ]; + + /** + * 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['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null; + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : null; + $this->container['paySuccessDate'] = isset($data['paySuccessDate']) ? $data['paySuccessDate'] : null; + $this->container['payWay'] = isset($data['payWay']) ? $data['payWay'] : null; + $this->container['uniqueOrderNo'] = isset($data['uniqueOrderNo']) ? $data['uniqueOrderNo'] : null; + $this->container['purchaseUrl'] = isset($data['purchaseUrl']) ? $data['purchaseUrl'] : null; + $this->container['bankId'] = isset($data['bankId']) ? $data['bankId'] : null; + $this->container['posRequestNo'] = isset($data['posRequestNo']) ? $data['posRequestNo'] : null; + $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['businessOrderNo'] = isset($data['businessOrderNo']) ? $data['businessOrderNo'] : null; + $this->container['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : 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 terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->container['terminalNo']; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo

终端号

+ * + * @return $this + */ + public function setTerminalNo($terminalNo) + { + $this->container['terminalNo'] = $terminalNo; + + 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 bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->container['bankCardNo']; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo
银行卡号,掩码
+ * + * @return $this + */ + public function setBankCardNo($bankCardNo) + { + $this->container['bankCardNo'] = $bankCardNo; + + return $this; + } + + /** + * Gets paySuccessDate + * + * @return \DateTime + */ + public function getPaySuccessDate() + { + return $this->container['paySuccessDate']; + } + + /** + * Sets paySuccessDate + * + * @param \DateTime $paySuccessDate
支付成功时间
+ * + * @return $this + */ + public function setPaySuccessDate($paySuccessDate) + { + $this->container['paySuccessDate'] = $paySuccessDate; + + return $this; + } + + /** + * Gets payWay + * + * @return string + */ + public function getPayWay() + { + return $this->container['payWay']; + } + + /** + * Sets payWay + * + * @param string $payWay
支付方式
+ * + * @return $this + */ + public function setPayWay($payWay) + { + $this->container['payWay'] = $payWay; + + 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 purchaseUrl + * + * @return string + */ + public function getPurchaseUrl() + { + return $this->container['purchaseUrl']; + } + + /** + * Sets purchaseUrl + * + * @param string $purchaseUrl
签购单地址
+ * + * @return $this + */ + public function setPurchaseUrl($purchaseUrl) + { + $this->container['purchaseUrl'] = $purchaseUrl; + + return $this; + } + + /** + * Gets bankId + * + * @return string + */ + public function getBankId() + { + return $this->container['bankId']; + } + + /** + * Sets bankId + * + * @param string $bankId
发卡行编码
+ * + * @return $this + */ + public function setBankId($bankId) + { + $this->container['bankId'] = $bankId; + + return $this; + } + + /** + * Gets posRequestNo + * + * @return string + */ + public function getPosRequestNo() + { + return $this->container['posRequestNo']; + } + + /** + * Sets posRequestNo + * + * @param string $posRequestNo
终端流水号
+ * + * @return $this + */ + public function setPosRequestNo($posRequestNo) + { + $this->container['posRequestNo'] = $posRequestNo; + + 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 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 businessOrderNo + * + * @return string + */ + public function getBusinessOrderNo() + { + return $this->container['businessOrderNo']; + } + + /** + * Sets businessOrderNo + * + * @param string $businessOrderNo

商户业务单号

+ * + * @return $this + */ + public function setBusinessOrderNo($businessOrderNo) + { + $this->container['businessOrderNo'] = $businessOrderNo; + + return $this; + } + + /** + * Gets retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopQueryShopBindResponse.php b/lib/Service/Offline/Model/YopQueryShopBindResponse.php new file mode 100644 index 0000000..5ca4c7a --- /dev/null +++ b/lib/Service/Offline/Model/YopQueryShopBindResponse.php @@ -0,0 +1,471 @@ + 'string', + 'terminalNo' => 'string', + 'shopName' => 'string', + 'shopNo' => 'string', + 'merchantNo' => 'string', + 'serialNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'agentMerchantNo' => null, + 'terminalNo' => null, + 'shopName' => null, + 'shopNo' => null, + 'merchantNo' => null, + 'serialNo' => 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 = [ + 'agentMerchantNo' => 'agentMerchantNo', + 'terminalNo' => 'terminalNo', + 'shopName' => 'shopName', + 'shopNo' => 'shopNo', + 'merchantNo' => 'merchantNo', + 'serialNo' => 'serialNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'agentMerchantNo' => 'setAgentMerchantNo', + 'terminalNo' => 'setTerminalNo', + 'shopName' => 'setShopName', + 'shopNo' => 'setShopNo', + 'merchantNo' => 'setMerchantNo', + 'serialNo' => 'setSerialNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'agentMerchantNo' => 'getAgentMerchantNo', + 'terminalNo' => 'getTerminalNo', + 'shopName' => 'getShopName', + 'shopNo' => 'getShopNo', + 'merchantNo' => 'getMerchantNo', + 'serialNo' => 'getSerialNo' + ]; + + /** + * 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['agentMerchantNo'] = isset($data['agentMerchantNo']) ? $data['agentMerchantNo'] : null; + $this->container['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null; + $this->container['shopName'] = isset($data['shopName']) ? $data['shopName'] : null; + $this->container['shopNo'] = isset($data['shopNo']) ? $data['shopNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['serialNo'] = isset($data['serialNo']) ? $data['serialNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['agentMerchantNo'] === null) { + $invalidProperties[] = "'agentMerchantNo' can't be null"; + } + if ($this->container['terminalNo'] === null) { + $invalidProperties[] = "'terminalNo' can't be null"; + } + if ($this->container['shopName'] === null) { + $invalidProperties[] = "'shopName' can't be null"; + } + if ($this->container['shopNo'] === null) { + $invalidProperties[] = "'shopNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['serialNo'] === null) { + $invalidProperties[] = "'serialNo' can't be null"; + } + 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 agentMerchantNo + * + * @return string + */ + public function getAgentMerchantNo() + { + return $this->container['agentMerchantNo']; + } + + /** + * Sets agentMerchantNo + * + * @param string $agentMerchantNo
终端采购商商编,指付款采购终端的商编
+ * + * @return $this + */ + public function setAgentMerchantNo($agentMerchantNo) + { + $this->container['agentMerchantNo'] = $agentMerchantNo; + + return $this; + } + + /** + * Gets terminalNo + * + * @return string + */ + public function getTerminalNo() + { + return $this->container['terminalNo']; + } + + /** + * Sets terminalNo + * + * @param string $terminalNo
终端号
+ * + * @return $this + */ + public function setTerminalNo($terminalNo) + { + $this->container['terminalNo'] = $terminalNo; + + return $this; + } + + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->container['shopName']; + } + + /** + * Sets shopName + * + * @param string $shopName
网点名称
+ * + * @return $this + */ + public function setShopName($shopName) + { + $this->container['shopName'] = $shopName; + + return $this; + } + + /** + * Gets shopNo + * + * @return string + */ + public function getShopNo() + { + return $this->container['shopNo']; + } + + /** + * Sets shopNo + * + * @param string $shopNo
网点编号
+ * + * @return $this + */ + public function setShopNo($shopNo) + { + $this->container['shopNo'] = $shopNo; + + 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 serialNo + * + * @return string + */ + public function getSerialNo() + { + return $this->container['serialNo']; + } + + /** + * Sets serialNo + * + * @param string $serialNo

终端序列号

+ * + * @return $this + */ + public function setSerialNo($serialNo) + { + $this->container['serialNo'] = $serialNo; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopQueryShopBindRspDto.php b/lib/Service/Offline/Model/YopQueryShopBindRspDto.php new file mode 100644 index 0000000..109403c --- /dev/null +++ b/lib/Service/Offline/Model/YopQueryShopBindRspDto.php @@ -0,0 +1,369 @@ + '\Yeepay\Yop\Sdk\Service\Offline\Model\YopQueryShopBindResponse[]', + 'retCode' => 'string', + 'retMsg' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bindResponses' => null, + 'retCode' => null, + 'retMsg' => 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 = [ + 'bindResponses' => 'bindResponses', + 'retCode' => 'retCode', + 'retMsg' => 'retMsg' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bindResponses' => 'setBindResponses', + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bindResponses' => 'getBindResponses', + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg' + ]; + + /** + * 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['bindResponses'] = isset($data['bindResponses']) ? $data['bindResponses'] : null; + $this->container['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bindResponses'] === null) { + $invalidProperties[] = "'bindResponses' can't be null"; + } + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + 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 bindResponses + * + * @return \Yeepay\Yop\Sdk\Service\Offline\Model\YopQueryShopBindResponse[] + */ + public function getBindResponses() + { + return $this->container['bindResponses']; + } + + /** + * Sets bindResponses + * + * @param \Yeepay\Yop\Sdk\Service\Offline\Model\YopQueryShopBindResponse[] $bindResponses

绑机信息

+ * + * @return $this + */ + public function setBindResponses($bindResponses) + { + $this->container['bindResponses'] = $bindResponses; + + return $this; + } + + /** + * Gets retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopUnBindTerminalRequestDto.php b/lib/Service/Offline/Model/YopUnBindTerminalRequestDto.php new file mode 100644 index 0000000..6c30289 --- /dev/null +++ b/lib/Service/Offline/Model/YopUnBindTerminalRequestDto.php @@ -0,0 +1,372 @@ + 'string[]', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'terminalNo' => 'string', + 'parentMerchantNo' => null, + 'merchantNo' => 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 = [ + 'terminalNo' => 'terminalNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'terminalNo' => 'setTerminalNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'terminalNo' => 'getTerminalNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['terminalNo'] = isset($data['terminalNo']) ? $data['terminalNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['terminalNo'] === null) { + $invalidProperties[] = "'terminalNo' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + 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 terminalNo + * + * @return string[] + */ + public function getTerminalNo() + { + return $this->container['terminalNo']; + } + + /** + * Sets terminalNo + * + * @param string[] $terminalNo
解绑终端列表
+ * + * @return $this + */ + public function setTerminalNo($terminalNo) + { + $this->container['terminalNo'] = $terminalNo; + + return $this; + } + + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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
收单商编
+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + 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)); + } +} + + diff --git a/lib/Service/Offline/Model/YopUnBindTerminalResponseDto.php b/lib/Service/Offline/Model/YopUnBindTerminalResponseDto.php new file mode 100644 index 0000000..a9f341e --- /dev/null +++ b/lib/Service/Offline/Model/YopUnBindTerminalResponseDto.php @@ -0,0 +1,372 @@ + '\Yeepay\Yop\Sdk\Service\Offline\Model\BindResponseTerminalInfo[]', + 'retCode' => 'string', + 'retMsg' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'bindResponseTerminalInfoList' => null, + 'retCode' => null, + 'retMsg' => 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 = [ + 'bindResponseTerminalInfoList' => 'bindResponseTerminalInfoList', + 'retCode' => 'retCode', + 'retMsg' => 'retMsg' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'bindResponseTerminalInfoList' => 'setBindResponseTerminalInfoList', + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'bindResponseTerminalInfoList' => 'getBindResponseTerminalInfoList', + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg' + ]; + + /** + * 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['bindResponseTerminalInfoList'] = isset($data['bindResponseTerminalInfoList']) ? $data['bindResponseTerminalInfoList'] : null; + $this->container['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['bindResponseTerminalInfoList'] === null) { + $invalidProperties[] = "'bindResponseTerminalInfoList' can't be null"; + } + if ($this->container['retCode'] === null) { + $invalidProperties[] = "'retCode' can't be null"; + } + if ($this->container['retMsg'] === null) { + $invalidProperties[] = "'retMsg' can't be null"; + } + 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 bindResponseTerminalInfoList + * + * @return \Yeepay\Yop\Sdk\Service\Offline\Model\BindResponseTerminalInfo[] + */ + public function getBindResponseTerminalInfoList() + { + return $this->container['bindResponseTerminalInfoList']; + } + + /** + * Sets bindResponseTerminalInfoList + * + * @param \Yeepay\Yop\Sdk\Service\Offline\Model\BindResponseTerminalInfo[] $bindResponseTerminalInfoList
终端绑机信息列表
+ * + * @return $this + */ + public function setBindResponseTerminalInfoList($bindResponseTerminalInfoList) + { + $this->container['bindResponseTerminalInfoList'] = $bindResponseTerminalInfoList; + + return $this; + } + + /** + * Gets retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode

返回码

+ * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg

返回信息

+ * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + 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)); + } +} + + diff --git a/lib/Service/Offline/OfflineClient.php b/lib/Service/Offline/OfflineClient.php new file mode 100644 index 0000000..14ad82b --- /dev/null +++ b/lib/Service/Offline/OfflineClient.php @@ -0,0 +1,190 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\BindRequest $request + * @return Model\BindResponse + * @throws YopClientException + */ + public function bind(Model\BindRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BindRequestMarshaller::getInstance(), + Model\BindResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CreateShopRequest $request + * @return Model\CreateShopResponse + * @throws YopClientException + */ + public function createShop(Model\CreateShopRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CreateShopRequestMarshaller::getInstance(), + Model\CreateShopResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\GetShopRequest $request + * @return Model\GetShopResponse + * @throws YopClientException + */ + public function getShop(Model\GetShopRequest $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\GetShopRequestMarshaller::getInstance(), + Model\GetShopResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\OperateShopRequest $request + * @return Model\OperateShopResponse + * @throws YopClientException + */ + public function operateShop(Model\OperateShopRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\OperateShopRequestMarshaller::getInstance(), + Model\OperateShopResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryAgentListRequest $request + * @return Model\QueryAgentListResponse + * @throws YopClientException + */ + public function queryAgentList(Model\QueryAgentListRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getAgentMerchantNo() == null) { + throw new YopClientException("request.agentMerchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryAgentListRequestMarshaller::getInstance(), + Model\QueryAgentListResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryOrderInfoRequest $request + * @return Model\QueryOrderInfoResponse + * @throws YopClientException + */ + public function queryOrderInfo(Model\QueryOrderInfoRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryOrderInfoRequestMarshaller::getInstance(), + Model\QueryOrderInfoResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryPosTrxInfoRequest $request + * @return Model\QueryPosTrxInfoResponse + * @throws YopClientException + */ + public function queryPosTrxInfo(Model\QueryPosTrxInfoRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryPosTrxInfoRequestMarshaller::getInstance(), + Model\QueryPosTrxInfoResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryShopBindListRequest $request + * @return Model\QueryShopBindListResponse + * @throws YopClientException + */ + public function queryShopBindList(Model\QueryShopBindListRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + if ($request->getShopNo() == null) { + throw new YopClientException("request.shopNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryShopBindListRequestMarshaller::getInstance(), + Model\QueryShopBindListResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\UnbindRequest $request + * @return Model\UnbindResponse + * @throws YopClientException + */ + public function unbind(Model\UnbindRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\UnbindRequestMarshaller::getInstance(), + Model\UnbindResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\UpdateShopRequest $request + * @return Model\UpdateShopResponse + * @throws YopClientException + */ + public function updateShop(Model\UpdateShopRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\UpdateShopRequestMarshaller::getInstance(), + Model\UpdateShopResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Offline/OfflineClientBuilder.php b/lib/Service/Offline/OfflineClientBuilder.php new file mode 100644 index 0000000..c6a4554 --- /dev/null +++ b/lib/Service/Offline/OfflineClientBuilder.php @@ -0,0 +1,77 @@ +register('bind', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('createShop', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('getShop', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('operateShop', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryAgentList', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryOrderInfo', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryPosTrxInfo', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryShopBindList', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('unbind', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('updateShop', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * OfflineClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new OfflineClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return OfflineClientBuilder + * @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 OfflineClientBuilder($clientParams); + } + +} +OfflineClientBuilder::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountCompCustOpenAcctRspDTOResult.php b/lib/Service/P2f/Model/CompanyFinanceAccountCompCustOpenAcctRspDTOResult.php new file mode 100644 index 0000000..1afcc46 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountCompCustOpenAcctRspDTOResult.php @@ -0,0 +1,452 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'channelOpenId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'channelOpenId' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo', + 'channelOpenId' => 'channelOpenId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'channelOpenId' => 'setChannelOpenId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'channelOpenId' => 'getChannelOpenId' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['channelOpenId'] = isset($data['channelOpenId']) ? $data['channelOpenId'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误信息 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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 channelOpenId + * + * @return string + */ + public function getChannelOpenId() + { + return $this->container['channelOpenId']; + } + + /** + * Sets channelOpenId + * + * @param string $channelOpenId 银行企业号 + * + * @return $this + */ + public function setChannelOpenId($channelOpenId) + { + $this->container['channelOpenId'] = $channelOpenId; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult.php b/lib/Service/P2f/Model/CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult.php new file mode 100644 index 0000000..c44924f --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult.php @@ -0,0 +1,452 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'channelOpenId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'channelOpenId' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo', + 'channelOpenId' => 'channelOpenId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'channelOpenId' => 'setChannelOpenId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'channelOpenId' => 'getChannelOpenId' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['channelOpenId'] = isset($data['channelOpenId']) ? $data['channelOpenId'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误描述 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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 channelOpenId + * + * @return string + */ + public function getChannelOpenId() + { + return $this->container['channelOpenId']; + } + + /** + * Sets channelOpenId + * + * @param string $channelOpenId 银行企业号 + * + * @return $this + */ + public function setChannelOpenId($channelOpenId) + { + $this->container['channelOpenId'] = $channelOpenId; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountQueryRequest.php b/lib/Service/P2f/Model/CompanyFinanceAccountQueryRequest.php new file mode 100644 index 0000000..d5091e2 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountQueryRequest.php @@ -0,0 +1,92 @@ +channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceAccountQueryRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceAccountQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceAccountQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceAccountQuery'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountQueryRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceAccountQueryRequestMarshaller.php new file mode 100644 index 0000000..8a183c2 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceAccountQueryRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountQueryResponse.php b/lib/Service/P2f/Model/CompanyFinanceAccountQueryResponse.php new file mode 100644 index 0000000..0bc4530 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceAccountQueryCompCustOpenAcctRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountQueryResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceAccountQueryResponseUnMarshaller.php new file mode 100644 index 0000000..e5f094f --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +compName; + } + + /** + * Sets compName + * + * @param string $compName + * @return CompanyFinanceAccountRequest + */ + public function setCompName($compName) + { + $this->compName = $compName; + return $this; + } + /** + * Gets compNo + * + * @return string + */ + public function getCompNo() + { + return $this->compNo; + } + + /** + * Sets compNo + * + * @param string $compNo + * @return CompanyFinanceAccountRequest + */ + public function setCompNo($compNo) + { + $this->compNo = $compNo; + return $this; + } + /** + * Gets customerCertExpiry + * + * @return string + */ + public function getCustomerCertExpiry() + { + return $this->customerCertExpiry; + } + + /** + * Sets customerCertExpiry + * + * @param string $customerCertExpiry + * @return CompanyFinanceAccountRequest + */ + public function setCustomerCertExpiry($customerCertExpiry) + { + $this->customerCertExpiry = $customerCertExpiry; + return $this; + } + /** + * Gets regSerialNoExpired + * + * @return string + */ + public function getRegSerialNoExpired() + { + return $this->regSerialNoExpired; + } + + /** + * Sets regSerialNoExpired + * + * @param string $regSerialNoExpired + * @return CompanyFinanceAccountRequest + */ + public function setRegSerialNoExpired($regSerialNoExpired) + { + $this->regSerialNoExpired = $regSerialNoExpired; + return $this; + } + /** + * Gets compTelephone + * + * @return string + */ + public function getCompTelephone() + { + return $this->compTelephone; + } + + /** + * Sets compTelephone + * + * @param string $compTelephone + * @return CompanyFinanceAccountRequest + */ + public function setCompTelephone($compTelephone) + { + $this->compTelephone = $compTelephone; + return $this; + } + /** + * Gets orgSMSMobile + * + * @return string + */ + public function getOrgSMSMobile() + { + return $this->orgSMSMobile; + } + + /** + * Sets orgSMSMobile + * + * @param string $orgSMSMobile + * @return CompanyFinanceAccountRequest + */ + public function setOrgSMSMobile($orgSMSMobile) + { + $this->orgSMSMobile = $orgSMSMobile; + return $this; + } + /** + * Gets uniteCreditCode + * + * @return string + */ + public function getUniteCreditCode() + { + return $this->uniteCreditCode; + } + + /** + * Sets uniteCreditCode + * + * @param string $uniteCreditCode + * @return CompanyFinanceAccountRequest + */ + public function setUniteCreditCode($uniteCreditCode) + { + $this->uniteCreditCode = $uniteCreditCode; + return $this; + } + /** + * Gets compEmail + * + * @return string + */ + public function getCompEmail() + { + return $this->compEmail; + } + + /** + * Sets compEmail + * + * @param string $compEmail + * @return CompanyFinanceAccountRequest + */ + public function setCompEmail($compEmail) + { + $this->compEmail = $compEmail; + return $this; + } + /** + * Gets compAddr + * + * @return string + */ + public function getCompAddr() + { + return $this->compAddr; + } + + /** + * Sets compAddr + * + * @param string $compAddr + * @return CompanyFinanceAccountRequest + */ + public function setCompAddr($compAddr) + { + $this->compAddr = $compAddr; + return $this; + } + /** + * Gets zipCode + * + * @return string + */ + public function getZipCode() + { + return $this->zipCode; + } + + /** + * Sets zipCode + * + * @param string $zipCode + * @return CompanyFinanceAccountRequest + */ + public function setZipCode($zipCode) + { + $this->zipCode = $zipCode; + return $this; + } + /** + * Gets bizScope + * + * @return string + */ + public function getBizScope() + { + return $this->bizScope; + } + + /** + * Sets bizScope + * + * @param string $bizScope + * @return CompanyFinanceAccountRequest + */ + public function setBizScope($bizScope) + { + $this->bizScope = $bizScope; + return $this; + } + /** + * Gets legalName + * + * @return string + */ + public function getLegalName() + { + return $this->legalName; + } + + /** + * Sets legalName + * + * @param string $legalName + * @return CompanyFinanceAccountRequest + */ + public function setLegalName($legalName) + { + $this->legalName = $legalName; + return $this; + } + /** + * Gets legalIdNo + * + * @return string + */ + public function getLegalIdNo() + { + return $this->legalIdNo; + } + + /** + * Sets legalIdNo + * + * @param string $legalIdNo + * @return CompanyFinanceAccountRequest + */ + public function setLegalIdNo($legalIdNo) + { + $this->legalIdNo = $legalIdNo; + return $this; + } + /** + * Gets legalStartDate + * + * @return string + */ + public function getLegalStartDate() + { + return $this->legalStartDate; + } + + /** + * Sets legalStartDate + * + * @param string $legalStartDate + * @return CompanyFinanceAccountRequest + */ + public function setLegalStartDate($legalStartDate) + { + $this->legalStartDate = $legalStartDate; + return $this; + } + /** + * Gets legalExpiredDate + * + * @return string + */ + public function getLegalExpiredDate() + { + return $this->legalExpiredDate; + } + + /** + * Sets legalExpiredDate + * + * @param string $legalExpiredDate + * @return CompanyFinanceAccountRequest + */ + public function setLegalExpiredDate($legalExpiredDate) + { + $this->legalExpiredDate = $legalExpiredDate; + return $this; + } + /** + * Gets legalMobile + * + * @return string + */ + public function getLegalMobile() + { + return $this->legalMobile; + } + + /** + * Sets legalMobile + * + * @param string $legalMobile + * @return CompanyFinanceAccountRequest + */ + public function setLegalMobile($legalMobile) + { + $this->legalMobile = $legalMobile; + return $this; + } + /** + * Gets bankCode + * + * @return string + */ + public function getBankCode() + { + return $this->bankCode; + } + + /** + * Sets bankCode + * + * @param string $bankCode + * @return CompanyFinanceAccountRequest + */ + public function setBankCode($bankCode) + { + $this->bankCode = $bankCode; + return $this; + } + /** + * Gets bankName + * + * @return string + */ + public function getBankName() + { + return $this->bankName; + } + + /** + * Sets bankName + * + * @param string $bankName + * @return CompanyFinanceAccountRequest + */ + public function setBankName($bankName) + { + $this->bankName = $bankName; + return $this; + } + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->bankCardNo; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo + * @return CompanyFinanceAccountRequest + */ + public function setBankCardNo($bankCardNo) + { + $this->bankCardNo = $bankCardNo; + return $this; + } + /** + * Gets bindType + * + * @return string + */ + public function getBindType() + { + return $this->bindType; + } + + /** + * Sets bindType + * + * @param string $bindType + * @return CompanyFinanceAccountRequest + */ + public function setBindType($bindType) + { + $this->bindType = $bindType; + return $this; + } + /** + * Gets bindAcctBranch + * + * @return string + */ + public function getBindAcctBranch() + { + return $this->bindAcctBranch; + } + + /** + * Sets bindAcctBranch + * + * @param string $bindAcctBranch + * @return CompanyFinanceAccountRequest + */ + public function setBindAcctBranch($bindAcctBranch) + { + $this->bindAcctBranch = $bindAcctBranch; + return $this; + } + /** + * Gets threeInOneFlag + * + * @return string + */ + public function getThreeInOneFlag() + { + return $this->threeInOneFlag; + } + + /** + * Sets threeInOneFlag + * + * @param string $threeInOneFlag + * @return CompanyFinanceAccountRequest + */ + public function setThreeInOneFlag($threeInOneFlag) + { + $this->threeInOneFlag = $threeInOneFlag; + return $this; + } + /** + * Gets uniteCreditCodePath + * + * @return string + */ + public function getUniteCreditCodePath() + { + return $this->uniteCreditCodePath; + } + + /** + * Sets uniteCreditCodePath + * + * @param string $uniteCreditCodePath + * @return CompanyFinanceAccountRequest + */ + public function setUniteCreditCodePath($uniteCreditCodePath) + { + $this->uniteCreditCodePath = $uniteCreditCodePath; + return $this; + } + /** + * Gets frontPhotoPath + * + * @return string + */ + public function getFrontPhotoPath() + { + return $this->frontPhotoPath; + } + + /** + * Sets frontPhotoPath + * + * @param string $frontPhotoPath + * @return CompanyFinanceAccountRequest + */ + public function setFrontPhotoPath($frontPhotoPath) + { + $this->frontPhotoPath = $frontPhotoPath; + return $this; + } + /** + * Gets backPhotoPath + * + * @return string + */ + public function getBackPhotoPath() + { + return $this->backPhotoPath; + } + + /** + * Sets backPhotoPath + * + * @param string $backPhotoPath + * @return CompanyFinanceAccountRequest + */ + public function setBackPhotoPath($backPhotoPath) + { + $this->backPhotoPath = $backPhotoPath; + return $this; + } + /** + * Gets openAcctPermitCodePath + * + * @return string + */ + public function getOpenAcctPermitCodePath() + { + return $this->openAcctPermitCodePath; + } + + /** + * Sets openAcctPermitCodePath + * + * @param string $openAcctPermitCodePath + * @return CompanyFinanceAccountRequest + */ + public function setOpenAcctPermitCodePath($openAcctPermitCodePath) + { + $this->openAcctPermitCodePath = $openAcctPermitCodePath; + return $this; + } + /** + * Gets channelCode + * + * @return string + */ + public function getChannelCode() + { + return $this->channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceAccountRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceAccountRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceAccountRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceAccount'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceAccountRequestMarshaller.php new file mode 100644 index 0000000..2627303 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountRequestMarshaller.php @@ -0,0 +1,164 @@ +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->getCompName() != null){ + $internalRequest->addParameter('compName', ObjectSerializer::sanitizeForSerialization($request->getCompName(), 'string')); + } + if($request->getCompNo() != null){ + $internalRequest->addParameter('compNo', ObjectSerializer::sanitizeForSerialization($request->getCompNo(), 'string')); + } + if($request->getCustomerCertExpiry() != null){ + $internalRequest->addParameter('customerCertExpiry', ObjectSerializer::sanitizeForSerialization($request->getCustomerCertExpiry(), 'string')); + } + if($request->getRegSerialNoExpired() != null){ + $internalRequest->addParameter('regSerialNoExpired', ObjectSerializer::sanitizeForSerialization($request->getRegSerialNoExpired(), 'string')); + } + if($request->getCompTelephone() != null){ + $internalRequest->addParameter('compTelephone', ObjectSerializer::sanitizeForSerialization($request->getCompTelephone(), 'string')); + } + if($request->getOrgSMSMobile() != null){ + $internalRequest->addParameter('orgSMSMobile', ObjectSerializer::sanitizeForSerialization($request->getOrgSMSMobile(), 'string')); + } + if($request->getUniteCreditCode() != null){ + $internalRequest->addParameter('uniteCreditCode', ObjectSerializer::sanitizeForSerialization($request->getUniteCreditCode(), 'string')); + } + if($request->getCompEmail() != null){ + $internalRequest->addParameter('compEmail', ObjectSerializer::sanitizeForSerialization($request->getCompEmail(), 'string')); + } + if($request->getCompAddr() != null){ + $internalRequest->addParameter('compAddr', ObjectSerializer::sanitizeForSerialization($request->getCompAddr(), 'string')); + } + if($request->getZipCode() != null){ + $internalRequest->addParameter('zipCode', ObjectSerializer::sanitizeForSerialization($request->getZipCode(), 'string')); + } + if($request->getBizScope() != null){ + $internalRequest->addParameter('bizScope', ObjectSerializer::sanitizeForSerialization($request->getBizScope(), 'string')); + } + if($request->getLegalName() != null){ + $internalRequest->addParameter('legalName', ObjectSerializer::sanitizeForSerialization($request->getLegalName(), 'string')); + } + if($request->getLegalIdNo() != null){ + $internalRequest->addParameter('legalIdNo', ObjectSerializer::sanitizeForSerialization($request->getLegalIdNo(), 'string')); + } + if($request->getLegalStartDate() != null){ + $internalRequest->addParameter('legalStartDate', ObjectSerializer::sanitizeForSerialization($request->getLegalStartDate(), 'string')); + } + if($request->getLegalExpiredDate() != null){ + $internalRequest->addParameter('legalExpiredDate', ObjectSerializer::sanitizeForSerialization($request->getLegalExpiredDate(), 'string')); + } + if($request->getLegalMobile() != null){ + $internalRequest->addParameter('legalMobile', ObjectSerializer::sanitizeForSerialization($request->getLegalMobile(), 'string')); + } + if($request->getBankCode() != null){ + $internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string')); + } + if($request->getBankName() != null){ + $internalRequest->addParameter('bankName', ObjectSerializer::sanitizeForSerialization($request->getBankName(), 'string')); + } + if($request->getBankCardNo() != null){ + $internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string')); + } + if($request->getBindType() != null){ + $internalRequest->addParameter('bindType', ObjectSerializer::sanitizeForSerialization($request->getBindType(), 'string')); + } + if($request->getBindAcctBranch() != null){ + $internalRequest->addParameter('bindAcctBranch', ObjectSerializer::sanitizeForSerialization($request->getBindAcctBranch(), 'string')); + } + if($request->getThreeInOneFlag() != null){ + $internalRequest->addParameter('threeInOneFlag', ObjectSerializer::sanitizeForSerialization($request->getThreeInOneFlag(), 'string')); + } + if($request->getUniteCreditCodePath() != null){ + $internalRequest->addParameter('uniteCreditCodePath', ObjectSerializer::sanitizeForSerialization($request->getUniteCreditCodePath(), 'string')); + } + if($request->getFrontPhotoPath() != null){ + $internalRequest->addParameter('frontPhotoPath', ObjectSerializer::sanitizeForSerialization($request->getFrontPhotoPath(), 'string')); + } + if($request->getBackPhotoPath() != null){ + $internalRequest->addParameter('backPhotoPath', ObjectSerializer::sanitizeForSerialization($request->getBackPhotoPath(), 'string')); + } + if($request->getOpenAcctPermitCodePath() != null){ + $internalRequest->addParameter('openAcctPermitCodePath', ObjectSerializer::sanitizeForSerialization($request->getOpenAcctPermitCodePath(), 'string')); + } + if($request->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceAccountRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountResponse.php b/lib/Service/P2f/Model/CompanyFinanceAccountResponse.php new file mode 100644 index 0000000..e36da3e --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceAccountCompCustOpenAcctRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceAccountResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceAccountResponseUnMarshaller.php new file mode 100644 index 0000000..b6d0ff2 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAccountResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'channelNo' => 'string', + 'assetsAmount' => 'float', + 'totalProfitAmount' => 'float', + 'yesterdayProfit' => 'float', + 'availableBal' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'channelNo' => null, + 'assetsAmount' => null, + 'totalProfitAmount' => null, + 'yesterdayProfit' => null, + 'availableBal' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'channelNo' => 'channelNo', + 'assetsAmount' => 'assetsAmount', + 'totalProfitAmount' => 'totalProfitAmount', + 'yesterdayProfit' => 'yesterdayProfit', + 'availableBal' => 'availableBal' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'channelNo' => 'setChannelNo', + 'assetsAmount' => 'setAssetsAmount', + 'totalProfitAmount' => 'setTotalProfitAmount', + 'yesterdayProfit' => 'setYesterdayProfit', + 'availableBal' => 'setAvailableBal' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'channelNo' => 'getChannelNo', + 'assetsAmount' => 'getAssetsAmount', + 'totalProfitAmount' => 'getTotalProfitAmount', + 'yesterdayProfit' => 'getYesterdayProfit', + 'availableBal' => 'getAvailableBal' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['channelNo'] = isset($data['channelNo']) ? $data['channelNo'] : null; + $this->container['assetsAmount'] = isset($data['assetsAmount']) ? $data['assetsAmount'] : null; + $this->container['totalProfitAmount'] = isset($data['totalProfitAmount']) ? $data['totalProfitAmount'] : null; + $this->container['yesterdayProfit'] = isset($data['yesterdayProfit']) ? $data['yesterdayProfit'] : null; + $this->container['availableBal'] = isset($data['availableBal']) ? $data['availableBal'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误描述 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + return $this; + } + + /** + * Gets channelNo + * + * @return string + */ + public function getChannelNo() + { + return $this->container['channelNo']; + } + + /** + * Sets channelNo + * + * @param string $channelNo 渠道号 + * + * @return $this + */ + public function setChannelNo($channelNo) + { + $this->container['channelNo'] = $channelNo; + + return $this; + } + + /** + * Gets assetsAmount + * + * @return float + */ + public function getAssetsAmount() + { + return $this->container['assetsAmount']; + } + + /** + * Sets assetsAmount + * + * @param float $assetsAmount 企业号可用资产 + * + * @return $this + */ + public function setAssetsAmount($assetsAmount) + { + $this->container['assetsAmount'] = $assetsAmount; + + return $this; + } + + /** + * Gets totalProfitAmount + * + * @return float + */ + public function getTotalProfitAmount() + { + return $this->container['totalProfitAmount']; + } + + /** + * Sets totalProfitAmount + * + * @param float $totalProfitAmount 累计收益 + * + * @return $this + */ + public function setTotalProfitAmount($totalProfitAmount) + { + $this->container['totalProfitAmount'] = $totalProfitAmount; + + return $this; + } + + /** + * Gets yesterdayProfit + * + * @return float + */ + public function getYesterdayProfit() + { + return $this->container['yesterdayProfit']; + } + + /** + * Sets yesterdayProfit + * + * @param float $yesterdayProfit 昨日收益 + * + * @return $this + */ + public function setYesterdayProfit($yesterdayProfit) + { + $this->container['yesterdayProfit'] = $yesterdayProfit; + + return $this; + } + + /** + * Gets availableBal + * + * @return float + */ + public function getAvailableBal() + { + return $this->container['availableBal']; + } + + /** + * Sets availableBal + * + * @param float $availableBal 可用余额 + * + * @return $this + */ + public function setAvailableBal($availableBal) + { + $this->container['availableBal'] = $availableBal; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequest.php b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequest.php new file mode 100644 index 0000000..fad5a91 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequest.php @@ -0,0 +1,92 @@ +channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceAssetsQueryRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceAssetsQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceAssetsQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceAssetsQuery'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequestMarshaller.php new file mode 100644 index 0000000..248b005 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceAssetsQueryRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponse.php b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponse.php new file mode 100644 index 0000000..4ec7a10 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceAssetsQueryCompQueryAssetsResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponseUnMarshaller.php new file mode 100644 index 0000000..2c0a6e8 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceAssetsQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误描述 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceOrderQueryRequest.php b/lib/Service/P2f/Model/CompanyFinanceOrderQueryRequest.php new file mode 100644 index 0000000..9fd1327 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceOrderQueryRequest.php @@ -0,0 +1,117 @@ +bizType; + } + + /** + * Sets bizType + * + * @param string $bizType + * @return CompanyFinanceOrderQueryRequest + */ + public function setBizType($bizType) + { + $this->bizType = $bizType; + return $this; + } + /** + * Gets channelCode + * + * @return string + */ + public function getChannelCode() + { + return $this->channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceOrderQueryRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceOrderQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceOrderQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceOrderQuery'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceOrderQueryRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceOrderQueryRequestMarshaller.php new file mode 100644 index 0000000..de2f720 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceOrderQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getBizType() != null){ + $internalRequest->addParameter('bizType', ObjectSerializer::sanitizeForSerialization($request->getBizType(), 'string')); + } + if($request->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceOrderQueryRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceOrderQueryResponse.php b/lib/Service/P2f/Model/CompanyFinanceOrderQueryResponse.php new file mode 100644 index 0000000..a0de6bd --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceOrderQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceOrderQueryCompQueryOrderStatusResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceOrderQueryResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceOrderQueryResponseUnMarshaller.php new file mode 100644 index 0000000..8cd4139 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceOrderQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误消息 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequest.php b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequest.php new file mode 100644 index 0000000..df81796 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequest.php @@ -0,0 +1,167 @@ +prodCode; + } + + /** + * Sets prodCode + * + * @param string $prodCode + * @return CompanyFinancePurchaseOrderRequest + */ + public function setProdCode($prodCode) + { + $this->prodCode = $prodCode; + return $this; + } + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Sets amount + * + * @param float $amount + * @return CompanyFinancePurchaseOrderRequest + */ + public function setAmount($amount) + { + $this->amount = $amount; + return $this; + } + /** + * Gets channelCode + * + * @return string + */ + public function getChannelCode() + { + return $this->channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinancePurchaseOrderRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinancePurchaseOrderRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinancePurchaseOrderRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets p2fOpenAcctNo + * + * @return string + */ + public function getP2fOpenAcctNo() + { + return $this->p2fOpenAcctNo; + } + + /** + * Sets p2fOpenAcctNo + * + * @param string $p2fOpenAcctNo + * @return CompanyFinancePurchaseOrderRequest + */ + public function setP2fOpenAcctNo($p2fOpenAcctNo) + { + $this->p2fOpenAcctNo = $p2fOpenAcctNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinancePurchaseOrder'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequestMarshaller.php new file mode 100644 index 0000000..a57786f --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getProdCode() != null){ + $internalRequest->addParameter('prodCode', ObjectSerializer::sanitizeForSerialization($request->getProdCode(), 'string')); + } + if($request->getAmount() != null){ + $internalRequest->addParameter('amount', ObjectSerializer::sanitizeForSerialization($request->getAmount(), 'float')); + } + if($request->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getP2fOpenAcctNo() != null){ + $internalRequest->addParameter('p2fOpenAcctNo', ObjectSerializer::sanitizeForSerialization($request->getP2fOpenAcctNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinancePurchaseOrderRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponse.php b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponse.php new file mode 100644 index 0000000..509df8f --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinancePurchaseOrderCompTranPurchaseRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponseUnMarshaller.php new file mode 100644 index 0000000..fd72f1b --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinancePurchaseOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误描述 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequest.php b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequest.php new file mode 100644 index 0000000..c115b6a --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequest.php @@ -0,0 +1,267 @@ +p2fOpenAcctNo; + } + + /** + * Sets p2fOpenAcctNo + * + * @param string $p2fOpenAcctNo + * @return CompanyFinanceRedeemOrderRequest + */ + public function setP2fOpenAcctNo($p2fOpenAcctNo) + { + $this->p2fOpenAcctNo = $p2fOpenAcctNo; + return $this; + } + /** + * Gets prodCode + * + * @return string + */ + public function getProdCode() + { + return $this->prodCode; + } + + /** + * Sets prodCode + * + * @param string $prodCode + * @return CompanyFinanceRedeemOrderRequest + */ + public function setProdCode($prodCode) + { + $this->prodCode = $prodCode; + return $this; + } + /** + * Gets amount + * + * @return float + */ + public function getAmount() + { + return $this->amount; + } + + /** + * Sets amount + * + * @param float $amount + * @return CompanyFinanceRedeemOrderRequest + */ + 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 CompanyFinanceRedeemOrderRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets channelCode + * + * @return string + */ + public function getChannelCode() + { + return $this->channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceRedeemOrderRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceRedeemOrderRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceRedeemOrderRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return CompanyFinanceRedeemOrderRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets p2fOrderId + * + * @return string + */ + public function getP2fOrderId() + { + return $this->p2fOrderId; + } + + /** + * Sets p2fOrderId + * + * @param string $p2fOrderId + * @return CompanyFinanceRedeemOrderRequest + */ + public function setP2fOrderId($p2fOrderId) + { + $this->p2fOrderId = $p2fOrderId; + return $this; + } + /** + * Gets requestTime + * + * @return string + */ + public function getRequestTime() + { + return $this->requestTime; + } + + /** + * Sets requestTime + * + * @param string $requestTime + * @return CompanyFinanceRedeemOrderRequest + */ + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceRedeemOrder'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequestMarshaller.php new file mode 100644 index 0000000..737685b --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderRequestMarshaller.php @@ -0,0 +1,107 @@ +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->getP2fOpenAcctNo() != null){ + $internalRequest->addParameter('p2fOpenAcctNo', ObjectSerializer::sanitizeForSerialization($request->getP2fOpenAcctNo(), 'string')); + } + if($request->getProdCode() != null){ + $internalRequest->addParameter('prodCode', ObjectSerializer::sanitizeForSerialization($request->getProdCode(), '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->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getP2fOrderId() != null){ + $internalRequest->addParameter('p2fOrderId', ObjectSerializer::sanitizeForSerialization($request->getP2fOrderId(), 'string')); + } + if($request->getRequestTime() != null){ + $internalRequest->addParameter('requestTime', ObjectSerializer::sanitizeForSerialization($request->getRequestTime(), 'string', 'date-time')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceRedeemOrderRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponse.php b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponse.php new file mode 100644 index 0000000..193b438 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceRedeemOrderCompTranRedeemRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponseUnMarshaller.php new file mode 100644 index 0000000..61eb2a4 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceRedeemOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误描述 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequest.php b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequest.php new file mode 100644 index 0000000..2341c00 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequest.php @@ -0,0 +1,117 @@ +confirmCheckCode; + } + + /** + * Sets confirmCheckCode + * + * @param string $confirmCheckCode + * @return CompanyFinanceSmallPaymentRequest + */ + public function setConfirmCheckCode($confirmCheckCode) + { + $this->confirmCheckCode = $confirmCheckCode; + return $this; + } + /** + * Gets channelCode + * + * @return string + */ + public function getChannelCode() + { + return $this->channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceSmallPaymentRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceSmallPaymentRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceSmallPaymentRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceSmallPayment'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequestMarshaller.php new file mode 100644 index 0000000..5eba2a0 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getConfirmCheckCode() != null){ + $internalRequest->addParameter('confirmCheckCode', ObjectSerializer::sanitizeForSerialization($request->getConfirmCheckCode(), 'string')); + } + if($request->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceSmallPaymentRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponse.php b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponse.php new file mode 100644 index 0000000..39b744b --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceSmallPaymentCompCustOpenAcctConfirmRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponseUnMarshaller.php new file mode 100644 index 0000000..8cd7709 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceSmallPaymentResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'compTransactionVO' => '\Yeepay\Yop\Sdk\Service\P2f\Model\CompanyFinanceTransactionQueryCompTransactionVOResult' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'compTransactionVO' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo', + 'compTransactionVO' => 'compTransactionVO' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'compTransactionVO' => 'setCompTransactionVO' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'compTransactionVO' => 'getCompTransactionVO' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['compTransactionVO'] = isset($data['compTransactionVO']) ? $data['compTransactionVO'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误描述 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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 compTransactionVO + * + * @return \Yeepay\Yop\Sdk\Service\P2f\Model\CompanyFinanceTransactionQueryCompTransactionVOResult + */ + public function getCompTransactionVO() + { + return $this->container['compTransactionVO']; + } + + /** + * Sets compTransactionVO + * + * @param \Yeepay\Yop\Sdk\Service\P2f\Model\CompanyFinanceTransactionQueryCompTransactionVOResult $compTransactionVO 交易记录 + * + * @return $this + */ + public function setCompTransactionVO($compTransactionVO) + { + $this->container['compTransactionVO'] = $compTransactionVO; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceTransactionQueryCompTransactionVOResult.php b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryCompTransactionVOResult.php new file mode 100644 index 0000000..feea28f --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryCompTransactionVOResult.php @@ -0,0 +1,423 @@ + 'string', + 'requestTime' => 'string', + 'p2fOrderId' => 'string', + 'transactionType' => 'string', + 'amount' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'requestNo' => null, + 'requestTime' => null, + 'p2fOrderId' => null, + 'transactionType' => null, + 'amount' => 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', + 'requestTime' => 'requestTime', + 'p2fOrderId' => 'p2fOrderId', + 'transactionType' => 'transactionType', + 'amount' => 'amount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestNo' => 'setRequestNo', + 'requestTime' => 'setRequestTime', + 'p2fOrderId' => 'setP2fOrderId', + 'transactionType' => 'setTransactionType', + 'amount' => 'setAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestNo' => 'getRequestNo', + 'requestTime' => 'getRequestTime', + 'p2fOrderId' => 'getP2fOrderId', + 'transactionType' => 'getTransactionType', + 'amount' => 'getAmount' + ]; + + /** + * 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['requestTime'] = isset($data['requestTime']) ? $data['requestTime'] : null; + $this->container['p2fOrderId'] = isset($data['p2fOrderId']) ? $data['p2fOrderId'] : null; + $this->container['transactionType'] = isset($data['transactionType']) ? $data['transactionType'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : 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 请求号 + * + * @return $this + */ + public function setRequestNo($requestNo) + { + $this->container['requestNo'] = $requestNo; + + return $this; + } + + /** + * Gets requestTime + * + * @return string + */ + public function getRequestTime() + { + return $this->container['requestTime']; + } + + /** + * Sets requestTime + * + * @param string $requestTime 请求时间 + * + * @return $this + */ + public function setRequestTime($requestTime) + { + $this->container['requestTime'] = $requestTime; + + return $this; + } + + /** + * Gets p2fOrderId + * + * @return string + */ + public function getP2fOrderId() + { + return $this->container['p2fOrderId']; + } + + /** + * Sets p2fOrderId + * + * @param string $p2fOrderId P2F订单号 + * + * @return $this + */ + public function setP2fOrderId($p2fOrderId) + { + $this->container['p2fOrderId'] = $p2fOrderId; + + return $this; + } + + /** + * Gets transactionType + * + * @return string + */ + public function getTransactionType() + { + return $this->container['transactionType']; + } + + /** + * Sets transactionType + * + * @param string $transactionType 交易类型 + * + * @return $this + */ + public function setTransactionType($transactionType) + { + $this->container['transactionType'] = $transactionType; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount 交易金额 + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequest.php b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequest.php new file mode 100644 index 0000000..db6d194 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequest.php @@ -0,0 +1,142 @@ +startDate; + } + + /** + * Sets startDate + * + * @param string $startDate + * @return CompanyFinanceTransactionQueryRequest + */ + public function setStartDate($startDate) + { + $this->startDate = $startDate; + return $this; + } + /** + * Gets endDate + * + * @return string + */ + public function getEndDate() + { + return $this->endDate; + } + + /** + * Sets endDate + * + * @param string $endDate + * @return CompanyFinanceTransactionQueryRequest + */ + public function setEndDate($endDate) + { + $this->endDate = $endDate; + return $this; + } + /** + * Gets channelCode + * + * @return string + */ + public function getChannelCode() + { + return $this->channelCode; + } + + /** + * Sets channelCode + * + * @param string $channelCode + * @return CompanyFinanceTransactionQueryRequest + */ + public function setChannelCode($channelCode) + { + $this->channelCode = $channelCode; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CompanyFinanceTransactionQueryRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CompanyFinanceTransactionQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'companyFinanceTransactionQuery'; + } + + +} diff --git a/lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequestMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequestMarshaller.php new file mode 100644 index 0000000..9d234bf --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getStartDate() != null){ + $internalRequest->addParameter('startDate', ObjectSerializer::sanitizeForSerialization($request->getStartDate(), 'string')); + } + if($request->getEndDate() != null){ + $internalRequest->addParameter('endDate', ObjectSerializer::sanitizeForSerialization($request->getEndDate(), 'string')); + } + if($request->getChannelCode() != null){ + $internalRequest->addParameter('channelCode', ObjectSerializer::sanitizeForSerialization($request->getChannelCode(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CompanyFinanceTransactionQueryRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponse.php b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponse.php new file mode 100644 index 0000000..89a91b9 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CompanyFinanceTransactionQueryCompQueryTransactionListResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponseUnMarshaller.php b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponseUnMarshaller.php new file mode 100644 index 0000000..f012b04 --- /dev/null +++ b/lib/Service/P2f/Model/CompanyFinanceTransactionQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'errorCode' => 'string', + 'errorMsg' => 'string', + 'merchantNo' => 'string', + 'requestNo' => 'string', + 'fileType' => 'string', + 'image' => 'string', + 'imageOriginalFileName' => 'string', + 'imageFileSize' => 'string', + 'imageMd5' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'errorCode' => null, + 'errorMsg' => null, + 'merchantNo' => null, + 'requestNo' => null, + 'fileType' => null, + 'image' => null, + 'imageOriginalFileName' => null, + 'imageFileSize' => null, + 'imageMd5' => 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 = [ + 'status' => 'status', + 'errorCode' => 'errorCode', + 'errorMsg' => 'errorMsg', + 'merchantNo' => 'merchantNo', + 'requestNo' => 'requestNo', + 'fileType' => 'fileType', + 'image' => 'image', + 'imageOriginalFileName' => 'imageOriginalFileName', + 'imageFileSize' => 'imageFileSize', + 'imageMd5' => 'imageMd5' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'errorCode' => 'setErrorCode', + 'errorMsg' => 'setErrorMsg', + 'merchantNo' => 'setMerchantNo', + 'requestNo' => 'setRequestNo', + 'fileType' => 'setFileType', + 'image' => 'setImage', + 'imageOriginalFileName' => 'setImageOriginalFileName', + 'imageFileSize' => 'setImageFileSize', + 'imageMd5' => 'setImageMd5' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'errorCode' => 'getErrorCode', + 'errorMsg' => 'getErrorMsg', + 'merchantNo' => 'getMerchantNo', + 'requestNo' => 'getRequestNo', + 'fileType' => 'getFileType', + 'image' => 'getImage', + 'imageOriginalFileName' => 'getImageOriginalFileName', + 'imageFileSize' => 'getImageFileSize', + 'imageMd5' => 'getImageMd5' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMsg'] = isset($data['errorMsg']) ? $data['errorMsg'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['fileType'] = isset($data['fileType']) ? $data['fileType'] : null; + $this->container['image'] = isset($data['image']) ? $data['image'] : null; + $this->container['imageOriginalFileName'] = isset($data['imageOriginalFileName']) ? $data['imageOriginalFileName'] : null; + $this->container['imageFileSize'] = isset($data['imageFileSize']) ? $data['imageFileSize'] : null; + $this->container['imageMd5'] = isset($data['imageMd5']) ? $data['imageMd5'] : 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 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 errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMsg + * + * @return string + */ + public function getErrorMsg() + { + return $this->container['errorMsg']; + } + + /** + * Sets errorMsg + * + * @param string $errorMsg 错误信息 + * + * @return $this + */ + public function setErrorMsg($errorMsg) + { + $this->container['errorMsg'] = $errorMsg; + + 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 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 fileType + * + * @return string + */ + public function getFileType() + { + return $this->container['fileType']; + } + + /** + * Sets fileType + * + * @param string $fileType 文件类型 + * + * @return $this + */ + public function setFileType($fileType) + { + $this->container['fileType'] = $fileType; + + return $this; + } + + /** + * Gets image + * + * @return string + */ + public function getImage() + { + return $this->container['image']; + } + + /** + * Sets image + * + * @param string $image 文件存储路径 + * + * @return $this + */ + public function setImage($image) + { + $this->container['image'] = $image; + + return $this; + } + + /** + * Gets imageOriginalFileName + * + * @return string + */ + public function getImageOriginalFileName() + { + return $this->container['imageOriginalFileName']; + } + + /** + * Sets imageOriginalFileName + * + * @param string $imageOriginalFileName 上传文件名称 + * + * @return $this + */ + public function setImageOriginalFileName($imageOriginalFileName) + { + $this->container['imageOriginalFileName'] = $imageOriginalFileName; + + return $this; + } + + /** + * Gets imageFileSize + * + * @return string + */ + public function getImageFileSize() + { + return $this->container['imageFileSize']; + } + + /** + * Sets imageFileSize + * + * @param string $imageFileSize 上传文件大小 + * + * @return $this + */ + public function setImageFileSize($imageFileSize) + { + $this->container['imageFileSize'] = $imageFileSize; + + return $this; + } + + /** + * Gets imageMd5 + * + * @return string + */ + public function getImageMd5() + { + return $this->container['imageMd5']; + } + + /** + * Sets imageMd5 + * + * @param string $imageMd5 文件MD5值 + * + * @return $this + */ + public function setImageMd5($imageMd5) + { + $this->container['imageMd5'] = $imageMd5; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/FileUploadRequest.php b/lib/Service/P2f/Model/FileUploadRequest.php new file mode 100644 index 0000000..3a55b0a --- /dev/null +++ b/lib/Service/P2f/Model/FileUploadRequest.php @@ -0,0 +1,192 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return FileUploadRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets identityType + * + * @return string + */ + public function getIdentityType() + { + return $this->identityType; + } + + /** + * Sets identityType + * + * @param string $identityType + * @return FileUploadRequest + */ + public function setIdentityType($identityType) + { + $this->identityType = $identityType; + return $this; + } + /** + * Gets identityId + * + * @return string + */ + public function getIdentityId() + { + return $this->identityId; + } + + /** + * Sets identityId + * + * @param string $identityId + * @return FileUploadRequest + */ + public function setIdentityId($identityId) + { + $this->identityId = $identityId; + return $this; + } + /** + * Gets idType + * + * @return string + */ + public function getIdType() + { + return $this->idType; + } + + /** + * Sets idType + * + * @param string $idType + * @return FileUploadRequest + */ + public function setIdType($idType) + { + $this->idType = $idType; + return $this; + } + /** + * Gets idNO + * + * @return string + */ + public function getIdNO() + { + return $this->idNO; + } + + /** + * Sets idNO + * + * @param string $idNO + * @return FileUploadRequest + */ + public function setIdNO($idNO) + { + $this->idNO = $idNO; + return $this; + } + /** + * Gets fileType + * + * @return string + */ + public function getFileType() + { + return $this->fileType; + } + + /** + * Sets fileType + * + * @param string $fileType + * @return FileUploadRequest + */ + public function setFileType($fileType) + { + $this->fileType = $fileType; + return $this; + } + /** + * Gets image + * + * @return Resource + */ + public function getImage() + { + return $this->image; + } + + /** + * Sets image + * + * @param Resource $image + * @return FileUploadRequest + */ + public function setImage($image) + { + $this->image = $image; + return $this; + } + + public static function getOperationId() + { + return 'fileUpload'; + } + + +} diff --git a/lib/Service/P2f/Model/FileUploadRequestMarshaller.php b/lib/Service/P2f/Model/FileUploadRequestMarshaller.php new file mode 100644 index 0000000..1369b02 --- /dev/null +++ b/lib/Service/P2f/Model/FileUploadRequestMarshaller.php @@ -0,0 +1,98 @@ +serviceName); + $internalRequest->setResourcePath($this->resourcePath); + $internalRequest->setHttpMethod($this->httpMethod); + $internalRequest->setYosFlag(true); + 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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getIdentityType() != null){ + $internalRequest->addParameter('identityType', ObjectSerializer::sanitizeForSerialization($request->getIdentityType(), 'string')); + } + if($request->getIdentityId() != null){ + $internalRequest->addParameter('identityId', ObjectSerializer::sanitizeForSerialization($request->getIdentityId(), 'string')); + } + if($request->getIdType() != null){ + $internalRequest->addParameter('idType', ObjectSerializer::sanitizeForSerialization($request->getIdType(), 'string')); + } + if($request->getIdNO() != null){ + $internalRequest->addParameter('idNO', ObjectSerializer::sanitizeForSerialization($request->getIdNO(), 'string')); + } + if($request->getFileType() != null){ + $internalRequest->addParameter('fileType', ObjectSerializer::sanitizeForSerialization($request->getFileType(), 'string')); + } + if($request->getImage() != null){ + $internalRequest->addMultiPartFile('image', $request->getImage()); + } + + return $internalRequest; + } +} +FileUploadRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/FileUploadResponse.php b/lib/Service/P2f/Model/FileUploadResponse.php new file mode 100644 index 0000000..93740e7 --- /dev/null +++ b/lib/Service/P2f/Model/FileUploadResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return FileUploadCustFileUploadResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/FileUploadResponseUnMarshaller.php b/lib/Service/P2f/Model/FileUploadResponseUnMarshaller.php new file mode 100644 index 0000000..583be9d --- /dev/null +++ b/lib/Service/P2f/Model/FileUploadResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'rechargeOrderNo' => 'string', + 'payOrderNo' => '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, + 'rechargeOrderNo' => null, + 'payOrderNo' => 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', + 'rechargeOrderNo' => 'rechargeOrderNo', + 'payOrderNo' => 'payOrderNo', + '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', + 'rechargeOrderNo' => 'setRechargeOrderNo', + 'payOrderNo' => 'setPayOrderNo', + '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', + 'rechargeOrderNo' => 'getRechargeOrderNo', + 'payOrderNo' => 'getPayOrderNo', + '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['rechargeOrderNo'] = isset($data['rechargeOrderNo']) ? $data['rechargeOrderNo'] : null; + $this->container['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : 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 rechargeOrderNo + * + * @return string + */ + public function getRechargeOrderNo() + { + return $this->container['rechargeOrderNo']; + } + + /** + * Sets rechargeOrderNo + * + * @param string $rechargeOrderNo 充值订单号 + * + * @return $this + */ + public function setRechargeOrderNo($rechargeOrderNo) + { + $this->container['rechargeOrderNo'] = $rechargeOrderNo; + + return $this; + } + + /** + * Gets payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->container['payOrderNo']; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo 付款订单号 + * + * @return $this + */ + public function setPayOrderNo($payOrderNo) + { + $this->container['payOrderNo'] = $payOrderNo; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/ZzdfOrderRequest.php b/lib/Service/P2f/Model/ZzdfOrderRequest.php new file mode 100644 index 0000000..b901654 --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfOrderRequest.php @@ -0,0 +1,567 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ZzdfOrderRequest + */ + 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 ZzdfOrderRequest + */ + 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 ZzdfOrderRequest + */ + 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 ZzdfOrderRequest + */ + public function setOrderAmount($orderAmount) + { + $this->orderAmount = $orderAmount; + return $this; + } + /** + * Gets receiverAccountNo + * + * @return string + */ + public function getReceiverAccountNo() + { + return $this->receiverAccountNo; + } + + /** + * Sets receiverAccountNo + * + * @param string $receiverAccountNo + * @return ZzdfOrderRequest + */ + 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 ZzdfOrderRequest + */ + 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 ZzdfOrderRequest + */ + public function setReceiverBankCode($receiverBankCode) + { + $this->receiverBankCode = $receiverBankCode; + return $this; + } + /** + * Gets province + * + * @return string + */ + public function getProvince() + { + return $this->province; + } + + /** + * Sets province + * + * @param string $province + * @return ZzdfOrderRequest + */ + public function setProvince($province) + { + $this->province = $province; + return $this; + } + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->city; + } + + /** + * Sets city + * + * @param string $city + * @return ZzdfOrderRequest + */ + public function setCity($city) + { + $this->city = $city; + return $this; + } + /** + * Gets branchBankCode + * + * @return string + */ + public function getBranchBankCode() + { + return $this->branchBankCode; + } + + /** + * Sets branchBankCode + * + * @param string $branchBankCode + * @return ZzdfOrderRequest + */ + public function setBranchBankCode($branchBankCode) + { + $this->branchBankCode = $branchBankCode; + return $this; + } + /** + * Gets bankAccountType + * + * @return string + */ + public function getBankAccountType() + { + return $this->bankAccountType; + } + + /** + * Sets bankAccountType + * + * @param string $bankAccountType + * @return ZzdfOrderRequest + */ + public function setBankAccountType($bankAccountType) + { + $this->bankAccountType = $bankAccountType; + return $this; + } + /** + * Gets comments + * + * @return string + */ + public function getComments() + { + return $this->comments; + } + + /** + * Sets comments + * + * @param string $comments + * @return ZzdfOrderRequest + */ + public function setComments($comments) + { + $this->comments = $comments; + return $this; + } + /** + * Gets feeChargeSide + * + * @return string + */ + public function getFeeChargeSide() + { + return $this->feeChargeSide; + } + + /** + * Sets feeChargeSide + * + * @param string $feeChargeSide + * @return ZzdfOrderRequest + */ + public function setFeeChargeSide($feeChargeSide) + { + $this->feeChargeSide = $feeChargeSide; + return $this; + } + /** + * Gets terminalType + * + * @return string + */ + public function getTerminalType() + { + return $this->terminalType; + } + + /** + * Sets terminalType + * + * @param string $terminalType + * @return ZzdfOrderRequest + */ + public function setTerminalType($terminalType) + { + $this->terminalType = $terminalType; + return $this; + } + /** + * Gets receiveType + * + * @return string + */ + public function getReceiveType() + { + return $this->receiveType; + } + + /** + * Sets receiveType + * + * @param string $receiveType + * @return ZzdfOrderRequest + */ + public function setReceiveType($receiveType) + { + $this->receiveType = $receiveType; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return ZzdfOrderRequest + */ + 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 ZzdfOrderRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets rechargeAcctType + * + * @return string + */ + public function getRechargeAcctType() + { + return $this->rechargeAcctType; + } + + /** + * Sets rechargeAcctType + * + * @param string $rechargeAcctType + * @return ZzdfOrderRequest + */ + public function setRechargeAcctType($rechargeAcctType) + { + $this->rechargeAcctType = $rechargeAcctType; + return $this; + } + /** + * Gets rechargeRemark + * + * @return string + */ + public function getRechargeRemark() + { + return $this->rechargeRemark; + } + + /** + * Sets rechargeRemark + * + * @param string $rechargeRemark + * @return ZzdfOrderRequest + */ + public function setRechargeRemark($rechargeRemark) + { + $this->rechargeRemark = $rechargeRemark; + return $this; + } + /** + * Gets rechargeFeeType + * + * @return string + */ + public function getRechargeFeeType() + { + return $this->rechargeFeeType; + } + + /** + * Sets rechargeFeeType + * + * @param string $rechargeFeeType + * @return ZzdfOrderRequest + */ + public function setRechargeFeeType($rechargeFeeType) + { + $this->rechargeFeeType = $rechargeFeeType; + return $this; + } + /** + * Gets rechargeBankCode + * + * @return string + */ + public function getRechargeBankCode() + { + return $this->rechargeBankCode; + } + + /** + * Sets rechargeBankCode + * + * @param string $rechargeBankCode + * @return ZzdfOrderRequest + */ + public function setRechargeBankCode($rechargeBankCode) + { + $this->rechargeBankCode = $rechargeBankCode; + return $this; + } + /** + * Gets rechargeBankCardNo + * + * @return string + */ + public function getRechargeBankCardNo() + { + return $this->rechargeBankCardNo; + } + + /** + * Sets rechargeBankCardNo + * + * @param string $rechargeBankCardNo + * @return ZzdfOrderRequest + */ + public function setRechargeBankCardNo($rechargeBankCardNo) + { + $this->rechargeBankCardNo = $rechargeBankCardNo; + return $this; + } + + public static function getOperationId() + { + return 'zzdfOrder'; + } + + +} diff --git a/lib/Service/P2f/Model/ZzdfOrderRequestMarshaller.php b/lib/Service/P2f/Model/ZzdfOrderRequestMarshaller.php new file mode 100644 index 0000000..959a2e4 --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfOrderRequestMarshaller.php @@ -0,0 +1,143 @@ +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->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->getProvince() != null){ + $internalRequest->addParameter('province', ObjectSerializer::sanitizeForSerialization($request->getProvince(), 'string')); + } + if($request->getCity() != null){ + $internalRequest->addParameter('city', ObjectSerializer::sanitizeForSerialization($request->getCity(), 'string')); + } + if($request->getBranchBankCode() != null){ + $internalRequest->addParameter('branchBankCode', ObjectSerializer::sanitizeForSerialization($request->getBranchBankCode(), 'string')); + } + if($request->getBankAccountType() != null){ + $internalRequest->addParameter('bankAccountType', ObjectSerializer::sanitizeForSerialization($request->getBankAccountType(), 'string')); + } + if($request->getComments() != null){ + $internalRequest->addParameter('comments', ObjectSerializer::sanitizeForSerialization($request->getComments(), 'string')); + } + if($request->getFeeChargeSide() != null){ + $internalRequest->addParameter('feeChargeSide', ObjectSerializer::sanitizeForSerialization($request->getFeeChargeSide(), 'string')); + } + if($request->getTerminalType() != null){ + $internalRequest->addParameter('terminalType', ObjectSerializer::sanitizeForSerialization($request->getTerminalType(), 'string')); + } + if($request->getReceiveType() != null){ + $internalRequest->addParameter('receiveType', ObjectSerializer::sanitizeForSerialization($request->getReceiveType(), '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->getRechargeAcctType() != null){ + $internalRequest->addParameter('rechargeAcctType', ObjectSerializer::sanitizeForSerialization($request->getRechargeAcctType(), 'string')); + } + if($request->getRechargeRemark() != null){ + $internalRequest->addParameter('rechargeRemark', ObjectSerializer::sanitizeForSerialization($request->getRechargeRemark(), 'string')); + } + if($request->getRechargeFeeType() != null){ + $internalRequest->addParameter('rechargeFeeType', ObjectSerializer::sanitizeForSerialization($request->getRechargeFeeType(), 'string')); + } + if($request->getRechargeBankCode() != null){ + $internalRequest->addParameter('rechargeBankCode', ObjectSerializer::sanitizeForSerialization($request->getRechargeBankCode(), 'string')); + } + if($request->getRechargeBankCardNo() != null){ + $internalRequest->addParameter('rechargeBankCardNo', ObjectSerializer::sanitizeForSerialization($request->getRechargeBankCardNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ZzdfOrderRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/ZzdfOrderResponse.php b/lib/Service/P2f/Model/ZzdfOrderResponse.php new file mode 100644 index 0000000..759cb0b --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ZzdfOrderRechargeAndPayRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/ZzdfOrderResponseUnMarshaller.php b/lib/Service/P2f/Model/ZzdfOrderResponseUnMarshaller.php new file mode 100644 index 0000000..5d63401 --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'returnMsg' => 'string', + 'requestNo' => 'string', + 'orderNo' => 'string', + 'payOrderNo' => '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', + 'rechargeOrderNo' => 'string', + 'rechargeBankCode' => 'string', + 'rechargeBankName' => 'string', + 'rechargePayerAccountNo' => 'string', + 'rechargePayerAccountName' => 'string', + 'rechargeCreditAmount' => 'float', + 'rechargeFee' => 'float', + 'rechargePayType' => 'string', + 'rechargeRemitComment' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'requestNo' => null, + 'orderNo' => null, + 'payOrderNo' => 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', + 'rechargeOrderNo' => null, + 'rechargeBankCode' => null, + 'rechargeBankName' => null, + 'rechargePayerAccountNo' => null, + 'rechargePayerAccountName' => null, + 'rechargeCreditAmount' => null, + 'rechargeFee' => null, + 'rechargePayType' => null, + 'rechargeRemitComment' => 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', + 'payOrderNo' => 'payOrderNo', + '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', + 'rechargeOrderNo' => 'rechargeOrderNo', + 'rechargeBankCode' => 'rechargeBankCode', + 'rechargeBankName' => 'rechargeBankName', + 'rechargePayerAccountNo' => 'rechargePayerAccountNo', + 'rechargePayerAccountName' => 'rechargePayerAccountName', + 'rechargeCreditAmount' => 'rechargeCreditAmount', + 'rechargeFee' => 'rechargeFee', + 'rechargePayType' => 'rechargePayType', + 'rechargeRemitComment' => 'rechargeRemitComment' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'requestNo' => 'setRequestNo', + 'orderNo' => 'setOrderNo', + 'payOrderNo' => 'setPayOrderNo', + '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', + 'rechargeOrderNo' => 'setRechargeOrderNo', + 'rechargeBankCode' => 'setRechargeBankCode', + 'rechargeBankName' => 'setRechargeBankName', + 'rechargePayerAccountNo' => 'setRechargePayerAccountNo', + 'rechargePayerAccountName' => 'setRechargePayerAccountName', + 'rechargeCreditAmount' => 'setRechargeCreditAmount', + 'rechargeFee' => 'setRechargeFee', + 'rechargePayType' => 'setRechargePayType', + 'rechargeRemitComment' => 'setRechargeRemitComment' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'requestNo' => 'getRequestNo', + 'orderNo' => 'getOrderNo', + 'payOrderNo' => 'getPayOrderNo', + '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', + 'rechargeOrderNo' => 'getRechargeOrderNo', + 'rechargeBankCode' => 'getRechargeBankCode', + 'rechargeBankName' => 'getRechargeBankName', + 'rechargePayerAccountNo' => 'getRechargePayerAccountNo', + 'rechargePayerAccountName' => 'getRechargePayerAccountName', + 'rechargeCreditAmount' => 'getRechargeCreditAmount', + 'rechargeFee' => 'getRechargeFee', + 'rechargePayType' => 'getRechargePayType', + 'rechargeRemitComment' => 'getRechargeRemitComment' + ]; + + /** + * 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['payOrderNo'] = isset($data['payOrderNo']) ? $data['payOrderNo'] : 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; + $this->container['rechargeOrderNo'] = isset($data['rechargeOrderNo']) ? $data['rechargeOrderNo'] : null; + $this->container['rechargeBankCode'] = isset($data['rechargeBankCode']) ? $data['rechargeBankCode'] : null; + $this->container['rechargeBankName'] = isset($data['rechargeBankName']) ? $data['rechargeBankName'] : null; + $this->container['rechargePayerAccountNo'] = isset($data['rechargePayerAccountNo']) ? $data['rechargePayerAccountNo'] : null; + $this->container['rechargePayerAccountName'] = isset($data['rechargePayerAccountName']) ? $data['rechargePayerAccountName'] : null; + $this->container['rechargeCreditAmount'] = isset($data['rechargeCreditAmount']) ? $data['rechargeCreditAmount'] : null; + $this->container['rechargeFee'] = isset($data['rechargeFee']) ? $data['rechargeFee'] : null; + $this->container['rechargePayType'] = isset($data['rechargePayType']) ? $data['rechargePayType'] : null; + $this->container['rechargeRemitComment'] = isset($data['rechargeRemitComment']) ? $data['rechargeRemitComment'] : 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 payOrderNo + * + * @return string + */ + public function getPayOrderNo() + { + return $this->container['payOrderNo']; + } + + /** + * Sets payOrderNo + * + * @param string $payOrderNo 付款订单号 + * + * @return $this + */ + public function setPayOrderNo($payOrderNo) + { + $this->container['payOrderNo'] = $payOrderNo; + + 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; + } + + /** + * Gets rechargeOrderNo + * + * @return string + */ + public function getRechargeOrderNo() + { + return $this->container['rechargeOrderNo']; + } + + /** + * Sets rechargeOrderNo + * + * @param string $rechargeOrderNo 充值订单号 + * + * @return $this + */ + public function setRechargeOrderNo($rechargeOrderNo) + { + $this->container['rechargeOrderNo'] = $rechargeOrderNo; + + return $this; + } + + /** + * Gets rechargeBankCode + * + * @return string + */ + public function getRechargeBankCode() + { + return $this->container['rechargeBankCode']; + } + + /** + * Sets rechargeBankCode + * + * @param string $rechargeBankCode 充值银行编码 + * + * @return $this + */ + public function setRechargeBankCode($rechargeBankCode) + { + $this->container['rechargeBankCode'] = $rechargeBankCode; + + return $this; + } + + /** + * Gets rechargeBankName + * + * @return string + */ + public function getRechargeBankName() + { + return $this->container['rechargeBankName']; + } + + /** + * Sets rechargeBankName + * + * @param string $rechargeBankName 充值银行名称 + * + * @return $this + */ + public function setRechargeBankName($rechargeBankName) + { + $this->container['rechargeBankName'] = $rechargeBankName; + + return $this; + } + + /** + * Gets rechargePayerAccountNo + * + * @return string + */ + public function getRechargePayerAccountNo() + { + return $this->container['rechargePayerAccountNo']; + } + + /** + * Sets rechargePayerAccountNo + * + * @param string $rechargePayerAccountNo 充值付款方账号 + * + * @return $this + */ + public function setRechargePayerAccountNo($rechargePayerAccountNo) + { + $this->container['rechargePayerAccountNo'] = $rechargePayerAccountNo; + + return $this; + } + + /** + * Gets rechargePayerAccountName + * + * @return string + */ + public function getRechargePayerAccountName() + { + return $this->container['rechargePayerAccountName']; + } + + /** + * Sets rechargePayerAccountName + * + * @param string $rechargePayerAccountName 充值付款方开户名 + * + * @return $this + */ + public function setRechargePayerAccountName($rechargePayerAccountName) + { + $this->container['rechargePayerAccountName'] = $rechargePayerAccountName; + + return $this; + } + + /** + * Gets rechargeCreditAmount + * + * @return float + */ + public function getRechargeCreditAmount() + { + return $this->container['rechargeCreditAmount']; + } + + /** + * Sets rechargeCreditAmount + * + * @param float $rechargeCreditAmount 充值入账金额 + * + * @return $this + */ + public function setRechargeCreditAmount($rechargeCreditAmount) + { + $this->container['rechargeCreditAmount'] = $rechargeCreditAmount; + + return $this; + } + + /** + * Gets rechargeFee + * + * @return float + */ + public function getRechargeFee() + { + return $this->container['rechargeFee']; + } + + /** + * Sets rechargeFee + * + * @param float $rechargeFee 充值手续费 + * + * @return $this + */ + public function setRechargeFee($rechargeFee) + { + $this->container['rechargeFee'] = $rechargeFee; + + return $this; + } + + /** + * Gets rechargePayType + * + * @return string + */ + public function getRechargePayType() + { + return $this->container['rechargePayType']; + } + + /** + * Sets rechargePayType + * + * @param string $rechargePayType 充值支付方式 + * + * @return $this + */ + public function setRechargePayType($rechargePayType) + { + $this->container['rechargePayType'] = $rechargePayType; + + return $this; + } + + /** + * Gets rechargeRemitComment + * + * @return string + */ + public function getRechargeRemitComment() + { + return $this->container['rechargeRemitComment']; + } + + /** + * Sets rechargeRemitComment + * + * @param string $rechargeRemitComment 汇款备注码 + * + * @return $this + */ + public function setRechargeRemitComment($rechargeRemitComment) + { + $this->container['rechargeRemitComment'] = $rechargeRemitComment; + + 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)); + } +} + + diff --git a/lib/Service/P2f/Model/ZzdfQueryRequest.php b/lib/Service/P2f/Model/ZzdfQueryRequest.php new file mode 100644 index 0000000..0526383 --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfQueryRequest.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ZzdfQueryRequest + */ + 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 ZzdfQueryRequest + */ + 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 ZzdfQueryRequest + */ + 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 ZzdfQueryRequest + */ + public function setOrderNo($orderNo) + { + $this->orderNo = $orderNo; + return $this; + } + + public static function getOperationId() + { + return 'zzdfQuery'; + } + + +} diff --git a/lib/Service/P2f/Model/ZzdfQueryRequestMarshaller.php b/lib/Service/P2f/Model/ZzdfQueryRequestMarshaller.php new file mode 100644 index 0000000..6bf7fbe --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOrderNo() != null){ + $internalRequest->addParameter('orderNo', ObjectSerializer::sanitizeForSerialization($request->getOrderNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ZzdfQueryRequestMarshaller::__init(); diff --git a/lib/Service/P2f/Model/ZzdfQueryResponse.php b/lib/Service/P2f/Model/ZzdfQueryResponse.php new file mode 100644 index 0000000..bc3651f --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ZzdfQueryQueryRechargeAndPayRspDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/P2f/Model/ZzdfQueryResponseUnMarshaller.php b/lib/Service/P2f/Model/ZzdfQueryResponseUnMarshaller.php new file mode 100644 index 0000000..f4a490a --- /dev/null +++ b/lib/Service/P2f/Model/ZzdfQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\CompanyFinanceAccountRequest $request + * @return Model\CompanyFinanceAccountResponse + * @throws YopClientException + */ + public function companyFinanceAccount(Model\CompanyFinanceAccountRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceAccountRequestMarshaller::getInstance(), + Model\CompanyFinanceAccountResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinanceAccountQueryRequest $request + * @return Model\CompanyFinanceAccountQueryResponse + * @throws YopClientException + */ + public function companyFinanceAccountQuery(Model\CompanyFinanceAccountQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getChannelCode() == null) { + throw new YopClientException("request.channelCode is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceAccountQueryRequestMarshaller::getInstance(), + Model\CompanyFinanceAccountQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinanceAssetsQueryRequest $request + * @return Model\CompanyFinanceAssetsQueryResponse + * @throws YopClientException + */ + public function companyFinanceAssetsQuery(Model\CompanyFinanceAssetsQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getChannelCode() == null) { + throw new YopClientException("request.channelCode is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceAssetsQueryRequestMarshaller::getInstance(), + Model\CompanyFinanceAssetsQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinanceOrderQueryRequest $request + * @return Model\CompanyFinanceOrderQueryResponse + * @throws YopClientException + */ + public function companyFinanceOrderQuery(Model\CompanyFinanceOrderQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getBizType() == null) { + throw new YopClientException("request.bizType is required."); + } + if ($request->getChannelCode() == null) { + throw new YopClientException("request.channelCode is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceOrderQueryRequestMarshaller::getInstance(), + Model\CompanyFinanceOrderQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinancePurchaseOrderRequest $request + * @return Model\CompanyFinancePurchaseOrderResponse + * @throws YopClientException + */ + public function companyFinancePurchaseOrder(Model\CompanyFinancePurchaseOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinancePurchaseOrderRequestMarshaller::getInstance(), + Model\CompanyFinancePurchaseOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinanceRedeemOrderRequest $request + * @return Model\CompanyFinanceRedeemOrderResponse + * @throws YopClientException + */ + public function companyFinanceRedeemOrder(Model\CompanyFinanceRedeemOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceRedeemOrderRequestMarshaller::getInstance(), + Model\CompanyFinanceRedeemOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinanceSmallPaymentRequest $request + * @return Model\CompanyFinanceSmallPaymentResponse + * @throws YopClientException + */ + public function companyFinanceSmallPayment(Model\CompanyFinanceSmallPaymentRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceSmallPaymentRequestMarshaller::getInstance(), + Model\CompanyFinanceSmallPaymentResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CompanyFinanceTransactionQueryRequest $request + * @return Model\CompanyFinanceTransactionQueryResponse + * @throws YopClientException + */ + public function companyFinanceTransactionQuery(Model\CompanyFinanceTransactionQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getStartDate() == null) { + throw new YopClientException("request.startDate is required."); + } + if ($request->getEndDate() == null) { + throw new YopClientException("request.endDate is required."); + } + if ($request->getChannelCode() == null) { + throw new YopClientException("request.channelCode is required."); + } + if ($request->getRequestNo() == null) { + throw new YopClientException("request.requestNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CompanyFinanceTransactionQueryRequestMarshaller::getInstance(), + Model\CompanyFinanceTransactionQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\FileUploadRequest $request + * @return Model\FileUploadResponse + * @throws YopClientException + */ + public function fileUpload(Model\FileUploadRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\FileUploadRequestMarshaller::getInstance(), + Model\FileUploadResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\ZzdfOrderRequest $request + * @return Model\ZzdfOrderResponse + * @throws YopClientException + */ + public function zzdfOrder(Model\ZzdfOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\ZzdfOrderRequestMarshaller::getInstance(), + Model\ZzdfOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\ZzdfQueryRequest $request + * @return Model\ZzdfQueryResponse + * @throws YopClientException + */ + public function zzdfQuery(Model\ZzdfQueryRequest $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\ZzdfQueryRequestMarshaller::getInstance(), + Model\ZzdfQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/P2f/P2fClientBuilder.php b/lib/Service/P2f/P2fClientBuilder.php new file mode 100644 index 0000000..366d8d9 --- /dev/null +++ b/lib/Service/P2f/P2fClientBuilder.php @@ -0,0 +1,78 @@ +register('companyFinanceAccount', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinanceAccountQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinanceAssetsQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinanceOrderQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinancePurchaseOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinanceRedeemOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinanceSmallPayment', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('companyFinanceTransactionQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('fileUpload', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('zzdfOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('zzdfQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * P2fClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new P2fClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return P2fClientBuilder + * @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 P2fClientBuilder($clientParams); + } + +} +P2fClientBuilder::__init(); diff --git a/lib/Service/Pos/Model/GetPosInfoDtosPosInfoDtoResult.php b/lib/Service/Pos/Model/GetPosInfoDtosPosInfoDtoResult.php new file mode 100644 index 0000000..d380e0a --- /dev/null +++ b/lib/Service/Pos/Model/GetPosInfoDtosPosInfoDtoResult.php @@ -0,0 +1,692 @@ +pos对外接口

+ * + * OpenAPI spec version: 1.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\Pos\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * GetPosInfoDtosPosInfoDtoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class GetPosInfoDtosPosInfoDtoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'GetPosInfoDtosPosInfoDtoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'serialNumber' => 'string', + 'posCATI' => 'string', + 'customerNumber' => 'string', + 'shortName' => 'string', + 'shopCustomerNumber' => 'string', + 'shopName' => 'string', + 'address' => 'string', + 'fullName' => 'string', + 'productLine' => 'string', + 'salesName' => 'string', + 'posStatus' => 'string', + 'posType' => 'string', + 'posManufacturer' => 'string', + 'posCreateTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'serialNumber' => null, + 'posCATI' => null, + 'customerNumber' => null, + 'shortName' => null, + 'shopCustomerNumber' => null, + 'shopName' => null, + 'address' => null, + 'fullName' => null, + 'productLine' => null, + 'salesName' => null, + 'posStatus' => null, + 'posType' => null, + 'posManufacturer' => null, + 'posCreateTime' => '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 = [ + 'serialNumber' => 'serialNumber', + 'posCATI' => 'posCATI', + 'customerNumber' => 'customerNumber', + 'shortName' => 'shortName', + 'shopCustomerNumber' => 'shopCustomerNumber', + 'shopName' => 'shopName', + 'address' => 'address', + 'fullName' => 'fullName', + 'productLine' => 'productLine', + 'salesName' => 'salesName', + 'posStatus' => 'posStatus', + 'posType' => 'posType', + 'posManufacturer' => 'posManufacturer', + 'posCreateTime' => 'posCreateTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'serialNumber' => 'setSerialNumber', + 'posCATI' => 'setPosCATI', + 'customerNumber' => 'setCustomerNumber', + 'shortName' => 'setShortName', + 'shopCustomerNumber' => 'setShopCustomerNumber', + 'shopName' => 'setShopName', + 'address' => 'setAddress', + 'fullName' => 'setFullName', + 'productLine' => 'setProductLine', + 'salesName' => 'setSalesName', + 'posStatus' => 'setPosStatus', + 'posType' => 'setPosType', + 'posManufacturer' => 'setPosManufacturer', + 'posCreateTime' => 'setPosCreateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'serialNumber' => 'getSerialNumber', + 'posCATI' => 'getPosCATI', + 'customerNumber' => 'getCustomerNumber', + 'shortName' => 'getShortName', + 'shopCustomerNumber' => 'getShopCustomerNumber', + 'shopName' => 'getShopName', + 'address' => 'getAddress', + 'fullName' => 'getFullName', + 'productLine' => 'getProductLine', + 'salesName' => 'getSalesName', + 'posStatus' => 'getPosStatus', + 'posType' => 'getPosType', + 'posManufacturer' => 'getPosManufacturer', + 'posCreateTime' => 'getPosCreateTime' + ]; + + /** + * 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['serialNumber'] = isset($data['serialNumber']) ? $data['serialNumber'] : null; + $this->container['posCATI'] = isset($data['posCATI']) ? $data['posCATI'] : null; + $this->container['customerNumber'] = isset($data['customerNumber']) ? $data['customerNumber'] : null; + $this->container['shortName'] = isset($data['shortName']) ? $data['shortName'] : null; + $this->container['shopCustomerNumber'] = isset($data['shopCustomerNumber']) ? $data['shopCustomerNumber'] : null; + $this->container['shopName'] = isset($data['shopName']) ? $data['shopName'] : null; + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['fullName'] = isset($data['fullName']) ? $data['fullName'] : null; + $this->container['productLine'] = isset($data['productLine']) ? $data['productLine'] : null; + $this->container['salesName'] = isset($data['salesName']) ? $data['salesName'] : null; + $this->container['posStatus'] = isset($data['posStatus']) ? $data['posStatus'] : null; + $this->container['posType'] = isset($data['posType']) ? $data['posType'] : null; + $this->container['posManufacturer'] = isset($data['posManufacturer']) ? $data['posManufacturer'] : null; + $this->container['posCreateTime'] = isset($data['posCreateTime']) ? $data['posCreateTime'] : 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 serialNumber + * + * @return string + */ + public function getSerialNumber() + { + return $this->container['serialNumber']; + } + + /** + * Sets serialNumber + * + * @param string $serialNumber 机具序列号 + * + * @return $this + */ + public function setSerialNumber($serialNumber) + { + $this->container['serialNumber'] = $serialNumber; + + return $this; + } + + /** + * Gets posCATI + * + * @return string + */ + public function getPosCATI() + { + return $this->container['posCATI']; + } + + /** + * Sets posCATI + * + * @param string $posCATI 终端号 + * + * @return $this + */ + public function setPosCATI($posCATI) + { + $this->container['posCATI'] = $posCATI; + + return $this; + } + + /** + * Gets customerNumber + * + * @return string + */ + public function getCustomerNumber() + { + return $this->container['customerNumber']; + } + + /** + * Sets customerNumber + * + * @param string $customerNumber 商户编号 + * + * @return $this + */ + public function setCustomerNumber($customerNumber) + { + $this->container['customerNumber'] = $customerNumber; + + return $this; + } + + /** + * Gets shortName + * + * @return string + */ + public function getShortName() + { + return $this->container['shortName']; + } + + /** + * Sets shortName + * + * @param string $shortName 商户简称 + * + * @return $this + */ + public function setShortName($shortName) + { + $this->container['shortName'] = $shortName; + + return $this; + } + + /** + * Gets shopCustomerNumber + * + * @return string + */ + public function getShopCustomerNumber() + { + return $this->container['shopCustomerNumber']; + } + + /** + * Sets shopCustomerNumber + * + * @param string $shopCustomerNumber 网点商户编号 + * + * @return $this + */ + public function setShopCustomerNumber($shopCustomerNumber) + { + $this->container['shopCustomerNumber'] = $shopCustomerNumber; + + return $this; + } + + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->container['shopName']; + } + + /** + * Sets shopName + * + * @param string $shopName 网点名称 + * + * @return $this + */ + public function setShopName($shopName) + { + $this->container['shopName'] = $shopName; + + return $this; + } + + /** + * Gets address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address 网点详细地址 + * + * @return $this + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets fullName + * + * @return string + */ + public function getFullName() + { + return $this->container['fullName']; + } + + /** + * Sets fullName + * + * @param string $fullName 商户全称 + * + * @return $this + */ + public function setFullName($fullName) + { + $this->container['fullName'] = $fullName; + + return $this; + } + + /** + * Gets productLine + * + * @return string + */ + public function getProductLine() + { + return $this->container['productLine']; + } + + /** + * Sets productLine + * + * @param string $productLine 产品线 + * + * @return $this + */ + public function setProductLine($productLine) + { + $this->container['productLine'] = $productLine; + + return $this; + } + + /** + * Gets salesName + * + * @return string + */ + public function getSalesName() + { + return $this->container['salesName']; + } + + /** + * Sets salesName + * + * @param string $salesName 销售名称 + * + * @return $this + */ + public function setSalesName($salesName) + { + $this->container['salesName'] = $salesName; + + return $this; + } + + /** + * Gets posStatus + * + * @return string + */ + public function getPosStatus() + { + return $this->container['posStatus']; + } + + /** + * Sets posStatus + * + * @param string $posStatus 机具状态 + * + * @return $this + */ + public function setPosStatus($posStatus) + { + $this->container['posStatus'] = $posStatus; + + return $this; + } + + /** + * Gets posType + * + * @return string + */ + public function getPosType() + { + return $this->container['posType']; + } + + /** + * Sets posType + * + * @param string $posType 机具型号 + * + * @return $this + */ + public function setPosType($posType) + { + $this->container['posType'] = $posType; + + return $this; + } + + /** + * Gets posManufacturer + * + * @return string + */ + public function getPosManufacturer() + { + return $this->container['posManufacturer']; + } + + /** + * Sets posManufacturer + * + * @param string $posManufacturer 机具所属厂商 + * + * @return $this + */ + public function setPosManufacturer($posManufacturer) + { + $this->container['posManufacturer'] = $posManufacturer; + + return $this; + } + + /** + * Gets posCreateTime + * + * @return string + */ + public function getPosCreateTime() + { + return $this->container['posCreateTime']; + } + + /** + * Sets posCreateTime + * + * @param string $posCreateTime 绑机时间 + * + * @return $this + */ + public function setPosCreateTime($posCreateTime) + { + $this->container['posCreateTime'] = $posCreateTime; + + 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)); + } +} + + diff --git a/lib/Service/Pos/Model/GetPosInfoDtosPosInfoResponseParamResult.php b/lib/Service/Pos/Model/GetPosInfoDtosPosInfoResponseParamResult.php new file mode 100644 index 0000000..c3f3f51 --- /dev/null +++ b/lib/Service/Pos/Model/GetPosInfoDtosPosInfoResponseParamResult.php @@ -0,0 +1,362 @@ +pos对外接口

+ * + * OpenAPI spec version: 1.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\Pos\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * GetPosInfoDtosPosInfoResponseParamResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class GetPosInfoDtosPosInfoResponseParamResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'GetPosInfoDtosPosInfoResponseParamResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'returnMsg' => 'string', + 'returnCode' => 'string', + 'posInfos' => '\Yeepay\Yop\Sdk\Service\Pos\Model\GetPosInfoDtosPosInfoDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnMsg' => null, + 'returnCode' => null, + 'posInfos' => 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 = [ + 'returnMsg' => 'returnMsg', + 'returnCode' => 'returnCode', + 'posInfos' => 'posInfos' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnMsg' => 'setReturnMsg', + 'returnCode' => 'setReturnCode', + 'posInfos' => 'setPosInfos' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnMsg' => 'getReturnMsg', + 'returnCode' => 'getReturnCode', + 'posInfos' => 'getPosInfos' + ]; + + /** + * 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['returnMsg'] = isset($data['returnMsg']) ? $data['returnMsg'] : null; + $this->container['returnCode'] = isset($data['returnCode']) ? $data['returnCode'] : null; + $this->container['posInfos'] = isset($data['posInfos']) ? $data['posInfos'] : 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 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 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 posInfos + * + * @return \Yeepay\Yop\Sdk\Service\Pos\Model\GetPosInfoDtosPosInfoDtoResult[] + */ + public function getPosInfos() + { + return $this->container['posInfos']; + } + + /** + * Sets posInfos + * + * @param \Yeepay\Yop\Sdk\Service\Pos\Model\GetPosInfoDtosPosInfoDtoResult[] $posInfos 未命名 + * + * @return $this + */ + public function setPosInfos($posInfos) + { + $this->container['posInfos'] = $posInfos; + + 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)); + } +} + + diff --git a/lib/Service/Pos/Model/GetPosInfoDtosRequest.php b/lib/Service/Pos/Model/GetPosInfoDtosRequest.php new file mode 100644 index 0000000..692cabf --- /dev/null +++ b/lib/Service/Pos/Model/GetPosInfoDtosRequest.php @@ -0,0 +1,117 @@ +customerNumber; + } + + /** + * Sets customerNumber + * + * @param string $customerNumber + * @return GetPosInfoDtosRequest + */ + public function setCustomerNumber($customerNumber) + { + $this->customerNumber = $customerNumber; + return $this; + } + /** + * Gets posCati + * + * @return string + */ + public function getPosCati() + { + return $this->posCati; + } + + /** + * Sets posCati + * + * @param string $posCati + * @return GetPosInfoDtosRequest + */ + public function setPosCati($posCati) + { + $this->posCati = $posCati; + return $this; + } + /** + * Gets serialNumber + * + * @return string + */ + public function getSerialNumber() + { + return $this->serialNumber; + } + + /** + * Sets serialNumber + * + * @param string $serialNumber + * @return GetPosInfoDtosRequest + */ + public function setSerialNumber($serialNumber) + { + $this->serialNumber = $serialNumber; + return $this; + } + /** + * Gets shopName + * + * @return string + */ + public function getShopName() + { + return $this->shopName; + } + + /** + * Sets shopName + * + * @param string $shopName + * @return GetPosInfoDtosRequest + */ + public function setShopName($shopName) + { + $this->shopName = $shopName; + return $this; + } + + public static function getOperationId() + { + return 'getPosInfoDtos'; + } + + +} diff --git a/lib/Service/Pos/Model/GetPosInfoDtosRequestMarshaller.php b/lib/Service/Pos/Model/GetPosInfoDtosRequestMarshaller.php new file mode 100644 index 0000000..0a2fe45 --- /dev/null +++ b/lib/Service/Pos/Model/GetPosInfoDtosRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getCustomerNumber() != null){ + $internalRequest->addParameter('customerNumber', ObjectSerializer::sanitizeForSerialization($request->getCustomerNumber(), 'string')); + } + if($request->getPosCati() != null){ + $internalRequest->addParameter('posCati', ObjectSerializer::sanitizeForSerialization($request->getPosCati(), 'string')); + } + if($request->getSerialNumber() != null){ + $internalRequest->addParameter('serialNumber', ObjectSerializer::sanitizeForSerialization($request->getSerialNumber(), 'string')); + } + if($request->getShopName() != null){ + $internalRequest->addParameter('shopName', ObjectSerializer::sanitizeForSerialization($request->getShopName(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +GetPosInfoDtosRequestMarshaller::__init(); diff --git a/lib/Service/Pos/Model/GetPosInfoDtosResponse.php b/lib/Service/Pos/Model/GetPosInfoDtosResponse.php new file mode 100644 index 0000000..6a08804 --- /dev/null +++ b/lib/Service/Pos/Model/GetPosInfoDtosResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return GetPosInfoDtosPosInfoResponseParamResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Pos/Model/GetPosInfoDtosResponseUnMarshaller.php b/lib/Service/Pos/Model/GetPosInfoDtosResponseUnMarshaller.php new file mode 100644 index 0000000..4f46c4f --- /dev/null +++ b/lib/Service/Pos/Model/GetPosInfoDtosResponseUnMarshaller.php @@ -0,0 +1,39 @@ +pos对外接口

+ * + * OpenAPI spec version: 1.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\Pos\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallPosWithProductInstallPosWithProductParamParam Class Doc Comment + * + * @category Class + * @description 方法签名第0个参数,请自行修改arg0等参数的名字 + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallPosWithProductInstallPosWithProductParamParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallPosWithProductInstallPosWithProductParamParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'customerNumber' => 'string', + 'agentCode' => 'string', + 'productCode' => 'string', + 'externalMcc' => 'string', + 'customerType' => 'string', + 'shopList' => '\Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPreShopParam[]', + 'posList' => '\Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPrePosParam[]', + 'timeStampbind' => 'int', + 'hmacbind' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'customerNumber' => null, + 'agentCode' => null, + 'productCode' => null, + 'externalMcc' => null, + 'customerType' => null, + 'shopList' => null, + 'posList' => null, + 'timeStampbind' => 'int64', + 'hmacbind' => 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 = [ + 'customerNumber' => 'customerNumber', + 'agentCode' => 'agentCode', + 'productCode' => 'productCode', + 'externalMcc' => 'externalMcc', + 'customerType' => 'customerType', + 'shopList' => 'shopList', + 'posList' => 'posList', + 'timeStampbind' => 'timeStampbind', + 'hmacbind' => 'hmacbind' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'customerNumber' => 'setCustomerNumber', + 'agentCode' => 'setAgentCode', + 'productCode' => 'setProductCode', + 'externalMcc' => 'setExternalMcc', + 'customerType' => 'setCustomerType', + 'shopList' => 'setShopList', + 'posList' => 'setPosList', + 'timeStampbind' => 'setTimeStampbind', + 'hmacbind' => 'setHmacbind' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'customerNumber' => 'getCustomerNumber', + 'agentCode' => 'getAgentCode', + 'productCode' => 'getProductCode', + 'externalMcc' => 'getExternalMcc', + 'customerType' => 'getCustomerType', + 'shopList' => 'getShopList', + 'posList' => 'getPosList', + 'timeStampbind' => 'getTimeStampbind', + 'hmacbind' => 'getHmacbind' + ]; + + /** + * 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['customerNumber'] = isset($data['customerNumber']) ? $data['customerNumber'] : null; + $this->container['agentCode'] = isset($data['agentCode']) ? $data['agentCode'] : null; + $this->container['productCode'] = isset($data['productCode']) ? $data['productCode'] : null; + $this->container['externalMcc'] = isset($data['externalMcc']) ? $data['externalMcc'] : null; + $this->container['customerType'] = isset($data['customerType']) ? $data['customerType'] : null; + $this->container['shopList'] = isset($data['shopList']) ? $data['shopList'] : null; + $this->container['posList'] = isset($data['posList']) ? $data['posList'] : null; + $this->container['timeStampbind'] = isset($data['timeStampbind']) ? $data['timeStampbind'] : null; + $this->container['hmacbind'] = isset($data['hmacbind']) ? $data['hmacbind'] : 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 customerNumber + * + * @return string + */ + public function getCustomerNumber() + { + return $this->container['customerNumber']; + } + + /** + * Sets customerNumber + * + * @param string $customerNumber customerNumber + * + * @return $this + */ + public function setCustomerNumber($customerNumber) + { + $this->container['customerNumber'] = $customerNumber; + + return $this; + } + + /** + * Gets agentCode + * + * @return string + */ + public function getAgentCode() + { + return $this->container['agentCode']; + } + + /** + * Sets agentCode + * + * @param string $agentCode agentCode + * + * @return $this + */ + public function setAgentCode($agentCode) + { + $this->container['agentCode'] = $agentCode; + + return $this; + } + + /** + * Gets productCode + * + * @return string + */ + public function getProductCode() + { + return $this->container['productCode']; + } + + /** + * Sets productCode + * + * @param string $productCode productCode + * + * @return $this + */ + public function setProductCode($productCode) + { + $this->container['productCode'] = $productCode; + + return $this; + } + + /** + * Gets externalMcc + * + * @return string + */ + public function getExternalMcc() + { + return $this->container['externalMcc']; + } + + /** + * Sets externalMcc + * + * @param string $externalMcc externalMcc + * + * @return $this + */ + public function setExternalMcc($externalMcc) + { + $this->container['externalMcc'] = $externalMcc; + + return $this; + } + + /** + * Gets customerType + * + * @return string + */ + public function getCustomerType() + { + return $this->container['customerType']; + } + + /** + * Sets customerType + * + * @param string $customerType customerType + * + * @return $this + */ + public function setCustomerType($customerType) + { + $this->container['customerType'] = $customerType; + + return $this; + } + + /** + * Gets shopList + * + * @return \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPreShopParam[] + */ + public function getShopList() + { + return $this->container['shopList']; + } + + /** + * Sets shopList + * + * @param \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPreShopParam[] $shopList shopList + * + * @return $this + */ + public function setShopList($shopList) + { + $this->container['shopList'] = $shopList; + + return $this; + } + + /** + * Gets posList + * + * @return \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPrePosParam[] + */ + public function getPosList() + { + return $this->container['posList']; + } + + /** + * Sets posList + * + * @param \Yeepay\Yop\Sdk\Service\Pos\Model\InstallPosWithProductPrePosParam[] $posList posList + * + * @return $this + */ + public function setPosList($posList) + { + $this->container['posList'] = $posList; + + return $this; + } + + /** + * Gets timeStampbind + * + * @return int + */ + public function getTimeStampbind() + { + return $this->container['timeStampbind']; + } + + /** + * Sets timeStampbind + * + * @param int $timeStampbind timeStampbind + * + * @return $this + */ + public function setTimeStampbind($timeStampbind) + { + $this->container['timeStampbind'] = $timeStampbind; + + return $this; + } + + /** + * Gets hmacbind + * + * @return string + */ + public function getHmacbind() + { + return $this->container['hmacbind']; + } + + /** + * Sets hmacbind + * + * @param string $hmacbind hmacbind + * + * @return $this + */ + public function setHmacbind($hmacbind) + { + $this->container['hmacbind'] = $hmacbind; + + 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)); + } +} + + diff --git a/lib/Service/Pos/Model/InstallPosWithProductPrePosParam.php b/lib/Service/Pos/Model/InstallPosWithProductPrePosParam.php new file mode 100644 index 0000000..406f037 --- /dev/null +++ b/lib/Service/Pos/Model/InstallPosWithProductPrePosParam.php @@ -0,0 +1,333 @@ +pos对外接口

+ * + * OpenAPI spec version: 1.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\Pos\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallPosWithProductPrePosParam Class Doc Comment + * + * @category Class + * @description + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallPosWithProductPrePosParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallPosWithProductPrePosParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'preShopName' => 'string', + 'serialNumber' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'preShopName' => null, + 'serialNumber' => 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 = [ + 'preShopName' => 'preShopName', + 'serialNumber' => 'serialNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'preShopName' => 'setPreShopName', + 'serialNumber' => 'setSerialNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'preShopName' => 'getPreShopName', + 'serialNumber' => 'getSerialNumber' + ]; + + /** + * 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['preShopName'] = isset($data['preShopName']) ? $data['preShopName'] : null; + $this->container['serialNumber'] = isset($data['serialNumber']) ? $data['serialNumber'] : 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 preShopName + * + * @return string + */ + public function getPreShopName() + { + return $this->container['preShopName']; + } + + /** + * Sets preShopName + * + * @param string $preShopName preShopName + * + * @return $this + */ + public function setPreShopName($preShopName) + { + $this->container['preShopName'] = $preShopName; + + return $this; + } + + /** + * Gets serialNumber + * + * @return string + */ + public function getSerialNumber() + { + return $this->container['serialNumber']; + } + + /** + * Sets serialNumber + * + * @param string $serialNumber serialNumber + * + * @return $this + */ + public function setSerialNumber($serialNumber) + { + $this->container['serialNumber'] = $serialNumber; + + 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)); + } +} + + diff --git a/lib/Service/Pos/Model/InstallPosWithProductPreShopParam.php b/lib/Service/Pos/Model/InstallPosWithProductPreShopParam.php new file mode 100644 index 0000000..35084fa --- /dev/null +++ b/lib/Service/Pos/Model/InstallPosWithProductPreShopParam.php @@ -0,0 +1,723 @@ +pos对外接口

+ * + * OpenAPI spec version: 1.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\Pos\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * InstallPosWithProductPreShopParam Class Doc Comment + * + * @category Class + * @description 需要新增网点或者修改网点时必填 + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class InstallPosWithProductPreShopParam implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'InstallPosWithProductPreShopParam'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'name' => 'string', + 'createTime' => 'string', + 'address' => 'string', + 'linkman' => 'string', + 'phone' => 'string', + 'mobile' => 'string', + 'orderCode' => 'string', + 'status' => 'string', + 'province' => 'string', + 'city' => 'string', + 'county' => 'string', + 'bindphone' => 'string', + 'isupdate' => 'bool', + 'isNew' => 'bool', + 'default' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'name' => null, + 'createTime' => 'date-time', + 'address' => null, + 'linkman' => null, + 'phone' => null, + 'mobile' => null, + 'orderCode' => null, + 'status' => null, + 'province' => null, + 'city' => null, + 'county' => null, + 'bindphone' => null, + 'isupdate' => null, + 'isNew' => null, + 'default' => 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 = [ + 'name' => 'name', + 'createTime' => 'createTime', + 'address' => 'address', + 'linkman' => 'linkman', + 'phone' => 'phone', + 'mobile' => 'mobile', + 'orderCode' => 'orderCode', + 'status' => 'status', + 'province' => 'province', + 'city' => 'city', + 'county' => 'county', + 'bindphone' => 'bindphone', + 'isupdate' => 'isupdate', + 'isNew' => 'isNew', + 'default' => 'default' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName', + 'createTime' => 'setCreateTime', + 'address' => 'setAddress', + 'linkman' => 'setLinkman', + 'phone' => 'setPhone', + 'mobile' => 'setMobile', + 'orderCode' => 'setOrderCode', + 'status' => 'setStatus', + 'province' => 'setProvince', + 'city' => 'setCity', + 'county' => 'setCounty', + 'bindphone' => 'setBindphone', + 'isupdate' => 'setIsupdate', + 'isNew' => 'setIsNew', + 'default' => 'setDefault' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName', + 'createTime' => 'getCreateTime', + 'address' => 'getAddress', + 'linkman' => 'getLinkman', + 'phone' => 'getPhone', + 'mobile' => 'getMobile', + 'orderCode' => 'getOrderCode', + 'status' => 'getStatus', + 'province' => 'getProvince', + 'city' => 'getCity', + 'county' => 'getCounty', + 'bindphone' => 'getBindphone', + 'isupdate' => 'getIsupdate', + 'isNew' => 'getIsNew', + 'default' => 'getDefault' + ]; + + /** + * 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['name'] = isset($data['name']) ? $data['name'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['address'] = isset($data['address']) ? $data['address'] : null; + $this->container['linkman'] = isset($data['linkman']) ? $data['linkman'] : null; + $this->container['phone'] = isset($data['phone']) ? $data['phone'] : null; + $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null; + $this->container['orderCode'] = isset($data['orderCode']) ? $data['orderCode'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['province'] = isset($data['province']) ? $data['province'] : null; + $this->container['city'] = isset($data['city']) ? $data['city'] : null; + $this->container['county'] = isset($data['county']) ? $data['county'] : null; + $this->container['bindphone'] = isset($data['bindphone']) ? $data['bindphone'] : null; + $this->container['isupdate'] = isset($data['isupdate']) ? $data['isupdate'] : null; + $this->container['isNew'] = isset($data['isNew']) ? $data['isNew'] : null; + $this->container['default'] = isset($data['default']) ? $data['default'] : 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 name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return $this + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets createTime + * + * @return string + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param string $createTime createTime + * + * @return $this + */ + public function setCreateTime($createTime) + { + $this->container['createTime'] = $createTime; + + return $this; + } + + /** + * Gets address + * + * @return string + */ + public function getAddress() + { + return $this->container['address']; + } + + /** + * Sets address + * + * @param string $address address + * + * @return $this + */ + public function setAddress($address) + { + $this->container['address'] = $address; + + return $this; + } + + /** + * Gets linkman + * + * @return string + */ + public function getLinkman() + { + return $this->container['linkman']; + } + + /** + * Sets linkman + * + * @param string $linkman linkman + * + * @return $this + */ + public function setLinkman($linkman) + { + $this->container['linkman'] = $linkman; + + return $this; + } + + /** + * Gets phone + * + * @return string + */ + public function getPhone() + { + return $this->container['phone']; + } + + /** + * Sets phone + * + * @param string $phone phone + * + * @return $this + */ + public function setPhone($phone) + { + $this->container['phone'] = $phone; + + return $this; + } + + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->container['mobile']; + } + + /** + * Sets mobile + * + * @param string $mobile mobile + * + * @return $this + */ + public function setMobile($mobile) + { + $this->container['mobile'] = $mobile; + + return $this; + } + + /** + * Gets orderCode + * + * @return string + */ + public function getOrderCode() + { + return $this->container['orderCode']; + } + + /** + * Sets orderCode + * + * @param string $orderCode orderCode + * + * @return $this + */ + public function setOrderCode($orderCode) + { + $this->container['orderCode'] = $orderCode; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status status + * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets province + * + * @return string + */ + public function getProvince() + { + return $this->container['province']; + } + + /** + * Sets province + * + * @param string $province province + * + * @return $this + */ + public function setProvince($province) + { + $this->container['province'] = $province; + + return $this; + } + + /** + * Gets city + * + * @return string + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string $city city + * + * @return $this + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets county + * + * @return string + */ + public function getCounty() + { + return $this->container['county']; + } + + /** + * Sets county + * + * @param string $county county + * + * @return $this + */ + public function setCounty($county) + { + $this->container['county'] = $county; + + return $this; + } + + /** + * Gets bindphone + * + * @return string + */ + public function getBindphone() + { + return $this->container['bindphone']; + } + + /** + * Sets bindphone + * + * @param string $bindphone bindphone + * + * @return $this + */ + public function setBindphone($bindphone) + { + $this->container['bindphone'] = $bindphone; + + return $this; + } + + /** + * Gets isupdate + * + * @return bool + */ + public function getIsupdate() + { + return $this->container['isupdate']; + } + + /** + * Sets isupdate + * + * @param bool $isupdate isupdate + * + * @return $this + */ + public function setIsupdate($isupdate) + { + $this->container['isupdate'] = $isupdate; + + return $this; + } + + /** + * Gets isNew + * + * @return bool + */ + public function getIsNew() + { + return $this->container['isNew']; + } + + /** + * Sets isNew + * + * @param bool $isNew isNew + * + * @return $this + */ + public function setIsNew($isNew) + { + $this->container['isNew'] = $isNew; + + return $this; + } + + /** + * Gets default + * + * @return bool + */ + public function getDefault() + { + return $this->container['default']; + } + + /** + * Sets default + * + * @param bool $default default + * + * @return $this + */ + public function setDefault($default) + { + $this->container['default'] = $default; + + 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)); + } +} + + diff --git a/lib/Service/Pos/Model/InstallPosWithProductRequest.php b/lib/Service/Pos/Model/InstallPosWithProductRequest.php new file mode 100644 index 0000000..c68c4e5 --- /dev/null +++ b/lib/Service/Pos/Model/InstallPosWithProductRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return InstallPosWithProductRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'installPosWithProduct'; + } + + +} diff --git a/lib/Service/Pos/Model/InstallPosWithProductRequestMarshaller.php b/lib/Service/Pos/Model/InstallPosWithProductRequestMarshaller.php new file mode 100644 index 0000000..21a7985 --- /dev/null +++ b/lib/Service/Pos/Model/InstallPosWithProductRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +InstallPosWithProductRequestMarshaller::__init(); diff --git a/lib/Service/Pos/Model/InstallPosWithProductResponse.php b/lib/Service/Pos/Model/InstallPosWithProductResponse.php new file mode 100644 index 0000000..c7731bd --- /dev/null +++ b/lib/Service/Pos/Model/InstallPosWithProductResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return stringstring + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Pos/Model/InstallPosWithProductResponseUnMarshaller.php b/lib/Service/Pos/Model/InstallPosWithProductResponseUnMarshaller.php new file mode 100644 index 0000000..766cd15 --- /dev/null +++ b/lib/Service/Pos/Model/InstallPosWithProductResponseUnMarshaller.php @@ -0,0 +1,39 @@ +customerNumber; + } + + /** + * Sets customerNumber + * + * @param string $customerNumber + * @return UnSynBindPosRequest + */ + public function setCustomerNumber($customerNumber) + { + $this->customerNumber = $customerNumber; + return $this; + } + /** + * Gets poscati + * + * @return string + */ + public function getPoscati() + { + return $this->poscati; + } + + /** + * Sets poscati + * + * @param string $poscati + * @return UnSynBindPosRequest + */ + public function setPoscati($poscati) + { + $this->poscati = $poscati; + return $this; + } + + public static function getOperationId() + { + return 'unSynBindPos'; + } + + +} diff --git a/lib/Service/Pos/Model/UnSynBindPosRequestMarshaller.php b/lib/Service/Pos/Model/UnSynBindPosRequestMarshaller.php new file mode 100644 index 0000000..5bf88b2 --- /dev/null +++ b/lib/Service/Pos/Model/UnSynBindPosRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getCustomerNumber() != null){ + $internalRequest->addParameter('customer_number', ObjectSerializer::sanitizeForSerialization($request->getCustomerNumber(), 'string')); + } + if($request->getPoscati() != null){ + $internalRequest->addParameter('poscati', ObjectSerializer::sanitizeForSerialization($request->getPoscati(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +UnSynBindPosRequestMarshaller::__init(); diff --git a/lib/Service/Pos/Model/UnSynBindPosResponse.php b/lib/Service/Pos/Model/UnSynBindPosResponse.php new file mode 100644 index 0000000..cf1a278 --- /dev/null +++ b/lib/Service/Pos/Model/UnSynBindPosResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return stringstring + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Pos/Model/UnSynBindPosResponseUnMarshaller.php b/lib/Service/Pos/Model/UnSynBindPosResponseUnMarshaller.php new file mode 100644 index 0000000..d5ec375 --- /dev/null +++ b/lib/Service/Pos/Model/UnSynBindPosResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\GetPosInfoDtosRequest $request + * @return Model\GetPosInfoDtosResponse + * @throws YopClientException + */ + public function getPosInfoDtos(Model\GetPosInfoDtosRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\GetPosInfoDtosRequestMarshaller::getInstance(), + Model\GetPosInfoDtosResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\InstallPosWithProductRequest $request + * @return Model\InstallPosWithProductResponse + * @throws YopClientException + */ + public function installPosWithProduct(Model\InstallPosWithProductRequest $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\InstallPosWithProductRequestMarshaller::getInstance(), + Model\InstallPosWithProductResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\UnSynBindPosRequest $request + * @return Model\UnSynBindPosResponse + * @throws YopClientException + */ + public function unSynBindPos(Model\UnSynBindPosRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\UnSynBindPosRequestMarshaller::getInstance(), + Model\UnSynBindPosResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Pos/PosClientBuilder.php b/lib/Service/Pos/PosClientBuilder.php new file mode 100644 index 0000000..06e15ab --- /dev/null +++ b/lib/Service/Pos/PosClientBuilder.php @@ -0,0 +1,70 @@ +register('getPosInfoDtos', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('installPosWithProduct', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('unSynBindPos', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * PosClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new PosClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return PosClientBuilder + * @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 PosClientBuilder($clientParams); + } + +} +PosClientBuilder::__init(); diff --git a/lib/Service/Promtion/Model/ActivityListQueryActivityPageListQueryResponseResult.php b/lib/Service/Promtion/Model/ActivityListQueryActivityPageListQueryResponseResult.php new file mode 100644 index 0000000..e3326fd --- /dev/null +++ b/lib/Service/Promtion/Model/ActivityListQueryActivityPageListQueryResponseResult.php @@ -0,0 +1,362 @@ + 'string', + 'message' => 'string', + 'activityList' => '\Yeepay\Yop\Sdk\Service\Promtion\Model\ActivityListQueryActivityQueryInfoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'activityList' => 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', + 'activityList' => 'activityList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'activityList' => 'setActivityList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'activityList' => 'getActivityList' + ]; + + /** + * 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['activityList'] = isset($data['activityList']) ? $data['activityList'] : 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 activityList + * + * @return \Yeepay\Yop\Sdk\Service\Promtion\Model\ActivityListQueryActivityQueryInfoResult[] + */ + public function getActivityList() + { + return $this->container['activityList']; + } + + /** + * Sets activityList + * + * @param \Yeepay\Yop\Sdk\Service\Promtion\Model\ActivityListQueryActivityQueryInfoResult[] $activityList 活动列表 + * + * @return $this + */ + public function setActivityList($activityList) + { + $this->container['activityList'] = $activityList; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/ActivityListQueryActivityQueryInfoResult.php b/lib/Service/Promtion/Model/ActivityListQueryActivityQueryInfoResult.php new file mode 100644 index 0000000..1807dde --- /dev/null +++ b/lib/Service/Promtion/Model/ActivityListQueryActivityQueryInfoResult.php @@ -0,0 +1,1023 @@ + 'string', + 'marketingNo' => 'string', + 'activityName' => 'string', + 'activityStatus' => 'string', + 'activityStartTime' => 'string', + 'activityEndTime' => 'string', + 'activityRemark' => 'string', + 'activityToolType' => 'string', + 'couponName' => 'string', + 'couponType' => 'string', + 'minUseAmount' => 'string', + 'preferentialAmount' => 'string', + 'discountRatio' => 'string', + 'maxPreferentialAmount' => 'string', + 'applyProductType' => 'string', + 'applyProductId' => 'string', + 'validityType' => 'string', + 'dynamicValidityType' => 'string', + 'validityDays' => 'int', + 'effectiveTime' => 'string', + 'expirationTime' => 'string', + 'couponRemark' => 'string', + 'applyGrantNumber' => 'int', + 'actualGrantNumber' => 'int', + 'sameUserMaxJoinNumber' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'merchantActivityNo' => null, + 'marketingNo' => null, + 'activityName' => null, + 'activityStatus' => null, + 'activityStartTime' => null, + 'activityEndTime' => null, + 'activityRemark' => null, + 'activityToolType' => null, + 'couponName' => null, + 'couponType' => null, + 'minUseAmount' => null, + 'preferentialAmount' => null, + 'discountRatio' => null, + 'maxPreferentialAmount' => null, + 'applyProductType' => null, + 'applyProductId' => null, + 'validityType' => null, + 'dynamicValidityType' => null, + 'validityDays' => 'int32', + 'effectiveTime' => null, + 'expirationTime' => null, + 'couponRemark' => null, + 'applyGrantNumber' => 'int32', + 'actualGrantNumber' => 'int32', + 'sameUserMaxJoinNumber' => 'int32' + ]; + + /** + * 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 = [ + 'merchantActivityNo' => 'merchantActivityNo', + 'marketingNo' => 'marketingNo', + 'activityName' => 'activityName', + 'activityStatus' => 'activityStatus', + 'activityStartTime' => 'activityStartTime', + 'activityEndTime' => 'activityEndTime', + 'activityRemark' => 'activityRemark', + 'activityToolType' => 'activityToolType', + 'couponName' => 'couponName', + 'couponType' => 'couponType', + 'minUseAmount' => 'minUseAmount', + 'preferentialAmount' => 'preferentialAmount', + 'discountRatio' => 'discountRatio', + 'maxPreferentialAmount' => 'maxPreferentialAmount', + 'applyProductType' => 'applyProductType', + 'applyProductId' => 'applyProductId', + 'validityType' => 'validityType', + 'dynamicValidityType' => 'dynamicValidityType', + 'validityDays' => 'validityDays', + 'effectiveTime' => 'effectiveTime', + 'expirationTime' => 'expirationTime', + 'couponRemark' => 'couponRemark', + 'applyGrantNumber' => 'applyGrantNumber', + 'actualGrantNumber' => 'actualGrantNumber', + 'sameUserMaxJoinNumber' => 'sameUserMaxJoinNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'merchantActivityNo' => 'setMerchantActivityNo', + 'marketingNo' => 'setMarketingNo', + 'activityName' => 'setActivityName', + 'activityStatus' => 'setActivityStatus', + 'activityStartTime' => 'setActivityStartTime', + 'activityEndTime' => 'setActivityEndTime', + 'activityRemark' => 'setActivityRemark', + 'activityToolType' => 'setActivityToolType', + 'couponName' => 'setCouponName', + 'couponType' => 'setCouponType', + 'minUseAmount' => 'setMinUseAmount', + 'preferentialAmount' => 'setPreferentialAmount', + 'discountRatio' => 'setDiscountRatio', + 'maxPreferentialAmount' => 'setMaxPreferentialAmount', + 'applyProductType' => 'setApplyProductType', + 'applyProductId' => 'setApplyProductId', + 'validityType' => 'setValidityType', + 'dynamicValidityType' => 'setDynamicValidityType', + 'validityDays' => 'setValidityDays', + 'effectiveTime' => 'setEffectiveTime', + 'expirationTime' => 'setExpirationTime', + 'couponRemark' => 'setCouponRemark', + 'applyGrantNumber' => 'setApplyGrantNumber', + 'actualGrantNumber' => 'setActualGrantNumber', + 'sameUserMaxJoinNumber' => 'setSameUserMaxJoinNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'merchantActivityNo' => 'getMerchantActivityNo', + 'marketingNo' => 'getMarketingNo', + 'activityName' => 'getActivityName', + 'activityStatus' => 'getActivityStatus', + 'activityStartTime' => 'getActivityStartTime', + 'activityEndTime' => 'getActivityEndTime', + 'activityRemark' => 'getActivityRemark', + 'activityToolType' => 'getActivityToolType', + 'couponName' => 'getCouponName', + 'couponType' => 'getCouponType', + 'minUseAmount' => 'getMinUseAmount', + 'preferentialAmount' => 'getPreferentialAmount', + 'discountRatio' => 'getDiscountRatio', + 'maxPreferentialAmount' => 'getMaxPreferentialAmount', + 'applyProductType' => 'getApplyProductType', + 'applyProductId' => 'getApplyProductId', + 'validityType' => 'getValidityType', + 'dynamicValidityType' => 'getDynamicValidityType', + 'validityDays' => 'getValidityDays', + 'effectiveTime' => 'getEffectiveTime', + 'expirationTime' => 'getExpirationTime', + 'couponRemark' => 'getCouponRemark', + 'applyGrantNumber' => 'getApplyGrantNumber', + 'actualGrantNumber' => 'getActualGrantNumber', + 'sameUserMaxJoinNumber' => 'getSameUserMaxJoinNumber' + ]; + + /** + * 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['merchantActivityNo'] = isset($data['merchantActivityNo']) ? $data['merchantActivityNo'] : null; + $this->container['marketingNo'] = isset($data['marketingNo']) ? $data['marketingNo'] : null; + $this->container['activityName'] = isset($data['activityName']) ? $data['activityName'] : null; + $this->container['activityStatus'] = isset($data['activityStatus']) ? $data['activityStatus'] : null; + $this->container['activityStartTime'] = isset($data['activityStartTime']) ? $data['activityStartTime'] : null; + $this->container['activityEndTime'] = isset($data['activityEndTime']) ? $data['activityEndTime'] : null; + $this->container['activityRemark'] = isset($data['activityRemark']) ? $data['activityRemark'] : null; + $this->container['activityToolType'] = isset($data['activityToolType']) ? $data['activityToolType'] : null; + $this->container['couponName'] = isset($data['couponName']) ? $data['couponName'] : null; + $this->container['couponType'] = isset($data['couponType']) ? $data['couponType'] : null; + $this->container['minUseAmount'] = isset($data['minUseAmount']) ? $data['minUseAmount'] : null; + $this->container['preferentialAmount'] = isset($data['preferentialAmount']) ? $data['preferentialAmount'] : null; + $this->container['discountRatio'] = isset($data['discountRatio']) ? $data['discountRatio'] : null; + $this->container['maxPreferentialAmount'] = isset($data['maxPreferentialAmount']) ? $data['maxPreferentialAmount'] : null; + $this->container['applyProductType'] = isset($data['applyProductType']) ? $data['applyProductType'] : null; + $this->container['applyProductId'] = isset($data['applyProductId']) ? $data['applyProductId'] : null; + $this->container['validityType'] = isset($data['validityType']) ? $data['validityType'] : null; + $this->container['dynamicValidityType'] = isset($data['dynamicValidityType']) ? $data['dynamicValidityType'] : null; + $this->container['validityDays'] = isset($data['validityDays']) ? $data['validityDays'] : null; + $this->container['effectiveTime'] = isset($data['effectiveTime']) ? $data['effectiveTime'] : null; + $this->container['expirationTime'] = isset($data['expirationTime']) ? $data['expirationTime'] : null; + $this->container['couponRemark'] = isset($data['couponRemark']) ? $data['couponRemark'] : null; + $this->container['applyGrantNumber'] = isset($data['applyGrantNumber']) ? $data['applyGrantNumber'] : null; + $this->container['actualGrantNumber'] = isset($data['actualGrantNumber']) ? $data['actualGrantNumber'] : null; + $this->container['sameUserMaxJoinNumber'] = isset($data['sameUserMaxJoinNumber']) ? $data['sameUserMaxJoinNumber'] : 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 merchantActivityNo + * + * @return string + */ + public function getMerchantActivityNo() + { + return $this->container['merchantActivityNo']; + } + + /** + * Sets merchantActivityNo + * + * @param string $merchantActivityNo 商户活动编号 + * + * @return $this + */ + public function setMerchantActivityNo($merchantActivityNo) + { + $this->container['merchantActivityNo'] = $merchantActivityNo; + + return $this; + } + + /** + * Gets marketingNo + * + * @return string + */ + public function getMarketingNo() + { + return $this->container['marketingNo']; + } + + /** + * Sets marketingNo + * + * @param string $marketingNo 易宝活动编号 + * + * @return $this + */ + public function setMarketingNo($marketingNo) + { + $this->container['marketingNo'] = $marketingNo; + + return $this; + } + + /** + * Gets activityName + * + * @return string + */ + public function getActivityName() + { + return $this->container['activityName']; + } + + /** + * Sets activityName + * + * @param string $activityName 活动名称 + * + * @return $this + */ + public function setActivityName($activityName) + { + $this->container['activityName'] = $activityName; + + return $this; + } + + /** + * Gets activityStatus + * + * @return string + */ + public function getActivityStatus() + { + return $this->container['activityStatus']; + } + + /** + * Sets activityStatus + * + * @param string $activityStatus 活动状态 + * + * @return $this + */ + public function setActivityStatus($activityStatus) + { + $this->container['activityStatus'] = $activityStatus; + + return $this; + } + + /** + * Gets activityStartTime + * + * @return string + */ + public function getActivityStartTime() + { + return $this->container['activityStartTime']; + } + + /** + * Sets activityStartTime + * + * @param string $activityStartTime 活动开始时间 + * + * @return $this + */ + public function setActivityStartTime($activityStartTime) + { + $this->container['activityStartTime'] = $activityStartTime; + + return $this; + } + + /** + * Gets activityEndTime + * + * @return string + */ + public function getActivityEndTime() + { + return $this->container['activityEndTime']; + } + + /** + * Sets activityEndTime + * + * @param string $activityEndTime 活动结束时间 + * + * @return $this + */ + public function setActivityEndTime($activityEndTime) + { + $this->container['activityEndTime'] = $activityEndTime; + + return $this; + } + + /** + * Gets activityRemark + * + * @return string + */ + public function getActivityRemark() + { + return $this->container['activityRemark']; + } + + /** + * Sets activityRemark + * + * @param string $activityRemark 活动说明 + * + * @return $this + */ + public function setActivityRemark($activityRemark) + { + $this->container['activityRemark'] = $activityRemark; + + return $this; + } + + /** + * Gets activityToolType + * + * @return string + */ + public function getActivityToolType() + { + return $this->container['activityToolType']; + } + + /** + * Sets activityToolType + * + * @param string $activityToolType 活动工具类型 + * + * @return $this + */ + public function setActivityToolType($activityToolType) + { + $this->container['activityToolType'] = $activityToolType; + + return $this; + } + + /** + * Gets couponName + * + * @return string + */ + public function getCouponName() + { + return $this->container['couponName']; + } + + /** + * Sets couponName + * + * @param string $couponName 优惠券名称 + * + * @return $this + */ + public function setCouponName($couponName) + { + $this->container['couponName'] = $couponName; + + return $this; + } + + /** + * Gets couponType + * + * @return string + */ + public function getCouponType() + { + return $this->container['couponType']; + } + + /** + * Sets couponType + * + * @param string $couponType 优惠券类型 + * + * @return $this + */ + public function setCouponType($couponType) + { + $this->container['couponType'] = $couponType; + + return $this; + } + + /** + * Gets minUseAmount + * + * @return string + */ + public function getMinUseAmount() + { + return $this->container['minUseAmount']; + } + + /** + * Sets minUseAmount + * + * @param string $minUseAmount 最小使用金额 + * + * @return $this + */ + public function setMinUseAmount($minUseAmount) + { + $this->container['minUseAmount'] = $minUseAmount; + + return $this; + } + + /** + * Gets preferentialAmount + * + * @return string + */ + public function getPreferentialAmount() + { + return $this->container['preferentialAmount']; + } + + /** + * Sets preferentialAmount + * + * @param string $preferentialAmount 优惠金额 + * + * @return $this + */ + public function setPreferentialAmount($preferentialAmount) + { + $this->container['preferentialAmount'] = $preferentialAmount; + + return $this; + } + + /** + * Gets discountRatio + * + * @return string + */ + public function getDiscountRatio() + { + return $this->container['discountRatio']; + } + + /** + * Sets discountRatio + * + * @param string $discountRatio 折扣比例 + * + * @return $this + */ + public function setDiscountRatio($discountRatio) + { + $this->container['discountRatio'] = $discountRatio; + + return $this; + } + + /** + * Gets maxPreferentialAmount + * + * @return string + */ + public function getMaxPreferentialAmount() + { + return $this->container['maxPreferentialAmount']; + } + + /** + * Sets maxPreferentialAmount + * + * @param string $maxPreferentialAmount 最大优惠金额 + * + * @return $this + */ + public function setMaxPreferentialAmount($maxPreferentialAmount) + { + $this->container['maxPreferentialAmount'] = $maxPreferentialAmount; + + return $this; + } + + /** + * Gets applyProductType + * + * @return string + */ + public function getApplyProductType() + { + return $this->container['applyProductType']; + } + + /** + * Sets applyProductType + * + * @param string $applyProductType 适用产品类型 + * + * @return $this + */ + public function setApplyProductType($applyProductType) + { + $this->container['applyProductType'] = $applyProductType; + + return $this; + } + + /** + * Gets applyProductId + * + * @return string + */ + public function getApplyProductId() + { + return $this->container['applyProductId']; + } + + /** + * Sets applyProductId + * + * @param string $applyProductId 产品id + * + * @return $this + */ + public function setApplyProductId($applyProductId) + { + $this->container['applyProductId'] = $applyProductId; + + return $this; + } + + /** + * Gets validityType + * + * @return string + */ + public function getValidityType() + { + return $this->container['validityType']; + } + + /** + * Sets validityType + * + * @param string $validityType 可用时间类型 + * + * @return $this + */ + public function setValidityType($validityType) + { + $this->container['validityType'] = $validityType; + + return $this; + } + + /** + * Gets dynamicValidityType + * + * @return string + */ + public function getDynamicValidityType() + { + return $this->container['dynamicValidityType']; + } + + /** + * Sets dynamicValidityType + * + * @param string $dynamicValidityType 动态生效类型 + * + * @return $this + */ + public function setDynamicValidityType($dynamicValidityType) + { + $this->container['dynamicValidityType'] = $dynamicValidityType; + + return $this; + } + + /** + * Gets validityDays + * + * @return int + */ + public function getValidityDays() + { + return $this->container['validityDays']; + } + + /** + * Sets validityDays + * + * @param int $validityDays 有效期天数 + * + * @return $this + */ + public function setValidityDays($validityDays) + { + $this->container['validityDays'] = $validityDays; + + return $this; + } + + /** + * Gets effectiveTime + * + * @return string + */ + public function getEffectiveTime() + { + return $this->container['effectiveTime']; + } + + /** + * Sets effectiveTime + * + * @param string $effectiveTime 生效日期 + * + * @return $this + */ + public function setEffectiveTime($effectiveTime) + { + $this->container['effectiveTime'] = $effectiveTime; + + return $this; + } + + /** + * Gets expirationTime + * + * @return string + */ + public function getExpirationTime() + { + return $this->container['expirationTime']; + } + + /** + * Sets expirationTime + * + * @param string $expirationTime 失效日期 + * + * @return $this + */ + public function setExpirationTime($expirationTime) + { + $this->container['expirationTime'] = $expirationTime; + + return $this; + } + + /** + * Gets couponRemark + * + * @return string + */ + public function getCouponRemark() + { + return $this->container['couponRemark']; + } + + /** + * Sets couponRemark + * + * @param string $couponRemark 优惠券说明 + * + * @return $this + */ + public function setCouponRemark($couponRemark) + { + $this->container['couponRemark'] = $couponRemark; + + return $this; + } + + /** + * Gets applyGrantNumber + * + * @return int + */ + public function getApplyGrantNumber() + { + return $this->container['applyGrantNumber']; + } + + /** + * Sets applyGrantNumber + * + * @param int $applyGrantNumber 申请数量 + * + * @return $this + */ + public function setApplyGrantNumber($applyGrantNumber) + { + $this->container['applyGrantNumber'] = $applyGrantNumber; + + return $this; + } + + /** + * Gets actualGrantNumber + * + * @return int + */ + public function getActualGrantNumber() + { + return $this->container['actualGrantNumber']; + } + + /** + * Sets actualGrantNumber + * + * @param int $actualGrantNumber 实际发放数量 + * + * @return $this + */ + public function setActualGrantNumber($actualGrantNumber) + { + $this->container['actualGrantNumber'] = $actualGrantNumber; + + return $this; + } + + /** + * Gets sameUserMaxJoinNumber + * + * @return int + */ + public function getSameUserMaxJoinNumber() + { + return $this->container['sameUserMaxJoinNumber']; + } + + /** + * Sets sameUserMaxJoinNumber + * + * @param int $sameUserMaxJoinNumber 同一用户最大参与次数 + * + * @return $this + */ + public function setSameUserMaxJoinNumber($sameUserMaxJoinNumber) + { + $this->container['sameUserMaxJoinNumber'] = $sameUserMaxJoinNumber; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/ActivityListQueryRequest.php b/lib/Service/Promtion/Model/ActivityListQueryRequest.php new file mode 100644 index 0000000..cddf04c --- /dev/null +++ b/lib/Service/Promtion/Model/ActivityListQueryRequest.php @@ -0,0 +1,167 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return ActivityListQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantActivityNo + * + * @return string + */ + public function getMerchantActivityNo() + { + return $this->merchantActivityNo; + } + + /** + * Sets merchantActivityNo + * + * @param string $merchantActivityNo + * @return ActivityListQueryRequest + */ + public function setMerchantActivityNo($merchantActivityNo) + { + $this->merchantActivityNo = $merchantActivityNo; + return $this; + } + /** + * Gets marketingNo + * + * @return string + */ + public function getMarketingNo() + { + return $this->marketingNo; + } + + /** + * Sets marketingNo + * + * @param string $marketingNo + * @return ActivityListQueryRequest + */ + public function setMarketingNo($marketingNo) + { + $this->marketingNo = $marketingNo; + return $this; + } + /** + * Gets activityStatus + * + * @return string + */ + public function getActivityStatus() + { + return $this->activityStatus; + } + + /** + * Sets activityStatus + * + * @param string $activityStatus + * @return ActivityListQueryRequest + */ + public function setActivityStatus($activityStatus) + { + $this->activityStatus = $activityStatus; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return ActivityListQueryRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return ActivityListQueryRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + + public static function getOperationId() + { + return 'activityListQuery'; + } + + +} diff --git a/lib/Service/Promtion/Model/ActivityListQueryRequestMarshaller.php b/lib/Service/Promtion/Model/ActivityListQueryRequestMarshaller.php new file mode 100644 index 0000000..723cca7 --- /dev/null +++ b/lib/Service/Promtion/Model/ActivityListQueryRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getMerchantActivityNo() != null){ + $internalRequest->addParameter('merchantActivityNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantActivityNo(), 'string')); + } + if($request->getMarketingNo() != null){ + $internalRequest->addParameter('marketingNo', ObjectSerializer::sanitizeForSerialization($request->getMarketingNo(), 'string')); + } + if($request->getActivityStatus() != null){ + $internalRequest->addParameter('activityStatus', ObjectSerializer::sanitizeForSerialization($request->getActivityStatus(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ActivityListQueryRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/ActivityListQueryResponse.php b/lib/Service/Promtion/Model/ActivityListQueryResponse.php new file mode 100644 index 0000000..fdc0282 --- /dev/null +++ b/lib/Service/Promtion/Model/ActivityListQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return ActivityListQueryActivityPageListQueryResponseResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/ActivityListQueryResponseUnMarshaller.php b/lib/Service/Promtion/Model/ActivityListQueryResponseUnMarshaller.php new file mode 100644 index 0000000..ab18226 --- /dev/null +++ b/lib/Service/Promtion/Model/ActivityListQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return AddRightsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets rightsCode + * + * @return string + */ + public function getRightsCode() + { + return $this->rightsCode; + } + + /** + * Sets rightsCode + * + * @param string $rightsCode + * @return AddRightsRequest + */ + public function setRightsCode($rightsCode) + { + $this->rightsCode = $rightsCode; + return $this; + } + /** + * Gets startEffectDate + * + * @return string + */ + public function getStartEffectDate() + { + return $this->startEffectDate; + } + + /** + * Sets startEffectDate + * + * @param string $startEffectDate + * @return AddRightsRequest + */ + public function setStartEffectDate($startEffectDate) + { + $this->startEffectDate = $startEffectDate; + return $this; + } + /** + * Gets endEffectDate + * + * @return string + */ + public function getEndEffectDate() + { + return $this->endEffectDate; + } + + /** + * Sets endEffectDate + * + * @param string $endEffectDate + * @return AddRightsRequest + */ + public function setEndEffectDate($endEffectDate) + { + $this->endEffectDate = $endEffectDate; + return $this; + } + /** + * Gets brandNo + * + * @return string + */ + public function getBrandNo() + { + return $this->brandNo; + } + + /** + * Sets brandNo + * + * @param string $brandNo + * @return AddRightsRequest + */ + public function setBrandNo($brandNo) + { + $this->brandNo = $brandNo; + return $this; + } + /** + * Gets title + * + * @return string + */ + public function getTitle() + { + return $this->title; + } + + /** + * Sets title + * + * @param string $title + * @return AddRightsRequest + */ + public function setTitle($title) + { + $this->title = $title; + return $this; + } + /** + * Gets ruleDesc + * + * @return string + */ + public function getRuleDesc() + { + return $this->ruleDesc; + } + + /** + * Sets ruleDesc + * + * @param string $ruleDesc + * @return AddRightsRequest + */ + public function setRuleDesc($ruleDesc) + { + $this->ruleDesc = $ruleDesc; + return $this; + } + /** + * Gets periodType + * + * @return string + */ + public function getPeriodType() + { + return $this->periodType; + } + + /** + * Sets periodType + * + * @param string $periodType + * @return AddRightsRequest + */ + public function setPeriodType($periodType) + { + $this->periodType = $periodType; + return $this; + } + /** + * Gets period + * + * @return int + */ + public function getPeriod() + { + return $this->period; + } + + /** + * Sets period + * + * @param int $period + * @return AddRightsRequest + */ + public function setPeriod($period) + { + $this->period = $period; + return $this; + } + /** + * Gets frequency + * + * @return int + */ + public function getFrequency() + { + return $this->frequency; + } + + /** + * Sets frequency + * + * @param int $frequency + * @return AddRightsRequest + */ + public function setFrequency($frequency) + { + $this->frequency = $frequency; + return $this; + } + /** + * Gets businessType + * + * @return string + */ + public function getBusinessType() + { + return $this->businessType; + } + + /** + * Sets businessType + * + * @param string $businessType + * @return AddRightsRequest + */ + public function setBusinessType($businessType) + { + $this->businessType = $businessType; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return AddRightsRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets productNo + * + * @return string + */ + public function getProductNo() + { + return $this->productNo; + } + + /** + * Sets productNo + * + * @param string $productNo + * @return AddRightsRequest + */ + public function setProductNo($productNo) + { + $this->productNo = $productNo; + return $this; + } + /** + * Gets productName + * + * @return string + */ + public function getProductName() + { + return $this->productName; + } + + /** + * Sets productName + * + * @param string $productName + * @return AddRightsRequest + */ + public function setProductName($productName) + { + $this->productName = $productName; + return $this; + } + + public static function getOperationId() + { + return 'add_rights'; + } + + +} diff --git a/lib/Service/Promtion/Model/AddRightsRequestMarshaller.php b/lib/Service/Promtion/Model/AddRightsRequestMarshaller.php new file mode 100644 index 0000000..c53970b --- /dev/null +++ b/lib/Service/Promtion/Model/AddRightsRequestMarshaller.php @@ -0,0 +1,119 @@ +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->getRightsCode() != null){ + $internalRequest->addParameter('rightsCode', ObjectSerializer::sanitizeForSerialization($request->getRightsCode(), 'string')); + } + if($request->getStartEffectDate() != null){ + $internalRequest->addParameter('startEffectDate', ObjectSerializer::sanitizeForSerialization($request->getStartEffectDate(), 'string')); + } + if($request->getEndEffectDate() != null){ + $internalRequest->addParameter('endEffectDate', ObjectSerializer::sanitizeForSerialization($request->getEndEffectDate(), 'string')); + } + if($request->getBrandNo() != null){ + $internalRequest->addParameter('brandNo', ObjectSerializer::sanitizeForSerialization($request->getBrandNo(), 'string')); + } + if($request->getTitle() != null){ + $internalRequest->addParameter('title', ObjectSerializer::sanitizeForSerialization($request->getTitle(), 'string')); + } + if($request->getRuleDesc() != null){ + $internalRequest->addParameter('ruleDesc', ObjectSerializer::sanitizeForSerialization($request->getRuleDesc(), 'string')); + } + if($request->getPeriodType() != null){ + $internalRequest->addParameter('periodType', ObjectSerializer::sanitizeForSerialization($request->getPeriodType(), 'string')); + } + if($request->getPeriod() != null){ + $internalRequest->addParameter('period', ObjectSerializer::sanitizeForSerialization($request->getPeriod(), 'int', 'int32')); + } + if($request->getFrequency() != null){ + $internalRequest->addParameter('frequency', ObjectSerializer::sanitizeForSerialization($request->getFrequency(), 'int', 'int32')); + } + if($request->getBusinessType() != null){ + $internalRequest->addParameter('businessType', ObjectSerializer::sanitizeForSerialization($request->getBusinessType(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getProductNo() != null){ + $internalRequest->addParameter('productNo', ObjectSerializer::sanitizeForSerialization($request->getProductNo(), 'string')); + } + if($request->getProductName() != null){ + $internalRequest->addParameter('productName', ObjectSerializer::sanitizeForSerialization($request->getProductName(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +AddRightsRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/AddRightsResponse.php b/lib/Service/Promtion/Model/AddRightsResponse.php new file mode 100644 index 0000000..fd8475c --- /dev/null +++ b/lib/Service/Promtion/Model/AddRightsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BaseResponse + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/AddRightsResponseUnMarshaller.php b/lib/Service/Promtion/Model/AddRightsResponseUnMarshaller.php new file mode 100644 index 0000000..0191f1d --- /dev/null +++ b/lib/Service/Promtion/Model/AddRightsResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage' + ]; + + /** + * 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; + } + + /** + * 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 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 message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/CouponApplyCouponApplyResponseResult.php b/lib/Service/Promtion/Model/CouponApplyCouponApplyResponseResult.php new file mode 100644 index 0000000..e2e3670 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponApplyCouponApplyResponseResult.php @@ -0,0 +1,362 @@ + 'string', + 'message' => 'string', + 'couponNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'couponNo' => 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', + 'couponNo' => 'couponNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'couponNo' => 'setCouponNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'couponNo' => 'getCouponNo' + ]; + + /** + * 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['couponNo'] = isset($data['couponNo']) ? $data['couponNo'] : 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 couponNo + * + * @return string + */ + public function getCouponNo() + { + return $this->container['couponNo']; + } + + /** + * Sets couponNo + * + * @param string $couponNo 优惠券码 + * + * @return $this + */ + public function setCouponNo($couponNo) + { + $this->container['couponNo'] = $couponNo; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/CouponApplyRequest.php b/lib/Service/Promtion/Model/CouponApplyRequest.php new file mode 100644 index 0000000..c2ec77d --- /dev/null +++ b/lib/Service/Promtion/Model/CouponApplyRequest.php @@ -0,0 +1,142 @@ +requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CouponApplyRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CouponApplyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return CouponApplyRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets merchantActivityNo + * + * @return string + */ + public function getMerchantActivityNo() + { + return $this->merchantActivityNo; + } + + /** + * Sets merchantActivityNo + * + * @param string $merchantActivityNo + * @return CouponApplyRequest + */ + public function setMerchantActivityNo($merchantActivityNo) + { + $this->merchantActivityNo = $merchantActivityNo; + return $this; + } + /** + * Gets marketingNo + * + * @return string + */ + public function getMarketingNo() + { + return $this->marketingNo; + } + + /** + * Sets marketingNo + * + * @param string $marketingNo + * @return CouponApplyRequest + */ + public function setMarketingNo($marketingNo) + { + $this->marketingNo = $marketingNo; + return $this; + } + + public static function getOperationId() + { + return 'couponApply'; + } + + +} diff --git a/lib/Service/Promtion/Model/CouponApplyRequestMarshaller.php b/lib/Service/Promtion/Model/CouponApplyRequestMarshaller.php new file mode 100644 index 0000000..558c40b --- /dev/null +++ b/lib/Service/Promtion/Model/CouponApplyRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getMerchantActivityNo() != null){ + $internalRequest->addParameter('merchantActivityNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantActivityNo(), 'string')); + } + if($request->getMarketingNo() != null){ + $internalRequest->addParameter('marketingNo', ObjectSerializer::sanitizeForSerialization($request->getMarketingNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CouponApplyRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/CouponApplyResponse.php b/lib/Service/Promtion/Model/CouponApplyResponse.php new file mode 100644 index 0000000..ceee949 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CouponApplyCouponApplyResponseResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/CouponApplyResponseUnMarshaller.php b/lib/Service/Promtion/Model/CouponApplyResponseUnMarshaller.php new file mode 100644 index 0000000..e7fab0e --- /dev/null +++ b/lib/Service/Promtion/Model/CouponApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'merchantUsrNo' => 'string', + 'couponInfoList' => '\Yeepay\Yop\Sdk\Service\Promtion\Model\CouponListQueryCouponQueryInfoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'merchantUsrNo' => null, + 'couponInfoList' => 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', + 'merchantNo' => 'merchantNo', + 'merchantUsrNo' => 'merchantUsrNo', + 'couponInfoList' => 'couponInfoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'merchantUsrNo' => 'setMerchantUsrNo', + 'couponInfoList' => 'setCouponInfoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'merchantUsrNo' => 'getMerchantUsrNo', + 'couponInfoList' => 'getCouponInfoList' + ]; + + /** + * 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['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantUsrNo'] = isset($data['merchantUsrNo']) ? $data['merchantUsrNo'] : null; + $this->container['couponInfoList'] = isset($data['couponInfoList']) ? $data['couponInfoList'] : 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 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 merchantUsrNo + * + * @return string + */ + public function getMerchantUsrNo() + { + return $this->container['merchantUsrNo']; + } + + /** + * Sets merchantUsrNo + * + * @param string $merchantUsrNo 用户标识 + * + * @return $this + */ + public function setMerchantUsrNo($merchantUsrNo) + { + $this->container['merchantUsrNo'] = $merchantUsrNo; + + return $this; + } + + /** + * Gets couponInfoList + * + * @return \Yeepay\Yop\Sdk\Service\Promtion\Model\CouponListQueryCouponQueryInfoResult[] + */ + public function getCouponInfoList() + { + return $this->container['couponInfoList']; + } + + /** + * Sets couponInfoList + * + * @param \Yeepay\Yop\Sdk\Service\Promtion\Model\CouponListQueryCouponQueryInfoResult[] $couponInfoList 优惠券列表 + * + * @return $this + */ + public function setCouponInfoList($couponInfoList) + { + $this->container['couponInfoList'] = $couponInfoList; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/CouponListQueryCouponProductRuleResult.php b/lib/Service/Promtion/Model/CouponListQueryCouponProductRuleResult.php new file mode 100644 index 0000000..82cbf43 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponListQueryCouponProductRuleResult.php @@ -0,0 +1,333 @@ + 'string', + 'productIds' => 'string[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'productType' => null, + 'productIds' => 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 = [ + 'productType' => 'productType', + 'productIds' => 'productIds' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'productType' => 'setProductType', + 'productIds' => 'setProductIds' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'productType' => 'getProductType', + 'productIds' => 'getProductIds' + ]; + + /** + * 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['productType'] = isset($data['productType']) ? $data['productType'] : null; + $this->container['productIds'] = isset($data['productIds']) ? $data['productIds'] : 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 productType + * + * @return string + */ + public function getProductType() + { + return $this->container['productType']; + } + + /** + * Sets productType + * + * @param string $productType 产品类型 + * + * @return $this + */ + public function setProductType($productType) + { + $this->container['productType'] = $productType; + + return $this; + } + + /** + * Gets productIds + * + * @return string[] + */ + public function getProductIds() + { + return $this->container['productIds']; + } + + /** + * Sets productIds + * + * @param string[] $productIds 产品ID列表 + * + * @return $this + */ + public function setProductIds($productIds) + { + $this->container['productIds'] = $productIds; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/CouponListQueryCouponQueryInfoResult.php b/lib/Service/Promtion/Model/CouponListQueryCouponQueryInfoResult.php new file mode 100644 index 0000000..b64d5e2 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponListQueryCouponQueryInfoResult.php @@ -0,0 +1,663 @@ + 'string', + 'couponName' => 'string', + 'couponType' => 'string', + 'minUseAmount' => 'string', + 'preferentialAmount' => 'string', + 'discountRatio' => 'string', + 'maxPreferentialAmount' => 'string', + 'productRule' => '\Yeepay\Yop\Sdk\Service\Promtion\Model\CouponListQueryCouponProductRuleResult', + 'applyTime' => 'string', + 'effectTime' => 'string', + 'expireTme' => 'string', + 'couponRemark' => 'string', + 'couponStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'couponNo' => null, + 'couponName' => null, + 'couponType' => null, + 'minUseAmount' => null, + 'preferentialAmount' => null, + 'discountRatio' => null, + 'maxPreferentialAmount' => null, + 'productRule' => null, + 'applyTime' => 'date-time', + 'effectTime' => 'date-time', + 'expireTme' => 'date-time', + 'couponRemark' => null, + 'couponStatus' => 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 = [ + 'couponNo' => 'couponNo', + 'couponName' => 'couponName', + 'couponType' => 'couponType', + 'minUseAmount' => 'minUseAmount', + 'preferentialAmount' => 'preferentialAmount', + 'discountRatio' => 'discountRatio', + 'maxPreferentialAmount' => 'maxPreferentialAmount', + 'productRule' => 'productRule', + 'applyTime' => 'applyTime', + 'effectTime' => 'effectTime', + 'expireTme' => 'expireTme', + 'couponRemark' => 'couponRemark', + 'couponStatus' => 'couponStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'couponNo' => 'setCouponNo', + 'couponName' => 'setCouponName', + 'couponType' => 'setCouponType', + 'minUseAmount' => 'setMinUseAmount', + 'preferentialAmount' => 'setPreferentialAmount', + 'discountRatio' => 'setDiscountRatio', + 'maxPreferentialAmount' => 'setMaxPreferentialAmount', + 'productRule' => 'setProductRule', + 'applyTime' => 'setApplyTime', + 'effectTime' => 'setEffectTime', + 'expireTme' => 'setExpireTme', + 'couponRemark' => 'setCouponRemark', + 'couponStatus' => 'setCouponStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'couponNo' => 'getCouponNo', + 'couponName' => 'getCouponName', + 'couponType' => 'getCouponType', + 'minUseAmount' => 'getMinUseAmount', + 'preferentialAmount' => 'getPreferentialAmount', + 'discountRatio' => 'getDiscountRatio', + 'maxPreferentialAmount' => 'getMaxPreferentialAmount', + 'productRule' => 'getProductRule', + 'applyTime' => 'getApplyTime', + 'effectTime' => 'getEffectTime', + 'expireTme' => 'getExpireTme', + 'couponRemark' => 'getCouponRemark', + 'couponStatus' => 'getCouponStatus' + ]; + + /** + * 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['couponNo'] = isset($data['couponNo']) ? $data['couponNo'] : null; + $this->container['couponName'] = isset($data['couponName']) ? $data['couponName'] : null; + $this->container['couponType'] = isset($data['couponType']) ? $data['couponType'] : null; + $this->container['minUseAmount'] = isset($data['minUseAmount']) ? $data['minUseAmount'] : null; + $this->container['preferentialAmount'] = isset($data['preferentialAmount']) ? $data['preferentialAmount'] : null; + $this->container['discountRatio'] = isset($data['discountRatio']) ? $data['discountRatio'] : null; + $this->container['maxPreferentialAmount'] = isset($data['maxPreferentialAmount']) ? $data['maxPreferentialAmount'] : null; + $this->container['productRule'] = isset($data['productRule']) ? $data['productRule'] : null; + $this->container['applyTime'] = isset($data['applyTime']) ? $data['applyTime'] : null; + $this->container['effectTime'] = isset($data['effectTime']) ? $data['effectTime'] : null; + $this->container['expireTme'] = isset($data['expireTme']) ? $data['expireTme'] : null; + $this->container['couponRemark'] = isset($data['couponRemark']) ? $data['couponRemark'] : null; + $this->container['couponStatus'] = isset($data['couponStatus']) ? $data['couponStatus'] : 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 couponNo + * + * @return string + */ + public function getCouponNo() + { + return $this->container['couponNo']; + } + + /** + * Sets couponNo + * + * @param string $couponNo 优惠券码 + * + * @return $this + */ + public function setCouponNo($couponNo) + { + $this->container['couponNo'] = $couponNo; + + return $this; + } + + /** + * Gets couponName + * + * @return string + */ + public function getCouponName() + { + return $this->container['couponName']; + } + + /** + * Sets couponName + * + * @param string $couponName 优惠券名称 + * + * @return $this + */ + public function setCouponName($couponName) + { + $this->container['couponName'] = $couponName; + + return $this; + } + + /** + * Gets couponType + * + * @return string + */ + public function getCouponType() + { + return $this->container['couponType']; + } + + /** + * Sets couponType + * + * @param string $couponType 优惠券类型 + * + * @return $this + */ + public function setCouponType($couponType) + { + $this->container['couponType'] = $couponType; + + return $this; + } + + /** + * Gets minUseAmount + * + * @return string + */ + public function getMinUseAmount() + { + return $this->container['minUseAmount']; + } + + /** + * Sets minUseAmount + * + * @param string $minUseAmount 最小使用金额 + * + * @return $this + */ + public function setMinUseAmount($minUseAmount) + { + $this->container['minUseAmount'] = $minUseAmount; + + return $this; + } + + /** + * Gets preferentialAmount + * + * @return string + */ + public function getPreferentialAmount() + { + return $this->container['preferentialAmount']; + } + + /** + * Sets preferentialAmount + * + * @param string $preferentialAmount 优惠金额 + * + * @return $this + */ + public function setPreferentialAmount($preferentialAmount) + { + $this->container['preferentialAmount'] = $preferentialAmount; + + return $this; + } + + /** + * Gets discountRatio + * + * @return string + */ + public function getDiscountRatio() + { + return $this->container['discountRatio']; + } + + /** + * Sets discountRatio + * + * @param string $discountRatio 折扣比例 + * + * @return $this + */ + public function setDiscountRatio($discountRatio) + { + $this->container['discountRatio'] = $discountRatio; + + return $this; + } + + /** + * Gets maxPreferentialAmount + * + * @return string + */ + public function getMaxPreferentialAmount() + { + return $this->container['maxPreferentialAmount']; + } + + /** + * Sets maxPreferentialAmount + * + * @param string $maxPreferentialAmount 最大优惠金额 + * + * @return $this + */ + public function setMaxPreferentialAmount($maxPreferentialAmount) + { + $this->container['maxPreferentialAmount'] = $maxPreferentialAmount; + + return $this; + } + + /** + * Gets productRule + * + * @return \Yeepay\Yop\Sdk\Service\Promtion\Model\CouponListQueryCouponProductRuleResult + */ + public function getProductRule() + { + return $this->container['productRule']; + } + + /** + * Sets productRule + * + * @param \Yeepay\Yop\Sdk\Service\Promtion\Model\CouponListQueryCouponProductRuleResult $productRule 支持产品规则 + * + * @return $this + */ + public function setProductRule($productRule) + { + $this->container['productRule'] = $productRule; + + return $this; + } + + /** + * Gets applyTime + * + * @return string + */ + public function getApplyTime() + { + return $this->container['applyTime']; + } + + /** + * Sets applyTime + * + * @param string $applyTime 申请时间 + * + * @return $this + */ + public function setApplyTime($applyTime) + { + $this->container['applyTime'] = $applyTime; + + return $this; + } + + /** + * Gets effectTime + * + * @return string + */ + public function getEffectTime() + { + return $this->container['effectTime']; + } + + /** + * Sets effectTime + * + * @param string $effectTime 生效时间 + * + * @return $this + */ + public function setEffectTime($effectTime) + { + $this->container['effectTime'] = $effectTime; + + return $this; + } + + /** + * Gets expireTme + * + * @return string + */ + public function getExpireTme() + { + return $this->container['expireTme']; + } + + /** + * Sets expireTme + * + * @param string $expireTme 失效时间 + * + * @return $this + */ + public function setExpireTme($expireTme) + { + $this->container['expireTme'] = $expireTme; + + return $this; + } + + /** + * Gets couponRemark + * + * @return string + */ + public function getCouponRemark() + { + return $this->container['couponRemark']; + } + + /** + * Sets couponRemark + * + * @param string $couponRemark 优惠券说明 + * + * @return $this + */ + public function setCouponRemark($couponRemark) + { + $this->container['couponRemark'] = $couponRemark; + + return $this; + } + + /** + * Gets couponStatus + * + * @return string + */ + public function getCouponStatus() + { + return $this->container['couponStatus']; + } + + /** + * Sets couponStatus + * + * @param string $couponStatus 优惠券状态 + * + * @return $this + */ + public function setCouponStatus($couponStatus) + { + $this->container['couponStatus'] = $couponStatus; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/CouponListQueryRequest.php b/lib/Service/Promtion/Model/CouponListQueryRequest.php new file mode 100644 index 0000000..561dc55 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponListQueryRequest.php @@ -0,0 +1,217 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CouponListQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return CouponListQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets couponStatus + * + * @return string + */ + public function getCouponStatus() + { + return $this->couponStatus; + } + + /** + * Sets couponStatus + * + * @param string $couponStatus + * @return CouponListQueryRequest + */ + public function setCouponStatus($couponStatus) + { + $this->couponStatus = $couponStatus; + return $this; + } + /** + * Gets couponType + * + * @return string + */ + public function getCouponType() + { + return $this->couponType; + } + + /** + * Sets couponType + * + * @param string $couponType + * @return CouponListQueryRequest + */ + public function setCouponType($couponType) + { + $this->couponType = $couponType; + return $this; + } + /** + * Gets startTime + * + * @return string + */ + public function getStartTime() + { + return $this->startTime; + } + + /** + * Sets startTime + * + * @param string $startTime + * @return CouponListQueryRequest + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + return $this; + } + /** + * Gets endTime + * + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param string $endTime + * @return CouponListQueryRequest + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return CouponListQueryRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return CouponListQueryRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + + public static function getOperationId() + { + return 'couponListQuery'; + } + + +} diff --git a/lib/Service/Promtion/Model/CouponListQueryRequestMarshaller.php b/lib/Service/Promtion/Model/CouponListQueryRequestMarshaller.php new file mode 100644 index 0000000..3b3fdff --- /dev/null +++ b/lib/Service/Promtion/Model/CouponListQueryRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getCouponStatus() != null){ + $internalRequest->addParameter('couponStatus', ObjectSerializer::sanitizeForSerialization($request->getCouponStatus(), 'string')); + } + if($request->getCouponType() != null){ + $internalRequest->addParameter('couponType', ObjectSerializer::sanitizeForSerialization($request->getCouponType(), 'string')); + } + if($request->getStartTime() != null){ + $internalRequest->addParameter('startTime', ObjectSerializer::sanitizeForSerialization($request->getStartTime(), 'string', 'date-time')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CouponListQueryRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/CouponListQueryResponse.php b/lib/Service/Promtion/Model/CouponListQueryResponse.php new file mode 100644 index 0000000..324b5c4 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponListQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CouponListQueryCouponPageListQueryResponseResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/CouponListQueryResponseUnMarshaller.php b/lib/Service/Promtion/Model/CouponListQueryResponseUnMarshaller.php new file mode 100644 index 0000000..b309ca8 --- /dev/null +++ b/lib/Service/Promtion/Model/CouponListQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'rightsQrCode' => 'string', + 'expireTime' => 'string', + 'ruleDesc' => 'string', + 'rightsCode' => 'string', + 'rightsTitle' => 'string', + 'message' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'rightsQrCode' => null, + 'expireTime' => null, + 'ruleDesc' => null, + 'rightsCode' => null, + 'rightsTitle' => null, + 'message' => null, + 'merchantNo' => 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', + 'rightsQrCode' => 'rightsQrCode', + 'expireTime' => 'expireTime', + 'ruleDesc' => 'ruleDesc', + 'rightsCode' => 'rightsCode', + 'rightsTitle' => 'rightsTitle', + 'message' => 'message', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'rightsQrCode' => 'setRightsQrCode', + 'expireTime' => 'setExpireTime', + 'ruleDesc' => 'setRuleDesc', + 'rightsCode' => 'setRightsCode', + 'rightsTitle' => 'setRightsTitle', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'rightsQrCode' => 'getRightsQrCode', + 'expireTime' => 'getExpireTime', + 'ruleDesc' => 'getRuleDesc', + 'rightsCode' => 'getRightsCode', + 'rightsTitle' => 'getRightsTitle', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['rightsQrCode'] = isset($data['rightsQrCode']) ? $data['rightsQrCode'] : null; + $this->container['expireTime'] = isset($data['expireTime']) ? $data['expireTime'] : null; + $this->container['ruleDesc'] = isset($data['ruleDesc']) ? $data['ruleDesc'] : null; + $this->container['rightsCode'] = isset($data['rightsCode']) ? $data['rightsCode'] : null; + $this->container['rightsTitle'] = isset($data['rightsTitle']) ? $data['rightsTitle'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets rightsQrCode + * + * @return string + */ + public function getRightsQrCode() + { + return $this->container['rightsQrCode']; + } + + /** + * Sets rightsQrCode + * + * @param string $rightsQrCode rightsQrCode + * + * @return $this + */ + public function setRightsQrCode($rightsQrCode) + { + $this->container['rightsQrCode'] = $rightsQrCode; + + return $this; + } + + /** + * Gets expireTime + * + * @return string + */ + public function getExpireTime() + { + return $this->container['expireTime']; + } + + /** + * Sets expireTime + * + * @param string $expireTime expireTime + * + * @return $this + */ + public function setExpireTime($expireTime) + { + $this->container['expireTime'] = $expireTime; + + return $this; + } + + /** + * Gets ruleDesc + * + * @return string + */ + public function getRuleDesc() + { + return $this->container['ruleDesc']; + } + + /** + * Sets ruleDesc + * + * @param string $ruleDesc ruleDesc + * + * @return $this + */ + public function setRuleDesc($ruleDesc) + { + $this->container['ruleDesc'] = $ruleDesc; + + return $this; + } + + /** + * Gets rightsCode + * + * @return string + */ + public function getRightsCode() + { + return $this->container['rightsCode']; + } + + /** + * Sets rightsCode + * + * @param string $rightsCode rightsCode + * + * @return $this + */ + public function setRightsCode($rightsCode) + { + $this->container['rightsCode'] = $rightsCode; + + return $this; + } + + /** + * Gets rightsTitle + * + * @return string + */ + public function getRightsTitle() + { + return $this->container['rightsTitle']; + } + + /** + * Sets rightsTitle + * + * @param string $rightsTitle rightsTitle + * + * @return $this + */ + public function setRightsTitle($rightsTitle) + { + $this->container['rightsTitle'] = $rightsTitle; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequest.php b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequest.php new file mode 100644 index 0000000..113b569 --- /dev/null +++ b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequest.php @@ -0,0 +1,117 @@ +operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return CreateRightsQrcodeAdapterRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets rightsCode + * + * @return string + */ + public function getRightsCode() + { + return $this->rightsCode; + } + + /** + * Sets rightsCode + * + * @param string $rightsCode + * @return CreateRightsQrcodeAdapterRequest + */ + public function setRightsCode($rightsCode) + { + $this->rightsCode = $rightsCode; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CreateRightsQrcodeAdapterRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return CreateRightsQrcodeAdapterRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + + public static function getOperationId() + { + return 'create_rights_qrcode_adapter'; + } + + +} diff --git a/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequestMarshaller.php b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequestMarshaller.php new file mode 100644 index 0000000..d8459b2 --- /dev/null +++ b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getRightsCode() != null){ + $internalRequest->addParameter('rightsCode', ObjectSerializer::sanitizeForSerialization($request->getRightsCode(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CreateRightsQrcodeAdapterRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponse.php b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponse.php new file mode 100644 index 0000000..20be4cb --- /dev/null +++ b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CreateRightsQrCodeAdapterRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponseUnMarshaller.php b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponseUnMarshaller.php new file mode 100644 index 0000000..14e351c --- /dev/null +++ b/lib/Service/Promtion/Model/CreateRightsQrcodeAdapterResponseUnMarshaller.php @@ -0,0 +1,39 @@ +productNo; + } + + /** + * Sets productNo + * + * @param string $productNo + * @return FrozenRightsRequest + */ + public function setProductNo($productNo) + { + $this->productNo = $productNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return FrozenRightsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'frozen_rights'; + } + + +} diff --git a/lib/Service/Promtion/Model/FrozenRightsRequestMarshaller.php b/lib/Service/Promtion/Model/FrozenRightsRequestMarshaller.php new file mode 100644 index 0000000..eb71dff --- /dev/null +++ b/lib/Service/Promtion/Model/FrozenRightsRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getProductNo() != null){ + $internalRequest->addParameter('productNo', ObjectSerializer::sanitizeForSerialization($request->getProductNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +FrozenRightsRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/FrozenRightsResponse.php b/lib/Service/Promtion/Model/FrozenRightsResponse.php new file mode 100644 index 0000000..5e907b2 --- /dev/null +++ b/lib/Service/Promtion/Model/FrozenRightsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BaseResponse + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/FrozenRightsResponseUnMarshaller.php b/lib/Service/Promtion/Model/FrozenRightsResponseUnMarshaller.php new file mode 100644 index 0000000..41fcc55 --- /dev/null +++ b/lib/Service/Promtion/Model/FrozenRightsResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantUserNo' => 'string', + 'status' => 'string', + 'pointAccountNo' => 'string', + 'pointAccountType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantUserNo' => null, + 'status' => null, + 'pointAccountNo' => null, + 'pointAccountType' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantUserNo' => 'merchantUserNo', + 'status' => 'status', + 'pointAccountNo' => 'pointAccountNo', + 'pointAccountType' => 'pointAccountType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantUserNo' => 'setMerchantUserNo', + 'status' => 'setStatus', + 'pointAccountNo' => 'setPointAccountNo', + 'pointAccountType' => 'setPointAccountType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantUserNo' => 'getMerchantUserNo', + 'status' => 'getStatus', + 'pointAccountNo' => 'getPointAccountNo', + 'pointAccountType' => 'getPointAccountType' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantUserNo'] = isset($data['merchantUserNo']) ? $data['merchantUserNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['pointAccountNo'] = isset($data['pointAccountNo']) ? $data['pointAccountNo'] : null; + $this->container['pointAccountType'] = isset($data['pointAccountType']) ? $data['pointAccountType'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->container['merchantUserNo']; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo 商户用户ID + * + * @return $this + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->container['merchantUserNo'] = $merchantUserNo; + + 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 pointAccountNo + * + * @return string + */ + public function getPointAccountNo() + { + return $this->container['pointAccountNo']; + } + + /** + * Sets pointAccountNo + * + * @param string $pointAccountNo 易宝积分账户编号 + * + * @return $this + */ + public function setPointAccountNo($pointAccountNo) + { + $this->container['pointAccountNo'] = $pointAccountNo; + + return $this; + } + + /** + * Gets pointAccountType + * + * @return string + */ + public function getPointAccountType() + { + return $this->container['pointAccountType']; + } + + /** + * Sets pointAccountType + * + * @param string $pointAccountType 账户类型 + * + * @return $this + */ + public function setPointAccountType($pointAccountType) + { + $this->container['pointAccountType'] = $pointAccountType; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/PointCreateRequest.php b/lib/Service/Promtion/Model/PointCreateRequest.php new file mode 100644 index 0000000..6841fef --- /dev/null +++ b/lib/Service/Promtion/Model/PointCreateRequest.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PointCreateRequest + */ + 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 PointCreateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return PointCreateRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + + public static function getOperationId() + { + return 'pointCreate'; + } + + +} diff --git a/lib/Service/Promtion/Model/PointCreateRequestMarshaller.php b/lib/Service/Promtion/Model/PointCreateRequestMarshaller.php new file mode 100644 index 0000000..aa3d165 --- /dev/null +++ b/lib/Service/Promtion/Model/PointCreateRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PointCreateRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/PointCreateResponse.php b/lib/Service/Promtion/Model/PointCreateResponse.php new file mode 100644 index 0000000..198c69f --- /dev/null +++ b/lib/Service/Promtion/Model/PointCreateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PointCreateAccountCreateResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/PointCreateResponseUnMarshaller.php b/lib/Service/Promtion/Model/PointCreateResponseUnMarshaller.php new file mode 100644 index 0000000..03a6aa1 --- /dev/null +++ b/lib/Service/Promtion/Model/PointCreateResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'unionPointNo' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'unionPointNo' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'unionPointNo' => 'unionPointNo', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'unionPointNo' => 'setUnionPointNo', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'unionPointNo' => 'getUnionPointNo', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['unionPointNo'] = isset($data['unionPointNo']) ? $data['unionPointNo'] : 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 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 unionPointNo + * + * @return string + */ + public function getUnionPointNo() + { + return $this->container['unionPointNo']; + } + + /** + * Sets unionPointNo + * + * @param string $unionPointNo 易宝订单号 + * + * @return $this + */ + public function setUnionPointNo($unionPointNo) + { + $this->container['unionPointNo'] = $unionPointNo; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/PointOperateRequest.php b/lib/Service/Promtion/Model/PointOperateRequest.php new file mode 100644 index 0000000..706529d --- /dev/null +++ b/lib/Service/Promtion/Model/PointOperateRequest.php @@ -0,0 +1,192 @@ +requestId; + } + + /** + * Sets requestId + * + * @param string $requestId + * @return PointOperateRequest + */ + public function setRequestId($requestId) + { + $this->requestId = $requestId; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PointOperateRequest + */ + 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 PointOperateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return PointOperateRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + /** + * Gets point + * + * @return float + */ + public function getPoint() + { + return $this->point; + } + + /** + * Sets point + * + * @param float $point + * @return PointOperateRequest + */ + public function setPoint($point) + { + $this->point = $point; + return $this; + } + /** + * Gets payDirection + * + * @return string + */ + public function getPayDirection() + { + return $this->payDirection; + } + + /** + * Sets payDirection + * + * @param string $payDirection + * @return PointOperateRequest + */ + public function setPayDirection($payDirection) + { + $this->payDirection = $payDirection; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return PointOperateRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + + public static function getOperationId() + { + return 'pointOperate'; + } + + +} diff --git a/lib/Service/Promtion/Model/PointOperateRequestMarshaller.php b/lib/Service/Promtion/Model/PointOperateRequestMarshaller.php new file mode 100644 index 0000000..bf7bcc5 --- /dev/null +++ b/lib/Service/Promtion/Model/PointOperateRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getRequestId() != null){ + $internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string')); + } + 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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + if($request->getPoint() != null){ + $internalRequest->addParameter('point', ObjectSerializer::sanitizeForSerialization($request->getPoint(), 'float')); + } + if($request->getPayDirection() != null){ + $internalRequest->addParameter('payDirection', ObjectSerializer::sanitizeForSerialization($request->getPayDirection(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PointOperateRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/PointOperateResponse.php b/lib/Service/Promtion/Model/PointOperateResponse.php new file mode 100644 index 0000000..6520ee8 --- /dev/null +++ b/lib/Service/Promtion/Model/PointOperateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PointOperatePointAccountOperateResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/PointOperateResponseUnMarshaller.php b/lib/Service/Promtion/Model/PointOperateResponseUnMarshaller.php new file mode 100644 index 0000000..7340f6b --- /dev/null +++ b/lib/Service/Promtion/Model/PointOperateResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantUserNo' => 'string', + 'pointAccountStatus' => 'string', + 'pointAccountNo' => 'string', + 'pointAccountType' => 'string', + 'point' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantUserNo' => null, + 'pointAccountStatus' => null, + 'pointAccountNo' => null, + 'pointAccountType' => null, + 'point' => 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', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantUserNo' => 'merchantUserNo', + 'pointAccountStatus' => 'pointAccountStatus', + 'pointAccountNo' => 'pointAccountNo', + 'pointAccountType' => 'pointAccountType', + 'point' => 'point' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantUserNo' => 'setMerchantUserNo', + 'pointAccountStatus' => 'setPointAccountStatus', + 'pointAccountNo' => 'setPointAccountNo', + 'pointAccountType' => 'setPointAccountType', + 'point' => 'setPoint' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantUserNo' => 'getMerchantUserNo', + 'pointAccountStatus' => 'getPointAccountStatus', + 'pointAccountNo' => 'getPointAccountNo', + 'pointAccountType' => 'getPointAccountType', + 'point' => 'getPoint' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantUserNo'] = isset($data['merchantUserNo']) ? $data['merchantUserNo'] : null; + $this->container['pointAccountStatus'] = isset($data['pointAccountStatus']) ? $data['pointAccountStatus'] : null; + $this->container['pointAccountNo'] = isset($data['pointAccountNo']) ? $data['pointAccountNo'] : null; + $this->container['pointAccountType'] = isset($data['pointAccountType']) ? $data['pointAccountType'] : null; + $this->container['point'] = isset($data['point']) ? $data['point'] : 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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 商户编号 + * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->container['merchantUserNo']; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo 商户用户ID + * + * @return $this + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->container['merchantUserNo'] = $merchantUserNo; + + return $this; + } + + /** + * Gets pointAccountStatus + * + * @return string + */ + public function getPointAccountStatus() + { + return $this->container['pointAccountStatus']; + } + + /** + * Sets pointAccountStatus + * + * @param string $pointAccountStatus 账户状态 + * + * @return $this + */ + public function setPointAccountStatus($pointAccountStatus) + { + $this->container['pointAccountStatus'] = $pointAccountStatus; + + return $this; + } + + /** + * Gets pointAccountNo + * + * @return string + */ + public function getPointAccountNo() + { + return $this->container['pointAccountNo']; + } + + /** + * Sets pointAccountNo + * + * @param string $pointAccountNo 易宝积分账户编号 + * + * @return $this + */ + public function setPointAccountNo($pointAccountNo) + { + $this->container['pointAccountNo'] = $pointAccountNo; + + return $this; + } + + /** + * Gets pointAccountType + * + * @return string + */ + public function getPointAccountType() + { + return $this->container['pointAccountType']; + } + + /** + * Sets pointAccountType + * + * @param string $pointAccountType 账户类型 + * + * @return $this + */ + public function setPointAccountType($pointAccountType) + { + $this->container['pointAccountType'] = $pointAccountType; + + return $this; + } + + /** + * Gets point + * + * @return float + */ + public function getPoint() + { + return $this->container['point']; + } + + /** + * Sets point + * + * @param float $point 积分数 + * + * @return $this + */ + public function setPoint($point) + { + $this->container['point'] = $point; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/PointQueryRequest.php b/lib/Service/Promtion/Model/PointQueryRequest.php new file mode 100644 index 0000000..87b540b --- /dev/null +++ b/lib/Service/Promtion/Model/PointQueryRequest.php @@ -0,0 +1,92 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return PointQueryRequest + */ + 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 PointQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets merchantUserNo + * + * @return string + */ + public function getMerchantUserNo() + { + return $this->merchantUserNo; + } + + /** + * Sets merchantUserNo + * + * @param string $merchantUserNo + * @return PointQueryRequest + */ + public function setMerchantUserNo($merchantUserNo) + { + $this->merchantUserNo = $merchantUserNo; + return $this; + } + + public static function getOperationId() + { + return 'pointQuery'; + } + + +} diff --git a/lib/Service/Promtion/Model/PointQueryRequestMarshaller.php b/lib/Service/Promtion/Model/PointQueryRequestMarshaller.php new file mode 100644 index 0000000..13aea69 --- /dev/null +++ b/lib/Service/Promtion/Model/PointQueryRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getMerchantUserNo() != null){ + $internalRequest->addParameter('merchantUserNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +PointQueryRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/PointQueryResponse.php b/lib/Service/Promtion/Model/PointQueryResponse.php new file mode 100644 index 0000000..a50ca64 --- /dev/null +++ b/lib/Service/Promtion/Model/PointQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return PointQueryPointAccountQueryResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/PointQueryResponseUnMarshaller.php b/lib/Service/Promtion/Model/PointQueryResponseUnMarshaller.php new file mode 100644 index 0000000..a027826 --- /dev/null +++ b/lib/Service/Promtion/Model/PointQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return QueryConsumeRecordAdapterRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return QueryConsumeRecordAdapterRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return QueryConsumeRecordAdapterRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return QueryConsumeRecordAdapterRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets consumeTimeEnd + * + * @return string + */ + public function getConsumeTimeEnd() + { + return $this->consumeTimeEnd; + } + + /** + * Sets consumeTimeEnd + * + * @param string $consumeTimeEnd + * @return QueryConsumeRecordAdapterRequest + */ + public function setConsumeTimeEnd($consumeTimeEnd) + { + $this->consumeTimeEnd = $consumeTimeEnd; + return $this; + } + /** + * Gets consumeTimeStart + * + * @return string + */ + public function getConsumeTimeStart() + { + return $this->consumeTimeStart; + } + + /** + * Sets consumeTimeStart + * + * @param string $consumeTimeStart + * @return QueryConsumeRecordAdapterRequest + */ + public function setConsumeTimeStart($consumeTimeStart) + { + $this->consumeTimeStart = $consumeTimeStart; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return QueryConsumeRecordAdapterRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'query_consume_record_adapter'; + } + + +} diff --git a/lib/Service/Promtion/Model/QueryConsumeRecordAdapterRequestMarshaller.php b/lib/Service/Promtion/Model/QueryConsumeRecordAdapterRequestMarshaller.php new file mode 100644 index 0000000..9aea426 --- /dev/null +++ b/lib/Service/Promtion/Model/QueryConsumeRecordAdapterRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getConsumeTimeEnd() != null){ + $internalRequest->addParameter('consumeTimeEnd', ObjectSerializer::sanitizeForSerialization($request->getConsumeTimeEnd(), 'string')); + } + if($request->getConsumeTimeStart() != null){ + $internalRequest->addParameter('consumeTimeStart', ObjectSerializer::sanitizeForSerialization($request->getConsumeTimeStart(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryConsumeRecordAdapterRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponse.php b/lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponse.php new file mode 100644 index 0000000..4cee7cb --- /dev/null +++ b/lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryRightsConsumeAdapterRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponseUnMarshaller.php b/lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponseUnMarshaller.php new file mode 100644 index 0000000..1236a51 --- /dev/null +++ b/lib/Service/Promtion/Model/QueryConsumeRecordAdapterResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'rightsConsumeList' => '\Yeepay\Yop\Sdk\Service\Promtion\Model\RightsConsumeDto[]', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'rightsConsumeList' => null, + 'message' => 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', + 'rightsConsumeList' => 'rightsConsumeList', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'rightsConsumeList' => 'setRightsConsumeList', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'rightsConsumeList' => 'getRightsConsumeList', + 'message' => 'getMessage' + ]; + + /** + * 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['rightsConsumeList'] = isset($data['rightsConsumeList']) ? $data['rightsConsumeList'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets rightsConsumeList + * + * @return \Yeepay\Yop\Sdk\Service\Promtion\Model\RightsConsumeDto[] + */ + public function getRightsConsumeList() + { + return $this->container['rightsConsumeList']; + } + + /** + * Sets rightsConsumeList + * + * @param \Yeepay\Yop\Sdk\Service\Promtion\Model\RightsConsumeDto[] $rightsConsumeList rightsConsumeList + * + * @return $this + */ + public function setRightsConsumeList($rightsConsumeList) + { + $this->container['rightsConsumeList'] = $rightsConsumeList; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/QueryRightsListAdapterRespDTO.php b/lib/Service/Promtion/Model/QueryRightsListAdapterRespDTO.php new file mode 100644 index 0000000..80d41a0 --- /dev/null +++ b/lib/Service/Promtion/Model/QueryRightsListAdapterRespDTO.php @@ -0,0 +1,363 @@ + 'string', + 'rightsList' => '\Yeepay\Yop\Sdk\Service\Promtion\Model\RightsDto[]', + 'message' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'rightsList' => null, + 'message' => 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', + 'rightsList' => 'rightsList', + 'message' => 'message' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'rightsList' => 'setRightsList', + 'message' => 'setMessage' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'rightsList' => 'getRightsList', + 'message' => 'getMessage' + ]; + + /** + * 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['rightsList'] = isset($data['rightsList']) ? $data['rightsList'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 code + * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets rightsList + * + * @return \Yeepay\Yop\Sdk\Service\Promtion\Model\RightsDto[] + */ + public function getRightsList() + { + return $this->container['rightsList']; + } + + /** + * Sets rightsList + * + * @param \Yeepay\Yop\Sdk\Service\Promtion\Model\RightsDto[] $rightsList rightsList + * + * @return $this + */ + public function setRightsList($rightsList) + { + $this->container['rightsList'] = $rightsList; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/QueryRightsRequest.php b/lib/Service/Promtion/Model/QueryRightsRequest.php new file mode 100644 index 0000000..057d10d --- /dev/null +++ b/lib/Service/Promtion/Model/QueryRightsRequest.php @@ -0,0 +1,142 @@ +userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return QueryRightsRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return QueryRightsRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return QueryRightsRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return QueryRightsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return QueryRightsRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'query_rights'; + } + + +} diff --git a/lib/Service/Promtion/Model/QueryRightsRequestMarshaller.php b/lib/Service/Promtion/Model/QueryRightsRequestMarshaller.php new file mode 100644 index 0000000..ca05a95 --- /dev/null +++ b/lib/Service/Promtion/Model/QueryRightsRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryRightsRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/QueryRightsResponse.php b/lib/Service/Promtion/Model/QueryRightsResponse.php new file mode 100644 index 0000000..1b1f71c --- /dev/null +++ b/lib/Service/Promtion/Model/QueryRightsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryRightsListAdapterRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/QueryRightsResponseUnMarshaller.php b/lib/Service/Promtion/Model/QueryRightsResponseUnMarshaller.php new file mode 100644 index 0000000..e7311b3 --- /dev/null +++ b/lib/Service/Promtion/Model/QueryRightsResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'brandName' => 'string', + 'rightsCode' => 'string', + 'rightsTitle' => 'string', + 'requestNo' => 'string', + 'consumeStatus' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'consumeTime' => null, + 'brandName' => null, + 'rightsCode' => null, + 'rightsTitle' => null, + 'requestNo' => null, + 'consumeStatus' => 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 = [ + 'consumeTime' => 'consumeTime', + 'brandName' => 'brandName', + 'rightsCode' => 'rightsCode', + 'rightsTitle' => 'rightsTitle', + 'requestNo' => 'requestNo', + 'consumeStatus' => 'consumeStatus' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'consumeTime' => 'setConsumeTime', + 'brandName' => 'setBrandName', + 'rightsCode' => 'setRightsCode', + 'rightsTitle' => 'setRightsTitle', + 'requestNo' => 'setRequestNo', + 'consumeStatus' => 'setConsumeStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'consumeTime' => 'getConsumeTime', + 'brandName' => 'getBrandName', + 'rightsCode' => 'getRightsCode', + 'rightsTitle' => 'getRightsTitle', + 'requestNo' => 'getRequestNo', + 'consumeStatus' => 'getConsumeStatus' + ]; + + /** + * 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['consumeTime'] = isset($data['consumeTime']) ? $data['consumeTime'] : null; + $this->container['brandName'] = isset($data['brandName']) ? $data['brandName'] : null; + $this->container['rightsCode'] = isset($data['rightsCode']) ? $data['rightsCode'] : null; + $this->container['rightsTitle'] = isset($data['rightsTitle']) ? $data['rightsTitle'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['consumeStatus'] = isset($data['consumeStatus']) ? $data['consumeStatus'] : 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 consumeTime + * + * @return string + */ + public function getConsumeTime() + { + return $this->container['consumeTime']; + } + + /** + * Sets consumeTime + * + * @param string $consumeTime consumeTime + * + * @return $this + */ + public function setConsumeTime($consumeTime) + { + $this->container['consumeTime'] = $consumeTime; + + return $this; + } + + /** + * Gets brandName + * + * @return string + */ + public function getBrandName() + { + return $this->container['brandName']; + } + + /** + * Sets brandName + * + * @param string $brandName brandName + * + * @return $this + */ + public function setBrandName($brandName) + { + $this->container['brandName'] = $brandName; + + return $this; + } + + /** + * Gets rightsCode + * + * @return string + */ + public function getRightsCode() + { + return $this->container['rightsCode']; + } + + /** + * Sets rightsCode + * + * @param string $rightsCode rightsCode + * + * @return $this + */ + public function setRightsCode($rightsCode) + { + $this->container['rightsCode'] = $rightsCode; + + return $this; + } + + /** + * Gets rightsTitle + * + * @return string + */ + public function getRightsTitle() + { + return $this->container['rightsTitle']; + } + + /** + * Sets rightsTitle + * + * @param string $rightsTitle rightsTitle + * + * @return $this + */ + public function setRightsTitle($rightsTitle) + { + $this->container['rightsTitle'] = $rightsTitle; + + return $this; + } + + /** + * 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 consumeStatus + * + * @return string + */ + public function getConsumeStatus() + { + return $this->container['consumeStatus']; + } + + /** + * Sets consumeStatus + * + * @param string $consumeStatus consumeStatus + * + * @return $this + */ + public function setConsumeStatus($consumeStatus) + { + $this->container['consumeStatus'] = $consumeStatus; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/RightsCreateQrcodeRequest.php b/lib/Service/Promtion/Model/RightsCreateQrcodeRequest.php new file mode 100644 index 0000000..64a5f8d --- /dev/null +++ b/lib/Service/Promtion/Model/RightsCreateQrcodeRequest.php @@ -0,0 +1,117 @@ +operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return RightsCreateQrcodeRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets rightsCode + * + * @return string + */ + public function getRightsCode() + { + return $this->rightsCode; + } + + /** + * Sets rightsCode + * + * @param string $rightsCode + * @return RightsCreateQrcodeRequest + */ + public function setRightsCode($rightsCode) + { + $this->rightsCode = $rightsCode; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RightsCreateQrcodeRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return RightsCreateQrcodeRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + + public static function getOperationId() + { + return 'rightsCreateQrcode'; + } + + +} diff --git a/lib/Service/Promtion/Model/RightsCreateQrcodeRequestMarshaller.php b/lib/Service/Promtion/Model/RightsCreateQrcodeRequestMarshaller.php new file mode 100644 index 0000000..253ef96 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsCreateQrcodeRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getRightsCode() != null){ + $internalRequest->addParameter('rightsCode', ObjectSerializer::sanitizeForSerialization($request->getRightsCode(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RightsCreateQrcodeRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/RightsCreateQrcodeResponse.php b/lib/Service/Promtion/Model/RightsCreateQrcodeResponse.php new file mode 100644 index 0000000..f4ed562 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsCreateQrcodeResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CreateRightsQrCodeAdapterRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/RightsCreateQrcodeResponseUnMarshaller.php b/lib/Service/Promtion/Model/RightsCreateQrcodeResponseUnMarshaller.php new file mode 100644 index 0000000..4c1bf78 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsCreateQrcodeResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'rightsCode' => 'string', + 'rightsTitle' => 'string', + 'brandNo' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'endEffectDate' => null, + 'rightsCode' => null, + 'rightsTitle' => null, + 'brandNo' => null, + 'merchantNo' => 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 = [ + 'endEffectDate' => 'endEffectDate', + 'rightsCode' => 'rightsCode', + 'rightsTitle' => 'rightsTitle', + 'brandNo' => 'brandNo', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'endEffectDate' => 'setEndEffectDate', + 'rightsCode' => 'setRightsCode', + 'rightsTitle' => 'setRightsTitle', + 'brandNo' => 'setBrandNo', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'endEffectDate' => 'getEndEffectDate', + 'rightsCode' => 'getRightsCode', + 'rightsTitle' => 'getRightsTitle', + 'brandNo' => 'getBrandNo', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['endEffectDate'] = isset($data['endEffectDate']) ? $data['endEffectDate'] : null; + $this->container['rightsCode'] = isset($data['rightsCode']) ? $data['rightsCode'] : null; + $this->container['rightsTitle'] = isset($data['rightsTitle']) ? $data['rightsTitle'] : null; + $this->container['brandNo'] = isset($data['brandNo']) ? $data['brandNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : 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 endEffectDate + * + * @return string + */ + public function getEndEffectDate() + { + return $this->container['endEffectDate']; + } + + /** + * Sets endEffectDate + * + * @param string $endEffectDate endEffectDate + * + * @return $this + */ + public function setEndEffectDate($endEffectDate) + { + $this->container['endEffectDate'] = $endEffectDate; + + return $this; + } + + /** + * Gets rightsCode + * + * @return string + */ + public function getRightsCode() + { + return $this->container['rightsCode']; + } + + /** + * Sets rightsCode + * + * @param string $rightsCode rightsCode + * + * @return $this + */ + public function setRightsCode($rightsCode) + { + $this->container['rightsCode'] = $rightsCode; + + return $this; + } + + /** + * Gets rightsTitle + * + * @return string + */ + public function getRightsTitle() + { + return $this->container['rightsTitle']; + } + + /** + * Sets rightsTitle + * + * @param string $rightsTitle rightsTitle + * + * @return $this + */ + public function setRightsTitle($rightsTitle) + { + $this->container['rightsTitle'] = $rightsTitle; + + return $this; + } + + /** + * Gets brandNo + * + * @return string + */ + public function getBrandNo() + { + return $this->container['brandNo']; + } + + /** + * Sets brandNo + * + * @param string $brandNo brandNo + * + * @return $this + */ + public function setBrandNo($brandNo) + { + $this->container['brandNo'] = $brandNo; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/RightsFrozenRightsRequest.php b/lib/Service/Promtion/Model/RightsFrozenRightsRequest.php new file mode 100644 index 0000000..9d26d1a --- /dev/null +++ b/lib/Service/Promtion/Model/RightsFrozenRightsRequest.php @@ -0,0 +1,67 @@ +productNo; + } + + /** + * Sets productNo + * + * @param string $productNo + * @return RightsFrozenRightsRequest + */ + public function setProductNo($productNo) + { + $this->productNo = $productNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RightsFrozenRightsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'rightsFrozenRights'; + } + + +} diff --git a/lib/Service/Promtion/Model/RightsFrozenRightsRequestMarshaller.php b/lib/Service/Promtion/Model/RightsFrozenRightsRequestMarshaller.php new file mode 100644 index 0000000..43853cb --- /dev/null +++ b/lib/Service/Promtion/Model/RightsFrozenRightsRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getProductNo() != null){ + $internalRequest->addParameter('productNo', ObjectSerializer::sanitizeForSerialization($request->getProductNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RightsFrozenRightsRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/RightsFrozenRightsResponse.php b/lib/Service/Promtion/Model/RightsFrozenRightsResponse.php new file mode 100644 index 0000000..25997f4 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsFrozenRightsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BaseResponse + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/RightsFrozenRightsResponseUnMarshaller.php b/lib/Service/Promtion/Model/RightsFrozenRightsResponseUnMarshaller.php new file mode 100644 index 0000000..7ec7932 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsFrozenRightsResponseUnMarshaller.php @@ -0,0 +1,39 @@ +operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return RightsQueryConsumeRecordsRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return RightsQueryConsumeRecordsRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return RightsQueryConsumeRecordsRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return RightsQueryConsumeRecordsRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets consumeTimeEnd + * + * @return string + */ + public function getConsumeTimeEnd() + { + return $this->consumeTimeEnd; + } + + /** + * Sets consumeTimeEnd + * + * @param string $consumeTimeEnd + * @return RightsQueryConsumeRecordsRequest + */ + public function setConsumeTimeEnd($consumeTimeEnd) + { + $this->consumeTimeEnd = $consumeTimeEnd; + return $this; + } + /** + * Gets consumeTimeStart + * + * @return string + */ + public function getConsumeTimeStart() + { + return $this->consumeTimeStart; + } + + /** + * Sets consumeTimeStart + * + * @param string $consumeTimeStart + * @return RightsQueryConsumeRecordsRequest + */ + public function setConsumeTimeStart($consumeTimeStart) + { + $this->consumeTimeStart = $consumeTimeStart; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RightsQueryConsumeRecordsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'rightsQueryConsumeRecords'; + } + + +} diff --git a/lib/Service/Promtion/Model/RightsQueryConsumeRecordsRequestMarshaller.php b/lib/Service/Promtion/Model/RightsQueryConsumeRecordsRequestMarshaller.php new file mode 100644 index 0000000..3bad179 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsQueryConsumeRecordsRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + if($request->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getConsumeTimeEnd() != null){ + $internalRequest->addParameter('consumeTimeEnd', ObjectSerializer::sanitizeForSerialization($request->getConsumeTimeEnd(), 'string')); + } + if($request->getConsumeTimeStart() != null){ + $internalRequest->addParameter('consumeTimeStart', ObjectSerializer::sanitizeForSerialization($request->getConsumeTimeStart(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RightsQueryConsumeRecordsRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponse.php b/lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponse.php new file mode 100644 index 0000000..fc39b6d --- /dev/null +++ b/lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryRightsConsumeAdapterRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponseUnMarshaller.php b/lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponseUnMarshaller.php new file mode 100644 index 0000000..3fde88f --- /dev/null +++ b/lib/Service/Promtion/Model/RightsQueryConsumeRecordsResponseUnMarshaller.php @@ -0,0 +1,39 @@ +userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return RightsQueryRightsRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return RightsQueryRightsRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return RightsQueryRightsRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RightsQueryRightsRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets operatedMerchantNo + * + * @return string + */ + public function getOperatedMerchantNo() + { + return $this->operatedMerchantNo; + } + + /** + * Sets operatedMerchantNo + * + * @param string $operatedMerchantNo + * @return RightsQueryRightsRequest + */ + public function setOperatedMerchantNo($operatedMerchantNo) + { + $this->operatedMerchantNo = $operatedMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'rightsQueryRights'; + } + + +} diff --git a/lib/Service/Promtion/Model/RightsQueryRightsRequestMarshaller.php b/lib/Service/Promtion/Model/RightsQueryRightsRequestMarshaller.php new file mode 100644 index 0000000..fbfa109 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsQueryRightsRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getOperatedMerchantNo() != null){ + $internalRequest->addParameter('operatedMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getOperatedMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RightsQueryRightsRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/RightsQueryRightsResponse.php b/lib/Service/Promtion/Model/RightsQueryRightsResponse.php new file mode 100644 index 0000000..f6ba401 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsQueryRightsResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryRightsListAdapterRespDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/RightsQueryRightsResponseUnMarshaller.php b/lib/Service/Promtion/Model/RightsQueryRightsResponseUnMarshaller.php new file mode 100644 index 0000000..c8219f6 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsQueryRightsResponseUnMarshaller.php @@ -0,0 +1,39 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RightsTransferRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets userNo + * + * @return string + */ + public function getUserNo() + { + return $this->userNo; + } + + /** + * Sets userNo + * + * @param string $userNo + * @return RightsTransferRequest + */ + public function setUserNo($userNo) + { + $this->userNo = $userNo; + return $this; + } + /** + * Gets productNo + * + * @return string + */ + public function getProductNo() + { + return $this->productNo; + } + + /** + * Sets productNo + * + * @param string $productNo + * @return RightsTransferRequest + */ + public function setProductNo($productNo) + { + $this->productNo = $productNo; + return $this; + } + + public static function getOperationId() + { + return 'rights_transfer'; + } + + +} diff --git a/lib/Service/Promtion/Model/RightsTransferRequestMarshaller.php b/lib/Service/Promtion/Model/RightsTransferRequestMarshaller.php new file mode 100644 index 0000000..58e2844 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsTransferRequestMarshaller.php @@ -0,0 +1,86 @@ +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->getUserNo() != null){ + $internalRequest->addParameter('userNo', ObjectSerializer::sanitizeForSerialization($request->getUserNo(), 'string')); + } + if($request->getProductNo() != null){ + $internalRequest->addParameter('productNo', ObjectSerializer::sanitizeForSerialization($request->getProductNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RightsTransferRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/RightsTransferResponse.php b/lib/Service/Promtion/Model/RightsTransferResponse.php new file mode 100644 index 0000000..1af48d8 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsTransferResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BaseResponse + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/RightsTransferResponseUnMarshaller.php b/lib/Service/Promtion/Model/RightsTransferResponseUnMarshaller.php new file mode 100644 index 0000000..fc5b222 --- /dev/null +++ b/lib/Service/Promtion/Model/RightsTransferResponseUnMarshaller.php @@ -0,0 +1,39 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return SubsidyApplyRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->uniqueOrderNo; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo + * @return SubsidyApplyRequest + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->uniqueOrderNo = $uniqueOrderNo; + return $this; + } + /** + * Gets subsidyRequestId + * + * @return string + */ + public function getSubsidyRequestId() + { + return $this->subsidyRequestId; + } + + /** + * Sets subsidyRequestId + * + * @param string $subsidyRequestId + * @return SubsidyApplyRequest + */ + public function setSubsidyRequestId($subsidyRequestId) + { + $this->subsidyRequestId = $subsidyRequestId; + return $this; + } + /** + * Gets subsidyAmount + * + * @return string + */ + public function getSubsidyAmount() + { + return $this->subsidyAmount; + } + + /** + * Sets subsidyAmount + * + * @param string $subsidyAmount + * @return SubsidyApplyRequest + */ + public function setSubsidyAmount($subsidyAmount) + { + $this->subsidyAmount = $subsidyAmount; + return $this; + } + /** + * Gets assumeMerchantNo + * + * @return string + */ + public function getAssumeMerchantNo() + { + return $this->assumeMerchantNo; + } + + /** + * Sets assumeMerchantNo + * + * @param string $assumeMerchantNo + * @return SubsidyApplyRequest + */ + public function setAssumeMerchantNo($assumeMerchantNo) + { + $this->assumeMerchantNo = $assumeMerchantNo; + return $this; + } + /** + * Gets memo + * + * @return string + */ + public function getMemo() + { + return $this->memo; + } + + /** + * Sets memo + * + * @param string $memo + * @return SubsidyApplyRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SubsidyApplyRequest + */ + 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 SubsidyApplyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'subsidyApply'; + } + + +} diff --git a/lib/Service/Promtion/Model/SubsidyApplyRequestMarshaller.php b/lib/Service/Promtion/Model/SubsidyApplyRequestMarshaller.php new file mode 100644 index 0000000..be694d8 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyApplyRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getUniqueOrderNo() != null){ + $internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string')); + } + if($request->getSubsidyRequestId() != null){ + $internalRequest->addParameter('subsidyRequestId', ObjectSerializer::sanitizeForSerialization($request->getSubsidyRequestId(), 'string')); + } + if($request->getSubsidyAmount() != null){ + $internalRequest->addParameter('subsidyAmount', ObjectSerializer::sanitizeForSerialization($request->getSubsidyAmount(), 'string')); + } + if($request->getAssumeMerchantNo() != null){ + $internalRequest->addParameter('assumeMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getAssumeMerchantNo(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SubsidyApplyRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/SubsidyApplyResponse.php b/lib/Service/Promtion/Model/SubsidyApplyResponse.php new file mode 100644 index 0000000..2ad4958 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SubsidyApplyYopSubsidyResDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/SubsidyApplyResponseUnMarshaller.php b/lib/Service/Promtion/Model/SubsidyApplyResponseUnMarshaller.php new file mode 100644 index 0000000..79e2ab7 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'subsidyOrderNo' => 'string', + 'status' => 'string', + 'subsidyAmount' => 'string', + 'assumeMerchantNo' => 'string', + 'failReason' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'subsidyOrderNo' => null, + 'status' => null, + 'subsidyAmount' => null, + 'assumeMerchantNo' => null, + '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 = [ + 'code' => 'code', + 'message' => 'message', + 'subsidyOrderNo' => 'subsidyOrderNo', + 'status' => 'status', + 'subsidyAmount' => 'subsidyAmount', + 'assumeMerchantNo' => 'assumeMerchantNo', + 'failReason' => 'failReason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'subsidyOrderNo' => 'setSubsidyOrderNo', + 'status' => 'setStatus', + 'subsidyAmount' => 'setSubsidyAmount', + 'assumeMerchantNo' => 'setAssumeMerchantNo', + 'failReason' => 'setFailReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'subsidyOrderNo' => 'getSubsidyOrderNo', + 'status' => 'getStatus', + 'subsidyAmount' => 'getSubsidyAmount', + 'assumeMerchantNo' => 'getAssumeMerchantNo', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['subsidyOrderNo'] = isset($data['subsidyOrderNo']) ? $data['subsidyOrderNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['subsidyAmount'] = isset($data['subsidyAmount']) ? $data['subsidyAmount'] : null; + $this->container['assumeMerchantNo'] = isset($data['assumeMerchantNo']) ? $data['assumeMerchantNo'] : 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 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 subsidyOrderNo + * + * @return string + */ + public function getSubsidyOrderNo() + { + return $this->container['subsidyOrderNo']; + } + + /** + * Sets subsidyOrderNo + * + * @param string $subsidyOrderNo 易宝补贴订单号 + * + * @return $this + */ + public function setSubsidyOrderNo($subsidyOrderNo) + { + $this->container['subsidyOrderNo'] = $subsidyOrderNo; + + 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 subsidyAmount + * + * @return string + */ + public function getSubsidyAmount() + { + return $this->container['subsidyAmount']; + } + + /** + * Sets subsidyAmount + * + * @param string $subsidyAmount 补贴金额 + * + * @return $this + */ + public function setSubsidyAmount($subsidyAmount) + { + $this->container['subsidyAmount'] = $subsidyAmount; + + return $this; + } + + /** + * Gets assumeMerchantNo + * + * @return string + */ + public function getAssumeMerchantNo() + { + return $this->container['assumeMerchantNo']; + } + + /** + * Sets assumeMerchantNo + * + * @param string $assumeMerchantNo 出资方商编 + * + * @return $this + */ + public function setAssumeMerchantNo($assumeMerchantNo) + { + $this->container['assumeMerchantNo'] = $assumeMerchantNo; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/SubsidyBackQueryRequest.php b/lib/Service/Promtion/Model/SubsidyBackQueryRequest.php new file mode 100644 index 0000000..3de5d7f --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackQueryRequest.php @@ -0,0 +1,117 @@ +subsidyRequestId; + } + + /** + * Sets subsidyRequestId + * + * @param string $subsidyRequestId + * @return SubsidyBackQueryRequest + */ + public function setSubsidyRequestId($subsidyRequestId) + { + $this->subsidyRequestId = $subsidyRequestId; + return $this; + } + /** + * Gets subsidyBackRequestId + * + * @return string + */ + public function getSubsidyBackRequestId() + { + return $this->subsidyBackRequestId; + } + + /** + * Sets subsidyBackRequestId + * + * @param string $subsidyBackRequestId + * @return SubsidyBackQueryRequest + */ + public function setSubsidyBackRequestId($subsidyBackRequestId) + { + $this->subsidyBackRequestId = $subsidyBackRequestId; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SubsidyBackQueryRequest + */ + 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 SubsidyBackQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'subsidyBackQuery'; + } + + +} diff --git a/lib/Service/Promtion/Model/SubsidyBackQueryRequestMarshaller.php b/lib/Service/Promtion/Model/SubsidyBackQueryRequestMarshaller.php new file mode 100644 index 0000000..28096c4 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getSubsidyRequestId() != null){ + $internalRequest->addParameter('subsidyRequestId', ObjectSerializer::sanitizeForSerialization($request->getSubsidyRequestId(), 'string')); + } + if($request->getSubsidyBackRequestId() != null){ + $internalRequest->addParameter('subsidyBackRequestId', ObjectSerializer::sanitizeForSerialization($request->getSubsidyBackRequestId(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SubsidyBackQueryRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/SubsidyBackQueryResponse.php b/lib/Service/Promtion/Model/SubsidyBackQueryResponse.php new file mode 100644 index 0000000..ece7e35 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SubsidyBackQueryYopQuerySubsidyBackResDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/SubsidyBackQueryResponseUnMarshaller.php b/lib/Service/Promtion/Model/SubsidyBackQueryResponseUnMarshaller.php new file mode 100644 index 0000000..81d8dbc --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'status' => 'string', + 'subsidyBackOrderNo' => 'string', + 'subsidyBackAmount' => 'float', + 'failReason' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'status' => null, + 'subsidyBackOrderNo' => null, + 'subsidyBackAmount' => null, + '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 = [ + 'code' => 'code', + 'message' => 'message', + 'status' => 'status', + 'subsidyBackOrderNo' => 'subsidyBackOrderNo', + 'subsidyBackAmount' => 'subsidyBackAmount', + 'failReason' => 'failReason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'status' => 'setStatus', + 'subsidyBackOrderNo' => 'setSubsidyBackOrderNo', + 'subsidyBackAmount' => 'setSubsidyBackAmount', + 'failReason' => 'setFailReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'status' => 'getStatus', + 'subsidyBackOrderNo' => 'getSubsidyBackOrderNo', + 'subsidyBackAmount' => 'getSubsidyBackAmount', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['subsidyBackOrderNo'] = isset($data['subsidyBackOrderNo']) ? $data['subsidyBackOrderNo'] : null; + $this->container['subsidyBackAmount'] = isset($data['subsidyBackAmount']) ? $data['subsidyBackAmount'] : 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 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 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 subsidyBackOrderNo + * + * @return string + */ + public function getSubsidyBackOrderNo() + { + return $this->container['subsidyBackOrderNo']; + } + + /** + * Sets subsidyBackOrderNo + * + * @param string $subsidyBackOrderNo 易宝补贴退回订单号 + * + * @return $this + */ + public function setSubsidyBackOrderNo($subsidyBackOrderNo) + { + $this->container['subsidyBackOrderNo'] = $subsidyBackOrderNo; + + return $this; + } + + /** + * Gets subsidyBackAmount + * + * @return float + */ + public function getSubsidyBackAmount() + { + return $this->container['subsidyBackAmount']; + } + + /** + * Sets subsidyBackAmount + * + * @param float $subsidyBackAmount 补贴退回金额 + * + * @return $this + */ + public function setSubsidyBackAmount($subsidyBackAmount) + { + $this->container['subsidyBackAmount'] = $subsidyBackAmount; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/SubsidyBackRequest.php b/lib/Service/Promtion/Model/SubsidyBackRequest.php new file mode 100644 index 0000000..a63616d --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackRequest.php @@ -0,0 +1,217 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return SubsidyBackRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets subsidyRequestId + * + * @return string + */ + public function getSubsidyRequestId() + { + return $this->subsidyRequestId; + } + + /** + * Sets subsidyRequestId + * + * @param string $subsidyRequestId + * @return SubsidyBackRequest + */ + public function setSubsidyRequestId($subsidyRequestId) + { + $this->subsidyRequestId = $subsidyRequestId; + return $this; + } + /** + * Gets subsidyBackRequestId + * + * @return string + */ + public function getSubsidyBackRequestId() + { + return $this->subsidyBackRequestId; + } + + /** + * Sets subsidyBackRequestId + * + * @param string $subsidyBackRequestId + * @return SubsidyBackRequest + */ + public function setSubsidyBackRequestId($subsidyBackRequestId) + { + $this->subsidyBackRequestId = $subsidyBackRequestId; + return $this; + } + /** + * Gets subsidyBackAmount + * + * @return string + */ + public function getSubsidyBackAmount() + { + return $this->subsidyBackAmount; + } + + /** + * Sets subsidyBackAmount + * + * @param string $subsidyBackAmount + * @return SubsidyBackRequest + */ + public function setSubsidyBackAmount($subsidyBackAmount) + { + $this->subsidyBackAmount = $subsidyBackAmount; + return $this; + } + /** + * Gets returnAccountType + * + * @return string + */ + public function getReturnAccountType() + { + return $this->returnAccountType; + } + + /** + * Sets returnAccountType + * + * @param string $returnAccountType + * @return SubsidyBackRequest + */ + public function setReturnAccountType($returnAccountType) + { + $this->returnAccountType = $returnAccountType; + return $this; + } + /** + * Gets memo + * + * @return string + */ + public function getMemo() + { + return $this->memo; + } + + /** + * Sets memo + * + * @param string $memo + * @return SubsidyBackRequest + */ + public function setMemo($memo) + { + $this->memo = $memo; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SubsidyBackRequest + */ + 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 SubsidyBackRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'subsidyBack'; + } + + +} diff --git a/lib/Service/Promtion/Model/SubsidyBackRequestMarshaller.php b/lib/Service/Promtion/Model/SubsidyBackRequestMarshaller.php new file mode 100644 index 0000000..5fec2ca --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getSubsidyRequestId() != null){ + $internalRequest->addParameter('subsidyRequestId', ObjectSerializer::sanitizeForSerialization($request->getSubsidyRequestId(), 'string')); + } + if($request->getSubsidyBackRequestId() != null){ + $internalRequest->addParameter('subsidyBackRequestId', ObjectSerializer::sanitizeForSerialization($request->getSubsidyBackRequestId(), 'string')); + } + if($request->getSubsidyBackAmount() != null){ + $internalRequest->addParameter('subsidyBackAmount', ObjectSerializer::sanitizeForSerialization($request->getSubsidyBackAmount(), 'string')); + } + if($request->getReturnAccountType() != null){ + $internalRequest->addParameter('returnAccountType', ObjectSerializer::sanitizeForSerialization($request->getReturnAccountType(), 'string')); + } + if($request->getMemo() != null){ + $internalRequest->addParameter('memo', ObjectSerializer::sanitizeForSerialization($request->getMemo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SubsidyBackRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/SubsidyBackResponse.php b/lib/Service/Promtion/Model/SubsidyBackResponse.php new file mode 100644 index 0000000..45c1487 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SubsidyBackYopSubsidyBackResDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/SubsidyBackResponseUnMarshaller.php b/lib/Service/Promtion/Model/SubsidyBackResponseUnMarshaller.php new file mode 100644 index 0000000..e715348 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyBackResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'subsidyOrderNo' => 'string', + 'subsidyBackOrderNo' => 'string', + 'status' => 'string', + 'subsidyBackAmount' => 'string', + 'failReason' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'subsidyOrderNo' => null, + 'subsidyBackOrderNo' => null, + 'status' => null, + 'subsidyBackAmount' => null, + '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 = [ + 'code' => 'code', + 'message' => 'message', + 'subsidyOrderNo' => 'subsidyOrderNo', + 'subsidyBackOrderNo' => 'subsidyBackOrderNo', + 'status' => 'status', + 'subsidyBackAmount' => 'subsidyBackAmount', + 'failReason' => 'failReason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'subsidyOrderNo' => 'setSubsidyOrderNo', + 'subsidyBackOrderNo' => 'setSubsidyBackOrderNo', + 'status' => 'setStatus', + 'subsidyBackAmount' => 'setSubsidyBackAmount', + 'failReason' => 'setFailReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'subsidyOrderNo' => 'getSubsidyOrderNo', + 'subsidyBackOrderNo' => 'getSubsidyBackOrderNo', + 'status' => 'getStatus', + 'subsidyBackAmount' => 'getSubsidyBackAmount', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['subsidyOrderNo'] = isset($data['subsidyOrderNo']) ? $data['subsidyOrderNo'] : null; + $this->container['subsidyBackOrderNo'] = isset($data['subsidyBackOrderNo']) ? $data['subsidyBackOrderNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['subsidyBackAmount'] = isset($data['subsidyBackAmount']) ? $data['subsidyBackAmount'] : 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 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 subsidyOrderNo + * + * @return string + */ + public function getSubsidyOrderNo() + { + return $this->container['subsidyOrderNo']; + } + + /** + * Sets subsidyOrderNo + * + * @param string $subsidyOrderNo 易宝补贴订单号 + * + * @return $this + */ + public function setSubsidyOrderNo($subsidyOrderNo) + { + $this->container['subsidyOrderNo'] = $subsidyOrderNo; + + return $this; + } + + /** + * Gets subsidyBackOrderNo + * + * @return string + */ + public function getSubsidyBackOrderNo() + { + return $this->container['subsidyBackOrderNo']; + } + + /** + * Sets subsidyBackOrderNo + * + * @param string $subsidyBackOrderNo 易宝补贴退回订单号 + * + * @return $this + */ + public function setSubsidyBackOrderNo($subsidyBackOrderNo) + { + $this->container['subsidyBackOrderNo'] = $subsidyBackOrderNo; + + 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 subsidyBackAmount + * + * @return string + */ + public function getSubsidyBackAmount() + { + return $this->container['subsidyBackAmount']; + } + + /** + * Sets subsidyBackAmount + * + * @param string $subsidyBackAmount 补贴退回金额 + * + * @return $this + */ + public function setSubsidyBackAmount($subsidyBackAmount) + { + $this->container['subsidyBackAmount'] = $subsidyBackAmount; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/Model/SubsidyQueryRequest.php b/lib/Service/Promtion/Model/SubsidyQueryRequest.php new file mode 100644 index 0000000..6c2f1a9 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyQueryRequest.php @@ -0,0 +1,117 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return SubsidyQueryRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets subsidyRequestId + * + * @return string + */ + public function getSubsidyRequestId() + { + return $this->subsidyRequestId; + } + + /** + * Sets subsidyRequestId + * + * @param string $subsidyRequestId + * @return SubsidyQueryRequest + */ + public function setSubsidyRequestId($subsidyRequestId) + { + $this->subsidyRequestId = $subsidyRequestId; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SubsidyQueryRequest + */ + 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 SubsidyQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'subsidyQuery'; + } + + +} diff --git a/lib/Service/Promtion/Model/SubsidyQueryRequestMarshaller.php b/lib/Service/Promtion/Model/SubsidyQueryRequestMarshaller.php new file mode 100644 index 0000000..5c3c2eb --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getSubsidyRequestId() != null){ + $internalRequest->addParameter('subsidyRequestId', ObjectSerializer::sanitizeForSerialization($request->getSubsidyRequestId(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SubsidyQueryRequestMarshaller::__init(); diff --git a/lib/Service/Promtion/Model/SubsidyQueryResponse.php b/lib/Service/Promtion/Model/SubsidyQueryResponse.php new file mode 100644 index 0000000..7b29a8d --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SubsidyQueryYopQuerySubsidyResDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Promtion/Model/SubsidyQueryResponseUnMarshaller.php b/lib/Service/Promtion/Model/SubsidyQueryResponseUnMarshaller.php new file mode 100644 index 0000000..5a87093 --- /dev/null +++ b/lib/Service/Promtion/Model/SubsidyQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'uniqueOrderNo' => 'string', + 'subsidyOrderNo' => 'string', + 'status' => 'string', + 'subsidyAmount' => 'string', + 'assumeMerchantNo' => 'string', + 'failReason' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'uniqueOrderNo' => null, + 'subsidyOrderNo' => null, + 'status' => null, + 'subsidyAmount' => null, + 'assumeMerchantNo' => null, + '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 = [ + 'code' => 'code', + 'message' => 'message', + 'uniqueOrderNo' => 'uniqueOrderNo', + 'subsidyOrderNo' => 'subsidyOrderNo', + 'status' => 'status', + 'subsidyAmount' => 'subsidyAmount', + 'assumeMerchantNo' => 'assumeMerchantNo', + 'failReason' => 'failReason' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'uniqueOrderNo' => 'setUniqueOrderNo', + 'subsidyOrderNo' => 'setSubsidyOrderNo', + 'status' => 'setStatus', + 'subsidyAmount' => 'setSubsidyAmount', + 'assumeMerchantNo' => 'setAssumeMerchantNo', + 'failReason' => 'setFailReason' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'uniqueOrderNo' => 'getUniqueOrderNo', + 'subsidyOrderNo' => 'getSubsidyOrderNo', + 'status' => 'getStatus', + 'subsidyAmount' => 'getSubsidyAmount', + 'assumeMerchantNo' => 'getAssumeMerchantNo', + '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['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['subsidyOrderNo'] = isset($data['subsidyOrderNo']) ? $data['subsidyOrderNo'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['subsidyAmount'] = isset($data['subsidyAmount']) ? $data['subsidyAmount'] : null; + $this->container['assumeMerchantNo'] = isset($data['assumeMerchantNo']) ? $data['assumeMerchantNo'] : 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 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 subsidyOrderNo + * + * @return string + */ + public function getSubsidyOrderNo() + { + return $this->container['subsidyOrderNo']; + } + + /** + * Sets subsidyOrderNo + * + * @param string $subsidyOrderNo 易宝补贴订单号 + * + * @return $this + */ + public function setSubsidyOrderNo($subsidyOrderNo) + { + $this->container['subsidyOrderNo'] = $subsidyOrderNo; + + 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 subsidyAmount + * + * @return string + */ + public function getSubsidyAmount() + { + return $this->container['subsidyAmount']; + } + + /** + * Sets subsidyAmount + * + * @param string $subsidyAmount 补贴金额 + * + * @return $this + */ + public function setSubsidyAmount($subsidyAmount) + { + $this->container['subsidyAmount'] = $subsidyAmount; + + return $this; + } + + /** + * Gets assumeMerchantNo + * + * @return string + */ + public function getAssumeMerchantNo() + { + return $this->container['assumeMerchantNo']; + } + + /** + * Sets assumeMerchantNo + * + * @param string $assumeMerchantNo 出资方商编 + * + * @return $this + */ + public function setAssumeMerchantNo($assumeMerchantNo) + { + $this->container['assumeMerchantNo'] = $assumeMerchantNo; + + 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)); + } +} + + diff --git a/lib/Service/Promtion/PromtionClient.php b/lib/Service/Promtion/PromtionClient.php new file mode 100644 index 0000000..0ff16cb --- /dev/null +++ b/lib/Service/Promtion/PromtionClient.php @@ -0,0 +1,370 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\ActivityListQueryRequest $request + * @return Model\ActivityListQueryResponse + * @throws YopClientException + */ + public function activityListQuery(Model\ActivityListQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\ActivityListQueryRequestMarshaller::getInstance(), + Model\ActivityListQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AddRightsRequest $request + * @return Model\AddRightsResponse + * @throws YopClientException + */ + public function addRights(Model\AddRightsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AddRightsRequestMarshaller::getInstance(), + Model\AddRightsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\AddRightsRequest $request + * @return Model\AddRightsResponse + * @throws YopClientException + */ + public function add_rights(Model\AddRightsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\AddRightsRequestMarshaller::getInstance(), + Model\AddRightsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CouponApplyRequest $request + * @return Model\CouponApplyResponse + * @throws YopClientException + */ + public function couponApply(Model\CouponApplyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CouponApplyRequestMarshaller::getInstance(), + Model\CouponApplyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CouponListQueryRequest $request + * @return Model\CouponListQueryResponse + * @throws YopClientException + */ + public function couponListQuery(Model\CouponListQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CouponListQueryRequestMarshaller::getInstance(), + Model\CouponListQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\CreateRightsQrcodeAdapterRequest $request + * @return Model\CreateRightsQrcodeAdapterResponse + * @throws YopClientException + */ + public function create_rights_qrcode_adapter(Model\CreateRightsQrcodeAdapterRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CreateRightsQrcodeAdapterRequestMarshaller::getInstance(), + Model\CreateRightsQrcodeAdapterResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\FrozenRightsRequest $request + * @return Model\FrozenRightsResponse + * @throws YopClientException + */ + public function frozen_rights(Model\FrozenRightsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\FrozenRightsRequestMarshaller::getInstance(), + Model\FrozenRightsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\PointCreateRequest $request + * @return Model\PointCreateResponse + * @throws YopClientException + */ + public function pointCreate(Model\PointCreateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\PointCreateRequestMarshaller::getInstance(), + Model\PointCreateResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\PointOperateRequest $request + * @return Model\PointOperateResponse + * @throws YopClientException + */ + public function pointOperate(Model\PointOperateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\PointOperateRequestMarshaller::getInstance(), + Model\PointOperateResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\PointQueryRequest $request + * @return Model\PointQueryResponse + * @throws YopClientException + */ + public function pointQuery(Model\PointQueryRequest $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->getMerchantUserNo() == null) { + throw new YopClientException("request.merchantUserNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\PointQueryRequestMarshaller::getInstance(), + Model\PointQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryConsumeRecordAdapterRequest $request + * @return Model\QueryConsumeRecordAdapterResponse + * @throws YopClientException + */ + public function query_consume_record_adapter(Model\QueryConsumeRecordAdapterRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryConsumeRecordAdapterRequestMarshaller::getInstance(), + Model\QueryConsumeRecordAdapterResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryRightsRequest $request + * @return Model\QueryRightsResponse + * @throws YopClientException + */ + public function query_rights(Model\QueryRightsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryRightsRequestMarshaller::getInstance(), + Model\QueryRightsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RightsCreateQrcodeRequest $request + * @return Model\RightsCreateQrcodeResponse + * @throws YopClientException + */ + public function rightsCreateQrcode(Model\RightsCreateQrcodeRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RightsCreateQrcodeRequestMarshaller::getInstance(), + Model\RightsCreateQrcodeResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RightsFrozenRightsRequest $request + * @return Model\RightsFrozenRightsResponse + * @throws YopClientException + */ + public function rightsFrozenRights(Model\RightsFrozenRightsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RightsFrozenRightsRequestMarshaller::getInstance(), + Model\RightsFrozenRightsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RightsQueryConsumeRecordsRequest $request + * @return Model\RightsQueryConsumeRecordsResponse + * @throws YopClientException + */ + public function rightsQueryConsumeRecords(Model\RightsQueryConsumeRecordsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RightsQueryConsumeRecordsRequestMarshaller::getInstance(), + Model\RightsQueryConsumeRecordsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RightsQueryRightsRequest $request + * @return Model\RightsQueryRightsResponse + * @throws YopClientException + */ + public function rightsQueryRights(Model\RightsQueryRightsRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RightsQueryRightsRequestMarshaller::getInstance(), + Model\RightsQueryRightsResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RightsTransferRequest $request + * @return Model\RightsTransferResponse + * @throws YopClientException + */ + public function rightsTransfer(Model\RightsTransferRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RightsTransferRequestMarshaller::getInstance(), + Model\RightsTransferResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\RightsTransferRequest $request + * @return Model\RightsTransferResponse + * @throws YopClientException + */ + public function rights_transfer(Model\RightsTransferRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\RightsTransferRequestMarshaller::getInstance(), + Model\RightsTransferResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\SubsidyApplyRequest $request + * @return Model\SubsidyApplyResponse + * @throws YopClientException + */ + public function subsidyApply(Model\SubsidyApplyRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\SubsidyApplyRequestMarshaller::getInstance(), + Model\SubsidyApplyResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\SubsidyBackRequest $request + * @return Model\SubsidyBackResponse + * @throws YopClientException + */ + public function subsidyBack(Model\SubsidyBackRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\SubsidyBackRequestMarshaller::getInstance(), + Model\SubsidyBackResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\SubsidyBackQueryRequest $request + * @return Model\SubsidyBackQueryResponse + * @throws YopClientException + */ + public function subsidyBackQuery(Model\SubsidyBackQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getSubsidyRequestId() == null) { + throw new YopClientException("request.subsidyRequestId is required."); + } + if ($request->getSubsidyBackRequestId() == null) { + throw new YopClientException("request.subsidyBackRequestId 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\SubsidyBackQueryRequestMarshaller::getInstance(), + Model\SubsidyBackQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\SubsidyQueryRequest $request + * @return Model\SubsidyQueryResponse + * @throws YopClientException + */ + public function subsidyQuery(Model\SubsidyQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getOrderId() == null) { + throw new YopClientException("request.orderId is required."); + } + if ($request->getSubsidyRequestId() == null) { + throw new YopClientException("request.subsidyRequestId 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\SubsidyQueryRequestMarshaller::getInstance(), + Model\SubsidyQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Promtion/PromtionClientBuilder.php b/lib/Service/Promtion/PromtionClientBuilder.php new file mode 100644 index 0000000..4824504 --- /dev/null +++ b/lib/Service/Promtion/PromtionClientBuilder.php @@ -0,0 +1,89 @@ +register('activityListQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('addRights', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('add_rights', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('couponApply', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('couponListQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('create_rights_qrcode_adapter', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('frozen_rights', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('pointCreate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('pointOperate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('pointQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('query_consume_record_adapter', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('query_rights', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rightsCreateQrcode', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rightsFrozenRights', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rightsQueryConsumeRecords', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rightsQueryRights', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rightsTransfer', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('rights_transfer', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('subsidyApply', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('subsidyBack', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('subsidyBackQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('subsidyQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * PromtionClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new PromtionClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return PromtionClientBuilder + * @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 PromtionClientBuilder($clientParams); + } + +} +PromtionClientBuilder::__init(); diff --git a/lib/Service/Recharge/Model/BankAccountQueryQueryBankAccountRespDTOResult.php b/lib/Service/Recharge/Model/BankAccountQueryQueryBankAccountRespDTOResult.php new file mode 100644 index 0000000..eaa8a43 --- /dev/null +++ b/lib/Service/Recharge/Model/BankAccountQueryQueryBankAccountRespDTOResult.php @@ -0,0 +1,452 @@ + 'string', + 'returnMsg' => 'string', + 'merchantNo' => 'string', + 'accountAmt' => 'float', + 'useableAmt' => 'float', + 'frozenAmt' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'returnCode' => null, + 'returnMsg' => null, + 'merchantNo' => null, + 'accountAmt' => null, + 'useableAmt' => null, + 'frozenAmt' => 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', + 'accountAmt' => 'accountAmt', + 'useableAmt' => 'useableAmt', + 'frozenAmt' => 'frozenAmt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'returnCode' => 'setReturnCode', + 'returnMsg' => 'setReturnMsg', + 'merchantNo' => 'setMerchantNo', + 'accountAmt' => 'setAccountAmt', + 'useableAmt' => 'setUseableAmt', + 'frozenAmt' => 'setFrozenAmt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'returnCode' => 'getReturnCode', + 'returnMsg' => 'getReturnMsg', + 'merchantNo' => 'getMerchantNo', + 'accountAmt' => 'getAccountAmt', + 'useableAmt' => 'getUseableAmt', + 'frozenAmt' => 'getFrozenAmt' + ]; + + /** + * 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['accountAmt'] = isset($data['accountAmt']) ? $data['accountAmt'] : null; + $this->container['useableAmt'] = isset($data['useableAmt']) ? $data['useableAmt'] : null; + $this->container['frozenAmt'] = isset($data['frozenAmt']) ? $data['frozenAmt'] : 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 accountAmt + * + * @return float + */ + public function getAccountAmt() + { + return $this->container['accountAmt']; + } + + /** + * Sets accountAmt + * + * @param float $accountAmt 账户余额 + * + * @return $this + */ + public function setAccountAmt($accountAmt) + { + $this->container['accountAmt'] = $accountAmt; + + return $this; + } + + /** + * Gets useableAmt + * + * @return float + */ + public function getUseableAmt() + { + return $this->container['useableAmt']; + } + + /** + * Sets useableAmt + * + * @param float $useableAmt 可用金额 + * + * @return $this + */ + public function setUseableAmt($useableAmt) + { + $this->container['useableAmt'] = $useableAmt; + + return $this; + } + + /** + * Gets frozenAmt + * + * @return float + */ + public function getFrozenAmt() + { + return $this->container['frozenAmt']; + } + + /** + * Sets frozenAmt + * + * @param float $frozenAmt 冻结金额 + * + * @return $this + */ + public function setFrozenAmt($frozenAmt) + { + $this->container['frozenAmt'] = $frozenAmt; + + 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)); + } +} + + diff --git a/lib/Service/Recharge/Model/BankAccountQueryRequest.php b/lib/Service/Recharge/Model/BankAccountQueryRequest.php new file mode 100644 index 0000000..1e15b7d --- /dev/null +++ b/lib/Service/Recharge/Model/BankAccountQueryRequest.php @@ -0,0 +1,117 @@ +bankCode; + } + + /** + * Sets bankCode + * + * @param string $bankCode + * @return BankAccountQueryRequest + */ + public function setBankCode($bankCode) + { + $this->bankCode = $bankCode; + return $this; + } + /** + * Gets accountNo + * + * @return string + */ + public function getAccountNo() + { + return $this->accountNo; + } + + /** + * Sets accountNo + * + * @param string $accountNo + * @return BankAccountQueryRequest + */ + public function setAccountNo($accountNo) + { + $this->accountNo = $accountNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BankAccountQueryRequest + */ + 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 BankAccountQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'bankAccountQuery'; + } + + +} diff --git a/lib/Service/Recharge/Model/BankAccountQueryRequestMarshaller.php b/lib/Service/Recharge/Model/BankAccountQueryRequestMarshaller.php new file mode 100644 index 0000000..ca8f37b --- /dev/null +++ b/lib/Service/Recharge/Model/BankAccountQueryRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getBankCode() != null){ + $internalRequest->addParameter('bankCode', ObjectSerializer::sanitizeForSerialization($request->getBankCode(), 'string')); + } + if($request->getAccountNo() != null){ + $internalRequest->addParameter('accountNo', ObjectSerializer::sanitizeForSerialization($request->getAccountNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BankAccountQueryRequestMarshaller::__init(); diff --git a/lib/Service/Recharge/Model/BankAccountQueryResponse.php b/lib/Service/Recharge/Model/BankAccountQueryResponse.php new file mode 100644 index 0000000..c11061a --- /dev/null +++ b/lib/Service/Recharge/Model/BankAccountQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BankAccountQueryQueryBankAccountRespDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Recharge/Model/BankAccountQueryResponseUnMarshaller.php b/lib/Service/Recharge/Model/BankAccountQueryResponseUnMarshaller.php new file mode 100644 index 0000000..57c616b --- /dev/null +++ b/lib/Service/Recharge/Model/BankAccountQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\BankAccountQueryRequest $request + * @return Model\BankAccountQueryResponse + * @throws YopClientException + */ + public function bankAccountQuery(Model\BankAccountQueryRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getBankCode() == null) { + throw new YopClientException("request.bankCode is required."); + } + if ($request->getAccountNo() == null) { + throw new YopClientException("request.accountNo is required."); + } + if ($request->getMerchantNo() == null) { + throw new YopClientException("request.merchantNo is required."); + } + if ($request->getParentMerchantNo() == null) { + throw new YopClientException("request.parentMerchantNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BankAccountQueryRequestMarshaller::getInstance(), + Model\BankAccountQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/Recharge/RechargeClientBuilder.php b/lib/Service/Recharge/RechargeClientBuilder.php new file mode 100644 index 0000000..b467655 --- /dev/null +++ b/lib/Service/Recharge/RechargeClientBuilder.php @@ -0,0 +1,68 @@ +register('bankAccountQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * RechargeClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new RechargeClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return RechargeClientBuilder + * @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 RechargeClientBuilder($clientParams); + } + +} +RechargeClientBuilder::__init(); diff --git a/lib/Service/Settle/Model/ReceiptApplyRequest.php b/lib/Service/Settle/Model/ReceiptApplyRequest.php new file mode 100644 index 0000000..246a74e --- /dev/null +++ b/lib/Service/Settle/Model/ReceiptApplyRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return ReceiptApplyRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'receiptApply'; + } + + +} diff --git a/lib/Service/Settle/Model/ReceiptApplyRequestMarshaller.php b/lib/Service/Settle/Model/ReceiptApplyRequestMarshaller.php new file mode 100644 index 0000000..b4e2704 --- /dev/null +++ b/lib/Service/Settle/Model/ReceiptApplyRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ReceiptApplyRequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/ReceiptApplyResponse.php b/lib/Service/Settle/Model/ReceiptApplyResponse.php new file mode 100644 index 0000000..721b81d --- /dev/null +++ b/lib/Service/Settle/Model/ReceiptApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopSettleReceiptResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Settle/Model/ReceiptApplyResponseUnMarshaller.php b/lib/Service/Settle/Model/ReceiptApplyResponseUnMarshaller.php new file mode 100644 index 0000000..0c2e1b0 --- /dev/null +++ b/lib/Service/Settle/Model/ReceiptApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return ReceiptGetRequest + */ + 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 ReceiptGetRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets fileId + * + * @return string + */ + public function getFileId() + { + return $this->fileId; + } + + /** + * Sets fileId + * + * @param string $fileId + * @return ReceiptGetRequest + */ + public function setFileId($fileId) + { + $this->fileId = $fileId; + return $this; + } + + public static function getOperationId() + { + return 'receiptGet'; + } + + +} diff --git a/lib/Service/Settle/Model/ReceiptGetRequestMarshaller.php b/lib/Service/Settle/Model/ReceiptGetRequestMarshaller.php new file mode 100644 index 0000000..fbc1b83 --- /dev/null +++ b/lib/Service/Settle/Model/ReceiptGetRequestMarshaller.php @@ -0,0 +1,87 @@ +serviceName); + $internalRequest->setResourcePath($this->resourcePath); + $internalRequest->setHttpMethod($this->httpMethod); + $internalRequest->setYosFlag(true); + 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->getFileId() != null){ + $internalRequest->addParameter('fileId', ObjectSerializer::sanitizeForSerialization($request->getFileId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +ReceiptGetRequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/RecordsOrderQueryRequest.php b/lib/Service/Settle/Model/RecordsOrderQueryRequest.php new file mode 100644 index 0000000..bc0f6ef --- /dev/null +++ b/lib/Service/Settle/Model/RecordsOrderQueryRequest.php @@ -0,0 +1,192 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return RecordsOrderQueryRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets requestId + * + * @return string + */ + public function getRequestId() + { + return $this->requestId; + } + + /** + * Sets requestId + * + * @param string $requestId + * @return RecordsOrderQueryRequest + */ + public function setRequestId($requestId) + { + $this->requestId = $requestId; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RecordsOrderQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets businessType + * + * @return string + */ + public function getBusinessType() + { + return $this->businessType; + } + + /** + * Sets businessType + * + * @param string $businessType + * @return RecordsOrderQueryRequest + */ + public function setBusinessType($businessType) + { + $this->businessType = $businessType; + return $this; + } + /** + * Gets uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->uniqueOrderNo; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo + * @return RecordsOrderQueryRequest + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->uniqueOrderNo = $uniqueOrderNo; + return $this; + } + /** + * Gets settleMerchantNo + * + * @return string + */ + public function getSettleMerchantNo() + { + return $this->settleMerchantNo; + } + + /** + * Sets settleMerchantNo + * + * @param string $settleMerchantNo + * @return RecordsOrderQueryRequest + */ + public function setSettleMerchantNo($settleMerchantNo) + { + $this->settleMerchantNo = $settleMerchantNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return RecordsOrderQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'recordsOrderQuery'; + } + + +} diff --git a/lib/Service/Settle/Model/RecordsOrderQueryRequestMarshaller.php b/lib/Service/Settle/Model/RecordsOrderQueryRequestMarshaller.php new file mode 100644 index 0000000..5b5668d --- /dev/null +++ b/lib/Service/Settle/Model/RecordsOrderQueryRequestMarshaller.php @@ -0,0 +1,98 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getRequestId() != null){ + $internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getBusinessType() != null){ + $internalRequest->addParameter('businessType', ObjectSerializer::sanitizeForSerialization($request->getBusinessType(), 'string')); + } + if($request->getUniqueOrderNo() != null){ + $internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string')); + } + if($request->getSettleMerchantNo() != null){ + $internalRequest->addParameter('settleMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getSettleMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RecordsOrderQueryRequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/RecordsOrderQueryResponse.php b/lib/Service/Settle/Model/RecordsOrderQueryResponse.php new file mode 100644 index 0000000..336a3c5 --- /dev/null +++ b/lib/Service/Settle/Model/RecordsOrderQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SettleRecordOrderQueryResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Settle/Model/RecordsOrderQueryResponseUnMarshaller.php b/lib/Service/Settle/Model/RecordsOrderQueryResponseUnMarshaller.php new file mode 100644 index 0000000..b484eb8 --- /dev/null +++ b/lib/Service/Settle/Model/RecordsOrderQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return SettleReceiptApplyV10Request + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'settle_receipt_apply_v1_0'; + } + + +} diff --git a/lib/Service/Settle/Model/SettleReceiptApplyV10RequestMarshaller.php b/lib/Service/Settle/Model/SettleReceiptApplyV10RequestMarshaller.php new file mode 100644 index 0000000..5308b8e --- /dev/null +++ b/lib/Service/Settle/Model/SettleReceiptApplyV10RequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SettleReceiptApplyV10RequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/SettleReceiptApplyV10Response.php b/lib/Service/Settle/Model/SettleReceiptApplyV10Response.php new file mode 100644 index 0000000..b7746a6 --- /dev/null +++ b/lib/Service/Settle/Model/SettleReceiptApplyV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopSettleReceiptResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Settle/Model/SettleReceiptApplyV10ResponseUnMarshaller.php b/lib/Service/Settle/Model/SettleReceiptApplyV10ResponseUnMarshaller.php new file mode 100644 index 0000000..1ff20e6 --- /dev/null +++ b/lib/Service/Settle/Model/SettleReceiptApplyV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SettleReceiptGetV10Request + */ + 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 SettleReceiptGetV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets fileId + * + * @return string + */ + public function getFileId() + { + return $this->fileId; + } + + /** + * Sets fileId + * + * @param string $fileId + * @return SettleReceiptGetV10Request + */ + public function setFileId($fileId) + { + $this->fileId = $fileId; + return $this; + } + + public static function getOperationId() + { + return 'settle_receipt_get_v1_0'; + } + + +} diff --git a/lib/Service/Settle/Model/SettleReceiptGetV10RequestMarshaller.php b/lib/Service/Settle/Model/SettleReceiptGetV10RequestMarshaller.php new file mode 100644 index 0000000..8f59f47 --- /dev/null +++ b/lib/Service/Settle/Model/SettleReceiptGetV10RequestMarshaller.php @@ -0,0 +1,87 @@ +serviceName); + $internalRequest->setResourcePath($this->resourcePath); + $internalRequest->setHttpMethod($this->httpMethod); + $internalRequest->setYosFlag(true); + 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->getFileId() != null){ + $internalRequest->addParameter('fileId', ObjectSerializer::sanitizeForSerialization($request->getFileId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SettleReceiptGetV10RequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/SettleRecodOrderQueryV10Request.php b/lib/Service/Settle/Model/SettleRecodOrderQueryV10Request.php new file mode 100644 index 0000000..dd03061 --- /dev/null +++ b/lib/Service/Settle/Model/SettleRecodOrderQueryV10Request.php @@ -0,0 +1,192 @@ +orderId; + } + + /** + * Sets orderId + * + * @param string $orderId + * @return SettleRecodOrderQueryV10Request + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets requestId + * + * @return string + */ + public function getRequestId() + { + return $this->requestId; + } + + /** + * Sets requestId + * + * @param string $requestId + * @return SettleRecodOrderQueryV10Request + */ + public function setRequestId($requestId) + { + $this->requestId = $requestId; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SettleRecodOrderQueryV10Request + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets businessType + * + * @return string + */ + public function getBusinessType() + { + return $this->businessType; + } + + /** + * Sets businessType + * + * @param string $businessType + * @return SettleRecodOrderQueryV10Request + */ + public function setBusinessType($businessType) + { + $this->businessType = $businessType; + return $this; + } + /** + * Gets uniqueOrderNo + * + * @return string + */ + public function getUniqueOrderNo() + { + return $this->uniqueOrderNo; + } + + /** + * Sets uniqueOrderNo + * + * @param string $uniqueOrderNo + * @return SettleRecodOrderQueryV10Request + */ + public function setUniqueOrderNo($uniqueOrderNo) + { + $this->uniqueOrderNo = $uniqueOrderNo; + return $this; + } + /** + * Gets settleMerchantNo + * + * @return string + */ + public function getSettleMerchantNo() + { + return $this->settleMerchantNo; + } + + /** + * Sets settleMerchantNo + * + * @param string $settleMerchantNo + * @return SettleRecodOrderQueryV10Request + */ + public function setSettleMerchantNo($settleMerchantNo) + { + $this->settleMerchantNo = $settleMerchantNo; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return SettleRecodOrderQueryV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'settle_recod_order_query_v1_0'; + } + + +} diff --git a/lib/Service/Settle/Model/SettleRecodOrderQueryV10RequestMarshaller.php b/lib/Service/Settle/Model/SettleRecodOrderQueryV10RequestMarshaller.php new file mode 100644 index 0000000..586befc --- /dev/null +++ b/lib/Service/Settle/Model/SettleRecodOrderQueryV10RequestMarshaller.php @@ -0,0 +1,98 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getRequestId() != null){ + $internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getBusinessType() != null){ + $internalRequest->addParameter('businessType', ObjectSerializer::sanitizeForSerialization($request->getBusinessType(), 'string')); + } + if($request->getUniqueOrderNo() != null){ + $internalRequest->addParameter('uniqueOrderNo', ObjectSerializer::sanitizeForSerialization($request->getUniqueOrderNo(), 'string')); + } + if($request->getSettleMerchantNo() != null){ + $internalRequest->addParameter('settleMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getSettleMerchantNo(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SettleRecodOrderQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/SettleRecodOrderQueryV10Response.php b/lib/Service/Settle/Model/SettleRecodOrderQueryV10Response.php new file mode 100644 index 0000000..1597d30 --- /dev/null +++ b/lib/Service/Settle/Model/SettleRecodOrderQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SettleRecordOrderQueryResponseDto + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Settle/Model/SettleRecodOrderQueryV10ResponseUnMarshaller.php b/lib/Service/Settle/Model/SettleRecodOrderQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..cb9fadb --- /dev/null +++ b/lib/Service/Settle/Model/SettleRecodOrderQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'realAmount' => 'float', + 'status' => 'string', + 'statusDesc' => 'string', + 'errorCode' => 'string', + 'errorMessage' => 'string', + 'correct' => 'bool', + 'channelRequestNo' => 'string', + 'accountType' => 'string', + 'accountTypeDesc' => 'string', + 'accountNameMast' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accountNo' => null, + 'realAmount' => null, + 'status' => null, + 'statusDesc' => null, + 'errorCode' => null, + 'errorMessage' => null, + 'correct' => null, + 'channelRequestNo' => null, + 'accountType' => null, + 'accountTypeDesc' => null, + 'accountNameMast' => 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 = [ + 'accountNo' => 'accountNo', + 'realAmount' => 'realAmount', + 'status' => 'status', + 'statusDesc' => 'statusDesc', + 'errorCode' => 'errorCode', + 'errorMessage' => 'errorMessage', + 'correct' => 'correct', + 'channelRequestNo' => 'channelRequestNo', + 'accountType' => 'accountType', + 'accountTypeDesc' => 'accountTypeDesc', + 'accountNameMast' => 'accountNameMast' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountNo' => 'setAccountNo', + 'realAmount' => 'setRealAmount', + 'status' => 'setStatus', + 'statusDesc' => 'setStatusDesc', + 'errorCode' => 'setErrorCode', + 'errorMessage' => 'setErrorMessage', + 'correct' => 'setCorrect', + 'channelRequestNo' => 'setChannelRequestNo', + 'accountType' => 'setAccountType', + 'accountTypeDesc' => 'setAccountTypeDesc', + 'accountNameMast' => 'setAccountNameMast' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountNo' => 'getAccountNo', + 'realAmount' => 'getRealAmount', + 'status' => 'getStatus', + 'statusDesc' => 'getStatusDesc', + 'errorCode' => 'getErrorCode', + 'errorMessage' => 'getErrorMessage', + 'correct' => 'getCorrect', + 'channelRequestNo' => 'getChannelRequestNo', + 'accountType' => 'getAccountType', + 'accountTypeDesc' => 'getAccountTypeDesc', + 'accountNameMast' => 'getAccountNameMast' + ]; + + /** + * 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['accountNo'] = isset($data['accountNo']) ? $data['accountNo'] : null; + $this->container['realAmount'] = isset($data['realAmount']) ? $data['realAmount'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['statusDesc'] = isset($data['statusDesc']) ? $data['statusDesc'] : null; + $this->container['errorCode'] = isset($data['errorCode']) ? $data['errorCode'] : null; + $this->container['errorMessage'] = isset($data['errorMessage']) ? $data['errorMessage'] : null; + $this->container['correct'] = isset($data['correct']) ? $data['correct'] : null; + $this->container['channelRequestNo'] = isset($data['channelRequestNo']) ? $data['channelRequestNo'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null; + $this->container['accountTypeDesc'] = isset($data['accountTypeDesc']) ? $data['accountTypeDesc'] : null; + $this->container['accountNameMast'] = isset($data['accountNameMast']) ? $data['accountNameMast'] : 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 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 realAmount + * + * @return float + */ + public function getRealAmount() + { + return $this->container['realAmount']; + } + + /** + * Sets realAmount + * + * @param float $realAmount 到账金额 + * + * @return $this + */ + public function setRealAmount($realAmount) + { + $this->container['realAmount'] = $realAmount; + + 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 statusDesc + * + * @return string + */ + public function getStatusDesc() + { + return $this->container['statusDesc']; + } + + /** + * Sets statusDesc + * + * @param string $statusDesc 到账状态描述 + * + * @return $this + */ + public function setStatusDesc($statusDesc) + { + $this->container['statusDesc'] = $statusDesc; + + return $this; + } + + /** + * Gets errorCode + * + * @return string + */ + public function getErrorCode() + { + return $this->container['errorCode']; + } + + /** + * Sets errorCode + * + * @param string $errorCode 错误码 + * + * @return $this + */ + public function setErrorCode($errorCode) + { + $this->container['errorCode'] = $errorCode; + + return $this; + } + + /** + * Gets errorMessage + * + * @return string + */ + public function getErrorMessage() + { + return $this->container['errorMessage']; + } + + /** + * Sets errorMessage + * + * @param string $errorMessage 错误信息 + * + * @return $this + */ + public function setErrorMessage($errorMessage) + { + $this->container['errorMessage'] = $errorMessage; + + return $this; + } + + /** + * Gets correct + * + * @return bool + */ + public function getCorrect() + { + return $this->container['correct']; + } + + /** + * Sets correct + * + * @param bool $correct 是否冲退 + * + * @return $this + */ + public function setCorrect($correct) + { + $this->container['correct'] = $correct; + + return $this; + } + + /** + * Gets channelRequestNo + * + * @return string + */ + public function getChannelRequestNo() + { + return $this->container['channelRequestNo']; + } + + /** + * Sets channelRequestNo + * + * @param string $channelRequestNo 出款流水号 + * + * @return $this + */ + public function setChannelRequestNo($channelRequestNo) + { + $this->container['channelRequestNo'] = $channelRequestNo; + + return $this; + } + + /** + * 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 accountTypeDesc + * + * @return string + */ + public function getAccountTypeDesc() + { + return $this->container['accountTypeDesc']; + } + + /** + * Sets accountTypeDesc + * + * @param string $accountTypeDesc 账户类型描述 + * + * @return $this + */ + public function setAccountTypeDesc($accountTypeDesc) + { + $this->container['accountTypeDesc'] = $accountTypeDesc; + + return $this; + } + + /** + * Gets accountNameMast + * + * @return string + */ + public function getAccountNameMast() + { + return $this->container['accountNameMast']; + } + + /** + * Sets accountNameMast + * + * @param string $accountNameMast 账户名 + * + * @return $this + */ + public function setAccountNameMast($accountNameMast) + { + $this->container['accountNameMast'] = $accountNameMast; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleRecordOrderQueryResponseDto.php b/lib/Service/Settle/Model/SettleRecordOrderQueryResponseDto.php new file mode 100644 index 0000000..2c433c1 --- /dev/null +++ b/lib/Service/Settle/Model/SettleRecordOrderQueryResponseDto.php @@ -0,0 +1,393 @@ + 'string', + 'message' => 'string', + 'settleMerchantNo' => 'string', + 'settleRecordQueryDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordQueryDto[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'settleMerchantNo' => null, + 'settleRecordQueryDtos' => 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', + 'settleMerchantNo' => 'settleMerchantNo', + 'settleRecordQueryDtos' => 'settleRecordQueryDtos' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'settleMerchantNo' => 'setSettleMerchantNo', + 'settleRecordQueryDtos' => 'setSettleRecordQueryDtos' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'settleMerchantNo' => 'getSettleMerchantNo', + 'settleRecordQueryDtos' => 'getSettleRecordQueryDtos' + ]; + + /** + * 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['settleMerchantNo'] = isset($data['settleMerchantNo']) ? $data['settleMerchantNo'] : null; + $this->container['settleRecordQueryDtos'] = isset($data['settleRecordQueryDtos']) ? $data['settleRecordQueryDtos'] : 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 settleMerchantNo + * + * @return string + */ + public function getSettleMerchantNo() + { + return $this->container['settleMerchantNo']; + } + + /** + * Sets settleMerchantNo + * + * @param string $settleMerchantNo

结算商户商编

+ * + * @return $this + */ + public function setSettleMerchantNo($settleMerchantNo) + { + $this->container['settleMerchantNo'] = $settleMerchantNo; + + return $this; + } + + /** + * Gets settleRecordQueryDtos + * + * @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordQueryDto[] + */ + public function getSettleRecordQueryDtos() + { + return $this->container['settleRecordQueryDtos']; + } + + /** + * Sets settleRecordQueryDtos + * + * @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordQueryDto[] $settleRecordQueryDtos settleRecordQueryDtos + * + * @return $this + */ + public function setSettleRecordQueryDtos($settleRecordQueryDtos) + { + $this->container['settleRecordQueryDtos'] = $settleRecordQueryDtos; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleRecordQueryDto.php b/lib/Service/Settle/Model/SettleRecordQueryDto.php new file mode 100644 index 0000000..711461a --- /dev/null +++ b/lib/Service/Settle/Model/SettleRecordQueryDto.php @@ -0,0 +1,543 @@ + 'string', + 'settleAmount' => 'float', + 'status' => 'string', + 'statusDesc' => 'string', + 'createTime' => '\DateTime', + 'settleType' => 'string', + 'realAmount' => 'float', + 'realFee' => 'float', + 'settleRecordDetailsDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordDetailsDto[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'summaryNo' => null, + 'settleAmount' => null, + 'status' => null, + 'statusDesc' => null, + 'createTime' => 'date-time', + 'settleType' => null, + 'realAmount' => null, + 'realFee' => null, + 'settleRecordDetailsDtos' => 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 = [ + 'summaryNo' => 'summaryNo', + 'settleAmount' => 'settleAmount', + 'status' => 'status', + 'statusDesc' => 'statusDesc', + 'createTime' => 'createTime', + 'settleType' => 'settleType', + 'realAmount' => 'realAmount', + 'realFee' => 'realFee', + 'settleRecordDetailsDtos' => 'settleRecordDetailsDtos' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'summaryNo' => 'setSummaryNo', + 'settleAmount' => 'setSettleAmount', + 'status' => 'setStatus', + 'statusDesc' => 'setStatusDesc', + 'createTime' => 'setCreateTime', + 'settleType' => 'setSettleType', + 'realAmount' => 'setRealAmount', + 'realFee' => 'setRealFee', + 'settleRecordDetailsDtos' => 'setSettleRecordDetailsDtos' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'summaryNo' => 'getSummaryNo', + 'settleAmount' => 'getSettleAmount', + 'status' => 'getStatus', + 'statusDesc' => 'getStatusDesc', + 'createTime' => 'getCreateTime', + 'settleType' => 'getSettleType', + 'realAmount' => 'getRealAmount', + 'realFee' => 'getRealFee', + 'settleRecordDetailsDtos' => 'getSettleRecordDetailsDtos' + ]; + + /** + * 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['summaryNo'] = isset($data['summaryNo']) ? $data['summaryNo'] : null; + $this->container['settleAmount'] = isset($data['settleAmount']) ? $data['settleAmount'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['statusDesc'] = isset($data['statusDesc']) ? $data['statusDesc'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['settleType'] = isset($data['settleType']) ? $data['settleType'] : null; + $this->container['realAmount'] = isset($data['realAmount']) ? $data['realAmount'] : null; + $this->container['realFee'] = isset($data['realFee']) ? $data['realFee'] : null; + $this->container['settleRecordDetailsDtos'] = isset($data['settleRecordDetailsDtos']) ? $data['settleRecordDetailsDtos'] : 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 summaryNo + * + * @return string + */ + public function getSummaryNo() + { + return $this->container['summaryNo']; + } + + /** + * Sets summaryNo + * + * @param string $summaryNo 结算订单号 + * + * @return $this + */ + public function setSummaryNo($summaryNo) + { + $this->container['summaryNo'] = $summaryNo; + + return $this; + } + + /** + * Gets settleAmount + * + * @return float + */ + public function getSettleAmount() + { + return $this->container['settleAmount']; + } + + /** + * Sets settleAmount + * + * @param float $settleAmount 应结金额 + * + * @return $this + */ + public function setSettleAmount($settleAmount) + { + $this->container['settleAmount'] = $settleAmount; + + 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 statusDesc + * + * @return string + */ + public function getStatusDesc() + { + return $this->container['statusDesc']; + } + + /** + * Sets statusDesc + * + * @param string $statusDesc 结算订单状态描述 + * + * @return $this + */ + public function setStatusDesc($statusDesc) + { + $this->container['statusDesc'] = $statusDesc; + + return $this; + } + + /** + * Gets createTime + * + * @return \DateTime + */ + public function getCreateTime() + { + return $this->container['createTime']; + } + + /** + * Sets createTime + * + * @param \DateTime $createTime 结算订单创建时间 + * + * @return $this + */ + public function setCreateTime($createTime) + { + $this->container['createTime'] = $createTime; + + return $this; + } + + /** + * Gets settleType + * + * @return string + */ + public function getSettleType() + { + return $this->container['settleType']; + } + + /** + * Sets settleType + * + * @param string $settleType 结算产品 + * + * @return $this + */ + public function setSettleType($settleType) + { + $this->container['settleType'] = $settleType; + + return $this; + } + + /** + * Gets realAmount + * + * @return float + */ + public function getRealAmount() + { + return $this->container['realAmount']; + } + + /** + * Sets realAmount + * + * @param float $realAmount 结算到账金额 + * + * @return $this + */ + public function setRealAmount($realAmount) + { + $this->container['realAmount'] = $realAmount; + + return $this; + } + + /** + * Gets realFee + * + * @return float + */ + public function getRealFee() + { + return $this->container['realFee']; + } + + /** + * Sets realFee + * + * @param float $realFee 结算手续费 + * + * @return $this + */ + public function setRealFee($realFee) + { + $this->container['realFee'] = $realFee; + + return $this; + } + + /** + * Gets settleRecordDetailsDtos + * + * @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordDetailsDto[] + */ + public function getSettleRecordDetailsDtos() + { + return $this->container['settleRecordDetailsDtos']; + } + + /** + * Sets settleRecordDetailsDtos + * + * @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleRecordDetailsDto[] $settleRecordDetailsDtos settleRecordDetailsDtos + * + * @return $this + */ + public function setSettleRecordDetailsDtos($settleRecordDetailsDtos) + { + $this->container['settleRecordDetailsDtos'] = $settleRecordDetailsDtos; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioRequestDtoParam.php b/lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioRequestDtoParam.php new file mode 100644 index 0000000..d2b94e7 --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioRequestDtoParam.php @@ -0,0 +1,393 @@ + 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'settleWayRatioDetailDtoList' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioSettleWayRatioDetailDtoParam[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'appMerchantNo' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'settleWayRatioDetailDtoList' => 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 = [ + 'appMerchantNo' => 'appMerchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'settleWayRatioDetailDtoList' => 'settleWayRatioDetailDtoList' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'appMerchantNo' => 'setAppMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'settleWayRatioDetailDtoList' => 'setSettleWayRatioDetailDtoList' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'appMerchantNo' => 'getAppMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'settleWayRatioDetailDtoList' => 'getSettleWayRatioDetailDtoList' + ]; + + /** + * 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['appMerchantNo'] = isset($data['appMerchantNo']) ? $data['appMerchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['settleWayRatioDetailDtoList'] = isset($data['settleWayRatioDetailDtoList']) ? $data['settleWayRatioDetailDtoList'] : 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 appMerchantNo + * + * @return string + */ + public function getAppMerchantNo() + { + return $this->container['appMerchantNo']; + } + + /** + * Sets appMerchantNo + * + * @param string $appMerchantNo appMerchantNo + * + * @return $this + */ + public function setAppMerchantNo($appMerchantNo) + { + $this->container['appMerchantNo'] = $appMerchantNo; + + 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 settleWayRatioDetailDtoList + * + * @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioSettleWayRatioDetailDtoParam[] + */ + public function getSettleWayRatioDetailDtoList() + { + return $this->container['settleWayRatioDetailDtoList']; + } + + /** + * Sets settleWayRatioDetailDtoList + * + * @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayModifyRatioSettleWayRatioDetailDtoParam[] $settleWayRatioDetailDtoList settleWayRatioDetailDtoList + * + * @return $this + */ + public function setSettleWayRatioDetailDtoList($settleWayRatioDetailDtoList) + { + $this->container['settleWayRatioDetailDtoList'] = $settleWayRatioDetailDtoList; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioResponseDtoResult.php b/lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioResponseDtoResult.php new file mode 100644 index 0000000..5a99ec5 --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayModifyRatioModifySettleWayRatioResponseDtoResult.php @@ -0,0 +1,422 @@ + 'string', + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'parentMerchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'parentMerchantNo' => 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 = [ + 'status' => 'status', + 'code' => 'code', + 'message' => 'message', + 'merchantNo' => 'merchantNo', + 'parentMerchantNo' => 'parentMerchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : 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 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 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 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo 发起方商户编号 + * + * @return $this + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->container['parentMerchantNo'] = $parentMerchantNo; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleWayModifyRatioRequest.php b/lib/Service/Settle/Model/SettleWayModifyRatioRequest.php new file mode 100644 index 0000000..485f7f6 --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayModifyRatioRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return SettleWayModifyRatioRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'settleWayModifyRatio'; + } + + +} diff --git a/lib/Service/Settle/Model/SettleWayModifyRatioRequestMarshaller.php b/lib/Service/Settle/Model/SettleWayModifyRatioRequestMarshaller.php new file mode 100644 index 0000000..08288da --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayModifyRatioRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SettleWayModifyRatioRequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/SettleWayModifyRatioResponse.php b/lib/Service/Settle/Model/SettleWayModifyRatioResponse.php new file mode 100644 index 0000000..7d773ea --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayModifyRatioResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SettleWayModifyRatioModifySettleWayRatioResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Settle/Model/SettleWayModifyRatioResponseUnMarshaller.php b/lib/Service/Settle/Model/SettleWayModifyRatioResponseUnMarshaller.php new file mode 100644 index 0000000..dfc1061 --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayModifyRatioResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'settleRatio' => 'float', + 'bankCardNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'settleWay' => null, + 'settleRatio' => null, + 'bankCardNo' => 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 = [ + 'settleWay' => 'settleWay', + 'settleRatio' => 'settleRatio', + 'bankCardNo' => 'bankCardNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'settleWay' => 'setSettleWay', + 'settleRatio' => 'setSettleRatio', + 'bankCardNo' => 'setBankCardNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'settleWay' => 'getSettleWay', + 'settleRatio' => 'getSettleRatio', + 'bankCardNo' => 'getBankCardNo' + ]; + + /** + * 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['settleWay'] = isset($data['settleWay']) ? $data['settleWay'] : null; + $this->container['settleRatio'] = isset($data['settleRatio']) ? $data['settleRatio'] : null; + $this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : 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 settleWay + * + * @return string + */ + public function getSettleWay() + { + return $this->container['settleWay']; + } + + /** + * Sets settleWay + * + * @param string $settleWay settleWay + * + * @return $this + */ + public function setSettleWay($settleWay) + { + $this->container['settleWay'] = $settleWay; + + return $this; + } + + /** + * Gets settleRatio + * + * @return float + */ + public function getSettleRatio() + { + return $this->container['settleRatio']; + } + + /** + * Sets settleRatio + * + * @param float $settleRatio settleRatio + * + * @return $this + */ + public function setSettleRatio($settleRatio) + { + $this->container['settleRatio'] = $settleRatio; + + return $this; + } + + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->container['bankCardNo']; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo bankCardNo + * + * @return $this + */ + public function setBankCardNo($bankCardNo) + { + $this->container['bankCardNo'] = $bankCardNo; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleWayQueryMerchantSettleWayQueryYOPDtoResult.php b/lib/Service/Settle/Model/SettleWayQueryMerchantSettleWayQueryYOPDtoResult.php new file mode 100644 index 0000000..99e010c --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayQueryMerchantSettleWayQueryYOPDtoResult.php @@ -0,0 +1,392 @@ + 'string', + 'settleRatio' => 'double', + 'bankCardNo' => 'string', + 'accountName' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'settleWay' => null, + 'settleRatio' => 'double', + 'bankCardNo' => null, + 'accountName' => 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 = [ + 'settleWay' => 'settleWay', + 'settleRatio' => 'settleRatio', + 'bankCardNo' => 'bankCardNo', + 'accountName' => 'accountName' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'settleWay' => 'setSettleWay', + 'settleRatio' => 'setSettleRatio', + 'bankCardNo' => 'setBankCardNo', + 'accountName' => 'setAccountName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'settleWay' => 'getSettleWay', + 'settleRatio' => 'getSettleRatio', + 'bankCardNo' => 'getBankCardNo', + 'accountName' => 'getAccountName' + ]; + + /** + * 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['settleWay'] = isset($data['settleWay']) ? $data['settleWay'] : null; + $this->container['settleRatio'] = isset($data['settleRatio']) ? $data['settleRatio'] : null; + $this->container['bankCardNo'] = isset($data['bankCardNo']) ? $data['bankCardNo'] : null; + $this->container['accountName'] = isset($data['accountName']) ? $data['accountName'] : 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 settleWay + * + * @return string + */ + public function getSettleWay() + { + return $this->container['settleWay']; + } + + /** + * Sets settleWay + * + * @param string $settleWay 结算方向 + * + * @return $this + */ + public function setSettleWay($settleWay) + { + $this->container['settleWay'] = $settleWay; + + return $this; + } + + /** + * Gets settleRatio + * + * @return double + */ + public function getSettleRatio() + { + return $this->container['settleRatio']; + } + + /** + * Sets settleRatio + * + * @param double $settleRatio 结算比例 + * + * @return $this + */ + public function setSettleRatio($settleRatio) + { + $this->container['settleRatio'] = $settleRatio; + + return $this; + } + + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->container['bankCardNo']; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo 结算卡号 + * + * @return $this + */ + public function setBankCardNo($bankCardNo) + { + $this->container['bankCardNo'] = $bankCardNo; + + return $this; + } + + /** + * Gets accountName + * + * @return string + */ + public function getAccountName() + { + return $this->container['accountName']; + } + + /** + * Sets accountName + * + * @param string $accountName 银行卡账户名 + * + * @return $this + */ + public function setAccountName($accountName) + { + $this->container['accountName'] = $accountName; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/SettleWayQueryRequest.php b/lib/Service/Settle/Model/SettleWayQueryRequest.php new file mode 100644 index 0000000..fc3d3bb --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayQueryRequest.php @@ -0,0 +1,67 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return SettleWayQueryRequest + */ + 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 SettleWayQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'settleWayQuery'; + } + + +} diff --git a/lib/Service/Settle/Model/SettleWayQueryRequestMarshaller.php b/lib/Service/Settle/Model/SettleWayQueryRequestMarshaller.php new file mode 100644 index 0000000..fede6d3 --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayQueryRequestMarshaller.php @@ -0,0 +1,83 @@ +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')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +SettleWayQueryRequestMarshaller::__init(); diff --git a/lib/Service/Settle/Model/SettleWayQueryResponse.php b/lib/Service/Settle/Model/SettleWayQueryResponse.php new file mode 100644 index 0000000..c66d1d4 --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return SettleWayQuerySettleWayQueryYOPResponseDtoResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Settle/Model/SettleWayQueryResponseUnMarshaller.php b/lib/Service/Settle/Model/SettleWayQueryResponseUnMarshaller.php new file mode 100644 index 0000000..667d8ed --- /dev/null +++ b/lib/Service/Settle/Model/SettleWayQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'code' => 'string', + 'message' => 'string', + 'merchantNo' => 'string', + 'parentMerchantNo' => 'string', + 'merchantSettleWayQueryDtos' => '\Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQueryMerchantSettleWayQueryYOPDtoResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'code' => null, + 'message' => null, + 'merchantNo' => null, + 'parentMerchantNo' => null, + 'merchantSettleWayQueryDtos' => 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 = [ + 'status' => 'status', + 'code' => 'code', + 'message' => 'message', + 'merchantNo' => 'merchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantSettleWayQueryDtos' => 'merchantSettleWayQueryDtos' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'code' => 'setCode', + 'message' => 'setMessage', + 'merchantNo' => 'setMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantSettleWayQueryDtos' => 'setMerchantSettleWayQueryDtos' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'code' => 'getCode', + 'message' => 'getMessage', + 'merchantNo' => 'getMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantSettleWayQueryDtos' => 'getMerchantSettleWayQueryDtos' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantSettleWayQueryDtos'] = isset($data['merchantSettleWayQueryDtos']) ? $data['merchantSettleWayQueryDtos'] : 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 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 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 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo 发起方商户编号 + * + * @return $this + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->container['parentMerchantNo'] = $parentMerchantNo; + + return $this; + } + + /** + * Gets merchantSettleWayQueryDtos + * + * @return \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQueryMerchantSettleWayQueryYOPDtoResult[] + */ + public function getMerchantSettleWayQueryDtos() + { + return $this->container['merchantSettleWayQueryDtos']; + } + + /** + * Sets merchantSettleWayQueryDtos + * + * @param \Yeepay\Yop\Sdk\Service\Settle\Model\SettleWayQueryMerchantSettleWayQueryYOPDtoResult[] $merchantSettleWayQueryDtos 结算方向列表 + * + * @return $this + */ + public function setMerchantSettleWayQueryDtos($merchantSettleWayQueryDtos) + { + $this->container['merchantSettleWayQueryDtos'] = $merchantSettleWayQueryDtos; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/YopSettleReceiptRequestDTO.php b/lib/Service/Settle/Model/YopSettleReceiptRequestDTO.php new file mode 100644 index 0000000..9d76286 --- /dev/null +++ b/lib/Service/Settle/Model/YopSettleReceiptRequestDTO.php @@ -0,0 +1,462 @@ + 'string', + 'settleRequestNo' => 'string', + 'notifyUrl' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'settleStartTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'settleEndTime' => null, + 'settleRequestNo' => null, + 'notifyUrl' => 'notify-url', + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'settleStartTime' => 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 = [ + 'settleEndTime' => 'settleEndTime', + 'settleRequestNo' => 'settleRequestNo', + 'notifyUrl' => 'notifyUrl', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'settleStartTime' => 'settleStartTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'settleEndTime' => 'setSettleEndTime', + 'settleRequestNo' => 'setSettleRequestNo', + 'notifyUrl' => 'setNotifyUrl', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'settleStartTime' => 'setSettleStartTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'settleEndTime' => 'getSettleEndTime', + 'settleRequestNo' => 'getSettleRequestNo', + 'notifyUrl' => 'getNotifyUrl', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'settleStartTime' => 'getSettleStartTime' + ]; + + /** + * 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['settleEndTime'] = isset($data['settleEndTime']) ? $data['settleEndTime'] : null; + $this->container['settleRequestNo'] = isset($data['settleRequestNo']) ? $data['settleRequestNo'] : null; + $this->container['notifyUrl'] = isset($data['notifyUrl']) ? $data['notifyUrl'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['settleStartTime'] = isset($data['settleStartTime']) ? $data['settleStartTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['notifyUrl'] === null) { + $invalidProperties[] = "'notifyUrl' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + 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 settleEndTime + * + * @return string + */ + public function getSettleEndTime() + { + return $this->container['settleEndTime']; + } + + /** + * Sets settleEndTime + * + * @param string $settleEndTime

结算时间范围截止时间,此参数和结算请求号只能传一项

+ * + * @return $this + */ + public function setSettleEndTime($settleEndTime) + { + $this->container['settleEndTime'] = $settleEndTime; + + return $this; + } + + /** + * Gets settleRequestNo + * + * @return string + */ + public function getSettleRequestNo() + { + return $this->container['settleRequestNo']; + } + + /** + * Sets settleRequestNo + * + * @param string $settleRequestNo

结算请求号,此参数和结算时间范围参数只能传一项

+ * + * @return $this + */ + public function setSettleRequestNo($settleRequestNo) + { + $this->container['settleRequestNo'] = $settleRequestNo; + + 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

收款商户编号

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets settleStartTime + * + * @return string + */ + public function getSettleStartTime() + { + return $this->container['settleStartTime']; + } + + /** + * Sets settleStartTime + * + * @param string $settleStartTime

结算时间范围开始时间,此参数和结算请求号只能传一项

+ * + * @return $this + */ + public function setSettleStartTime($settleStartTime) + { + $this->container['settleStartTime'] = $settleStartTime; + + 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)); + } +} + + diff --git a/lib/Service/Settle/Model/YopSettleReceiptResponseDTO.php b/lib/Service/Settle/Model/YopSettleReceiptResponseDTO.php new file mode 100644 index 0000000..c15315e --- /dev/null +++ b/lib/Service/Settle/Model/YopSettleReceiptResponseDTO.php @@ -0,0 +1,456 @@ + 'string', + 'message' => 'string', + 'fileId' => 'string', + 'status' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'fileId' => null, + 'status' => null, + 'parentMerchantNo' => null, + 'merchantNo' => 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', + 'fileId' => 'fileId', + 'status' => 'status', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'fileId' => 'setFileId', + 'status' => 'setStatus', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'fileId' => 'getFileId', + 'status' => 'getStatus', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo' + ]; + + /** + * 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['fileId'] = isset($data['fileId']) ? $data['fileId'] : null; + $this->container['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['code'] === null) { + $invalidProperties[] = "'code' can't be null"; + } + 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 fileId + * + * @return string + */ + public function getFileId() + { + return $this->container['fileId']; + } + + /** + * Sets fileId + * + * @param string $fileId

文件id,接收到通知后用此参数去结算回单下载使用

+ * + * @return $this + */ + public function setFileId($fileId) + { + $this->container['fileId'] = $fileId; + + return $this; + } + + /** + * Gets status + * + * @return string + */ + public function getStatus() + { + return $this->container['status']; + } + + /** + * Sets status + * + * @param string $status

文件生成的状态

PROCESSING:处理中

+ * + * @return $this + */ + public function setStatus($status) + { + $this->container['status'] = $status; + + return $this; + } + + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

收款商编号

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + 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)); + } +} + + diff --git a/lib/Service/Std/Model/BillFundbillEndbalanceApplyManualGenerationEndBalanceResponseDTOResult.php b/lib/Service/Std/Model/BillFundbillEndbalanceApplyManualGenerationEndBalanceResponseDTOResult.php new file mode 100644 index 0000000..5daab6a --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillEndbalanceApplyManualGenerationEndBalanceResponseDTOResult.php @@ -0,0 +1,392 @@ + 'string', + 'message' => 'string', + 'fileId' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'fileId' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'fileId' => 'fileId', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'fileId' => 'setFileId', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'fileId' => 'getFileId', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['fileId'] = isset($data['fileId']) ? $data['fileId'] : 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 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 fileId + * + * @return string + */ + public function getFileId() + { + return $this->container['fileId']; + } + + /** + * Sets fileId + * + * @param string $fileId 文件id + * + * @return $this + */ + public function setFileId($fileId) + { + $this->container['fileId'] = $fileId; + + 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)); + } +} + + diff --git a/lib/Service/Std/Model/BillFundbillEndbalanceApplyRequest.php b/lib/Service/Std/Model/BillFundbillEndbalanceApplyRequest.php new file mode 100644 index 0000000..c16e9ed --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillEndbalanceApplyRequest.php @@ -0,0 +1,117 @@ +bookDate; + } + + /** + * Sets bookDate + * + * @param string $bookDate + * @return BillFundbillEndbalanceApplyRequest + */ + public function setBookDate($bookDate) + { + $this->bookDate = $bookDate; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BillFundbillEndbalanceApplyRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets notifyUrl + * + * @return string + */ + public function getNotifyUrl() + { + return $this->notifyUrl; + } + + /** + * Sets notifyUrl + * + * @param string $notifyUrl + * @return BillFundbillEndbalanceApplyRequest + */ + public function setNotifyUrl($notifyUrl) + { + $this->notifyUrl = $notifyUrl; + return $this; + } + /** + * Gets subMerchantNo + * + * @return string + */ + public function getSubMerchantNo() + { + return $this->subMerchantNo; + } + + /** + * Sets subMerchantNo + * + * @param string $subMerchantNo + * @return BillFundbillEndbalanceApplyRequest + */ + public function setSubMerchantNo($subMerchantNo) + { + $this->subMerchantNo = $subMerchantNo; + return $this; + } + + public static function getOperationId() + { + return 'billFundbillEndbalanceApply'; + } + + +} diff --git a/lib/Service/Std/Model/BillFundbillEndbalanceApplyRequestMarshaller.php b/lib/Service/Std/Model/BillFundbillEndbalanceApplyRequestMarshaller.php new file mode 100644 index 0000000..21ba85f --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillEndbalanceApplyRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getBookDate() != null){ + $internalRequest->addParameter('bookDate', ObjectSerializer::sanitizeForSerialization($request->getBookDate(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getNotifyUrl() != null){ + $internalRequest->addParameter('notifyUrl', ObjectSerializer::sanitizeForSerialization($request->getNotifyUrl(), 'string')); + } + if($request->getSubMerchantNo() != null){ + $internalRequest->addParameter('subMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getSubMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillFundbillEndbalanceApplyRequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/BillFundbillEndbalanceApplyResponse.php b/lib/Service/Std/Model/BillFundbillEndbalanceApplyResponse.php new file mode 100644 index 0000000..0d1b4d8 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillEndbalanceApplyResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillFundbillEndbalanceApplyManualGenerationEndBalanceResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Std/Model/BillFundbillEndbalanceApplyResponseUnMarshaller.php b/lib/Service/Std/Model/BillFundbillEndbalanceApplyResponseUnMarshaller.php new file mode 100644 index 0000000..57462e7 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillEndbalanceApplyResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'trxTime' => 'string', + 'trxFlowNo' => 'string', + 'trxCode' => 'string', + 'merchantNo' => 'string', + 'merchantName' => 'string', + 'orderId' => 'string', + 'fee' => 'float', + 'income' => 'float', + 'expenditure' => 'float', + 'balance' => 'float', + 'remark' => 'string', + 'accountType' => 'string', + 'orgOrderId' => 'string', + 'bankOrderId' => 'string', + 'paymentNo' => 'string', + 'payerAccountName' => 'string', + 'payerTel' => 'string', + 'payerAccountNo' => 'string', + 'payerBankAccType' => 'string', + 'payerBank' => 'string', + 'goodsName' => 'string', + 'payeeAccountName' => 'string', + 'payeeAccountNo' => 'string', + 'payeeBankAccType' => 'string', + 'payeeBank' => 'string', + 'tradeDesc' => 'string', + 'orderAmount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'accountTime' => null, + 'trxTime' => null, + 'trxFlowNo' => null, + 'trxCode' => null, + 'merchantNo' => null, + 'merchantName' => null, + 'orderId' => null, + 'fee' => null, + 'income' => null, + 'expenditure' => null, + 'balance' => null, + 'remark' => null, + 'accountType' => null, + 'orgOrderId' => null, + 'bankOrderId' => null, + 'paymentNo' => null, + 'payerAccountName' => null, + 'payerTel' => null, + 'payerAccountNo' => null, + 'payerBankAccType' => null, + 'payerBank' => null, + 'goodsName' => null, + 'payeeAccountName' => null, + 'payeeAccountNo' => null, + 'payeeBankAccType' => null, + 'payeeBank' => null, + 'tradeDesc' => 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 = [ + 'accountTime' => 'accountTime', + 'trxTime' => 'trxTime', + 'trxFlowNo' => 'trxFlowNo', + 'trxCode' => 'trxCode', + 'merchantNo' => 'merchantNo', + 'merchantName' => 'merchantName', + 'orderId' => 'orderId', + 'fee' => 'fee', + 'income' => 'income', + 'expenditure' => 'expenditure', + 'balance' => 'balance', + 'remark' => 'remark', + 'accountType' => 'accountType', + 'orgOrderId' => 'orgOrderId', + 'bankOrderId' => 'bankOrderId', + 'paymentNo' => 'paymentNo', + 'payerAccountName' => 'payerAccountName', + 'payerTel' => 'payerTel', + 'payerAccountNo' => 'payerAccountNo', + 'payerBankAccType' => 'payerBankAccType', + 'payerBank' => 'payerBank', + 'goodsName' => 'goodsName', + 'payeeAccountName' => 'payeeAccountName', + 'payeeAccountNo' => 'payeeAccountNo', + 'payeeBankAccType' => 'payeeBankAccType', + 'payeeBank' => 'payeeBank', + 'tradeDesc' => 'tradeDesc', + 'orderAmount' => 'orderAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'accountTime' => 'setAccountTime', + 'trxTime' => 'setTrxTime', + 'trxFlowNo' => 'setTrxFlowNo', + 'trxCode' => 'setTrxCode', + 'merchantNo' => 'setMerchantNo', + 'merchantName' => 'setMerchantName', + 'orderId' => 'setOrderId', + 'fee' => 'setFee', + 'income' => 'setIncome', + 'expenditure' => 'setExpenditure', + 'balance' => 'setBalance', + 'remark' => 'setRemark', + 'accountType' => 'setAccountType', + 'orgOrderId' => 'setOrgOrderId', + 'bankOrderId' => 'setBankOrderId', + 'paymentNo' => 'setPaymentNo', + 'payerAccountName' => 'setPayerAccountName', + 'payerTel' => 'setPayerTel', + 'payerAccountNo' => 'setPayerAccountNo', + 'payerBankAccType' => 'setPayerBankAccType', + 'payerBank' => 'setPayerBank', + 'goodsName' => 'setGoodsName', + 'payeeAccountName' => 'setPayeeAccountName', + 'payeeAccountNo' => 'setPayeeAccountNo', + 'payeeBankAccType' => 'setPayeeBankAccType', + 'payeeBank' => 'setPayeeBank', + 'tradeDesc' => 'setTradeDesc', + 'orderAmount' => 'setOrderAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'accountTime' => 'getAccountTime', + 'trxTime' => 'getTrxTime', + 'trxFlowNo' => 'getTrxFlowNo', + 'trxCode' => 'getTrxCode', + 'merchantNo' => 'getMerchantNo', + 'merchantName' => 'getMerchantName', + 'orderId' => 'getOrderId', + 'fee' => 'getFee', + 'income' => 'getIncome', + 'expenditure' => 'getExpenditure', + 'balance' => 'getBalance', + 'remark' => 'getRemark', + 'accountType' => 'getAccountType', + 'orgOrderId' => 'getOrgOrderId', + 'bankOrderId' => 'getBankOrderId', + 'paymentNo' => 'getPaymentNo', + 'payerAccountName' => 'getPayerAccountName', + 'payerTel' => 'getPayerTel', + 'payerAccountNo' => 'getPayerAccountNo', + 'payerBankAccType' => 'getPayerBankAccType', + 'payerBank' => 'getPayerBank', + 'goodsName' => 'getGoodsName', + 'payeeAccountName' => 'getPayeeAccountName', + 'payeeAccountNo' => 'getPayeeAccountNo', + 'payeeBankAccType' => 'getPayeeBankAccType', + 'payeeBank' => 'getPayeeBank', + 'tradeDesc' => 'getTradeDesc', + '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['accountTime'] = isset($data['accountTime']) ? $data['accountTime'] : null; + $this->container['trxTime'] = isset($data['trxTime']) ? $data['trxTime'] : null; + $this->container['trxFlowNo'] = isset($data['trxFlowNo']) ? $data['trxFlowNo'] : null; + $this->container['trxCode'] = isset($data['trxCode']) ? $data['trxCode'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantName'] = isset($data['merchantName']) ? $data['merchantName'] : null; + $this->container['orderId'] = isset($data['orderId']) ? $data['orderId'] : null; + $this->container['fee'] = isset($data['fee']) ? $data['fee'] : null; + $this->container['income'] = isset($data['income']) ? $data['income'] : null; + $this->container['expenditure'] = isset($data['expenditure']) ? $data['expenditure'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : null; + $this->container['remark'] = isset($data['remark']) ? $data['remark'] : null; + $this->container['accountType'] = isset($data['accountType']) ? $data['accountType'] : null; + $this->container['orgOrderId'] = isset($data['orgOrderId']) ? $data['orgOrderId'] : null; + $this->container['bankOrderId'] = isset($data['bankOrderId']) ? $data['bankOrderId'] : null; + $this->container['paymentNo'] = isset($data['paymentNo']) ? $data['paymentNo'] : null; + $this->container['payerAccountName'] = isset($data['payerAccountName']) ? $data['payerAccountName'] : null; + $this->container['payerTel'] = isset($data['payerTel']) ? $data['payerTel'] : null; + $this->container['payerAccountNo'] = isset($data['payerAccountNo']) ? $data['payerAccountNo'] : null; + $this->container['payerBankAccType'] = isset($data['payerBankAccType']) ? $data['payerBankAccType'] : null; + $this->container['payerBank'] = isset($data['payerBank']) ? $data['payerBank'] : null; + $this->container['goodsName'] = isset($data['goodsName']) ? $data['goodsName'] : null; + $this->container['payeeAccountName'] = isset($data['payeeAccountName']) ? $data['payeeAccountName'] : null; + $this->container['payeeAccountNo'] = isset($data['payeeAccountNo']) ? $data['payeeAccountNo'] : null; + $this->container['payeeBankAccType'] = isset($data['payeeBankAccType']) ? $data['payeeBankAccType'] : null; + $this->container['payeeBank'] = isset($data['payeeBank']) ? $data['payeeBank'] : null; + $this->container['tradeDesc'] = isset($data['tradeDesc']) ? $data['tradeDesc'] : 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 accountTime + * + * @return string + */ + public function getAccountTime() + { + return $this->container['accountTime']; + } + + /** + * Sets accountTime + * + * @param string $accountTime 记账时间 + * + * @return $this + */ + public function setAccountTime($accountTime) + { + $this->container['accountTime'] = $accountTime; + + return $this; + } + + /** + * Gets trxTime + * + * @return string + */ + public function getTrxTime() + { + return $this->container['trxTime']; + } + + /** + * Sets trxTime + * + * @param string $trxTime 交易时间 + * + * @return $this + */ + public function setTrxTime($trxTime) + { + $this->container['trxTime'] = $trxTime; + + return $this; + } + + /** + * Gets trxFlowNo + * + * @return string + */ + public function getTrxFlowNo() + { + return $this->container['trxFlowNo']; + } + + /** + * Sets trxFlowNo + * + * @param string $trxFlowNo 易宝流水号 + * + * @return $this + */ + public function setTrxFlowNo($trxFlowNo) + { + $this->container['trxFlowNo'] = $trxFlowNo; + + return $this; + } + + /** + * Gets trxCode + * + * @return string + */ + public function getTrxCode() + { + return $this->container['trxCode']; + } + + /** + * Sets trxCode + * + * @param string $trxCode 业务类型 + * + * @return $this + */ + public function setTrxCode($trxCode) + { + $this->container['trxCode'] = $trxCode; + + 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 merchantName + * + * @return string + */ + public function getMerchantName() + { + return $this->container['merchantName']; + } + + /** + * Sets merchantName + * + * @param string $merchantName 商户名称 + * + * @return $this + */ + public function setMerchantName($merchantName) + { + $this->container['merchantName'] = $merchantName; + + 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 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 income + * + * @return float + */ + public function getIncome() + { + return $this->container['income']; + } + + /** + * Sets income + * + * @param float $income 收入 + * + * @return $this + */ + public function setIncome($income) + { + $this->container['income'] = $income; + + return $this; + } + + /** + * Gets expenditure + * + * @return float + */ + public function getExpenditure() + { + return $this->container['expenditure']; + } + + /** + * Sets expenditure + * + * @param float $expenditure 支出 + * + * @return $this + */ + public function setExpenditure($expenditure) + { + $this->container['expenditure'] = $expenditure; + + 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 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 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 orgOrderId + * + * @return string + */ + public function getOrgOrderId() + { + return $this->container['orgOrderId']; + } + + /** + * Sets orgOrderId + * + * @param string $orgOrderId 原商户订单号 + * + * @return $this + */ + public function setOrgOrderId($orgOrderId) + { + $this->container['orgOrderId'] = $orgOrderId; + + return $this; + } + + /** + * Gets bankOrderId + * + * @return string + */ + public function getBankOrderId() + { + return $this->container['bankOrderId']; + } + + /** + * Sets bankOrderId + * + * @param string $bankOrderId 银行单号 + * + * @return $this + */ + public function setBankOrderId($bankOrderId) + { + $this->container['bankOrderId'] = $bankOrderId; + + return $this; + } + + /** + * Gets paymentNo + * + * @return string + */ + public function getPaymentNo() + { + return $this->container['paymentNo']; + } + + /** + * Sets paymentNo + * + * @param string $paymentNo 支付单号 + * + * @return $this + */ + public function setPaymentNo($paymentNo) + { + $this->container['paymentNo'] = $paymentNo; + + 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 payerTel + * + * @return string + */ + public function getPayerTel() + { + return $this->container['payerTel']; + } + + /** + * Sets payerTel + * + * @param string $payerTel 付款方手机号 + * + * @return $this + */ + public function setPayerTel($payerTel) + { + $this->container['payerTel'] = $payerTel; + + 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 payerBankAccType + * + * @return string + */ + public function getPayerBankAccType() + { + return $this->container['payerBankAccType']; + } + + /** + * Sets payerBankAccType + * + * @param string $payerBankAccType 付款方账户类型 + * + * @return $this + */ + public function setPayerBankAccType($payerBankAccType) + { + $this->container['payerBankAccType'] = $payerBankAccType; + + return $this; + } + + /** + * Gets payerBank + * + * @return string + */ + public function getPayerBank() + { + return $this->container['payerBank']; + } + + /** + * Sets payerBank + * + * @param string $payerBank 付款方银行 + * + * @return $this + */ + public function setPayerBank($payerBank) + { + $this->container['payerBank'] = $payerBank; + + return $this; + } + + /** + * Gets goodsName + * + * @return string + */ + public function getGoodsName() + { + return $this->container['goodsName']; + } + + /** + * Sets goodsName + * + * @param string $goodsName 商品名称 + * + * @return $this + */ + public function setGoodsName($goodsName) + { + $this->container['goodsName'] = $goodsName; + + return $this; + } + + /** + * Gets payeeAccountName + * + * @return string + */ + public function getPayeeAccountName() + { + return $this->container['payeeAccountName']; + } + + /** + * Sets payeeAccountName + * + * @param string $payeeAccountName 收款方账户名称 + * + * @return $this + */ + public function setPayeeAccountName($payeeAccountName) + { + $this->container['payeeAccountName'] = $payeeAccountName; + + return $this; + } + + /** + * Gets payeeAccountNo + * + * @return string + */ + public function getPayeeAccountNo() + { + return $this->container['payeeAccountNo']; + } + + /** + * Sets payeeAccountNo + * + * @param string $payeeAccountNo 收款方账号 + * + * @return $this + */ + public function setPayeeAccountNo($payeeAccountNo) + { + $this->container['payeeAccountNo'] = $payeeAccountNo; + + return $this; + } + + /** + * Gets payeeBankAccType + * + * @return string + */ + public function getPayeeBankAccType() + { + return $this->container['payeeBankAccType']; + } + + /** + * Sets payeeBankAccType + * + * @param string $payeeBankAccType 收款方账户类型 + * + * @return $this + */ + public function setPayeeBankAccType($payeeBankAccType) + { + $this->container['payeeBankAccType'] = $payeeBankAccType; + + return $this; + } + + /** + * Gets payeeBank + * + * @return string + */ + public function getPayeeBank() + { + return $this->container['payeeBank']; + } + + /** + * Sets payeeBank + * + * @param string $payeeBank 收款方银行 + * + * @return $this + */ + public function setPayeeBank($payeeBank) + { + $this->container['payeeBank'] = $payeeBank; + + return $this; + } + + /** + * Gets tradeDesc + * + * @return string + */ + public function getTradeDesc() + { + return $this->container['tradeDesc']; + } + + /** + * Sets tradeDesc + * + * @param string $tradeDesc 交易描述 + * + * @return $this + */ + public function setTradeDesc($tradeDesc) + { + $this->container['tradeDesc'] = $tradeDesc; + + 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)); + } +} + + diff --git a/lib/Service/Std/Model/BillFundbillFlowQueryRequest.php b/lib/Service/Std/Model/BillFundbillFlowQueryRequest.php new file mode 100644 index 0000000..4c0530c --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowQueryRequest.php @@ -0,0 +1,217 @@ +startDate; + } + + /** + * Sets startDate + * + * @param string $startDate + * @return BillFundbillFlowQueryRequest + */ + public function setStartDate($startDate) + { + $this->startDate = $startDate; + return $this; + } + /** + * Gets endDate + * + * @return string + */ + public function getEndDate() + { + return $this->endDate; + } + + /** + * Sets endDate + * + * @param string $endDate + * @return BillFundbillFlowQueryRequest + */ + public function setEndDate($endDate) + { + $this->endDate = $endDate; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BillFundbillFlowQueryRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets page + * + * @return int + */ + public function getPage() + { + return $this->page; + } + + /** + * Sets page + * + * @param int $page + * @return BillFundbillFlowQueryRequest + */ + public function setPage($page) + { + $this->page = $page; + return $this; + } + /** + * Gets size + * + * @return int + */ + public function getSize() + { + return $this->size; + } + + /** + * Sets size + * + * @param int $size + * @return BillFundbillFlowQueryRequest + */ + public function setSize($size) + { + $this->size = $size; + return $this; + } + /** + * Gets trxCode + * + * @return string + */ + public function getTrxCode() + { + return $this->trxCode; + } + + /** + * Sets trxCode + * + * @param string $trxCode + * @return BillFundbillFlowQueryRequest + */ + public function setTrxCode($trxCode) + { + $this->trxCode = $trxCode; + return $this; + } + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->accountType; + } + + /** + * Sets accountType + * + * @param string $accountType + * @return BillFundbillFlowQueryRequest + */ + public function setAccountType($accountType) + { + $this->accountType = $accountType; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BillFundbillFlowQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'billFundbillFlowQuery'; + } + + +} diff --git a/lib/Service/Std/Model/BillFundbillFlowQueryRequestMarshaller.php b/lib/Service/Std/Model/BillFundbillFlowQueryRequestMarshaller.php new file mode 100644 index 0000000..a208556 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowQueryRequestMarshaller.php @@ -0,0 +1,101 @@ +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->getStartDate() != null){ + $internalRequest->addParameter('startDate', ObjectSerializer::sanitizeForSerialization($request->getStartDate(), 'string')); + } + if($request->getEndDate() != null){ + $internalRequest->addParameter('endDate', ObjectSerializer::sanitizeForSerialization($request->getEndDate(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getPage() != null){ + $internalRequest->addParameter('page', ObjectSerializer::sanitizeForSerialization($request->getPage(), 'int', 'int32')); + } + if($request->getSize() != null){ + $internalRequest->addParameter('size', ObjectSerializer::sanitizeForSerialization($request->getSize(), 'int', 'int32')); + } + if($request->getTrxCode() != null){ + $internalRequest->addParameter('trxCode', ObjectSerializer::sanitizeForSerialization($request->getTrxCode(), 'string')); + } + if($request->getAccountType() != null){ + $internalRequest->addParameter('accountType', ObjectSerializer::sanitizeForSerialization($request->getAccountType(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillFundbillFlowQueryRequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/BillFundbillFlowQueryResponse.php b/lib/Service/Std/Model/BillFundbillFlowQueryResponse.php new file mode 100644 index 0000000..5434073 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillFundbillFlowQueryYopQueryFundBillFlowResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Std/Model/BillFundbillFlowQueryResponseUnMarshaller.php b/lib/Service/Std/Model/BillFundbillFlowQueryResponseUnMarshaller.php new file mode 100644 index 0000000..8b89f22 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'totalCount' => 'int', + 'data' => '\Yeepay\Yop\Sdk\Service\Std\Model\BillFundbillFlowQueryFundBillFlowDetailDTOResult[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'totalCount' => 'int64', + '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 = [ + 'code' => 'code', + 'message' => 'message', + 'totalCount' => 'totalCount', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'totalCount' => 'setTotalCount', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'totalCount' => 'getTotalCount', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['totalCount'] = isset($data['totalCount']) ? $data['totalCount'] : 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 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 totalCount + * + * @return int + */ + public function getTotalCount() + { + return $this->container['totalCount']; + } + + /** + * Sets totalCount + * + * @param int $totalCount 总比数 + * + * @return $this + */ + public function setTotalCount($totalCount) + { + $this->container['totalCount'] = $totalCount; + + return $this; + } + + /** + * Gets data + * + * @return \Yeepay\Yop\Sdk\Service\Std\Model\BillFundbillFlowQueryFundBillFlowDetailDTOResult[] + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yeepay\Yop\Sdk\Service\Std\Model\BillFundbillFlowQueryFundBillFlowDetailDTOResult[] $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)); + } +} + + diff --git a/lib/Service/Std/Model/BillFundbillFlowSumRequest.php b/lib/Service/Std/Model/BillFundbillFlowSumRequest.php new file mode 100644 index 0000000..05958a9 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowSumRequest.php @@ -0,0 +1,167 @@ +startDate; + } + + /** + * Sets startDate + * + * @param string $startDate + * @return BillFundbillFlowSumRequest + */ + public function setStartDate($startDate) + { + $this->startDate = $startDate; + return $this; + } + /** + * Gets endDate + * + * @return string + */ + public function getEndDate() + { + return $this->endDate; + } + + /** + * Sets endDate + * + * @param string $endDate + * @return BillFundbillFlowSumRequest + */ + public function setEndDate($endDate) + { + $this->endDate = $endDate; + return $this; + } + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return BillFundbillFlowSumRequest + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->parentMerchantNo = $parentMerchantNo; + return $this; + } + /** + * Gets trxCode + * + * @return string + */ + public function getTrxCode() + { + return $this->trxCode; + } + + /** + * Sets trxCode + * + * @param string $trxCode + * @return BillFundbillFlowSumRequest + */ + public function setTrxCode($trxCode) + { + $this->trxCode = $trxCode; + return $this; + } + /** + * Gets accountType + * + * @return string + */ + public function getAccountType() + { + return $this->accountType; + } + + /** + * Sets accountType + * + * @param string $accountType + * @return BillFundbillFlowSumRequest + */ + public function setAccountType($accountType) + { + $this->accountType = $accountType; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BillFundbillFlowSumRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'billFundbillFlowSum'; + } + + +} diff --git a/lib/Service/Std/Model/BillFundbillFlowSumRequestMarshaller.php b/lib/Service/Std/Model/BillFundbillFlowSumRequestMarshaller.php new file mode 100644 index 0000000..02791a7 --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowSumRequestMarshaller.php @@ -0,0 +1,95 @@ +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->getStartDate() != null){ + $internalRequest->addParameter('startDate', ObjectSerializer::sanitizeForSerialization($request->getStartDate(), 'string')); + } + if($request->getEndDate() != null){ + $internalRequest->addParameter('endDate', ObjectSerializer::sanitizeForSerialization($request->getEndDate(), 'string')); + } + if($request->getParentMerchantNo() != null){ + $internalRequest->addParameter('parentMerchantNo', ObjectSerializer::sanitizeForSerialization($request->getParentMerchantNo(), 'string')); + } + if($request->getTrxCode() != null){ + $internalRequest->addParameter('trxCode', ObjectSerializer::sanitizeForSerialization($request->getTrxCode(), 'string')); + } + if($request->getAccountType() != null){ + $internalRequest->addParameter('accountType', ObjectSerializer::sanitizeForSerialization($request->getAccountType(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillFundbillFlowSumRequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/BillFundbillFlowSumResponse.php b/lib/Service/Std/Model/BillFundbillFlowSumResponse.php new file mode 100644 index 0000000..d1a737c --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowSumResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return BillFundbillFlowSumYopQueryFundBillSumResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Std/Model/BillFundbillFlowSumResponseUnMarshaller.php b/lib/Service/Std/Model/BillFundbillFlowSumResponseUnMarshaller.php new file mode 100644 index 0000000..ef45d4a --- /dev/null +++ b/lib/Service/Std/Model/BillFundbillFlowSumResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'incomeCount' => 'int', + 'expenditureCount' => 'int', + 'totalCount' => 'int', + 'totalIncome' => 'float', + 'totalExpenditure' => 'float', + 'totalAccountBalance' => 'float', + 'totalFee' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'incomeCount' => 'int64', + 'expenditureCount' => 'int64', + 'totalCount' => 'int64', + 'totalIncome' => null, + 'totalExpenditure' => null, + 'totalAccountBalance' => null, + 'totalFee' => 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', + 'incomeCount' => 'incomeCount', + 'expenditureCount' => 'expenditureCount', + 'totalCount' => 'totalCount', + 'totalIncome' => 'totalIncome', + 'totalExpenditure' => 'totalExpenditure', + 'totalAccountBalance' => 'totalAccountBalance', + 'totalFee' => 'totalFee' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'incomeCount' => 'setIncomeCount', + 'expenditureCount' => 'setExpenditureCount', + 'totalCount' => 'setTotalCount', + 'totalIncome' => 'setTotalIncome', + 'totalExpenditure' => 'setTotalExpenditure', + 'totalAccountBalance' => 'setTotalAccountBalance', + 'totalFee' => 'setTotalFee' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'incomeCount' => 'getIncomeCount', + 'expenditureCount' => 'getExpenditureCount', + 'totalCount' => 'getTotalCount', + 'totalIncome' => 'getTotalIncome', + 'totalExpenditure' => 'getTotalExpenditure', + 'totalAccountBalance' => 'getTotalAccountBalance', + 'totalFee' => 'getTotalFee' + ]; + + /** + * 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['incomeCount'] = isset($data['incomeCount']) ? $data['incomeCount'] : null; + $this->container['expenditureCount'] = isset($data['expenditureCount']) ? $data['expenditureCount'] : null; + $this->container['totalCount'] = isset($data['totalCount']) ? $data['totalCount'] : null; + $this->container['totalIncome'] = isset($data['totalIncome']) ? $data['totalIncome'] : null; + $this->container['totalExpenditure'] = isset($data['totalExpenditure']) ? $data['totalExpenditure'] : null; + $this->container['totalAccountBalance'] = isset($data['totalAccountBalance']) ? $data['totalAccountBalance'] : null; + $this->container['totalFee'] = isset($data['totalFee']) ? $data['totalFee'] : 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 incomeCount + * + * @return int + */ + public function getIncomeCount() + { + return $this->container['incomeCount']; + } + + /** + * Sets incomeCount + * + * @param int $incomeCount 收入总笔数 + * + * @return $this + */ + public function setIncomeCount($incomeCount) + { + $this->container['incomeCount'] = $incomeCount; + + return $this; + } + + /** + * Gets expenditureCount + * + * @return int + */ + public function getExpenditureCount() + { + return $this->container['expenditureCount']; + } + + /** + * Sets expenditureCount + * + * @param int $expenditureCount 支出总笔数 + * + * @return $this + */ + public function setExpenditureCount($expenditureCount) + { + $this->container['expenditureCount'] = $expenditureCount; + + return $this; + } + + /** + * Gets totalCount + * + * @return int + */ + public function getTotalCount() + { + return $this->container['totalCount']; + } + + /** + * Sets totalCount + * + * @param int $totalCount 总笔数 + * + * @return $this + */ + public function setTotalCount($totalCount) + { + $this->container['totalCount'] = $totalCount; + + return $this; + } + + /** + * Gets totalIncome + * + * @return float + */ + public function getTotalIncome() + { + return $this->container['totalIncome']; + } + + /** + * Sets totalIncome + * + * @param float $totalIncome 收入总金额 + * + * @return $this + */ + public function setTotalIncome($totalIncome) + { + $this->container['totalIncome'] = $totalIncome; + + return $this; + } + + /** + * Gets totalExpenditure + * + * @return float + */ + public function getTotalExpenditure() + { + return $this->container['totalExpenditure']; + } + + /** + * Sets totalExpenditure + * + * @param float $totalExpenditure 支付总金额 + * + * @return $this + */ + public function setTotalExpenditure($totalExpenditure) + { + $this->container['totalExpenditure'] = $totalExpenditure; + + 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 totalFee + * + * @return float + */ + public function getTotalFee() + { + return $this->container['totalFee']; + } + + /** + * Sets totalFee + * + * @param float $totalFee 手续费总金额 + * + * @return $this + */ + public function setTotalFee($totalFee) + { + $this->container['totalFee'] = $totalFee; + + 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)); + } +} + + diff --git a/lib/Service/Std/Model/BillSettlebillDownloadRequest.php b/lib/Service/Std/Model/BillSettlebillDownloadRequest.php new file mode 100644 index 0000000..b807a1f --- /dev/null +++ b/lib/Service/Std/Model/BillSettlebillDownloadRequest.php @@ -0,0 +1,92 @@ +settleDate; + } + + /** + * Sets settleDate + * + * @param string $settleDate + * @return BillSettlebillDownloadRequest + */ + public function setSettleDate($settleDate) + { + $this->settleDate = $settleDate; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return BillSettlebillDownloadRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets settleBatchNo + * + * @return string + */ + public function getSettleBatchNo() + { + return $this->settleBatchNo; + } + + /** + * Sets settleBatchNo + * + * @param string $settleBatchNo + * @return BillSettlebillDownloadRequest + */ + public function setSettleBatchNo($settleBatchNo) + { + $this->settleBatchNo = $settleBatchNo; + return $this; + } + + public static function getOperationId() + { + return 'billSettlebillDownload'; + } + + +} diff --git a/lib/Service/Std/Model/BillSettlebillDownloadRequestMarshaller.php b/lib/Service/Std/Model/BillSettlebillDownloadRequestMarshaller.php new file mode 100644 index 0000000..01939f9 --- /dev/null +++ b/lib/Service/Std/Model/BillSettlebillDownloadRequestMarshaller.php @@ -0,0 +1,87 @@ +serviceName); + $internalRequest->setResourcePath($this->resourcePath); + $internalRequest->setHttpMethod($this->httpMethod); + $internalRequest->setYosFlag(true); + 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->getSettleDate() != null){ + $internalRequest->addParameter('settleDate', ObjectSerializer::sanitizeForSerialization($request->getSettleDate(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + if($request->getSettleBatchNo() != null){ + $internalRequest->addParameter('settleBatchNo', ObjectSerializer::sanitizeForSerialization($request->getSettleBatchNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillSettlebillDownloadRequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/CertOrderAuthResponseDTOResult.php b/lib/Service/Std/Model/CertOrderAuthResponseDTOResult.php new file mode 100644 index 0000000..1dcc617 --- /dev/null +++ b/lib/Service/Std/Model/CertOrderAuthResponseDTOResult.php @@ -0,0 +1,482 @@ + 'string', + 'merchantNo' => 'string', + 'code' => 'string', + 'message' => 'string', + 'requestNo' => 'string', + 'authType' => 'string', + 'ybOrderId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'status' => null, + 'merchantNo' => null, + 'code' => null, + 'message' => null, + 'requestNo' => null, + 'authType' => null, + 'ybOrderId' => 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 = [ + 'status' => 'status', + 'merchantNo' => 'merchantNo', + 'code' => 'code', + 'message' => 'message', + 'requestNo' => 'requestNo', + 'authType' => 'authType', + 'ybOrderId' => 'ybOrderId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'status' => 'setStatus', + 'merchantNo' => 'setMerchantNo', + 'code' => 'setCode', + 'message' => 'setMessage', + 'requestNo' => 'setRequestNo', + 'authType' => 'setAuthType', + 'ybOrderId' => 'setYbOrderId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'status' => 'getStatus', + 'merchantNo' => 'getMerchantNo', + 'code' => 'getCode', + 'message' => 'getMessage', + 'requestNo' => 'getRequestNo', + 'authType' => 'getAuthType', + 'ybOrderId' => 'getYbOrderId' + ]; + + /** + * 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['status'] = isset($data['status']) ? $data['status'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['requestNo'] = isset($data['requestNo']) ? $data['requestNo'] : null; + $this->container['authType'] = isset($data['authType']) ? $data['authType'] : null; + $this->container['ybOrderId'] = isset($data['ybOrderId']) ? $data['ybOrderId'] : 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 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 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 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 authType + * + * @return string + */ + public function getAuthType() + { + return $this->container['authType']; + } + + /** + * Sets authType + * + * @param string $authType 认证类型 + * + * @return $this + */ + public function setAuthType($authType) + { + $this->container['authType'] = $authType; + + return $this; + } + + /** + * Gets ybOrderId + * + * @return string + */ + public function getYbOrderId() + { + return $this->container['ybOrderId']; + } + + /** + * Sets ybOrderId + * + * @param string $ybOrderId 易宝流水号 + * + * @return $this + */ + public function setYbOrderId($ybOrderId) + { + $this->container['ybOrderId'] = $ybOrderId; + + 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)); + } +} + + diff --git a/lib/Service/Std/Model/CertOrderRequest.php b/lib/Service/Std/Model/CertOrderRequest.php new file mode 100644 index 0000000..8914578 --- /dev/null +++ b/lib/Service/Std/Model/CertOrderRequest.php @@ -0,0 +1,317 @@ +merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return CertOrderRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets authType + * + * @return string + */ + public function getAuthType() + { + return $this->authType; + } + + /** + * Sets authType + * + * @param string $authType + * @return CertOrderRequest + */ + public function setAuthType($authType) + { + $this->authType = $authType; + return $this; + } + /** + * Gets requestNo + * + * @return string + */ + public function getRequestNo() + { + return $this->requestNo; + } + + /** + * Sets requestNo + * + * @param string $requestNo + * @return CertOrderRequest + */ + public function setRequestNo($requestNo) + { + $this->requestNo = $requestNo; + return $this; + } + /** + * Gets idCardNo + * + * @return string + */ + public function getIdCardNo() + { + return $this->idCardNo; + } + + /** + * Sets idCardNo + * + * @param string $idCardNo + * @return CertOrderRequest + */ + public function setIdCardNo($idCardNo) + { + $this->idCardNo = $idCardNo; + return $this; + } + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->userName; + } + + /** + * Sets userName + * + * @param string $userName + * @return CertOrderRequest + */ + public function setUserName($userName) + { + $this->userName = $userName; + return $this; + } + /** + * Gets bankCardNo + * + * @return string + */ + public function getBankCardNo() + { + return $this->bankCardNo; + } + + /** + * Sets bankCardNo + * + * @param string $bankCardNo + * @return CertOrderRequest + */ + public function setBankCardNo($bankCardNo) + { + $this->bankCardNo = $bankCardNo; + return $this; + } + /** + * Gets requestTime + * + * @return string + */ + public function getRequestTime() + { + return $this->requestTime; + } + + /** + * Sets requestTime + * + * @param string $requestTime + * @return CertOrderRequest + */ + public function setRequestTime($requestTime) + { + $this->requestTime = $requestTime; + return $this; + } + /** + * Gets remark + * + * @return string + */ + public function getRemark() + { + return $this->remark; + } + + /** + * Sets remark + * + * @param string $remark + * @return CertOrderRequest + */ + public function setRemark($remark) + { + $this->remark = $remark; + return $this; + } + /** + * Gets mobilePhone + * + * @return string + */ + public function getMobilePhone() + { + return $this->mobilePhone; + } + + /** + * Sets mobilePhone + * + * @param string $mobilePhone + * @return CertOrderRequest + */ + public function setMobilePhone($mobilePhone) + { + $this->mobilePhone = $mobilePhone; + return $this; + } + /** + * Gets idCardType + * + * @return string + */ + public function getIdCardType() + { + return $this->idCardType; + } + + /** + * Sets idCardType + * + * @param string $idCardType + * @return CertOrderRequest + */ + public function setIdCardType($idCardType) + { + $this->idCardType = $idCardType; + return $this; + } + /** + * Gets clientSource + * + * @return string + */ + public function getClientSource() + { + return $this->clientSource; + } + + /** + * Sets clientSource + * + * @param string $clientSource + * @return CertOrderRequest + */ + public function setClientSource($clientSource) + { + $this->clientSource = $clientSource; + return $this; + } + /** + * Gets extMap + * + * @return string + */ + public function getExtMap() + { + return $this->extMap; + } + + /** + * Sets extMap + * + * @param string $extMap + * @return CertOrderRequest + */ + public function setExtMap($extMap) + { + $this->extMap = $extMap; + return $this; + } + + public static function getOperationId() + { + return 'certOrder'; + } + + +} diff --git a/lib/Service/Std/Model/CertOrderRequestMarshaller.php b/lib/Service/Std/Model/CertOrderRequestMarshaller.php new file mode 100644 index 0000000..8eac959 --- /dev/null +++ b/lib/Service/Std/Model/CertOrderRequestMarshaller.php @@ -0,0 +1,113 @@ +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->getAuthType() != null){ + $internalRequest->addParameter('authType', ObjectSerializer::sanitizeForSerialization($request->getAuthType(), 'string')); + } + if($request->getRequestNo() != null){ + $internalRequest->addParameter('requestNo', ObjectSerializer::sanitizeForSerialization($request->getRequestNo(), 'string')); + } + if($request->getIdCardNo() != null){ + $internalRequest->addParameter('idCardNo', ObjectSerializer::sanitizeForSerialization($request->getIdCardNo(), 'string')); + } + if($request->getUserName() != null){ + $internalRequest->addParameter('userName', ObjectSerializer::sanitizeForSerialization($request->getUserName(), 'string')); + } + if($request->getBankCardNo() != null){ + $internalRequest->addParameter('bankCardNo', ObjectSerializer::sanitizeForSerialization($request->getBankCardNo(), 'string')); + } + if($request->getRequestTime() != null){ + $internalRequest->addParameter('requestTime', ObjectSerializer::sanitizeForSerialization($request->getRequestTime(), 'string')); + } + if($request->getRemark() != null){ + $internalRequest->addParameter('remark', ObjectSerializer::sanitizeForSerialization($request->getRemark(), 'string')); + } + if($request->getMobilePhone() != null){ + $internalRequest->addParameter('mobilePhone', ObjectSerializer::sanitizeForSerialization($request->getMobilePhone(), 'string')); + } + if($request->getIdCardType() != null){ + $internalRequest->addParameter('idCardType', ObjectSerializer::sanitizeForSerialization($request->getIdCardType(), 'string')); + } + if($request->getClientSource() != null){ + $internalRequest->addParameter('clientSource', ObjectSerializer::sanitizeForSerialization($request->getClientSource(), 'string')); + } + if($request->getExtMap() != null){ + $internalRequest->addParameter('extMap', ObjectSerializer::sanitizeForSerialization($request->getExtMap(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CertOrderRequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/CertOrderResponse.php b/lib/Service/Std/Model/CertOrderResponse.php new file mode 100644 index 0000000..081b95c --- /dev/null +++ b/lib/Service/Std/Model/CertOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return CertOrderAuthResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Std/Model/CertOrderResponseUnMarshaller.php b/lib/Service/Std/Model/CertOrderResponseUnMarshaller.php new file mode 100644 index 0000000..2f9703c --- /dev/null +++ b/lib/Service/Std/Model/CertOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +date; + } + + /** + * Sets date + * + * @param string $date + * @return EndBalanceQueryRequest + */ + public function setDate($date) + { + $this->date = $date; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return EndBalanceQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'endBalanceQuery'; + } + + +} diff --git a/lib/Service/Std/Model/EndBalanceQueryRequestMarshaller.php b/lib/Service/Std/Model/EndBalanceQueryRequestMarshaller.php new file mode 100644 index 0000000..87ae3d8 --- /dev/null +++ b/lib/Service/Std/Model/EndBalanceQueryRequestMarshaller.php @@ -0,0 +1,83 @@ +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->getDate() != null){ + $internalRequest->addParameter('date', ObjectSerializer::sanitizeForSerialization($request->getDate(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +EndBalanceQueryRequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/EndBalanceQueryResponse.php b/lib/Service/Std/Model/EndBalanceQueryResponse.php new file mode 100644 index 0000000..59a7670 --- /dev/null +++ b/lib/Service/Std/Model/EndBalanceQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryBalanceResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Std/Model/EndBalanceQueryResponseUnMarshaller.php b/lib/Service/Std/Model/EndBalanceQueryResponseUnMarshaller.php new file mode 100644 index 0000000..e897acf --- /dev/null +++ b/lib/Service/Std/Model/EndBalanceQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +date; + } + + /** + * Sets date + * + * @param string $date + * @return EndBalanceQueryV10Request + */ + public function setDate($date) + { + $this->date = $date; + return $this; + } + /** + * Gets merchantNo + * + * @return string + */ + public function getMerchantNo() + { + return $this->merchantNo; + } + + /** + * Sets merchantNo + * + * @param string $merchantNo + * @return EndBalanceQueryV10Request + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + + public static function getOperationId() + { + return 'end_balance_query_v1_0'; + } + + +} diff --git a/lib/Service/Std/Model/EndBalanceQueryV10RequestMarshaller.php b/lib/Service/Std/Model/EndBalanceQueryV10RequestMarshaller.php new file mode 100644 index 0000000..74171c9 --- /dev/null +++ b/lib/Service/Std/Model/EndBalanceQueryV10RequestMarshaller.php @@ -0,0 +1,83 @@ +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->getDate() != null){ + $internalRequest->addParameter('date', ObjectSerializer::sanitizeForSerialization($request->getDate(), 'string')); + } + if($request->getMerchantNo() != null){ + $internalRequest->addParameter('merchantNo', ObjectSerializer::sanitizeForSerialization($request->getMerchantNo(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +EndBalanceQueryV10RequestMarshaller::__init(); diff --git a/lib/Service/Std/Model/EndBalanceQueryV10Response.php b/lib/Service/Std/Model/EndBalanceQueryV10Response.php new file mode 100644 index 0000000..ccdf4f6 --- /dev/null +++ b/lib/Service/Std/Model/EndBalanceQueryV10Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return YopQueryBalanceResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Std/Model/EndBalanceQueryV10ResponseUnMarshaller.php b/lib/Service/Std/Model/EndBalanceQueryV10ResponseUnMarshaller.php new file mode 100644 index 0000000..fe548d0 --- /dev/null +++ b/lib/Service/Std/Model/EndBalanceQueryV10ResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'message' => 'string', + 'date' => 'string', + 'balance' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => null, + 'date' => null, + 'balance' => 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', + 'date' => 'date', + 'balance' => 'balance' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'date' => 'setDate', + 'balance' => 'setBalance' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + 'date' => 'getDate', + 'balance' => 'getBalance' + ]; + + /** + * 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['date'] = isset($data['date']) ? $data['date'] : null; + $this->container['balance'] = isset($data['balance']) ? $data['balance'] : 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

返回码
00000 成功

示例值:00000

+ * + * @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 date + * + * @return string + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param string $date

日期

+ * + * @return $this + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets balance + * + * @return string + */ + public function getBalance() + { + return $this->container['balance']; + } + + /** + * Sets balance + * + * @param string $balance

余额

+ * + * @return $this + */ + public function setBalance($balance) + { + $this->container['balance'] = $balance; + + 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)); + } +} + + diff --git a/lib/Service/SupplierRemit/Model/BillDownloadRequest.php b/lib/Service/SupplierRemit/Model/BillDownloadRequest.php new file mode 100644 index 0000000..7350c5a --- /dev/null +++ b/lib/Service/SupplierRemit/Model/BillDownloadRequest.php @@ -0,0 +1,42 @@ +remitDate; + } + + /** + * Sets remitDate + * + * @param string $remitDate + * @return BillDownloadRequest + */ + public function setRemitDate($remitDate) + { + $this->remitDate = $remitDate; + return $this; + } + + public static function getOperationId() + { + return 'billDownload'; + } + + +} diff --git a/lib/Service/SupplierRemit/Model/BillDownloadRequestMarshaller.php b/lib/Service/SupplierRemit/Model/BillDownloadRequestMarshaller.php new file mode 100644 index 0000000..530e1c0 --- /dev/null +++ b/lib/Service/SupplierRemit/Model/BillDownloadRequestMarshaller.php @@ -0,0 +1,81 @@ +serviceName); + $internalRequest->setResourcePath($this->resourcePath); + $internalRequest->setHttpMethod($this->httpMethod); + $internalRequest->setYosFlag(true); + 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->getRemitDate() != null){ + $internalRequest->addParameter('remitDate', ObjectSerializer::sanitizeForSerialization($request->getRemitDate(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +BillDownloadRequestMarshaller::__init(); diff --git a/lib/Service/SupplierRemit/SupplierRemitClient.php b/lib/Service/SupplierRemit/SupplierRemitClient.php new file mode 100644 index 0000000..c9d66a7 --- /dev/null +++ b/lib/Service/SupplierRemit/SupplierRemitClient.php @@ -0,0 +1,48 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\BillDownloadRequest $request + * @return YosDownloadResponse + * @throws YopClientException + */ + public function billDownload(Model\BillDownloadRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + if ($request->getRemitDate() == null) { + throw new YopClientException("request.remitDate is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\BillDownloadRequestMarshaller::getInstance(), + YosDownloadResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/SupplierRemit/SupplierRemitClientBuilder.php b/lib/Service/SupplierRemit/SupplierRemitClientBuilder.php new file mode 100644 index 0000000..ce049bf --- /dev/null +++ b/lib/Service/SupplierRemit/SupplierRemitClientBuilder.php @@ -0,0 +1,68 @@ +register('billDownload', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * SupplierRemitClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new SupplierRemitClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return SupplierRemitClientBuilder + * @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 SupplierRemitClientBuilder($clientParams); + } + +} +SupplierRemitClientBuilder::__init(); diff --git a/lib/Service/TelPay/Model/QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult.php b/lib/Service/TelPay/Model/QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult.php new file mode 100644 index 0000000..a5064cc --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult.php @@ -0,0 +1,392 @@ +电信行业线易宝通应用-支付服务

+ * + * OpenAPI spec version: 1.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\TelPay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'retCode' => 'string', + 'retMsg' => 'string', + 'qrCodeInfo' => '\Yeepay\Yop\Sdk\Service\TelPay\Model\QrcodeBatchGenerateQrCodeApiInfoResult[]', + 'requestId' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'retCode' => null, + 'retMsg' => null, + 'qrCodeInfo' => null, + 'requestId' => 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 = [ + 'retCode' => 'retCode', + 'retMsg' => 'retMsg', + 'qrCodeInfo' => 'qrCodeInfo', + 'requestId' => 'requestId' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg', + 'qrCodeInfo' => 'setQrCodeInfo', + 'requestId' => 'setRequestId' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg', + 'qrCodeInfo' => 'getQrCodeInfo', + 'requestId' => 'getRequestId' + ]; + + /** + * 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['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + $this->container['qrCodeInfo'] = isset($data['qrCodeInfo']) ? $data['qrCodeInfo'] : null; + $this->container['requestId'] = isset($data['requestId']) ? $data['requestId'] : 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 retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode 返回码 + * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg 返回信息 + * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + return $this; + } + + /** + * Gets qrCodeInfo + * + * @return \Yeepay\Yop\Sdk\Service\TelPay\Model\QrcodeBatchGenerateQrCodeApiInfoResult[] + */ + public function getQrCodeInfo() + { + return $this->container['qrCodeInfo']; + } + + /** + * Sets qrCodeInfo + * + * @param \Yeepay\Yop\Sdk\Service\TelPay\Model\QrcodeBatchGenerateQrCodeApiInfoResult[] $qrCodeInfo 二维码信息 + * + * @return $this + */ + public function setQrCodeInfo($qrCodeInfo) + { + $this->container['qrCodeInfo'] = $qrCodeInfo; + + return $this; + } + + /** + * Gets requestId + * + * @return string + */ + public function getRequestId() + { + return $this->container['requestId']; + } + + /** + * Sets requestId + * + * @param string $requestId 请求号 + * + * @return $this + */ + public function setRequestId($requestId) + { + $this->container['requestId'] = $requestId; + + 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)); + } +} + + diff --git a/lib/Service/TelPay/Model/QrcodeBatchGenerateQrCodeApiInfoResult.php b/lib/Service/TelPay/Model/QrcodeBatchGenerateQrCodeApiInfoResult.php new file mode 100644 index 0000000..bb191e2 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeBatchGenerateQrCodeApiInfoResult.php @@ -0,0 +1,452 @@ +电信行业线易宝通应用-支付服务

+ * + * OpenAPI spec version: 1.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\TelPay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * QrcodeBatchGenerateQrCodeApiInfoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class QrcodeBatchGenerateQrCodeApiInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'QrcodeBatchGenerateQrCodeApiInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'qrId' => 'string', + 'merchantNo' => 'string', + 'qrShortName' => 'string', + 'qrStatus' => 'string', + 'qrContent' => 'string', + 'createTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'qrId' => null, + 'merchantNo' => null, + 'qrShortName' => null, + 'qrStatus' => null, + 'qrContent' => null, + 'createTime' => 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 = [ + 'qrId' => 'qrId', + 'merchantNo' => 'merchantNo', + 'qrShortName' => 'qrShortName', + 'qrStatus' => 'qrStatus', + 'qrContent' => 'qrContent', + 'createTime' => 'createTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'qrId' => 'setQrId', + 'merchantNo' => 'setMerchantNo', + 'qrShortName' => 'setQrShortName', + 'qrStatus' => 'setQrStatus', + 'qrContent' => 'setQrContent', + 'createTime' => 'setCreateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'qrId' => 'getQrId', + 'merchantNo' => 'getMerchantNo', + 'qrShortName' => 'getQrShortName', + 'qrStatus' => 'getQrStatus', + 'qrContent' => 'getQrContent', + 'createTime' => 'getCreateTime' + ]; + + /** + * 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['qrId'] = isset($data['qrId']) ? $data['qrId'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['qrShortName'] = isset($data['qrShortName']) ? $data['qrShortName'] : null; + $this->container['qrStatus'] = isset($data['qrStatus']) ? $data['qrStatus'] : null; + $this->container['qrContent'] = isset($data['qrContent']) ? $data['qrContent'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : 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 qrId + * + * @return string + */ + public function getQrId() + { + return $this->container['qrId']; + } + + /** + * Sets qrId + * + * @param string $qrId 二维码id + * + * @return $this + */ + public function setQrId($qrId) + { + $this->container['qrId'] = $qrId; + + 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 qrShortName + * + * @return string + */ + public function getQrShortName() + { + return $this->container['qrShortName']; + } + + /** + * Sets qrShortName + * + * @param string $qrShortName 二维码简称 + * + * @return $this + */ + public function setQrShortName($qrShortName) + { + $this->container['qrShortName'] = $qrShortName; + + return $this; + } + + /** + * Gets qrStatus + * + * @return string + */ + public function getQrStatus() + { + return $this->container['qrStatus']; + } + + /** + * Sets qrStatus + * + * @param string $qrStatus 二维码状态 + * + * @return $this + */ + public function setQrStatus($qrStatus) + { + $this->container['qrStatus'] = $qrStatus; + + return $this; + } + + /** + * Gets qrContent + * + * @return string + */ + public function getQrContent() + { + return $this->container['qrContent']; + } + + /** + * Sets qrContent + * + * @param string $qrContent 二维码地址信息 + * + * @return $this + */ + public function setQrContent($qrContent) + { + $this->container['qrContent'] = $qrContent; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/TelPay/Model/QrcodeBatchGenerateRequest.php b/lib/Service/TelPay/Model/QrcodeBatchGenerateRequest.php new file mode 100644 index 0000000..7a5d157 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeBatchGenerateRequest.php @@ -0,0 +1,142 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return QrcodeBatchGenerateRequest + */ + 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 QrcodeBatchGenerateRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets requestId + * + * @return string + */ + public function getRequestId() + { + return $this->requestId; + } + + /** + * Sets requestId + * + * @param string $requestId + * @return QrcodeBatchGenerateRequest + */ + public function setRequestId($requestId) + { + $this->requestId = $requestId; + return $this; + } + /** + * Gets qrCodeInfo + * + * @return string + */ + public function getQrCodeInfo() + { + return $this->qrCodeInfo; + } + + /** + * Sets qrCodeInfo + * + * @param string $qrCodeInfo + * @return QrcodeBatchGenerateRequest + */ + public function setQrCodeInfo($qrCodeInfo) + { + $this->qrCodeInfo = $qrCodeInfo; + return $this; + } + /** + * Gets districtCode + * + * @return string + */ + public function getDistrictCode() + { + return $this->districtCode; + } + + /** + * Sets districtCode + * + * @param string $districtCode + * @return QrcodeBatchGenerateRequest + */ + public function setDistrictCode($districtCode) + { + $this->districtCode = $districtCode; + return $this; + } + + public static function getOperationId() + { + return 'qrcodeBatchGenerate'; + } + + +} diff --git a/lib/Service/TelPay/Model/QrcodeBatchGenerateRequestMarshaller.php b/lib/Service/TelPay/Model/QrcodeBatchGenerateRequestMarshaller.php new file mode 100644 index 0000000..7a1e1e5 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeBatchGenerateRequestMarshaller.php @@ -0,0 +1,92 @@ +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->getRequestId() != null){ + $internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string')); + } + if($request->getQrCodeInfo() != null){ + $internalRequest->addParameter('qrCodeInfo', ObjectSerializer::sanitizeForSerialization($request->getQrCodeInfo(), 'string')); + } + if($request->getDistrictCode() != null){ + $internalRequest->addParameter('districtCode', ObjectSerializer::sanitizeForSerialization($request->getDistrictCode(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QrcodeBatchGenerateRequestMarshaller::__init(); diff --git a/lib/Service/TelPay/Model/QrcodeBatchGenerateResponse.php b/lib/Service/TelPay/Model/QrcodeBatchGenerateResponse.php new file mode 100644 index 0000000..3e1d8c2 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeBatchGenerateResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QrcodeBatchGenerateBatchGenerateQrCodeResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TelPay/Model/QrcodeBatchGenerateResponseUnMarshaller.php b/lib/Service/TelPay/Model/QrcodeBatchGenerateResponseUnMarshaller.php new file mode 100644 index 0000000..15b0140 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeBatchGenerateResponseUnMarshaller.php @@ -0,0 +1,39 @@ +电信行业线易宝通应用-支付服务

+ * + * OpenAPI spec version: 1.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\TelPay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * QrcodeQueryQrCodeApiInfoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class QrcodeQueryQrCodeApiInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'QrcodeQueryQrCodeApiInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'qrId' => 'string', + 'merchantNo' => 'string', + 'qrShortName' => 'string', + 'qrStatus' => 'string', + 'qrContent' => 'string', + 'createTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'qrId' => null, + 'merchantNo' => null, + 'qrShortName' => null, + 'qrStatus' => null, + 'qrContent' => null, + 'createTime' => 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 = [ + 'qrId' => 'qrId', + 'merchantNo' => 'merchantNo', + 'qrShortName' => 'qrShortName', + 'qrStatus' => 'qrStatus', + 'qrContent' => 'qrContent', + 'createTime' => 'createTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'qrId' => 'setQrId', + 'merchantNo' => 'setMerchantNo', + 'qrShortName' => 'setQrShortName', + 'qrStatus' => 'setQrStatus', + 'qrContent' => 'setQrContent', + 'createTime' => 'setCreateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'qrId' => 'getQrId', + 'merchantNo' => 'getMerchantNo', + 'qrShortName' => 'getQrShortName', + 'qrStatus' => 'getQrStatus', + 'qrContent' => 'getQrContent', + 'createTime' => 'getCreateTime' + ]; + + /** + * 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['qrId'] = isset($data['qrId']) ? $data['qrId'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['qrShortName'] = isset($data['qrShortName']) ? $data['qrShortName'] : null; + $this->container['qrStatus'] = isset($data['qrStatus']) ? $data['qrStatus'] : null; + $this->container['qrContent'] = isset($data['qrContent']) ? $data['qrContent'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : 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 qrId + * + * @return string + */ + public function getQrId() + { + return $this->container['qrId']; + } + + /** + * Sets qrId + * + * @param string $qrId 二维码id + * + * @return $this + */ + public function setQrId($qrId) + { + $this->container['qrId'] = $qrId; + + 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 qrShortName + * + * @return string + */ + public function getQrShortName() + { + return $this->container['qrShortName']; + } + + /** + * Sets qrShortName + * + * @param string $qrShortName 二维码简称 + * + * @return $this + */ + public function setQrShortName($qrShortName) + { + $this->container['qrShortName'] = $qrShortName; + + return $this; + } + + /** + * Gets qrStatus + * + * @return string + */ + public function getQrStatus() + { + return $this->container['qrStatus']; + } + + /** + * Sets qrStatus + * + * @param string $qrStatus 二维码状态 + * + * @return $this + */ + public function setQrStatus($qrStatus) + { + $this->container['qrStatus'] = $qrStatus; + + return $this; + } + + /** + * Gets qrContent + * + * @return string + */ + public function getQrContent() + { + return $this->container['qrContent']; + } + + /** + * Sets qrContent + * + * @param string $qrContent 二维码地址信息 + * + * @return $this + */ + public function setQrContent($qrContent) + { + $this->container['qrContent'] = $qrContent; + + 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; + } + /** + * 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)); + } +} + + diff --git a/lib/Service/TelPay/Model/QrcodeQueryQueryQrCodeApiResponseDTOResult.php b/lib/Service/TelPay/Model/QrcodeQueryQueryQrCodeApiResponseDTOResult.php new file mode 100644 index 0000000..a5c3c03 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeQueryQueryQrCodeApiResponseDTOResult.php @@ -0,0 +1,422 @@ +电信行业线易宝通应用-支付服务

+ * + * OpenAPI spec version: 1.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\TelPay\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * QrcodeQueryQueryQrCodeApiResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class QrcodeQueryQueryQrCodeApiResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'QrcodeQueryQueryQrCodeApiResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'retCode' => 'string', + 'retMsg' => 'string', + 'qrCodeInfo' => '\Yeepay\Yop\Sdk\Service\TelPay\Model\QrcodeQueryQrCodeApiInfoResult[]', + 'requestId' => 'string', + 'totalCount' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'retCode' => null, + 'retMsg' => null, + 'qrCodeInfo' => null, + 'requestId' => null, + 'totalCount' => 'int32' + ]; + + /** + * 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 = [ + 'retCode' => 'retCode', + 'retMsg' => 'retMsg', + 'qrCodeInfo' => 'qrCodeInfo', + 'requestId' => 'requestId', + 'totalCount' => 'totalCount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'retCode' => 'setRetCode', + 'retMsg' => 'setRetMsg', + 'qrCodeInfo' => 'setQrCodeInfo', + 'requestId' => 'setRequestId', + 'totalCount' => 'setTotalCount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'retCode' => 'getRetCode', + 'retMsg' => 'getRetMsg', + 'qrCodeInfo' => 'getQrCodeInfo', + 'requestId' => 'getRequestId', + 'totalCount' => 'getTotalCount' + ]; + + /** + * 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['retCode'] = isset($data['retCode']) ? $data['retCode'] : null; + $this->container['retMsg'] = isset($data['retMsg']) ? $data['retMsg'] : null; + $this->container['qrCodeInfo'] = isset($data['qrCodeInfo']) ? $data['qrCodeInfo'] : null; + $this->container['requestId'] = isset($data['requestId']) ? $data['requestId'] : null; + $this->container['totalCount'] = isset($data['totalCount']) ? $data['totalCount'] : 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 retCode + * + * @return string + */ + public function getRetCode() + { + return $this->container['retCode']; + } + + /** + * Sets retCode + * + * @param string $retCode 返回码 + * + * @return $this + */ + public function setRetCode($retCode) + { + $this->container['retCode'] = $retCode; + + return $this; + } + + /** + * Gets retMsg + * + * @return string + */ + public function getRetMsg() + { + return $this->container['retMsg']; + } + + /** + * Sets retMsg + * + * @param string $retMsg 返回信息 + * + * @return $this + */ + public function setRetMsg($retMsg) + { + $this->container['retMsg'] = $retMsg; + + return $this; + } + + /** + * Gets qrCodeInfo + * + * @return \Yeepay\Yop\Sdk\Service\TelPay\Model\QrcodeQueryQrCodeApiInfoResult[] + */ + public function getQrCodeInfo() + { + return $this->container['qrCodeInfo']; + } + + /** + * Sets qrCodeInfo + * + * @param \Yeepay\Yop\Sdk\Service\TelPay\Model\QrcodeQueryQrCodeApiInfoResult[] $qrCodeInfo 二维码信息 + * + * @return $this + */ + public function setQrCodeInfo($qrCodeInfo) + { + $this->container['qrCodeInfo'] = $qrCodeInfo; + + return $this; + } + + /** + * Gets requestId + * + * @return string + */ + public function getRequestId() + { + return $this->container['requestId']; + } + + /** + * Sets requestId + * + * @param string $requestId 请求号 + * + * @return $this + */ + public function setRequestId($requestId) + { + $this->container['requestId'] = $requestId; + + return $this; + } + + /** + * Gets totalCount + * + * @return int + */ + public function getTotalCount() + { + return $this->container['totalCount']; + } + + /** + * Sets totalCount + * + * @param int $totalCount 总条数 + * + * @return $this + */ + public function setTotalCount($totalCount) + { + $this->container['totalCount'] = $totalCount; + + 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)); + } +} + + diff --git a/lib/Service/TelPay/Model/QrcodeQueryRequest.php b/lib/Service/TelPay/Model/QrcodeQueryRequest.php new file mode 100644 index 0000000..2da13a3 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeQueryRequest.php @@ -0,0 +1,242 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return QrcodeQueryRequest + */ + 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 QrcodeQueryRequest + */ + public function setMerchantNo($merchantNo) + { + $this->merchantNo = $merchantNo; + return $this; + } + /** + * Gets requestId + * + * @return string + */ + public function getRequestId() + { + return $this->requestId; + } + + /** + * Sets requestId + * + * @param string $requestId + * @return QrcodeQueryRequest + */ + public function setRequestId($requestId) + { + $this->requestId = $requestId; + return $this; + } + /** + * Gets pageSize + * + * @return int + */ + public function getPageSize() + { + return $this->pageSize; + } + + /** + * Sets pageSize + * + * @param int $pageSize + * @return QrcodeQueryRequest + */ + public function setPageSize($pageSize) + { + $this->pageSize = $pageSize; + return $this; + } + /** + * Gets pageNo + * + * @return int + */ + public function getPageNo() + { + return $this->pageNo; + } + + /** + * Sets pageNo + * + * @param int $pageNo + * @return QrcodeQueryRequest + */ + public function setPageNo($pageNo) + { + $this->pageNo = $pageNo; + return $this; + } + /** + * Gets qrId + * + * @return string + */ + public function getQrId() + { + return $this->qrId; + } + + /** + * Sets qrId + * + * @param string $qrId + * @return QrcodeQueryRequest + */ + public function setQrId($qrId) + { + $this->qrId = $qrId; + return $this; + } + /** + * Gets startTime + * + * @return string + */ + public function getStartTime() + { + return $this->startTime; + } + + /** + * Sets startTime + * + * @param string $startTime + * @return QrcodeQueryRequest + */ + public function setStartTime($startTime) + { + $this->startTime = $startTime; + return $this; + } + /** + * Gets endTime + * + * @return string + */ + public function getEndTime() + { + return $this->endTime; + } + + /** + * Sets endTime + * + * @param string $endTime + * @return QrcodeQueryRequest + */ + public function setEndTime($endTime) + { + $this->endTime = $endTime; + return $this; + } + /** + * Gets qrStatus + * + * @return string + */ + public function getQrStatus() + { + return $this->qrStatus; + } + + /** + * Sets qrStatus + * + * @param string $qrStatus + * @return QrcodeQueryRequest + */ + public function setQrStatus($qrStatus) + { + $this->qrStatus = $qrStatus; + return $this; + } + + public static function getOperationId() + { + return 'qrcodeQuery'; + } + + +} diff --git a/lib/Service/TelPay/Model/QrcodeQueryRequestMarshaller.php b/lib/Service/TelPay/Model/QrcodeQueryRequestMarshaller.php new file mode 100644 index 0000000..5a78a3c --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeQueryRequestMarshaller.php @@ -0,0 +1,104 @@ +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->getRequestId() != null){ + $internalRequest->addParameter('requestId', ObjectSerializer::sanitizeForSerialization($request->getRequestId(), 'string')); + } + if($request->getPageSize() != null){ + $internalRequest->addParameter('pageSize', ObjectSerializer::sanitizeForSerialization($request->getPageSize(), 'int', 'int32')); + } + if($request->getPageNo() != null){ + $internalRequest->addParameter('pageNo', ObjectSerializer::sanitizeForSerialization($request->getPageNo(), 'int', 'int32')); + } + if($request->getQrId() != null){ + $internalRequest->addParameter('qrId', ObjectSerializer::sanitizeForSerialization($request->getQrId(), 'string')); + } + if($request->getStartTime() != null){ + $internalRequest->addParameter('startTime', ObjectSerializer::sanitizeForSerialization($request->getStartTime(), 'string')); + } + if($request->getEndTime() != null){ + $internalRequest->addParameter('endTime', ObjectSerializer::sanitizeForSerialization($request->getEndTime(), 'string')); + } + if($request->getQrStatus() != null){ + $internalRequest->addParameter('qrStatus', ObjectSerializer::sanitizeForSerialization($request->getQrStatus(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QrcodeQueryRequestMarshaller::__init(); diff --git a/lib/Service/TelPay/Model/QrcodeQueryResponse.php b/lib/Service/TelPay/Model/QrcodeQueryResponse.php new file mode 100644 index 0000000..978aa15 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeQueryResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QrcodeQueryQueryQrCodeApiResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TelPay/Model/QrcodeQueryResponseUnMarshaller.php b/lib/Service/TelPay/Model/QrcodeQueryResponseUnMarshaller.php new file mode 100644 index 0000000..35b23f2 --- /dev/null +++ b/lib/Service/TelPay/Model/QrcodeQueryResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\QrcodeBatchGenerateRequest $request + * @return Model\QrcodeBatchGenerateResponse + * @throws YopClientException + */ + public function qrcodeBatchGenerate(Model\QrcodeBatchGenerateRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QrcodeBatchGenerateRequestMarshaller::getInstance(), + Model\QrcodeBatchGenerateResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QrcodeQueryRequest $request + * @return Model\QrcodeQueryResponse + * @throws YopClientException + */ + public function qrcodeQuery(Model\QrcodeQueryRequest $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->getRequestId() == null) { + throw new YopClientException("request.requestId is required."); + } + if ($request->getPageSize() == null) { + throw new YopClientException("request.pageSize is required."); + } + if ($request->getPageNo() == null) { + throw new YopClientException("request.pageNo is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QrcodeQueryRequestMarshaller::getInstance(), + Model\QrcodeQueryResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/TelPay/TelPayClientBuilder.php b/lib/Service/TelPay/TelPayClientBuilder.php new file mode 100644 index 0000000..ca9ca4b --- /dev/null +++ b/lib/Service/TelPay/TelPayClientBuilder.php @@ -0,0 +1,69 @@ +register('qrcodeBatchGenerate', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('qrcodeQuery', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * TelPayClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new TelPayClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return TelPayClientBuilder + * @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 TelPayClientBuilder($clientParams); + } + +} +TelPayClientBuilder::__init(); diff --git a/lib/Service/Trade/Model/OrderCombineQueryYpPromotionInfoDTOResult.php b/lib/Service/Trade/Model/OrderCombineQueryYpPromotionInfoDTOResult.php new file mode 100644 index 0000000..1476eab --- /dev/null +++ b/lib/Service/Trade/Model/OrderCombineQueryYpPromotionInfoDTOResult.php @@ -0,0 +1,452 @@ +名称(中文):新交易下单接口
名称(英文,xx.war):opr-hessian.war
简介:合单支付下单与标准收款内部下单接口合并
wiki文档地址:http://wiki.yeepay.com/pages/viewpage.action?pageId=122095805(4.新api分组相关接口规划)
预计项目上线时间:2020年6月9日
归属/拟申请的sp编码(可选):opr
期望api分组编码、名称(可选):trade(标准交易)
涉及的接口:申请下单、订单查询、申请退款、退款查询

+ * + * OpenAPI spec version: 1.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\Trade\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * OrderCombineQueryYpPromotionInfoDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrderCombineQueryYpPromotionInfoDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrderCombineQueryYpPromotionInfoDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'marketNo' => 'string', + 'subsidyOrderNo' => 'string', + 'type' => 'string', + 'amount' => 'string', + 'contributeMerchant' => 'string', + 'status' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'marketNo' => null, + 'subsidyOrderNo' => null, + 'type' => null, + 'amount' => null, + 'contributeMerchant' => 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 = [ + 'marketNo' => 'marketNo', + 'subsidyOrderNo' => 'subsidyOrderNo', + 'type' => 'type', + 'amount' => 'amount', + 'contributeMerchant' => 'contributeMerchant', + 'status' => 'status' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'marketNo' => 'setMarketNo', + 'subsidyOrderNo' => 'setSubsidyOrderNo', + 'type' => 'setType', + 'amount' => 'setAmount', + 'contributeMerchant' => 'setContributeMerchant', + 'status' => 'setStatus' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'marketNo' => 'getMarketNo', + 'subsidyOrderNo' => 'getSubsidyOrderNo', + 'type' => 'getType', + 'amount' => 'getAmount', + 'contributeMerchant' => 'getContributeMerchant', + '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['marketNo'] = isset($data['marketNo']) ? $data['marketNo'] : null; + $this->container['subsidyOrderNo'] = isset($data['subsidyOrderNo']) ? $data['subsidyOrderNo'] : null; + $this->container['type'] = isset($data['type']) ? $data['type'] : null; + $this->container['amount'] = isset($data['amount']) ? $data['amount'] : null; + $this->container['contributeMerchant'] = isset($data['contributeMerchant']) ? $data['contributeMerchant'] : 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 marketNo + * + * @return string + */ + public function getMarketNo() + { + return $this->container['marketNo']; + } + + /** + * Sets marketNo + * + * @param string $marketNo 营销活动编号 + * + * @return $this + */ + public function setMarketNo($marketNo) + { + $this->container['marketNo'] = $marketNo; + + return $this; + } + + /** + * Gets subsidyOrderNo + * + * @return string + */ + public function getSubsidyOrderNo() + { + return $this->container['subsidyOrderNo']; + } + + /** + * Sets subsidyOrderNo + * + * @param string $subsidyOrderNo 营销订单号 + * + * @return $this + */ + public function setSubsidyOrderNo($subsidyOrderNo) + { + $this->container['subsidyOrderNo'] = $subsidyOrderNo; + + return $this; + } + + /** + * Gets type + * + * @return string + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string $type 营销类型 + * + * @return $this + */ + public function setType($type) + { + $this->container['type'] = $type; + + return $this; + } + + /** + * Gets amount + * + * @return string + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param string $amount 营销金额 + * + * @return $this + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets contributeMerchant + * + * @return string + */ + public function getContributeMerchant() + { + return $this->container['contributeMerchant']; + } + + /** + * Sets contributeMerchant + * + * @param string $contributeMerchant 出资方商编 + * + * @return $this + */ + public function setContributeMerchant($contributeMerchant) + { + $this->container['contributeMerchant'] = $contributeMerchant; + + 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)); + } +} + + diff --git a/lib/Service/Trade/Model/OrderQueryEnterpriseInfoResult.php b/lib/Service/Trade/Model/OrderQueryEnterpriseInfoResult.php new file mode 100644 index 0000000..981ef57 --- /dev/null +++ b/lib/Service/Trade/Model/OrderQueryEnterpriseInfoResult.php @@ -0,0 +1,332 @@ +名称(中文):新交易下单接口
名称(英文,xx.war):opr-hessian.war
简介:合单支付下单与标准收款内部下单接口合并
wiki文档地址:http://wiki.yeepay.com/pages/viewpage.action?pageId=122095805(4.新api分组相关接口规划)
预计项目上线时间:2020年6月9日
归属/拟申请的sp编码(可选):opr
期望api分组编码、名称(可选):trade(标准交易)
涉及的接口:申请下单、订单查询、申请退款、退款查询

+ * + * OpenAPI spec version: 1.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\Trade\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * OrderQueryEnterpriseInfoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrderQueryEnterpriseInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrderQueryEnterpriseInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'enterpriseId' => 'string', + 'enterprisePayAmount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'enterpriseId' => null, + 'enterprisePayAmount' => 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 = [ + 'enterpriseId' => 'enterpriseId', + 'enterprisePayAmount' => 'enterprisePayAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'enterpriseId' => 'setEnterpriseId', + 'enterprisePayAmount' => 'setEnterprisePayAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'enterpriseId' => 'getEnterpriseId', + 'enterprisePayAmount' => 'getEnterprisePayAmount' + ]; + + /** + * 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['enterpriseId'] = isset($data['enterpriseId']) ? $data['enterpriseId'] : null; + $this->container['enterprisePayAmount'] = isset($data['enterprisePayAmount']) ? $data['enterprisePayAmount'] : 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 enterpriseId + * + * @return string + */ + public function getEnterpriseId() + { + return $this->container['enterpriseId']; + } + + /** + * Sets enterpriseId + * + * @param string $enterpriseId 未命名 + * + * @return $this + */ + public function setEnterpriseId($enterpriseId) + { + $this->container['enterpriseId'] = $enterpriseId; + + return $this; + } + + /** + * Gets enterprisePayAmount + * + * @return float + */ + public function getEnterprisePayAmount() + { + return $this->container['enterprisePayAmount']; + } + + /** + * Sets enterprisePayAmount + * + * @param float $enterprisePayAmount 未命名 + * + * @return $this + */ + public function setEnterprisePayAmount($enterprisePayAmount) + { + $this->container['enterprisePayAmount'] = $enterprisePayAmount; + + 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)); + } +} + + diff --git a/lib/Service/Trade/Model/OrderQueryEnterprisePayInfoResult.php b/lib/Service/Trade/Model/OrderQueryEnterprisePayInfoResult.php new file mode 100644 index 0000000..63de6e6 --- /dev/null +++ b/lib/Service/Trade/Model/OrderQueryEnterprisePayInfoResult.php @@ -0,0 +1,332 @@ +名称(中文):新交易下单接口
名称(英文,xx.war):opr-hessian.war
简介:合单支付下单与标准收款内部下单接口合并
wiki文档地址:http://wiki.yeepay.com/pages/viewpage.action?pageId=122095805(4.新api分组相关接口规划)
预计项目上线时间:2020年6月9日
归属/拟申请的sp编码(可选):opr
期望api分组编码、名称(可选):trade(标准交易)
涉及的接口:申请下单、订单查询、申请退款、退款查询

+ * + * OpenAPI spec version: 1.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\Trade\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * OrderQueryEnterprisePayInfoResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrderQueryEnterprisePayInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrderQueryEnterprisePayInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'enterpriseInfoList' => '\Yeepay\Yop\Sdk\Service\Trade\Model\OrderQueryEnterpriseInfoResult[]', + 'invoiceAmount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'enterpriseInfoList' => null, + 'invoiceAmount' => 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 = [ + 'enterpriseInfoList' => 'enterpriseInfoList', + 'invoiceAmount' => 'invoiceAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'enterpriseInfoList' => 'setEnterpriseInfoList', + 'invoiceAmount' => 'setInvoiceAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'enterpriseInfoList' => 'getEnterpriseInfoList', + 'invoiceAmount' => 'getInvoiceAmount' + ]; + + /** + * 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['enterpriseInfoList'] = isset($data['enterpriseInfoList']) ? $data['enterpriseInfoList'] : null; + $this->container['invoiceAmount'] = isset($data['invoiceAmount']) ? $data['invoiceAmount'] : 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 enterpriseInfoList + * + * @return \Yeepay\Yop\Sdk\Service\Trade\Model\OrderQueryEnterpriseInfoResult[] + */ + public function getEnterpriseInfoList() + { + return $this->container['enterpriseInfoList']; + } + + /** + * Sets enterpriseInfoList + * + * @param \Yeepay\Yop\Sdk\Service\Trade\Model\OrderQueryEnterpriseInfoResult[] $enterpriseInfoList 未命名 + * + * @return $this + */ + public function setEnterpriseInfoList($enterpriseInfoList) + { + $this->container['enterpriseInfoList'] = $enterpriseInfoList; + + return $this; + } + + /** + * Gets invoiceAmount + * + * @return float + */ + public function getInvoiceAmount() + { + return $this->container['invoiceAmount']; + } + + /** + * Sets invoiceAmount + * + * @param float $invoiceAmount 未命名 + * + * @return $this + */ + public function setInvoiceAmount($invoiceAmount) + { + $this->container['invoiceAmount'] = $invoiceAmount; + + 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)); + } +} + + diff --git a/lib/Service/Trade/Model/OrderQueryInstallmentInfoResult.php b/lib/Service/Trade/Model/OrderQueryInstallmentInfoResult.php new file mode 100644 index 0000000..6430869 --- /dev/null +++ b/lib/Service/Trade/Model/OrderQueryInstallmentInfoResult.php @@ -0,0 +1,303 @@ +名称(中文):新交易下单接口
名称(英文,xx.war):opr-hessian.war
简介:合单支付下单与标准收款内部下单接口合并
wiki文档地址:http://wiki.yeepay.com/pages/viewpage.action?pageId=122095805(4.新api分组相关接口规划)
预计项目上线时间:2020年6月9日
归属/拟申请的sp编码(可选):opr
期望api分组编码、名称(可选):trade(标准交易)
涉及的接口:申请下单、订单查询、申请退款、退款查询

+ * + * OpenAPI spec version: 1.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\Trade\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * OrderQueryInstallmentInfoResult Class Doc Comment + * + * @category Class + * @description 信用卡分期信息 + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class OrderQueryInstallmentInfoResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'OrderQueryInstallmentInfoResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'instNumber' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'instNumber' => 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 = [ + 'instNumber' => 'instNumber' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'instNumber' => 'setInstNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'instNumber' => 'getInstNumber' + ]; + + /** + * 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['instNumber'] = isset($data['instNumber']) ? $data['instNumber'] : 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 instNumber + * + * @return string + */ + public function getInstNumber() + { + return $this->container['instNumber']; + } + + /** + * Sets instNumber + * + * @param string $instNumber 信用卡分期期数 + * + * @return $this + */ + public function setInstNumber($instNumber) + { + $this->container['instNumber'] = $instNumber; + + 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)); + } +} + + diff --git a/lib/Service/Trade/Model/RefundReceiptDownloadReceiptResponseDTOResult.php b/lib/Service/Trade/Model/RefundReceiptDownloadReceiptResponseDTOResult.php new file mode 100644 index 0000000..81af981 --- /dev/null +++ b/lib/Service/Trade/Model/RefundReceiptDownloadReceiptResponseDTOResult.php @@ -0,0 +1,362 @@ +名称(中文):新交易下单接口
名称(英文,xx.war):opr-hessian.war
简介:合单支付下单与标准收款内部下单接口合并
wiki文档地址:http://wiki.yeepay.com/pages/viewpage.action?pageId=122095805(4.新api分组相关接口规划)
预计项目上线时间:2020年6月9日
归属/拟申请的sp编码(可选):opr
期望api分组编码、名称(可选):trade(标准交易)
涉及的接口:申请下单、订单查询、申请退款、退款查询

+ * + * OpenAPI spec version: 1.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\Trade\Model; + +use \ArrayAccess; +use Yeepay\Yop\Sdk\Model\ModelInterface; +use Yeepay\Yop\Sdk\Utils\ObjectSerializer; + +/** + * RefundReceiptDownloadReceiptResponseDTOResult Class Doc Comment + * + * @category Class + * @package Yeepay\Yop\Sdk\ + * @author Swagger Codegen team + * @link https://github.com/swagger-api/swagger-codegen + */ +class RefundReceiptDownloadReceiptResponseDTOResult implements ModelInterface, ArrayAccess +{ + const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $swaggerModelName = 'RefundReceiptDownloadReceiptResponseDTOResult'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerTypes = [ + 'code' => 'string', + 'message' => 'string', + 'data' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'message' => 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 = [ + 'code' => 'code', + 'message' => 'message', + 'data' => 'data' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'message' => 'setMessage', + 'data' => 'setData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'message' => 'getMessage', + '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['code'] = isset($data['code']) ? $data['code'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : 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 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 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)); + } +} + + diff --git a/lib/Service/Trade/Model/RefundReceiptDownloadRequest.php b/lib/Service/Trade/Model/RefundReceiptDownloadRequest.php new file mode 100644 index 0000000..55c76b4 --- /dev/null +++ b/lib/Service/Trade/Model/RefundReceiptDownloadRequest.php @@ -0,0 +1,117 @@ +parentMerchantNo; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo + * @return RefundReceiptDownloadRequest + */ + 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 RefundReceiptDownloadRequest + */ + 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 RefundReceiptDownloadRequest + */ + public function setOrderId($orderId) + { + $this->orderId = $orderId; + return $this; + } + /** + * Gets refundRequestId + * + * @return string + */ + public function getRefundRequestId() + { + return $this->refundRequestId; + } + + /** + * Sets refundRequestId + * + * @param string $refundRequestId + * @return RefundReceiptDownloadRequest + */ + public function setRefundRequestId($refundRequestId) + { + $this->refundRequestId = $refundRequestId; + return $this; + } + + public static function getOperationId() + { + return 'refundReceiptDownload'; + } + + +} diff --git a/lib/Service/Trade/Model/RefundReceiptDownloadRequestMarshaller.php b/lib/Service/Trade/Model/RefundReceiptDownloadRequestMarshaller.php new file mode 100644 index 0000000..60240ce --- /dev/null +++ b/lib/Service/Trade/Model/RefundReceiptDownloadRequestMarshaller.php @@ -0,0 +1,89 @@ +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->getOrderId() != null){ + $internalRequest->addParameter('orderId', ObjectSerializer::sanitizeForSerialization($request->getOrderId(), 'string')); + } + if($request->getRefundRequestId() != null){ + $internalRequest->addParameter('refundRequestId', ObjectSerializer::sanitizeForSerialization($request->getRefundRequestId(), 'string')); + } + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +RefundReceiptDownloadRequestMarshaller::__init(); diff --git a/lib/Service/Trade/Model/RefundReceiptDownloadResponse.php b/lib/Service/Trade/Model/RefundReceiptDownloadResponse.php new file mode 100644 index 0000000..96b6450 --- /dev/null +++ b/lib/Service/Trade/Model/RefundReceiptDownloadResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return RefundReceiptDownloadReceiptResponseDTOResult + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/Trade/Model/RefundReceiptDownloadResponseUnMarshaller.php b/lib/Service/Trade/Model/RefundReceiptDownloadResponseUnMarshaller.php new file mode 100644 index 0000000..9d0baef --- /dev/null +++ b/lib/Service/Trade/Model/RefundReceiptDownloadResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'int', + 'mobile' => 'string', + 'supplierChannel' => 'string', + 'acceptAdjust' => 'bool', + 'seats' => 'string', + 'showId' => 'int', + 'drawMode' => 'int', + 'complateNotifyUrl' => 'string', + 'platformUniqueId' => 'string', + 'platformIdAccountInfo' => 'string', + 'merchantNo' => 'string', + 'parentMerchantNo' => 'string', + 'merchantRequestNo' => 'string', + 'parentMerchantRequestNo' => 'string', + 'orderAmount' => 'float' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'seatsCount' => 'int32', + 'mobile' => null, + 'supplierChannel' => null, + 'acceptAdjust' => null, + 'seats' => null, + 'showId' => 'int64', + 'drawMode' => 'int32', + 'complateNotifyUrl' => 'notify-url', + 'platformUniqueId' => null, + 'platformIdAccountInfo' => null, + 'merchantNo' => null, + 'parentMerchantNo' => null, + 'merchantRequestNo' => null, + 'parentMerchantRequestNo' => 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 = [ + 'seatsCount' => 'seatsCount', + 'mobile' => 'mobile', + 'supplierChannel' => 'supplierChannel', + 'acceptAdjust' => 'acceptAdjust', + 'seats' => 'seats', + 'showId' => 'showId', + 'drawMode' => 'drawMode', + 'complateNotifyUrl' => 'complateNotifyUrl', + 'platformUniqueId' => 'platformUniqueId', + 'platformIdAccountInfo' => 'platformIdAccountInfo', + 'merchantNo' => 'merchantNo', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantRequestNo' => 'merchantRequestNo', + 'parentMerchantRequestNo' => 'parentMerchantRequestNo', + 'orderAmount' => 'orderAmount' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'seatsCount' => 'setSeatsCount', + 'mobile' => 'setMobile', + 'supplierChannel' => 'setSupplierChannel', + 'acceptAdjust' => 'setAcceptAdjust', + 'seats' => 'setSeats', + 'showId' => 'setShowId', + 'drawMode' => 'setDrawMode', + 'complateNotifyUrl' => 'setComplateNotifyUrl', + 'platformUniqueId' => 'setPlatformUniqueId', + 'platformIdAccountInfo' => 'setPlatformIdAccountInfo', + 'merchantNo' => 'setMerchantNo', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantRequestNo' => 'setMerchantRequestNo', + 'parentMerchantRequestNo' => 'setParentMerchantRequestNo', + 'orderAmount' => 'setOrderAmount' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'seatsCount' => 'getSeatsCount', + 'mobile' => 'getMobile', + 'supplierChannel' => 'getSupplierChannel', + 'acceptAdjust' => 'getAcceptAdjust', + 'seats' => 'getSeats', + 'showId' => 'getShowId', + 'drawMode' => 'getDrawMode', + 'complateNotifyUrl' => 'getComplateNotifyUrl', + 'platformUniqueId' => 'getPlatformUniqueId', + 'platformIdAccountInfo' => 'getPlatformIdAccountInfo', + 'merchantNo' => 'getMerchantNo', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantRequestNo' => 'getMerchantRequestNo', + 'parentMerchantRequestNo' => 'getParentMerchantRequestNo', + '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['seatsCount'] = isset($data['seatsCount']) ? $data['seatsCount'] : null; + $this->container['mobile'] = isset($data['mobile']) ? $data['mobile'] : null; + $this->container['supplierChannel'] = isset($data['supplierChannel']) ? $data['supplierChannel'] : null; + $this->container['acceptAdjust'] = isset($data['acceptAdjust']) ? $data['acceptAdjust'] : null; + $this->container['seats'] = isset($data['seats']) ? $data['seats'] : null; + $this->container['showId'] = isset($data['showId']) ? $data['showId'] : null; + $this->container['drawMode'] = isset($data['drawMode']) ? $data['drawMode'] : null; + $this->container['complateNotifyUrl'] = isset($data['complateNotifyUrl']) ? $data['complateNotifyUrl'] : null; + $this->container['platformUniqueId'] = isset($data['platformUniqueId']) ? $data['platformUniqueId'] : null; + $this->container['platformIdAccountInfo'] = isset($data['platformIdAccountInfo']) ? $data['platformIdAccountInfo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantRequestNo'] = isset($data['merchantRequestNo']) ? $data['merchantRequestNo'] : null; + $this->container['parentMerchantRequestNo'] = isset($data['parentMerchantRequestNo']) ? $data['parentMerchantRequestNo'] : 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 = []; + + if ($this->container['seatsCount'] === null) { + $invalidProperties[] = "'seatsCount' can't be null"; + } + if ($this->container['supplierChannel'] === null) { + $invalidProperties[] = "'supplierChannel' can't be null"; + } + if ($this->container['acceptAdjust'] === null) { + $invalidProperties[] = "'acceptAdjust' can't be null"; + } + if ($this->container['seats'] === null) { + $invalidProperties[] = "'seats' can't be null"; + } + if ($this->container['showId'] === null) { + $invalidProperties[] = "'showId' can't be null"; + } + if ($this->container['drawMode'] === null) { + $invalidProperties[] = "'drawMode' can't be null"; + } + if ($this->container['platformIdAccountInfo'] === null) { + $invalidProperties[] = "'platformIdAccountInfo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantRequestNo'] === null) { + $invalidProperties[] = "'merchantRequestNo' can't be null"; + } + 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 seatsCount + * + * @return int + */ + public function getSeatsCount() + { + return $this->container['seatsCount']; + } + + /** + * Sets seatsCount + * + * @param int $seatsCount

座位数量

+ * + * @return $this + */ + public function setSeatsCount($seatsCount) + { + $this->container['seatsCount'] = $seatsCount; + + return $this; + } + + /** + * Gets mobile + * + * @return string + */ + public function getMobile() + { + return $this->container['mobile']; + } + + /** + * Sets mobile + * + * @param string $mobile

手机号

+ * + * @return $this + */ + public function setMobile($mobile) + { + $this->container['mobile'] = $mobile; + + return $this; + } + + /** + * Gets supplierChannel + * + * @return string + */ + public function getSupplierChannel() + { + return $this->container['supplierChannel']; + } + + /** + * Sets supplierChannel + * + * @param string $supplierChannel

供应商编码

+ * + * @return $this + */ + public function setSupplierChannel($supplierChannel) + { + $this->container['supplierChannel'] = $supplierChannel; + + return $this; + } + + /** + * Gets acceptAdjust + * + * @return bool + */ + public function getAcceptAdjust() + { + return $this->container['acceptAdjust']; + } + + /** + * Sets acceptAdjust + * + * @param bool $acceptAdjust
是否接受调座
+ * + * @return $this + */ + public function setAcceptAdjust($acceptAdjust) + { + $this->container['acceptAdjust'] = $acceptAdjust; + + return $this; + } + + /** + * Gets seats + * + * @return string + */ + public function getSeats() + { + return $this->container['seats']; + } + + /** + * Sets seats + * + * @param string $seats
原始座位id,多个座位用英文,号分割
+ * + * @return $this + */ + public function setSeats($seats) + { + $this->container['seats'] = $seats; + + return $this; + } + + /** + * Gets showId + * + * @return int + */ + public function getShowId() + { + return $this->container['showId']; + } + + /** + * Sets showId + * + * @param int $showId
场次id
+ * + * @return $this + */ + public function setShowId($showId) + { + $this->container['showId'] = $showId; + + return $this; + } + + /** + * Gets drawMode + * + * @return int + */ + public function getDrawMode() + { + return $this->container['drawMode']; + } + + /** + * Sets drawMode + * + * @param int $drawMode
0:特惠出票 5:快速出票
+ * + * @return $this + */ + public function setDrawMode($drawMode) + { + $this->container['drawMode'] = $drawMode; + + return $this; + } + + /** + * Gets complateNotifyUrl + * + * @return string + */ + public function getComplateNotifyUrl() + { + return $this->container['complateNotifyUrl']; + } + + /** + * Sets complateNotifyUrl + * + * @param string $complateNotifyUrl
订单完成通知地址:订单发货成功、订单取消、订单已完成https://wwww.yeepay.com
+ * + * @return $this + */ + public function setComplateNotifyUrl($complateNotifyUrl) + { + $this->container['complateNotifyUrl'] = $complateNotifyUrl; + + return $this; + } + + /** + * Gets platformUniqueId + * + * @return string + */ + public function getPlatformUniqueId() + { + return $this->container['platformUniqueId']; + } + + /** + * Sets platformUniqueId + * + * @param string $platformUniqueId
平台用户唯一标识,
不传则会使用一个统一的平台用户来作为订单用户
+ * + * @return $this + */ + public function setPlatformUniqueId($platformUniqueId) + { + $this->container['platformUniqueId'] = $platformUniqueId; + + return $this; + } + + /** + * Gets platformIdAccountInfo + * + * @return string + */ + public function getPlatformIdAccountInfo() + { + return $this->container['platformIdAccountInfo']; + } + + /** + * Sets platformIdAccountInfo + * + * @param string $platformIdAccountInfo
供应方平台给采购方分配的账号信息。
platformId与secret要拼接起来使用
aes加密后传递,aes key在对接时找易宝技术支持
加密方式:
platformId=123&secret=abc
将拼接的字符串直接使用aes加密
+ * + * @return $this + */ + public function setPlatformIdAccountInfo($platformIdAccountInfo) + { + $this->container['platformIdAccountInfo'] = $platformIdAccountInfo; + + 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $parentMerchantNo

请求方商编

+ * + * @return $this + */ + public function setParentMerchantNo($parentMerchantNo) + { + $this->container['parentMerchantNo'] = $parentMerchantNo; + + return $this; + } + + /** + * Gets merchantRequestNo + * + * @return string + */ + public function getMerchantRequestNo() + { + return $this->container['merchantRequestNo']; + } + + /** + * Sets merchantRequestNo + * + * @param string $merchantRequestNo

商户订单号

+ * + * @return $this + */ + public function setMerchantRequestNo($merchantRequestNo) + { + $this->container['merchantRequestNo'] = $merchantRequestNo; + + return $this; + } + + /** + * Gets parentMerchantRequestNo + * + * @return string + */ + public function getParentMerchantRequestNo() + { + return $this->container['parentMerchantRequestNo']; + } + + /** + * Sets parentMerchantRequestNo + * + * @param string $parentMerchantRequestNo
请求方订单号
+ * + * @return $this + */ + public function setParentMerchantRequestNo($parentMerchantRequestNo) + { + $this->container['parentMerchantRequestNo'] = $parentMerchantRequestNo; + + return $this; + } + + /** + * Gets orderAmount + * + * @return float + */ + public function getOrderAmount() + { + return $this->container['orderAmount']; + } + + /** + * Sets orderAmount + * + * @param float $orderAmount
订单金额,保留2位小数。

如果传入金额和资源方生成的订单金额不一致则会报错

+ * + * @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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/CreateOrderRequest.php b/lib/Service/TravelResources/Model/CreateOrderRequest.php new file mode 100644 index 0000000..f9524f5 --- /dev/null +++ b/lib/Service/TravelResources/Model/CreateOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return CreateOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'createOrder'; + } + + +} diff --git a/lib/Service/TravelResources/Model/CreateOrderRequestMarshaller.php b/lib/Service/TravelResources/Model/CreateOrderRequestMarshaller.php new file mode 100644 index 0000000..2fc3b5a --- /dev/null +++ b/lib/Service/TravelResources/Model/CreateOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +CreateOrderRequestMarshaller::__init(); diff --git a/lib/Service/TravelResources/Model/CreateOrderResponse.php b/lib/Service/TravelResources/Model/CreateOrderResponse.php new file mode 100644 index 0000000..e9ef59c --- /dev/null +++ b/lib/Service/TravelResources/Model/CreateOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OrderBaseResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TravelResources/Model/CreateOrderResponseUnMarshaller.php b/lib/Service/TravelResources/Model/CreateOrderResponseUnMarshaller.php new file mode 100644 index 0000000..11214c8 --- /dev/null +++ b/lib/Service/TravelResources/Model/CreateOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return KfcOrder0Request + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'kfcOrder_0'; + } + + +} diff --git a/lib/Service/TravelResources/Model/KfcOrder0RequestMarshaller.php b/lib/Service/TravelResources/Model/KfcOrder0RequestMarshaller.php new file mode 100644 index 0000000..cf85d8b --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrder0RequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +KfcOrder0RequestMarshaller::__init(); diff --git a/lib/Service/TravelResources/Model/KfcOrder0Response.php b/lib/Service/TravelResources/Model/KfcOrder0Response.php new file mode 100644 index 0000000..6b0a001 --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrder0Response.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OrderBaseResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TravelResources/Model/KfcOrder0ResponseUnMarshaller.php b/lib/Service/TravelResources/Model/KfcOrder0ResponseUnMarshaller.php new file mode 100644 index 0000000..546a427 --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrder0ResponseUnMarshaller.php @@ -0,0 +1,39 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return KfcOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'kfcOrder'; + } + + +} diff --git a/lib/Service/TravelResources/Model/KfcOrderRequestDTO.php b/lib/Service/TravelResources/Model/KfcOrderRequestDTO.php new file mode 100644 index 0000000..6bdb7d2 --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrderRequestDTO.php @@ -0,0 +1,498 @@ + 'string', + 'merchantNo' => 'string', + 'merchantRequestNo' => 'string', + 'parentMerchantRequestNo' => 'string', + 'supplierChannel' => 'string', + 'platformIdAccountInfo' => 'string', + 'complateNotifyUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantRequestNo' => null, + 'parentMerchantRequestNo' => null, + 'supplierChannel' => null, + 'platformIdAccountInfo' => null, + 'complateNotifyUrl' => 'notify-url' + ]; + + /** + * 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 = [ + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantRequestNo' => 'merchantRequestNo', + 'parentMerchantRequestNo' => 'parentMerchantRequestNo', + 'supplierChannel' => 'supplierChannel', + 'platformIdAccountInfo' => 'platformIdAccountInfo', + 'complateNotifyUrl' => 'complateNotifyUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantRequestNo' => 'setMerchantRequestNo', + 'parentMerchantRequestNo' => 'setParentMerchantRequestNo', + 'supplierChannel' => 'setSupplierChannel', + 'platformIdAccountInfo' => 'setPlatformIdAccountInfo', + 'complateNotifyUrl' => 'setComplateNotifyUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantRequestNo' => 'getMerchantRequestNo', + 'parentMerchantRequestNo' => 'getParentMerchantRequestNo', + 'supplierChannel' => 'getSupplierChannel', + 'platformIdAccountInfo' => 'getPlatformIdAccountInfo', + 'complateNotifyUrl' => 'getComplateNotifyUrl' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantRequestNo'] = isset($data['merchantRequestNo']) ? $data['merchantRequestNo'] : null; + $this->container['parentMerchantRequestNo'] = isset($data['parentMerchantRequestNo']) ? $data['parentMerchantRequestNo'] : null; + $this->container['supplierChannel'] = isset($data['supplierChannel']) ? $data['supplierChannel'] : null; + $this->container['platformIdAccountInfo'] = isset($data['platformIdAccountInfo']) ? $data['platformIdAccountInfo'] : null; + $this->container['complateNotifyUrl'] = isset($data['complateNotifyUrl']) ? $data['complateNotifyUrl'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['merchantRequestNo'] === null) { + $invalidProperties[] = "'merchantRequestNo' can't be null"; + } + if ($this->container['supplierChannel'] === null) { + $invalidProperties[] = "'supplierChannel' can't be null"; + } + if ($this->container['platformIdAccountInfo'] === null) { + $invalidProperties[] = "'platformIdAccountInfo' can't be null"; + } + 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

业务商编

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantRequestNo + * + * @return string + */ + public function getMerchantRequestNo() + { + return $this->container['merchantRequestNo']; + } + + /** + * Sets merchantRequestNo + * + * @param string $merchantRequestNo

商户订单号(与千猪的订单号要相同)

+ * + * @return $this + */ + public function setMerchantRequestNo($merchantRequestNo) + { + $this->container['merchantRequestNo'] = $merchantRequestNo; + + return $this; + } + + /** + * Gets parentMerchantRequestNo + * + * @return string + */ + public function getParentMerchantRequestNo() + { + return $this->container['parentMerchantRequestNo']; + } + + /** + * Sets parentMerchantRequestNo + * + * @param string $parentMerchantRequestNo
请求方订单号
+ * + * @return $this + */ + public function setParentMerchantRequestNo($parentMerchantRequestNo) + { + $this->container['parentMerchantRequestNo'] = $parentMerchantRequestNo; + + return $this; + } + + /** + * Gets supplierChannel + * + * @return string + */ + public function getSupplierChannel() + { + return $this->container['supplierChannel']; + } + + /** + * Sets supplierChannel + * + * @param string $supplierChannel

采购渠道

+ * + * @return $this + */ + public function setSupplierChannel($supplierChannel) + { + $this->container['supplierChannel'] = $supplierChannel; + + return $this; + } + + /** + * Gets platformIdAccountInfo + * + * @return string + */ + public function getPlatformIdAccountInfo() + { + return $this->container['platformIdAccountInfo']; + } + + /** + * Sets platformIdAccountInfo + * + * @param string $platformIdAccountInfo
供应方平台给采购方分配的秘钥
platformId与secret要拼接起来使用aes加密后传递
aes key在对接时找易宝技术支持
加密方式:
platformId=123&secret=abc 将拼接的字符串直接使用aes加密
+ * + * @return $this + */ + public function setPlatformIdAccountInfo($platformIdAccountInfo) + { + $this->container['platformIdAccountInfo'] = $platformIdAccountInfo; + + return $this; + } + + /** + * Gets complateNotifyUrl + * + * @return string + */ + public function getComplateNotifyUrl() + { + return $this->container['complateNotifyUrl']; + } + + /** + * Sets complateNotifyUrl + * + * @param string $complateNotifyUrl
订单完成通知地址:订单发货成功、订单取消、订单已完成
+ * + * @return $this + */ + public function setComplateNotifyUrl($complateNotifyUrl) + { + $this->container['complateNotifyUrl'] = $complateNotifyUrl; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/KfcOrderRequestMarshaller.php b/lib/Service/TravelResources/Model/KfcOrderRequestMarshaller.php new file mode 100644 index 0000000..5dc5e99 --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +KfcOrderRequestMarshaller::__init(); diff --git a/lib/Service/TravelResources/Model/KfcOrderResponse.php b/lib/Service/TravelResources/Model/KfcOrderResponse.php new file mode 100644 index 0000000..82aaa8e --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return OrderBaseResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TravelResources/Model/KfcOrderResponseUnMarshaller.php b/lib/Service/TravelResources/Model/KfcOrderResponseUnMarshaller.php new file mode 100644 index 0000000..b38b7b2 --- /dev/null +++ b/lib/Service/TravelResources/Model/KfcOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'orderStatus' => 'string', + 'supplierChannel' => 'string', + 'message' => 'string', + 'paymentUniqueOrderNo' => 'string', + 'orderAmount' => 'float', + 'complateTime' => 'string', + 'cancelTime' => 'string', + 'orderSuccessTime' => 'string', + 'systemOrderNo' => 'string', + 'paySuccessTime' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantRequestNo' => 'string', + 'parentMerchantRequestNo' => 'string', + 'supplierOrderNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'orderStatus' => null, + 'supplierChannel' => null, + 'message' => null, + 'paymentUniqueOrderNo' => null, + 'orderAmount' => null, + 'complateTime' => null, + 'cancelTime' => null, + 'orderSuccessTime' => null, + 'systemOrderNo' => null, + 'paySuccessTime' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantRequestNo' => null, + 'parentMerchantRequestNo' => null, + 'supplierOrderNo' => 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', + 'orderStatus' => 'orderStatus', + 'supplierChannel' => 'supplierChannel', + 'message' => 'message', + 'paymentUniqueOrderNo' => 'paymentUniqueOrderNo', + 'orderAmount' => 'orderAmount', + 'complateTime' => 'complateTime', + 'cancelTime' => 'cancelTime', + 'orderSuccessTime' => 'orderSuccessTime', + 'systemOrderNo' => 'systemOrderNo', + 'paySuccessTime' => 'paySuccessTime', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantRequestNo' => 'merchantRequestNo', + 'parentMerchantRequestNo' => 'parentMerchantRequestNo', + 'supplierOrderNo' => 'supplierOrderNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'orderStatus' => 'setOrderStatus', + 'supplierChannel' => 'setSupplierChannel', + 'message' => 'setMessage', + 'paymentUniqueOrderNo' => 'setPaymentUniqueOrderNo', + 'orderAmount' => 'setOrderAmount', + 'complateTime' => 'setComplateTime', + 'cancelTime' => 'setCancelTime', + 'orderSuccessTime' => 'setOrderSuccessTime', + 'systemOrderNo' => 'setSystemOrderNo', + 'paySuccessTime' => 'setPaySuccessTime', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantRequestNo' => 'setMerchantRequestNo', + 'parentMerchantRequestNo' => 'setParentMerchantRequestNo', + 'supplierOrderNo' => 'setSupplierOrderNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'orderStatus' => 'getOrderStatus', + 'supplierChannel' => 'getSupplierChannel', + 'message' => 'getMessage', + 'paymentUniqueOrderNo' => 'getPaymentUniqueOrderNo', + 'orderAmount' => 'getOrderAmount', + 'complateTime' => 'getComplateTime', + 'cancelTime' => 'getCancelTime', + 'orderSuccessTime' => 'getOrderSuccessTime', + 'systemOrderNo' => 'getSystemOrderNo', + 'paySuccessTime' => 'getPaySuccessTime', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantRequestNo' => 'getMerchantRequestNo', + 'parentMerchantRequestNo' => 'getParentMerchantRequestNo', + 'supplierOrderNo' => 'getSupplierOrderNo' + ]; + + /** + * 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['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['supplierChannel'] = isset($data['supplierChannel']) ? $data['supplierChannel'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['paymentUniqueOrderNo'] = isset($data['paymentUniqueOrderNo']) ? $data['paymentUniqueOrderNo'] : null; + $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['complateTime'] = isset($data['complateTime']) ? $data['complateTime'] : null; + $this->container['cancelTime'] = isset($data['cancelTime']) ? $data['cancelTime'] : null; + $this->container['orderSuccessTime'] = isset($data['orderSuccessTime']) ? $data['orderSuccessTime'] : null; + $this->container['systemOrderNo'] = isset($data['systemOrderNo']) ? $data['systemOrderNo'] : null; + $this->container['paySuccessTime'] = isset($data['paySuccessTime']) ? $data['paySuccessTime'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantRequestNo'] = isset($data['merchantRequestNo']) ? $data['merchantRequestNo'] : null; + $this->container['parentMerchantRequestNo'] = isset($data['parentMerchantRequestNo']) ? $data['parentMerchantRequestNo'] : null; + $this->container['supplierOrderNo'] = isset($data['supplierOrderNo']) ? $data['supplierOrderNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderStatus'] === null) { + $invalidProperties[] = "'orderStatus' can't be null"; + } + if ($this->container['supplierChannel'] === null) { + $invalidProperties[] = "'supplierChannel' can't be null"; + } + if ($this->container['orderAmount'] === null) { + $invalidProperties[] = "'orderAmount' can't be null"; + } + if ($this->container['systemOrderNo'] === null) { + $invalidProperties[] = "'systemOrderNo' can't be null"; + } + if ($this->container['paySuccessTime'] === null) { + $invalidProperties[] = "'paySuccessTime' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['merchantRequestNo'] === null) { + $invalidProperties[] = "'merchantRequestNo' can't be null"; + } + 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

代表本次请求成功,订单状态需要关注orderStatus

+ * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets orderStatus + * + * @return string + */ + public function getOrderStatus() + { + return $this->container['orderStatus']; + } + + /** + * Sets orderStatus + * + * @param string $orderStatus
/_**
* 订单状态:
* 0:待支付
* 1:待出货(已支付)
* 2:已出货
* 3:已取消
* 4:交易完成
* 部分退款/取消,对应已出货;全部退款,对应已取消
*_/
+ * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets supplierChannel + * + * @return string + */ + public function getSupplierChannel() + { + return $this->container['supplierChannel']; + } + + /** + * Sets supplierChannel + * + * @param string $supplierChannel
供应商渠道
+ * + * @return $this + */ + public function setSupplierChannel($supplierChannel) + { + $this->container['supplierChannel'] = $supplierChannel; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets paymentUniqueOrderNo + * + * @return string + */ + public function getPaymentUniqueOrderNo() + { + return $this->container['paymentUniqueOrderNo']; + } + + /** + * Sets paymentUniqueOrderNo + * + * @param string $paymentUniqueOrderNo
支付请求流水号
+ * + * @return $this + */ + public function setPaymentUniqueOrderNo($paymentUniqueOrderNo) + { + $this->container['paymentUniqueOrderNo'] = $paymentUniqueOrderNo; + + 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 complateTime + * + * @return string + */ + public function getComplateTime() + { + return $this->container['complateTime']; + } + + /** + * Sets complateTime + * + * @param string $complateTime
完成时间。订单出货成功时返回
+ * + * @return $this + */ + public function setComplateTime($complateTime) + { + $this->container['complateTime'] = $complateTime; + + return $this; + } + + /** + * Gets cancelTime + * + * @return string + */ + public function getCancelTime() + { + return $this->container['cancelTime']; + } + + /** + * Sets cancelTime + * + * @param string $cancelTime

订单取消时返回,取消时间

+ * + * @return $this + */ + public function setCancelTime($cancelTime) + { + $this->container['cancelTime'] = $cancelTime; + + return $this; + } + + /** + * Gets orderSuccessTime + * + * @return string + */ + public function getOrderSuccessTime() + { + return $this->container['orderSuccessTime']; + } + + /** + * Sets orderSuccessTime + * + * @param string $orderSuccessTime
下单成功时间。下单成功时返回
+ * + * @return $this + */ + public function setOrderSuccessTime($orderSuccessTime) + { + $this->container['orderSuccessTime'] = $orderSuccessTime; + + return $this; + } + + /** + * Gets systemOrderNo + * + * @return string + */ + public function getSystemOrderNo() + { + return $this->container['systemOrderNo']; + } + + /** + * Sets systemOrderNo + * + * @param string $systemOrderNo
系统返回唯一订单号
+ * + * @return $this + */ + public function setSystemOrderNo($systemOrderNo) + { + $this->container['systemOrderNo'] = $systemOrderNo; + + return $this; + } + + /** + * Gets paySuccessTime + * + * @return string + */ + public function getPaySuccessTime() + { + return $this->container['paySuccessTime']; + } + + /** + * Sets paySuccessTime + * + * @param string $paySuccessTime
支付成功时间。支付成功时返回
+ * + * @return $this + */ + public function setPaySuccessTime($paySuccessTime) + { + $this->container['paySuccessTime'] = $paySuccessTime; + + return $this; + } + + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

业务商编

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantRequestNo + * + * @return string + */ + public function getMerchantRequestNo() + { + return $this->container['merchantRequestNo']; + } + + /** + * Sets merchantRequestNo + * + * @param string $merchantRequestNo

商户订单号

+ * + * @return $this + */ + public function setMerchantRequestNo($merchantRequestNo) + { + $this->container['merchantRequestNo'] = $merchantRequestNo; + + return $this; + } + + /** + * Gets parentMerchantRequestNo + * + * @return string + */ + public function getParentMerchantRequestNo() + { + return $this->container['parentMerchantRequestNo']; + } + + /** + * Sets parentMerchantRequestNo + * + * @param string $parentMerchantRequestNo
请求方订单号
+ * + * @return $this + */ + public function setParentMerchantRequestNo($parentMerchantRequestNo) + { + $this->container['parentMerchantRequestNo'] = $parentMerchantRequestNo; + + return $this; + } + + /** + * Gets supplierOrderNo + * + * @return string + */ + public function getSupplierOrderNo() + { + return $this->container['supplierOrderNo']; + } + + /** + * Sets supplierOrderNo + * + * @param string $supplierOrderNo
资源方订单号
+ * + * @return $this + */ + public function setSupplierOrderNo($supplierOrderNo) + { + $this->container['supplierOrderNo'] = $supplierOrderNo; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QuerKfcOrderDataBeanDTO.php b/lib/Service/TravelResources/Model/QuerKfcOrderDataBeanDTO.php new file mode 100644 index 0000000..96e4298 --- /dev/null +++ b/lib/Service/TravelResources/Model/QuerKfcOrderDataBeanDTO.php @@ -0,0 +1,1254 @@ + 'float', + 'marketUnitPrice' => 'float', + 'refundPrice' => 'float', + 'kfcPlaceOrder' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcPlaceOrderBean', + 'unitPrice' => 'float', + 'orderNo' => 'string', + 'quantity' => 'int', + 'ticket' => 'string', + 'commissionPrice' => 'float', + 'userId' => 'int', + 'userRemark' => 'string', + 'userMobile' => 'string', + 'cancelTime' => 'string', + 'userName' => 'string', + 'kfcOrderMobileSuffix' => 'string', + 'kfcOrderMobileRemark' => 'string', + 'platformUniqueId' => 'string', + 'takeout' => 'bool', + 'takeoutPrice' => 'float', + 'takeoutProvinceName' => 'string', + 'takeoutProvinceCode' => 'string', + 'takeoutCityName' => 'string', + 'takeoutCityCode' => 'string', + 'takeoutRegionName' => 'string', + 'takeoutRegionCode' => 'string', + 'takeoutMainAddress' => 'string', + 'takeoutDetailAddress' => 'string', + 'takeoutLon' => 'string', + 'takeoutLat' => 'string', + 'takeoutDeliveryTime' => 'string', + 'createTime' => 'string', + 'updateTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'totalPrice' => null, + 'marketUnitPrice' => null, + 'refundPrice' => null, + 'kfcPlaceOrder' => null, + 'unitPrice' => null, + 'orderNo' => null, + 'quantity' => 'int32', + 'ticket' => null, + 'commissionPrice' => null, + 'userId' => 'int32', + 'userRemark' => null, + 'userMobile' => null, + 'cancelTime' => null, + 'userName' => null, + 'kfcOrderMobileSuffix' => null, + 'kfcOrderMobileRemark' => null, + 'platformUniqueId' => null, + 'takeout' => null, + 'takeoutPrice' => null, + 'takeoutProvinceName' => null, + 'takeoutProvinceCode' => null, + 'takeoutCityName' => null, + 'takeoutCityCode' => null, + 'takeoutRegionName' => null, + 'takeoutRegionCode' => null, + 'takeoutMainAddress' => null, + 'takeoutDetailAddress' => null, + 'takeoutLon' => null, + 'takeoutLat' => null, + 'takeoutDeliveryTime' => null, + 'createTime' => null, + 'updateTime' => 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 = [ + 'totalPrice' => 'totalPrice', + 'marketUnitPrice' => 'marketUnitPrice', + 'refundPrice' => 'refundPrice', + 'kfcPlaceOrder' => 'kfcPlaceOrder', + 'unitPrice' => 'unitPrice', + 'orderNo' => 'orderNo', + 'quantity' => 'quantity', + 'ticket' => 'ticket', + 'commissionPrice' => 'commissionPrice', + 'userId' => 'userId', + 'userRemark' => 'userRemark', + 'userMobile' => 'userMobile', + 'cancelTime' => 'cancelTime', + 'userName' => 'userName', + 'kfcOrderMobileSuffix' => 'kfcOrderMobileSuffix', + 'kfcOrderMobileRemark' => 'kfcOrderMobileRemark', + 'platformUniqueId' => 'platformUniqueId', + 'takeout' => 'takeout', + 'takeoutPrice' => 'takeoutPrice', + 'takeoutProvinceName' => 'takeoutProvinceName', + 'takeoutProvinceCode' => 'takeoutProvinceCode', + 'takeoutCityName' => 'takeoutCityName', + 'takeoutCityCode' => 'takeoutCityCode', + 'takeoutRegionName' => 'takeoutRegionName', + 'takeoutRegionCode' => 'takeoutRegionCode', + 'takeoutMainAddress' => 'takeoutMainAddress', + 'takeoutDetailAddress' => 'takeoutDetailAddress', + 'takeoutLon' => 'takeoutLon', + 'takeoutLat' => 'takeoutLat', + 'takeoutDeliveryTime' => 'takeoutDeliveryTime', + 'createTime' => 'createTime', + 'updateTime' => 'updateTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'totalPrice' => 'setTotalPrice', + 'marketUnitPrice' => 'setMarketUnitPrice', + 'refundPrice' => 'setRefundPrice', + 'kfcPlaceOrder' => 'setKfcPlaceOrder', + 'unitPrice' => 'setUnitPrice', + 'orderNo' => 'setOrderNo', + 'quantity' => 'setQuantity', + 'ticket' => 'setTicket', + 'commissionPrice' => 'setCommissionPrice', + 'userId' => 'setUserId', + 'userRemark' => 'setUserRemark', + 'userMobile' => 'setUserMobile', + 'cancelTime' => 'setCancelTime', + 'userName' => 'setUserName', + 'kfcOrderMobileSuffix' => 'setKfcOrderMobileSuffix', + 'kfcOrderMobileRemark' => 'setKfcOrderMobileRemark', + 'platformUniqueId' => 'setPlatformUniqueId', + 'takeout' => 'setTakeout', + 'takeoutPrice' => 'setTakeoutPrice', + 'takeoutProvinceName' => 'setTakeoutProvinceName', + 'takeoutProvinceCode' => 'setTakeoutProvinceCode', + 'takeoutCityName' => 'setTakeoutCityName', + 'takeoutCityCode' => 'setTakeoutCityCode', + 'takeoutRegionName' => 'setTakeoutRegionName', + 'takeoutRegionCode' => 'setTakeoutRegionCode', + 'takeoutMainAddress' => 'setTakeoutMainAddress', + 'takeoutDetailAddress' => 'setTakeoutDetailAddress', + 'takeoutLon' => 'setTakeoutLon', + 'takeoutLat' => 'setTakeoutLat', + 'takeoutDeliveryTime' => 'setTakeoutDeliveryTime', + 'createTime' => 'setCreateTime', + 'updateTime' => 'setUpdateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'totalPrice' => 'getTotalPrice', + 'marketUnitPrice' => 'getMarketUnitPrice', + 'refundPrice' => 'getRefundPrice', + 'kfcPlaceOrder' => 'getKfcPlaceOrder', + 'unitPrice' => 'getUnitPrice', + 'orderNo' => 'getOrderNo', + 'quantity' => 'getQuantity', + 'ticket' => 'getTicket', + 'commissionPrice' => 'getCommissionPrice', + 'userId' => 'getUserId', + 'userRemark' => 'getUserRemark', + 'userMobile' => 'getUserMobile', + 'cancelTime' => 'getCancelTime', + 'userName' => 'getUserName', + 'kfcOrderMobileSuffix' => 'getKfcOrderMobileSuffix', + 'kfcOrderMobileRemark' => 'getKfcOrderMobileRemark', + 'platformUniqueId' => 'getPlatformUniqueId', + 'takeout' => 'getTakeout', + 'takeoutPrice' => 'getTakeoutPrice', + 'takeoutProvinceName' => 'getTakeoutProvinceName', + 'takeoutProvinceCode' => 'getTakeoutProvinceCode', + 'takeoutCityName' => 'getTakeoutCityName', + 'takeoutCityCode' => 'getTakeoutCityCode', + 'takeoutRegionName' => 'getTakeoutRegionName', + 'takeoutRegionCode' => 'getTakeoutRegionCode', + 'takeoutMainAddress' => 'getTakeoutMainAddress', + 'takeoutDetailAddress' => 'getTakeoutDetailAddress', + 'takeoutLon' => 'getTakeoutLon', + 'takeoutLat' => 'getTakeoutLat', + 'takeoutDeliveryTime' => 'getTakeoutDeliveryTime', + 'createTime' => 'getCreateTime', + 'updateTime' => 'getUpdateTime' + ]; + + /** + * 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['totalPrice'] = isset($data['totalPrice']) ? $data['totalPrice'] : null; + $this->container['marketUnitPrice'] = isset($data['marketUnitPrice']) ? $data['marketUnitPrice'] : null; + $this->container['refundPrice'] = isset($data['refundPrice']) ? $data['refundPrice'] : null; + $this->container['kfcPlaceOrder'] = isset($data['kfcPlaceOrder']) ? $data['kfcPlaceOrder'] : null; + $this->container['unitPrice'] = isset($data['unitPrice']) ? $data['unitPrice'] : null; + $this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['ticket'] = isset($data['ticket']) ? $data['ticket'] : null; + $this->container['commissionPrice'] = isset($data['commissionPrice']) ? $data['commissionPrice'] : null; + $this->container['userId'] = isset($data['userId']) ? $data['userId'] : null; + $this->container['userRemark'] = isset($data['userRemark']) ? $data['userRemark'] : null; + $this->container['userMobile'] = isset($data['userMobile']) ? $data['userMobile'] : null; + $this->container['cancelTime'] = isset($data['cancelTime']) ? $data['cancelTime'] : null; + $this->container['userName'] = isset($data['userName']) ? $data['userName'] : null; + $this->container['kfcOrderMobileSuffix'] = isset($data['kfcOrderMobileSuffix']) ? $data['kfcOrderMobileSuffix'] : null; + $this->container['kfcOrderMobileRemark'] = isset($data['kfcOrderMobileRemark']) ? $data['kfcOrderMobileRemark'] : null; + $this->container['platformUniqueId'] = isset($data['platformUniqueId']) ? $data['platformUniqueId'] : null; + $this->container['takeout'] = isset($data['takeout']) ? $data['takeout'] : null; + $this->container['takeoutPrice'] = isset($data['takeoutPrice']) ? $data['takeoutPrice'] : null; + $this->container['takeoutProvinceName'] = isset($data['takeoutProvinceName']) ? $data['takeoutProvinceName'] : null; + $this->container['takeoutProvinceCode'] = isset($data['takeoutProvinceCode']) ? $data['takeoutProvinceCode'] : null; + $this->container['takeoutCityName'] = isset($data['takeoutCityName']) ? $data['takeoutCityName'] : null; + $this->container['takeoutCityCode'] = isset($data['takeoutCityCode']) ? $data['takeoutCityCode'] : null; + $this->container['takeoutRegionName'] = isset($data['takeoutRegionName']) ? $data['takeoutRegionName'] : null; + $this->container['takeoutRegionCode'] = isset($data['takeoutRegionCode']) ? $data['takeoutRegionCode'] : null; + $this->container['takeoutMainAddress'] = isset($data['takeoutMainAddress']) ? $data['takeoutMainAddress'] : null; + $this->container['takeoutDetailAddress'] = isset($data['takeoutDetailAddress']) ? $data['takeoutDetailAddress'] : null; + $this->container['takeoutLon'] = isset($data['takeoutLon']) ? $data['takeoutLon'] : null; + $this->container['takeoutLat'] = isset($data['takeoutLat']) ? $data['takeoutLat'] : null; + $this->container['takeoutDeliveryTime'] = isset($data['takeoutDeliveryTime']) ? $data['takeoutDeliveryTime'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['updateTime'] = isset($data['updateTime']) ? $data['updateTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['totalPrice'] === null) { + $invalidProperties[] = "'totalPrice' can't be null"; + } + if ($this->container['marketUnitPrice'] === null) { + $invalidProperties[] = "'marketUnitPrice' can't be null"; + } + if ($this->container['unitPrice'] === null) { + $invalidProperties[] = "'unitPrice' can't be null"; + } + if ($this->container['orderNo'] === null) { + $invalidProperties[] = "'orderNo' can't be null"; + } + if ($this->container['quantity'] === null) { + $invalidProperties[] = "'quantity' can't be null"; + } + if ($this->container['ticket'] === null) { + $invalidProperties[] = "'ticket' can't be null"; + } + if ($this->container['userId'] === null) { + $invalidProperties[] = "'userId' can't be null"; + } + 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 totalPrice + * + * @return float + */ + public function getTotalPrice() + { + return $this->container['totalPrice']; + } + + /** + * Sets totalPrice + * + * @param float $totalPrice
总价(元)
+ * + * @return $this + */ + public function setTotalPrice($totalPrice) + { + $this->container['totalPrice'] = $totalPrice; + + return $this; + } + + /** + * Gets marketUnitPrice + * + * @return float + */ + public function getMarketUnitPrice() + { + return $this->container['marketUnitPrice']; + } + + /** + * Sets marketUnitPrice + * + * @param float $marketUnitPrice
市场价(元)
+ * + * @return $this + */ + public function setMarketUnitPrice($marketUnitPrice) + { + $this->container['marketUnitPrice'] = $marketUnitPrice; + + return $this; + } + + /** + * Gets refundPrice + * + * @return float + */ + public function getRefundPrice() + { + return $this->container['refundPrice']; + } + + /** + * Sets refundPrice + * + * @param float $refundPrice
退款金额(元)
+ * + * @return $this + */ + public function setRefundPrice($refundPrice) + { + $this->container['refundPrice'] = $refundPrice; + + return $this; + } + + /** + * Gets kfcPlaceOrder + * + * @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcPlaceOrderBean + */ + public function getKfcPlaceOrder() + { + return $this->container['kfcPlaceOrder']; + } + + /** + * Sets kfcPlaceOrder + * + * @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcPlaceOrderBean $kfcPlaceOrder kfcPlaceOrder + * + * @return $this + */ + public function setKfcPlaceOrder($kfcPlaceOrder) + { + $this->container['kfcPlaceOrder'] = $kfcPlaceOrder; + + return $this; + } + + /** + * Gets unitPrice + * + * @return float + */ + public function getUnitPrice() + { + return $this->container['unitPrice']; + } + + /** + * Sets unitPrice + * + * @param float $unitPrice
单价(元)
+ * + * @return $this + */ + public function setUnitPrice($unitPrice) + { + $this->container['unitPrice'] = $unitPrice; + + 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 quantity + * + * @return int + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param int $quantity
数量
+ * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets ticket + * + * @return string + */ + public function getTicket() + { + return $this->container['ticket']; + } + + /** + * Sets ticket + * + * @param string $ticket
取餐码
+ * + * @return $this + */ + public function setTicket($ticket) + { + $this->container['ticket'] = $ticket; + + return $this; + } + + /** + * Gets commissionPrice + * + * @return float + */ + public function getCommissionPrice() + { + return $this->container['commissionPrice']; + } + + /** + * Sets commissionPrice + * + * @param float $commissionPrice
佣金(元),此字段在交易完成时才会有值
+ * + * @return $this + */ + public function setCommissionPrice($commissionPrice) + { + $this->container['commissionPrice'] = $commissionPrice; + + return $this; + } + + /** + * Gets userId + * + * @return int + */ + public function getUserId() + { + return $this->container['userId']; + } + + /** + * Sets userId + * + * @param int $userId
用户id
+ * + * @return $this + */ + public function setUserId($userId) + { + $this->container['userId'] = $userId; + + return $this; + } + + /** + * Gets userRemark + * + * @return string + */ + public function getUserRemark() + { + return $this->container['userRemark']; + } + + /** + * Sets userRemark + * + * @param string $userRemark
用户备注
+ * + * @return $this + */ + public function setUserRemark($userRemark) + { + $this->container['userRemark'] = $userRemark; + + return $this; + } + + /** + * Gets userMobile + * + * @return string + */ + public function getUserMobile() + { + return $this->container['userMobile']; + } + + /** + * Sets userMobile + * + * @param string $userMobile
用户手机号码
+ * + * @return $this + */ + public function setUserMobile($userMobile) + { + $this->container['userMobile'] = $userMobile; + + return $this; + } + + /** + * Gets cancelTime + * + * @return string + */ + public function getCancelTime() + { + return $this->container['cancelTime']; + } + + /** + * Sets cancelTime + * + * @param string $cancelTime
取消时间
+ * + * @return $this + */ + public function setCancelTime($cancelTime) + { + $this->container['cancelTime'] = $cancelTime; + + return $this; + } + + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->container['userName']; + } + + /** + * Sets userName + * + * @param string $userName
用户昵称
+ * + * @return $this + */ + public function setUserName($userName) + { + $this->container['userName'] = $userName; + + return $this; + } + + /** + * Gets kfcOrderMobileSuffix + * + * @return string + */ + public function getKfcOrderMobileSuffix() + { + return $this->container['kfcOrderMobileSuffix']; + } + + /** + * Sets kfcOrderMobileSuffix + * + * @param string $kfcOrderMobileSuffix
下单手机后4位(非用户手机号)
+ * + * @return $this + */ + public function setKfcOrderMobileSuffix($kfcOrderMobileSuffix) + { + $this->container['kfcOrderMobileSuffix'] = $kfcOrderMobileSuffix; + + return $this; + } + + /** + * Gets kfcOrderMobileRemark + * + * @return string + */ + public function getKfcOrderMobileRemark() + { + return $this->container['kfcOrderMobileRemark']; + } + + /** + * Sets kfcOrderMobileRemark + * + * @param string $kfcOrderMobileRemark
下单手机备注
+ * + * @return $this + */ + public function setKfcOrderMobileRemark($kfcOrderMobileRemark) + { + $this->container['kfcOrderMobileRemark'] = $kfcOrderMobileRemark; + + return $this; + } + + /** + * Gets platformUniqueId + * + * @return string + */ + public function getPlatformUniqueId() + { + return $this->container['platformUniqueId']; + } + + /** + * Sets platformUniqueId + * + * @param string $platformUniqueId
平台用户唯一标识
+ * + * @return $this + */ + public function setPlatformUniqueId($platformUniqueId) + { + $this->container['platformUniqueId'] = $platformUniqueId; + + return $this; + } + + /** + * Gets takeout + * + * @return bool + */ + public function getTakeout() + { + return $this->container['takeout']; + } + + /** + * Sets takeout + * + * @param bool $takeout
是否外卖
+ * + * @return $this + */ + public function setTakeout($takeout) + { + $this->container['takeout'] = $takeout; + + return $this; + } + + /** + * Gets takeoutPrice + * + * @return float + */ + public function getTakeoutPrice() + { + return $this->container['takeoutPrice']; + } + + /** + * Sets takeoutPrice + * + * @param float $takeoutPrice
外送费(元))
+ * + * @return $this + */ + public function setTakeoutPrice($takeoutPrice) + { + $this->container['takeoutPrice'] = $takeoutPrice; + + return $this; + } + + /** + * Gets takeoutProvinceName + * + * @return string + */ + public function getTakeoutProvinceName() + { + return $this->container['takeoutProvinceName']; + } + + /** + * Sets takeoutProvinceName + * + * @param string $takeoutProvinceName
外卖省份名称
+ * + * @return $this + */ + public function setTakeoutProvinceName($takeoutProvinceName) + { + $this->container['takeoutProvinceName'] = $takeoutProvinceName; + + return $this; + } + + /** + * Gets takeoutProvinceCode + * + * @return string + */ + public function getTakeoutProvinceCode() + { + return $this->container['takeoutProvinceCode']; + } + + /** + * Sets takeoutProvinceCode + * + * @param string $takeoutProvinceCode
外卖省份编号
+ * + * @return $this + */ + public function setTakeoutProvinceCode($takeoutProvinceCode) + { + $this->container['takeoutProvinceCode'] = $takeoutProvinceCode; + + return $this; + } + + /** + * Gets takeoutCityName + * + * @return string + */ + public function getTakeoutCityName() + { + return $this->container['takeoutCityName']; + } + + /** + * Sets takeoutCityName + * + * @param string $takeoutCityName
外卖城市名称
+ * + * @return $this + */ + public function setTakeoutCityName($takeoutCityName) + { + $this->container['takeoutCityName'] = $takeoutCityName; + + return $this; + } + + /** + * Gets takeoutCityCode + * + * @return string + */ + public function getTakeoutCityCode() + { + return $this->container['takeoutCityCode']; + } + + /** + * Sets takeoutCityCode + * + * @param string $takeoutCityCode
外卖城市编号
+ * + * @return $this + */ + public function setTakeoutCityCode($takeoutCityCode) + { + $this->container['takeoutCityCode'] = $takeoutCityCode; + + return $this; + } + + /** + * Gets takeoutRegionName + * + * @return string + */ + public function getTakeoutRegionName() + { + return $this->container['takeoutRegionName']; + } + + /** + * Sets takeoutRegionName + * + * @param string $takeoutRegionName
外卖区域名称
+ * + * @return $this + */ + public function setTakeoutRegionName($takeoutRegionName) + { + $this->container['takeoutRegionName'] = $takeoutRegionName; + + return $this; + } + + /** + * Gets takeoutRegionCode + * + * @return string + */ + public function getTakeoutRegionCode() + { + return $this->container['takeoutRegionCode']; + } + + /** + * Sets takeoutRegionCode + * + * @param string $takeoutRegionCode
外卖区域编号
+ * + * @return $this + */ + public function setTakeoutRegionCode($takeoutRegionCode) + { + $this->container['takeoutRegionCode'] = $takeoutRegionCode; + + return $this; + } + + /** + * Gets takeoutMainAddress + * + * @return string + */ + public function getTakeoutMainAddress() + { + return $this->container['takeoutMainAddress']; + } + + /** + * Sets takeoutMainAddress + * + * @param string $takeoutMainAddress
外卖主要地址
+ * + * @return $this + */ + public function setTakeoutMainAddress($takeoutMainAddress) + { + $this->container['takeoutMainAddress'] = $takeoutMainAddress; + + return $this; + } + + /** + * Gets takeoutDetailAddress + * + * @return string + */ + public function getTakeoutDetailAddress() + { + return $this->container['takeoutDetailAddress']; + } + + /** + * Sets takeoutDetailAddress + * + * @param string $takeoutDetailAddress
外卖详细地址
+ * + * @return $this + */ + public function setTakeoutDetailAddress($takeoutDetailAddress) + { + $this->container['takeoutDetailAddress'] = $takeoutDetailAddress; + + return $this; + } + + /** + * Gets takeoutLon + * + * @return string + */ + public function getTakeoutLon() + { + return $this->container['takeoutLon']; + } + + /** + * Sets takeoutLon + * + * @param string $takeoutLon
外卖地址经度
+ * + * @return $this + */ + public function setTakeoutLon($takeoutLon) + { + $this->container['takeoutLon'] = $takeoutLon; + + return $this; + } + + /** + * Gets takeoutLat + * + * @return string + */ + public function getTakeoutLat() + { + return $this->container['takeoutLat']; + } + + /** + * Sets takeoutLat + * + * @param string $takeoutLat
外卖地址纬度
+ * + * @return $this + */ + public function setTakeoutLat($takeoutLat) + { + $this->container['takeoutLat'] = $takeoutLat; + + return $this; + } + + /** + * Gets takeoutDeliveryTime + * + * @return string + */ + public function getTakeoutDeliveryTime() + { + return $this->container['takeoutDeliveryTime']; + } + + /** + * Sets takeoutDeliveryTime + * + * @param string $takeoutDeliveryTime
外卖预计送达时间
+ * + * @return $this + */ + public function setTakeoutDeliveryTime($takeoutDeliveryTime) + { + $this->container['takeoutDeliveryTime'] = $takeoutDeliveryTime; + + 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 updateTime + * + * @return string + */ + public function getUpdateTime() + { + return $this->container['updateTime']; + } + + /** + * Sets updateTime + * + * @param string $updateTime

千猪系统中订单的最后更新时间

+ * + * @return $this + */ + public function setUpdateTime($updateTime) + { + $this->container['updateTime'] = $updateTime; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderCouponBeanDTO.php b/lib/Service/TravelResources/Model/QueryCinemaOrderCouponBeanDTO.php new file mode 100644 index 0000000..412f509 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderCouponBeanDTO.php @@ -0,0 +1,453 @@ + 'string', + 'couponCodeImageUrl' => 'string', + 'adjusted' => 'bool', + 'couponCode' => 'string', + 'validCode' => 'string', + 'seats' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'couponCodeId' => null, + 'couponCodeImageUrl' => null, + 'adjusted' => null, + 'couponCode' => null, + 'validCode' => null, + 'seats' => 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 = [ + 'couponCodeId' => 'couponCodeId', + 'couponCodeImageUrl' => 'couponCodeImageUrl', + 'adjusted' => 'adjusted', + 'couponCode' => 'couponCode', + 'validCode' => 'validCode', + 'seats' => 'seats' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'couponCodeId' => 'setCouponCodeId', + 'couponCodeImageUrl' => 'setCouponCodeImageUrl', + 'adjusted' => 'setAdjusted', + 'couponCode' => 'setCouponCode', + 'validCode' => 'setValidCode', + 'seats' => 'setSeats' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'couponCodeId' => 'getCouponCodeId', + 'couponCodeImageUrl' => 'getCouponCodeImageUrl', + 'adjusted' => 'getAdjusted', + 'couponCode' => 'getCouponCode', + 'validCode' => 'getValidCode', + 'seats' => 'getSeats' + ]; + + /** + * 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['couponCodeId'] = isset($data['couponCodeId']) ? $data['couponCodeId'] : null; + $this->container['couponCodeImageUrl'] = isset($data['couponCodeImageUrl']) ? $data['couponCodeImageUrl'] : null; + $this->container['adjusted'] = isset($data['adjusted']) ? $data['adjusted'] : null; + $this->container['couponCode'] = isset($data['couponCode']) ? $data['couponCode'] : null; + $this->container['validCode'] = isset($data['validCode']) ? $data['validCode'] : null; + $this->container['seats'] = isset($data['seats']) ? $data['seats'] : 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 couponCodeId + * + * @return string + */ + public function getCouponCodeId() + { + return $this->container['couponCodeId']; + } + + /** + * Sets couponCodeId + * + * @param string $couponCodeId
券码id
+ * + * @return $this + */ + public function setCouponCodeId($couponCodeId) + { + $this->container['couponCodeId'] = $couponCodeId; + + return $this; + } + + /** + * Gets couponCodeImageUrl + * + * @return string + */ + public function getCouponCodeImageUrl() + { + return $this->container['couponCodeImageUrl']; + } + + /** + * Sets couponCodeImageUrl + * + * @param string $couponCodeImageUrl
券码url
+ * + * @return $this + */ + public function setCouponCodeImageUrl($couponCodeImageUrl) + { + $this->container['couponCodeImageUrl'] = $couponCodeImageUrl; + + return $this; + } + + /** + * Gets adjusted + * + * @return bool + */ + public function getAdjusted() + { + return $this->container['adjusted']; + } + + /** + * Sets adjusted + * + * @param bool $adjusted
是否已调座
+ * + * @return $this + */ + public function setAdjusted($adjusted) + { + $this->container['adjusted'] = $adjusted; + + return $this; + } + + /** + * Gets couponCode + * + * @return string + */ + public function getCouponCode() + { + return $this->container['couponCode']; + } + + /** + * Sets couponCode + * + * @param string $couponCode

券码

+ * + * @return $this + */ + public function setCouponCode($couponCode) + { + $this->container['couponCode'] = $couponCode; + + return $this; + } + + /** + * Gets validCode + * + * @return string + */ + public function getValidCode() + { + return $this->container['validCode']; + } + + /** + * Sets validCode + * + * @param string $validCode

验证码

+ * + * @return $this + */ + public function setValidCode($validCode) + { + $this->container['validCode'] = $validCode; + + return $this; + } + + /** + * Gets seats + * + * @return string + */ + public function getSeats() + { + return $this->container['seats']; + } + + /** + * Sets seats + * + * @param string $seats

出票的座位

+ * + * @return $this + */ + public function setSeats($seats) + { + $this->container['seats'] = $seats; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderDataBeanDTO.php b/lib/Service/TravelResources/Model/QueryCinemaOrderDataBeanDTO.php new file mode 100644 index 0000000..1db408c --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderDataBeanDTO.php @@ -0,0 +1,1461 @@ + 'float', + 'seatsDesc' => 'string', + 'cinemaAddr' => 'string', + 'canUserCancel' => 'bool', + 'language' => 'string', + 'versionTypes' => 'string', + 'cityId' => 'int', + 'pic' => 'string', + 'marketUnitPrice' => 'float', + 'duration' => 'int', + 'showId' => 'int', + 'coupons' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryCinemaOrderCouponBeanDTO[]', + 'cinemaId' => 'int', + 'cinemaName' => 'string', + 'showEndTime' => 'string', + 'unitPrice' => 'float', + 'subPlatformId' => 'int', + 'orderNo' => 'string', + 'distanceToShow' => 'string', + 'seatsCount' => 'int', + 'showTime' => 'string', + 'platformId' => 'int', + 'userName' => 'string', + 'acceptAdjust' => 'bool', + 'userId' => 'int', + 'userRemark' => 'string', + 'drawMode' => 'int', + 'regionId' => 'int', + 'hallId' => 'int', + 'filmId' => 'int', + 'filmName' => 'string', + 'cinemaCity' => 'string', + 'hallName' => 'string', + 'platformUniqueId' => 'string', + 'commissionPrice' => 'float', + 'createTime' => 'string', + 'updateTime' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'totalPrice' => null, + 'seatsDesc' => null, + 'cinemaAddr' => null, + 'canUserCancel' => null, + 'language' => null, + 'versionTypes' => null, + 'cityId' => 'int32', + 'pic' => null, + 'marketUnitPrice' => null, + 'duration' => 'int32', + 'showId' => 'int32', + 'coupons' => null, + 'cinemaId' => 'int32', + 'cinemaName' => null, + 'showEndTime' => null, + 'unitPrice' => null, + 'subPlatformId' => 'int32', + 'orderNo' => null, + 'distanceToShow' => null, + 'seatsCount' => 'int32', + 'showTime' => null, + 'platformId' => 'int32', + 'userName' => null, + 'acceptAdjust' => null, + 'userId' => 'int32', + 'userRemark' => null, + 'drawMode' => 'int32', + 'regionId' => 'int32', + 'hallId' => 'int32', + 'filmId' => 'int32', + 'filmName' => null, + 'cinemaCity' => null, + 'hallName' => null, + 'platformUniqueId' => null, + 'commissionPrice' => null, + 'createTime' => null, + 'updateTime' => 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 = [ + 'totalPrice' => 'totalPrice', + 'seatsDesc' => 'seatsDesc', + 'cinemaAddr' => 'cinemaAddr', + 'canUserCancel' => 'canUserCancel', + 'language' => 'language', + 'versionTypes' => 'versionTypes', + 'cityId' => 'cityId', + 'pic' => 'pic', + 'marketUnitPrice' => 'marketUnitPrice', + 'duration' => 'duration', + 'showId' => 'showId', + 'coupons' => 'coupons', + 'cinemaId' => 'cinemaId', + 'cinemaName' => 'cinemaName', + 'showEndTime' => 'showEndTime', + 'unitPrice' => 'unitPrice', + 'subPlatformId' => 'subPlatformId', + 'orderNo' => 'orderNo', + 'distanceToShow' => 'distanceToShow', + 'seatsCount' => 'seatsCount', + 'showTime' => 'showTime', + 'platformId' => 'platformId', + 'userName' => 'userName', + 'acceptAdjust' => 'acceptAdjust', + 'userId' => 'userId', + 'userRemark' => 'userRemark', + 'drawMode' => 'drawMode', + 'regionId' => 'regionId', + 'hallId' => 'hallId', + 'filmId' => 'filmId', + 'filmName' => 'filmName', + 'cinemaCity' => 'cinemaCity', + 'hallName' => 'hallName', + 'platformUniqueId' => 'platformUniqueId', + 'commissionPrice' => 'commissionPrice', + 'createTime' => 'createTime', + 'updateTime' => 'updateTime' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'totalPrice' => 'setTotalPrice', + 'seatsDesc' => 'setSeatsDesc', + 'cinemaAddr' => 'setCinemaAddr', + 'canUserCancel' => 'setCanUserCancel', + 'language' => 'setLanguage', + 'versionTypes' => 'setVersionTypes', + 'cityId' => 'setCityId', + 'pic' => 'setPic', + 'marketUnitPrice' => 'setMarketUnitPrice', + 'duration' => 'setDuration', + 'showId' => 'setShowId', + 'coupons' => 'setCoupons', + 'cinemaId' => 'setCinemaId', + 'cinemaName' => 'setCinemaName', + 'showEndTime' => 'setShowEndTime', + 'unitPrice' => 'setUnitPrice', + 'subPlatformId' => 'setSubPlatformId', + 'orderNo' => 'setOrderNo', + 'distanceToShow' => 'setDistanceToShow', + 'seatsCount' => 'setSeatsCount', + 'showTime' => 'setShowTime', + 'platformId' => 'setPlatformId', + 'userName' => 'setUserName', + 'acceptAdjust' => 'setAcceptAdjust', + 'userId' => 'setUserId', + 'userRemark' => 'setUserRemark', + 'drawMode' => 'setDrawMode', + 'regionId' => 'setRegionId', + 'hallId' => 'setHallId', + 'filmId' => 'setFilmId', + 'filmName' => 'setFilmName', + 'cinemaCity' => 'setCinemaCity', + 'hallName' => 'setHallName', + 'platformUniqueId' => 'setPlatformUniqueId', + 'commissionPrice' => 'setCommissionPrice', + 'createTime' => 'setCreateTime', + 'updateTime' => 'setUpdateTime' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'totalPrice' => 'getTotalPrice', + 'seatsDesc' => 'getSeatsDesc', + 'cinemaAddr' => 'getCinemaAddr', + 'canUserCancel' => 'getCanUserCancel', + 'language' => 'getLanguage', + 'versionTypes' => 'getVersionTypes', + 'cityId' => 'getCityId', + 'pic' => 'getPic', + 'marketUnitPrice' => 'getMarketUnitPrice', + 'duration' => 'getDuration', + 'showId' => 'getShowId', + 'coupons' => 'getCoupons', + 'cinemaId' => 'getCinemaId', + 'cinemaName' => 'getCinemaName', + 'showEndTime' => 'getShowEndTime', + 'unitPrice' => 'getUnitPrice', + 'subPlatformId' => 'getSubPlatformId', + 'orderNo' => 'getOrderNo', + 'distanceToShow' => 'getDistanceToShow', + 'seatsCount' => 'getSeatsCount', + 'showTime' => 'getShowTime', + 'platformId' => 'getPlatformId', + 'userName' => 'getUserName', + 'acceptAdjust' => 'getAcceptAdjust', + 'userId' => 'getUserId', + 'userRemark' => 'getUserRemark', + 'drawMode' => 'getDrawMode', + 'regionId' => 'getRegionId', + 'hallId' => 'getHallId', + 'filmId' => 'getFilmId', + 'filmName' => 'getFilmName', + 'cinemaCity' => 'getCinemaCity', + 'hallName' => 'getHallName', + 'platformUniqueId' => 'getPlatformUniqueId', + 'commissionPrice' => 'getCommissionPrice', + 'createTime' => 'getCreateTime', + 'updateTime' => 'getUpdateTime' + ]; + + /** + * 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['totalPrice'] = isset($data['totalPrice']) ? $data['totalPrice'] : null; + $this->container['seatsDesc'] = isset($data['seatsDesc']) ? $data['seatsDesc'] : null; + $this->container['cinemaAddr'] = isset($data['cinemaAddr']) ? $data['cinemaAddr'] : null; + $this->container['canUserCancel'] = isset($data['canUserCancel']) ? $data['canUserCancel'] : null; + $this->container['language'] = isset($data['language']) ? $data['language'] : null; + $this->container['versionTypes'] = isset($data['versionTypes']) ? $data['versionTypes'] : null; + $this->container['cityId'] = isset($data['cityId']) ? $data['cityId'] : null; + $this->container['pic'] = isset($data['pic']) ? $data['pic'] : null; + $this->container['marketUnitPrice'] = isset($data['marketUnitPrice']) ? $data['marketUnitPrice'] : null; + $this->container['duration'] = isset($data['duration']) ? $data['duration'] : null; + $this->container['showId'] = isset($data['showId']) ? $data['showId'] : null; + $this->container['coupons'] = isset($data['coupons']) ? $data['coupons'] : null; + $this->container['cinemaId'] = isset($data['cinemaId']) ? $data['cinemaId'] : null; + $this->container['cinemaName'] = isset($data['cinemaName']) ? $data['cinemaName'] : null; + $this->container['showEndTime'] = isset($data['showEndTime']) ? $data['showEndTime'] : null; + $this->container['unitPrice'] = isset($data['unitPrice']) ? $data['unitPrice'] : null; + $this->container['subPlatformId'] = isset($data['subPlatformId']) ? $data['subPlatformId'] : null; + $this->container['orderNo'] = isset($data['orderNo']) ? $data['orderNo'] : null; + $this->container['distanceToShow'] = isset($data['distanceToShow']) ? $data['distanceToShow'] : null; + $this->container['seatsCount'] = isset($data['seatsCount']) ? $data['seatsCount'] : null; + $this->container['showTime'] = isset($data['showTime']) ? $data['showTime'] : null; + $this->container['platformId'] = isset($data['platformId']) ? $data['platformId'] : null; + $this->container['userName'] = isset($data['userName']) ? $data['userName'] : null; + $this->container['acceptAdjust'] = isset($data['acceptAdjust']) ? $data['acceptAdjust'] : null; + $this->container['userId'] = isset($data['userId']) ? $data['userId'] : null; + $this->container['userRemark'] = isset($data['userRemark']) ? $data['userRemark'] : null; + $this->container['drawMode'] = isset($data['drawMode']) ? $data['drawMode'] : null; + $this->container['regionId'] = isset($data['regionId']) ? $data['regionId'] : null; + $this->container['hallId'] = isset($data['hallId']) ? $data['hallId'] : null; + $this->container['filmId'] = isset($data['filmId']) ? $data['filmId'] : null; + $this->container['filmName'] = isset($data['filmName']) ? $data['filmName'] : null; + $this->container['cinemaCity'] = isset($data['cinemaCity']) ? $data['cinemaCity'] : null; + $this->container['hallName'] = isset($data['hallName']) ? $data['hallName'] : null; + $this->container['platformUniqueId'] = isset($data['platformUniqueId']) ? $data['platformUniqueId'] : null; + $this->container['commissionPrice'] = isset($data['commissionPrice']) ? $data['commissionPrice'] : null; + $this->container['createTime'] = isset($data['createTime']) ? $data['createTime'] : null; + $this->container['updateTime'] = isset($data['updateTime']) ? $data['updateTime'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['totalPrice'] === null) { + $invalidProperties[] = "'totalPrice' can't be null"; + } + if ($this->container['seatsDesc'] === null) { + $invalidProperties[] = "'seatsDesc' can't be null"; + } + if ($this->container['cinemaAddr'] === null) { + $invalidProperties[] = "'cinemaAddr' can't be null"; + } + if ($this->container['canUserCancel'] === null) { + $invalidProperties[] = "'canUserCancel' can't be null"; + } + if ($this->container['language'] === null) { + $invalidProperties[] = "'language' can't be null"; + } + if ($this->container['versionTypes'] === null) { + $invalidProperties[] = "'versionTypes' can't be null"; + } + if ($this->container['cityId'] === null) { + $invalidProperties[] = "'cityId' can't be null"; + } + if ($this->container['pic'] === null) { + $invalidProperties[] = "'pic' can't be null"; + } + if ($this->container['duration'] === null) { + $invalidProperties[] = "'duration' can't be null"; + } + if ($this->container['showId'] === null) { + $invalidProperties[] = "'showId' can't be null"; + } + if ($this->container['cinemaId'] === null) { + $invalidProperties[] = "'cinemaId' can't be null"; + } + if ($this->container['cinemaName'] === null) { + $invalidProperties[] = "'cinemaName' can't be null"; + } + if ($this->container['showEndTime'] === null) { + $invalidProperties[] = "'showEndTime' can't be null"; + } + if ($this->container['unitPrice'] === null) { + $invalidProperties[] = "'unitPrice' can't be null"; + } + if ($this->container['orderNo'] === null) { + $invalidProperties[] = "'orderNo' can't be null"; + } + if ($this->container['seatsCount'] === null) { + $invalidProperties[] = "'seatsCount' can't be null"; + } + if ($this->container['showTime'] === null) { + $invalidProperties[] = "'showTime' can't be null"; + } + if ($this->container['platformId'] === null) { + $invalidProperties[] = "'platformId' can't be null"; + } + if ($this->container['userName'] === null) { + $invalidProperties[] = "'userName' can't be null"; + } + if ($this->container['userId'] === null) { + $invalidProperties[] = "'userId' can't be null"; + } + if ($this->container['regionId'] === null) { + $invalidProperties[] = "'regionId' can't be null"; + } + if ($this->container['hallId'] === null) { + $invalidProperties[] = "'hallId' can't be null"; + } + if ($this->container['filmId'] === null) { + $invalidProperties[] = "'filmId' can't be null"; + } + if ($this->container['filmName'] === null) { + $invalidProperties[] = "'filmName' can't be null"; + } + if ($this->container['cinemaCity'] === null) { + $invalidProperties[] = "'cinemaCity' can't be null"; + } + if ($this->container['hallName'] === null) { + $invalidProperties[] = "'hallName' can't be null"; + } + 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 totalPrice + * + * @return float + */ + public function getTotalPrice() + { + return $this->container['totalPrice']; + } + + /** + * Sets totalPrice + * + * @param float $totalPrice
票总价
+ * + * @return $this + */ + public function setTotalPrice($totalPrice) + { + $this->container['totalPrice'] = $totalPrice; + + return $this; + } + + /** + * Gets seatsDesc + * + * @return string + */ + public function getSeatsDesc() + { + return $this->container['seatsDesc']; + } + + /** + * Sets seatsDesc + * + * @param string $seatsDesc
seatsDesc
+ * + * @return $this + */ + public function setSeatsDesc($seatsDesc) + { + $this->container['seatsDesc'] = $seatsDesc; + + return $this; + } + + /** + * Gets cinemaAddr + * + * @return string + */ + public function getCinemaAddr() + { + return $this->container['cinemaAddr']; + } + + /** + * Sets cinemaAddr + * + * @param string $cinemaAddr
影院的详细地址
+ * + * @return $this + */ + public function setCinemaAddr($cinemaAddr) + { + $this->container['cinemaAddr'] = $cinemaAddr; + + return $this; + } + + /** + * Gets canUserCancel + * + * @return bool + */ + public function getCanUserCancel() + { + return $this->container['canUserCancel']; + } + + /** + * Sets canUserCancel + * + * @param bool $canUserCancel
用户能否取消订单
+ * + * @return $this + */ + public function setCanUserCancel($canUserCancel) + { + $this->container['canUserCancel'] = $canUserCancel; + + return $this; + } + + /** + * Gets language + * + * @return string + */ + public function getLanguage() + { + return $this->container['language']; + } + + /** + * Sets language + * + * @param string $language
影片语言
+ * + * @return $this + */ + public function setLanguage($language) + { + $this->container['language'] = $language; + + return $this; + } + + /** + * Gets versionTypes + * + * @return string + */ + public function getVersionTypes() + { + return $this->container['versionTypes']; + } + + /** + * Sets versionTypes + * + * @param string $versionTypes
影片类型
+ * + * @return $this + */ + public function setVersionTypes($versionTypes) + { + $this->container['versionTypes'] = $versionTypes; + + return $this; + } + + /** + * Gets cityId + * + * @return int + */ + public function getCityId() + { + return $this->container['cityId']; + } + + /** + * Sets cityId + * + * @param int $cityId
城市id
+ * + * @return $this + */ + public function setCityId($cityId) + { + $this->container['cityId'] = $cityId; + + return $this; + } + + /** + * Gets pic + * + * @return string + */ + public function getPic() + { + return $this->container['pic']; + } + + /** + * Sets pic + * + * @param string $pic
电影海报URL地址
+ * + * @return $this + */ + public function setPic($pic) + { + $this->container['pic'] = $pic; + + return $this; + } + + /** + * Gets marketUnitPrice + * + * @return float + */ + public function getMarketUnitPrice() + { + return $this->container['marketUnitPrice']; + } + + /** + * Sets marketUnitPrice + * + * @param float $marketUnitPrice
市场价格
+ * + * @return $this + */ + public function setMarketUnitPrice($marketUnitPrice) + { + $this->container['marketUnitPrice'] = $marketUnitPrice; + + return $this; + } + + /** + * Gets duration + * + * @return int + */ + public function getDuration() + { + return $this->container['duration']; + } + + /** + * Sets duration + * + * @param int $duration
播放时长
+ * + * @return $this + */ + public function setDuration($duration) + { + $this->container['duration'] = $duration; + + return $this; + } + + /** + * Gets showId + * + * @return int + */ + public function getShowId() + { + return $this->container['showId']; + } + + /** + * Sets showId + * + * @param int $showId
场次id
+ * + * @return $this + */ + public function setShowId($showId) + { + $this->container['showId'] = $showId; + + return $this; + } + + /** + * Gets coupons + * + * @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryCinemaOrderCouponBeanDTO[] + */ + public function getCoupons() + { + return $this->container['coupons']; + } + + /** + * Sets coupons + * + * @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryCinemaOrderCouponBeanDTO[] $coupons
券码数组
+ * + * @return $this + */ + public function setCoupons($coupons) + { + $this->container['coupons'] = $coupons; + + return $this; + } + + /** + * Gets cinemaId + * + * @return int + */ + public function getCinemaId() + { + return $this->container['cinemaId']; + } + + /** + * Sets cinemaId + * + * @param int $cinemaId
影院id
+ * + * @return $this + */ + public function setCinemaId($cinemaId) + { + $this->container['cinemaId'] = $cinemaId; + + return $this; + } + + /** + * Gets cinemaName + * + * @return string + */ + public function getCinemaName() + { + return $this->container['cinemaName']; + } + + /** + * Sets cinemaName + * + * @param string $cinemaName
影院名称
+ * + * @return $this + */ + public function setCinemaName($cinemaName) + { + $this->container['cinemaName'] = $cinemaName; + + return $this; + } + + /** + * Gets showEndTime + * + * @return string + */ + public function getShowEndTime() + { + return $this->container['showEndTime']; + } + + /** + * Sets showEndTime + * + * @param string $showEndTime
场次结束时间
+ * + * @return $this + */ + public function setShowEndTime($showEndTime) + { + $this->container['showEndTime'] = $showEndTime; + + return $this; + } + + /** + * Gets unitPrice + * + * @return float + */ + public function getUnitPrice() + { + return $this->container['unitPrice']; + } + + /** + * Sets unitPrice + * + * @param float $unitPrice
票单价
+ * + * @return $this + */ + public function setUnitPrice($unitPrice) + { + $this->container['unitPrice'] = $unitPrice; + + return $this; + } + + /** + * Gets subPlatformId + * + * @return int + */ + public function getSubPlatformId() + { + return $this->container['subPlatformId']; + } + + /** + * Sets subPlatformId + * + * @param int $subPlatformId
子平台id
+ * + * @return $this + */ + public function setSubPlatformId($subPlatformId) + { + $this->container['subPlatformId'] = $subPlatformId; + + 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 distanceToShow + * + * @return string + */ + public function getDistanceToShow() + { + return $this->container['distanceToShow']; + } + + /** + * Sets distanceToShow + * + * @param string $distanceToShow
距离开场时间
+ * + * @return $this + */ + public function setDistanceToShow($distanceToShow) + { + $this->container['distanceToShow'] = $distanceToShow; + + return $this; + } + + /** + * Gets seatsCount + * + * @return int + */ + public function getSeatsCount() + { + return $this->container['seatsCount']; + } + + /** + * Sets seatsCount + * + * @param int $seatsCount
座位数量
+ * + * @return $this + */ + public function setSeatsCount($seatsCount) + { + $this->container['seatsCount'] = $seatsCount; + + return $this; + } + + /** + * Gets showTime + * + * @return string + */ + public function getShowTime() + { + return $this->container['showTime']; + } + + /** + * Sets showTime + * + * @param string $showTime
场次开始时间
+ * + * @return $this + */ + public function setShowTime($showTime) + { + $this->container['showTime'] = $showTime; + + return $this; + } + + /** + * Gets platformId + * + * @return int + */ + public function getPlatformId() + { + return $this->container['platformId']; + } + + /** + * Sets platformId + * + * @param int $platformId
平台id
+ * + * @return $this + */ + public function setPlatformId($platformId) + { + $this->container['platformId'] = $platformId; + + return $this; + } + + /** + * Gets userName + * + * @return string + */ + public function getUserName() + { + return $this->container['userName']; + } + + /** + * Sets userName + * + * @param string $userName
userName
+ * + * @return $this + */ + public function setUserName($userName) + { + $this->container['userName'] = $userName; + + return $this; + } + + /** + * Gets acceptAdjust + * + * @return bool + */ + public function getAcceptAdjust() + { + return $this->container['acceptAdjust']; + } + + /** + * Sets acceptAdjust + * + * @param bool $acceptAdjust
是否接受调坐
+ * + * @return $this + */ + public function setAcceptAdjust($acceptAdjust) + { + $this->container['acceptAdjust'] = $acceptAdjust; + + return $this; + } + + /** + * Gets userId + * + * @return int + */ + public function getUserId() + { + return $this->container['userId']; + } + + /** + * Sets userId + * + * @param int $userId
用户id
+ * + * @return $this + */ + public function setUserId($userId) + { + $this->container['userId'] = $userId; + + return $this; + } + + /** + * Gets userRemark + * + * @return string + */ + public function getUserRemark() + { + return $this->container['userRemark']; + } + + /** + * Sets userRemark + * + * @param string $userRemark
用户备注
+ * + * @return $this + */ + public function setUserRemark($userRemark) + { + $this->container['userRemark'] = $userRemark; + + return $this; + } + + /** + * Gets drawMode + * + * @return int + */ + public function getDrawMode() + { + return $this->container['drawMode']; + } + + /** + * Sets drawMode + * + * @param int $drawMode
0:竞价出票(折扣出票) 5:快速出票(非折扣出票)
+ * + * @return $this + */ + public function setDrawMode($drawMode) + { + $this->container['drawMode'] = $drawMode; + + return $this; + } + + /** + * Gets regionId + * + * @return int + */ + public function getRegionId() + { + return $this->container['regionId']; + } + + /** + * Sets regionId + * + * @param int $regionId
区域id
+ * + * @return $this + */ + public function setRegionId($regionId) + { + $this->container['regionId'] = $regionId; + + return $this; + } + + /** + * Gets hallId + * + * @return int + */ + public function getHallId() + { + return $this->container['hallId']; + } + + /** + * Sets hallId + * + * @param int $hallId
影厅id
+ * + * @return $this + */ + public function setHallId($hallId) + { + $this->container['hallId'] = $hallId; + + return $this; + } + + /** + * Gets filmId + * + * @return int + */ + public function getFilmId() + { + return $this->container['filmId']; + } + + /** + * Sets filmId + * + * @param int $filmId
电影id
+ * + * @return $this + */ + public function setFilmId($filmId) + { + $this->container['filmId'] = $filmId; + + return $this; + } + + /** + * Gets filmName + * + * @return string + */ + public function getFilmName() + { + return $this->container['filmName']; + } + + /** + * Sets filmName + * + * @param string $filmName
影片名称
+ * + * @return $this + */ + public function setFilmName($filmName) + { + $this->container['filmName'] = $filmName; + + return $this; + } + + /** + * Gets cinemaCity + * + * @return string + */ + public function getCinemaCity() + { + return $this->container['cinemaCity']; + } + + /** + * Sets cinemaCity + * + * @param string $cinemaCity
电影的城市
+ * + * @return $this + */ + public function setCinemaCity($cinemaCity) + { + $this->container['cinemaCity'] = $cinemaCity; + + return $this; + } + + /** + * Gets hallName + * + * @return string + */ + public function getHallName() + { + return $this->container['hallName']; + } + + /** + * Sets hallName + * + * @param string $hallName
影厅名称
+ * + * @return $this + */ + public function setHallName($hallName) + { + $this->container['hallName'] = $hallName; + + return $this; + } + + /** + * Gets platformUniqueId + * + * @return string + */ + public function getPlatformUniqueId() + { + return $this->container['platformUniqueId']; + } + + /** + * Sets platformUniqueId + * + * @param string $platformUniqueId
平台唯一用户标识
+ * + * @return $this + */ + public function setPlatformUniqueId($platformUniqueId) + { + $this->container['platformUniqueId'] = $platformUniqueId; + + return $this; + } + + /** + * Gets commissionPrice + * + * @return float + */ + public function getCommissionPrice() + { + return $this->container['commissionPrice']; + } + + /** + * Sets commissionPrice + * + * @param float $commissionPrice

佣金

+ * + * @return $this + */ + public function setCommissionPrice($commissionPrice) + { + $this->container['commissionPrice'] = $commissionPrice; + + 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 updateTime + * + * @return string + */ + public function getUpdateTime() + { + return $this->container['updateTime']; + } + + /** + * Sets updateTime + * + * @param string $updateTime

资源方更新订单时间

+ * + * @return $this + */ + public function setUpdateTime($updateTime) + { + $this->container['updateTime'] = $updateTime; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderRequest.php b/lib/Service/TravelResources/Model/QueryCinemaOrderRequest.php new file mode 100644 index 0000000..48d8a00 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return QueryCinemaOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'queryCinemaOrder'; + } + + +} diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderRequestMarshaller.php b/lib/Service/TravelResources/Model/QueryCinemaOrderRequestMarshaller.php new file mode 100644 index 0000000..6f7671e --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryCinemaOrderRequestMarshaller::__init(); diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderResponse.php b/lib/Service/TravelResources/Model/QueryCinemaOrderResponse.php new file mode 100644 index 0000000..d68f379 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryCinemaOrderResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderResponseDTO.php b/lib/Service/TravelResources/Model/QueryCinemaOrderResponseDTO.php new file mode 100644 index 0000000..134ace3 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderResponseDTO.php @@ -0,0 +1,831 @@ + 'string', + 'data' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryCinemaOrderDataBeanDTO', + 'orderStatus' => 'string', + 'supplierChannel' => 'string', + 'message' => 'string', + 'paymentUniqueOrderNo' => 'string', + 'orderAmount' => 'float', + 'complateTime' => 'string', + 'cancelTime' => 'string', + 'orderSuccessTime' => 'string', + 'systemOrderNo' => 'string', + 'paySuccessTime' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantRequestNo' => 'string', + 'parentMerchantRequestNo' => 'string', + 'supplierOrderNo' => 'string', + 'trxType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'data' => null, + 'orderStatus' => null, + 'supplierChannel' => null, + 'message' => null, + 'paymentUniqueOrderNo' => null, + 'orderAmount' => null, + 'complateTime' => null, + 'cancelTime' => null, + 'orderSuccessTime' => null, + 'systemOrderNo' => null, + 'paySuccessTime' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantRequestNo' => null, + 'parentMerchantRequestNo' => null, + 'supplierOrderNo' => null, + 'trxType' => 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', + 'data' => 'data', + 'orderStatus' => 'orderStatus', + 'supplierChannel' => 'supplierChannel', + 'message' => 'message', + 'paymentUniqueOrderNo' => 'paymentUniqueOrderNo', + 'orderAmount' => 'orderAmount', + 'complateTime' => 'complateTime', + 'cancelTime' => 'cancelTime', + 'orderSuccessTime' => 'orderSuccessTime', + 'systemOrderNo' => 'systemOrderNo', + 'paySuccessTime' => 'paySuccessTime', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantRequestNo' => 'merchantRequestNo', + 'parentMerchantRequestNo' => 'parentMerchantRequestNo', + 'supplierOrderNo' => 'supplierOrderNo', + 'trxType' => 'trxType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'data' => 'setData', + 'orderStatus' => 'setOrderStatus', + 'supplierChannel' => 'setSupplierChannel', + 'message' => 'setMessage', + 'paymentUniqueOrderNo' => 'setPaymentUniqueOrderNo', + 'orderAmount' => 'setOrderAmount', + 'complateTime' => 'setComplateTime', + 'cancelTime' => 'setCancelTime', + 'orderSuccessTime' => 'setOrderSuccessTime', + 'systemOrderNo' => 'setSystemOrderNo', + 'paySuccessTime' => 'setPaySuccessTime', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantRequestNo' => 'setMerchantRequestNo', + 'parentMerchantRequestNo' => 'setParentMerchantRequestNo', + 'supplierOrderNo' => 'setSupplierOrderNo', + 'trxType' => 'setTrxType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'data' => 'getData', + 'orderStatus' => 'getOrderStatus', + 'supplierChannel' => 'getSupplierChannel', + 'message' => 'getMessage', + 'paymentUniqueOrderNo' => 'getPaymentUniqueOrderNo', + 'orderAmount' => 'getOrderAmount', + 'complateTime' => 'getComplateTime', + 'cancelTime' => 'getCancelTime', + 'orderSuccessTime' => 'getOrderSuccessTime', + 'systemOrderNo' => 'getSystemOrderNo', + 'paySuccessTime' => 'getPaySuccessTime', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantRequestNo' => 'getMerchantRequestNo', + 'parentMerchantRequestNo' => 'getParentMerchantRequestNo', + 'supplierOrderNo' => 'getSupplierOrderNo', + 'trxType' => 'getTrxType' + ]; + + /** + * 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['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['supplierChannel'] = isset($data['supplierChannel']) ? $data['supplierChannel'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['paymentUniqueOrderNo'] = isset($data['paymentUniqueOrderNo']) ? $data['paymentUniqueOrderNo'] : null; + $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['complateTime'] = isset($data['complateTime']) ? $data['complateTime'] : null; + $this->container['cancelTime'] = isset($data['cancelTime']) ? $data['cancelTime'] : null; + $this->container['orderSuccessTime'] = isset($data['orderSuccessTime']) ? $data['orderSuccessTime'] : null; + $this->container['systemOrderNo'] = isset($data['systemOrderNo']) ? $data['systemOrderNo'] : null; + $this->container['paySuccessTime'] = isset($data['paySuccessTime']) ? $data['paySuccessTime'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantRequestNo'] = isset($data['merchantRequestNo']) ? $data['merchantRequestNo'] : null; + $this->container['parentMerchantRequestNo'] = isset($data['parentMerchantRequestNo']) ? $data['parentMerchantRequestNo'] : null; + $this->container['supplierOrderNo'] = isset($data['supplierOrderNo']) ? $data['supplierOrderNo'] : null; + $this->container['trxType'] = isset($data['trxType']) ? $data['trxType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['supplierChannel'] === null) { + $invalidProperties[] = "'supplierChannel' can't be null"; + } + if ($this->container['orderAmount'] === null) { + $invalidProperties[] = "'orderAmount' can't be null"; + } + if ($this->container['systemOrderNo'] === null) { + $invalidProperties[] = "'systemOrderNo' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['merchantRequestNo'] === null) { + $invalidProperties[] = "'merchantRequestNo' can't be null"; + } + 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

代表本次请求成功,订单状态需要关注orderStatus

+ * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets data + * + * @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryCinemaOrderDataBeanDTO + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryCinemaOrderDataBeanDTO $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets orderStatus + * + * @return string + */ + public function getOrderStatus() + { + return $this->container['orderStatus']; + } + + /** + * Sets orderStatus + * + * @param string $orderStatus
/_**
* 订单状态:
* 0:待支付
* 1:待出货(已支付)
* 2:已出货
* 3:已取消
* 4:交易完成
* 部分退款/取消,对应已出货;全部退款,对应已取消
*_/
+ * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets supplierChannel + * + * @return string + */ + public function getSupplierChannel() + { + return $this->container['supplierChannel']; + } + + /** + * Sets supplierChannel + * + * @param string $supplierChannel
供应商渠道
+ * + * @return $this + */ + public function setSupplierChannel($supplierChannel) + { + $this->container['supplierChannel'] = $supplierChannel; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets paymentUniqueOrderNo + * + * @return string + */ + public function getPaymentUniqueOrderNo() + { + return $this->container['paymentUniqueOrderNo']; + } + + /** + * Sets paymentUniqueOrderNo + * + * @param string $paymentUniqueOrderNo
支付请求流水号
+ * + * @return $this + */ + public function setPaymentUniqueOrderNo($paymentUniqueOrderNo) + { + $this->container['paymentUniqueOrderNo'] = $paymentUniqueOrderNo; + + 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 complateTime + * + * @return string + */ + public function getComplateTime() + { + return $this->container['complateTime']; + } + + /** + * Sets complateTime + * + * @param string $complateTime
完成时间。订单出货成功时返回
+ * + * @return $this + */ + public function setComplateTime($complateTime) + { + $this->container['complateTime'] = $complateTime; + + return $this; + } + + /** + * Gets cancelTime + * + * @return string + */ + public function getCancelTime() + { + return $this->container['cancelTime']; + } + + /** + * Sets cancelTime + * + * @param string $cancelTime

订单取消时返回,取消时间

+ * + * @return $this + */ + public function setCancelTime($cancelTime) + { + $this->container['cancelTime'] = $cancelTime; + + return $this; + } + + /** + * Gets orderSuccessTime + * + * @return string + */ + public function getOrderSuccessTime() + { + return $this->container['orderSuccessTime']; + } + + /** + * Sets orderSuccessTime + * + * @param string $orderSuccessTime
下单成功时间。下单成功时返回
+ * + * @return $this + */ + public function setOrderSuccessTime($orderSuccessTime) + { + $this->container['orderSuccessTime'] = $orderSuccessTime; + + return $this; + } + + /** + * Gets systemOrderNo + * + * @return string + */ + public function getSystemOrderNo() + { + return $this->container['systemOrderNo']; + } + + /** + * Sets systemOrderNo + * + * @param string $systemOrderNo
系统返回唯一订单号
+ * + * @return $this + */ + public function setSystemOrderNo($systemOrderNo) + { + $this->container['systemOrderNo'] = $systemOrderNo; + + return $this; + } + + /** + * Gets paySuccessTime + * + * @return string + */ + public function getPaySuccessTime() + { + return $this->container['paySuccessTime']; + } + + /** + * Sets paySuccessTime + * + * @param string $paySuccessTime
支付成功时间。支付成功时返回
+ * + * @return $this + */ + public function setPaySuccessTime($paySuccessTime) + { + $this->container['paySuccessTime'] = $paySuccessTime; + + return $this; + } + + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

业务商编

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantRequestNo + * + * @return string + */ + public function getMerchantRequestNo() + { + return $this->container['merchantRequestNo']; + } + + /** + * Sets merchantRequestNo + * + * @param string $merchantRequestNo

商户订单号

+ * + * @return $this + */ + public function setMerchantRequestNo($merchantRequestNo) + { + $this->container['merchantRequestNo'] = $merchantRequestNo; + + return $this; + } + + /** + * Gets parentMerchantRequestNo + * + * @return string + */ + public function getParentMerchantRequestNo() + { + return $this->container['parentMerchantRequestNo']; + } + + /** + * Sets parentMerchantRequestNo + * + * @param string $parentMerchantRequestNo
请求方订单号
+ * + * @return $this + */ + public function setParentMerchantRequestNo($parentMerchantRequestNo) + { + $this->container['parentMerchantRequestNo'] = $parentMerchantRequestNo; + + return $this; + } + + /** + * Gets supplierOrderNo + * + * @return string + */ + public function getSupplierOrderNo() + { + return $this->container['supplierOrderNo']; + } + + /** + * Sets supplierOrderNo + * + * @param string $supplierOrderNo
资源方订单号
+ * + * @return $this + */ + public function setSupplierOrderNo($supplierOrderNo) + { + $this->container['supplierOrderNo'] = $supplierOrderNo; + + return $this; + } + + /** + * Gets trxType + * + * @return string + */ + public function getTrxType() + { + return $this->container['trxType']; + } + + /** + * Sets trxType + * + * @param string $trxType

在字段用来表示通知类型是交易还是退款。
只有在异步通知结果里该参数才有值

+ * + * @return $this + */ + public function setTrxType($trxType) + { + $this->container['trxType'] = $trxType; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryCinemaOrderResponseUnMarshaller.php b/lib/Service/TravelResources/Model/QueryCinemaOrderResponseUnMarshaller.php new file mode 100644 index 0000000..cca619b --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryCinemaOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'productName' => 'string', + 'quantity' => 'float', + 'price' => 'float', + 'imageUrl' => 'string', + 'canceled' => 'bool', + 'optionItems' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcOptiionItemsBean[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'productId' => null, + 'productName' => null, + 'quantity' => null, + 'price' => null, + 'imageUrl' => null, + 'canceled' => null, + 'optionItems' => 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 = [ + 'productId' => 'productId', + 'productName' => 'productName', + 'quantity' => 'quantity', + 'price' => 'price', + 'imageUrl' => 'imageUrl', + 'canceled' => 'canceled', + 'optionItems' => 'optionItems' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'productId' => 'setProductId', + 'productName' => 'setProductName', + 'quantity' => 'setQuantity', + 'price' => 'setPrice', + 'imageUrl' => 'setImageUrl', + 'canceled' => 'setCanceled', + 'optionItems' => 'setOptionItems' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'productId' => 'getProductId', + 'productName' => 'getProductName', + 'quantity' => 'getQuantity', + 'price' => 'getPrice', + 'imageUrl' => 'getImageUrl', + 'canceled' => 'getCanceled', + 'optionItems' => 'getOptionItems' + ]; + + /** + * 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['productId'] = isset($data['productId']) ? $data['productId'] : null; + $this->container['productName'] = isset($data['productName']) ? $data['productName'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['price'] = isset($data['price']) ? $data['price'] : null; + $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : null; + $this->container['canceled'] = isset($data['canceled']) ? $data['canceled'] : null; + $this->container['optionItems'] = isset($data['optionItems']) ? $data['optionItems'] : 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 productId + * + * @return string + */ + public function getProductId() + { + return $this->container['productId']; + } + + /** + * Sets productId + * + * @param string $productId
商品id
+ * + * @return $this + */ + public function setProductId($productId) + { + $this->container['productId'] = $productId; + + return $this; + } + + /** + * Gets productName + * + * @return string + */ + public function getProductName() + { + return $this->container['productName']; + } + + /** + * Sets productName + * + * @param string $productName
商品名称
+ * + * @return $this + */ + public function setProductName($productName) + { + $this->container['productName'] = $productName; + + return $this; + } + + /** + * Gets quantity + * + * @return float + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param float $quantity
数量
+ * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets price + * + * @return float + */ + public function getPrice() + { + return $this->container['price']; + } + + /** + * Sets price + * + * @param float $price
价格
+ * + * @return $this + */ + public function setPrice($price) + { + $this->container['price'] = $price; + + return $this; + } + + /** + * Gets imageUrl + * + * @return string + */ + public function getImageUrl() + { + return $this->container['imageUrl']; + } + + /** + * Sets imageUrl + * + * @param string $imageUrl
图片地址
+ * + * @return $this + */ + public function setImageUrl($imageUrl) + { + $this->container['imageUrl'] = $imageUrl; + + return $this; + } + + /** + * Gets canceled + * + * @return bool + */ + public function getCanceled() + { + return $this->container['canceled']; + } + + /** + * Sets canceled + * + * @param bool $canceled
是否已取消
+ * + * @return $this + */ + public function setCanceled($canceled) + { + $this->container['canceled'] = $canceled; + + return $this; + } + + /** + * Gets optionItems + * + * @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcOptiionItemsBean[] + */ + public function getOptionItems() + { + return $this->container['optionItems']; + } + + /** + * Sets optionItems + * + * @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcOptiionItemsBean[] $optionItems
明细
+ * + * @return $this + */ + public function setOptionItems($optionItems) + { + $this->container['optionItems'] = $optionItems; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryKfcOptiionItemsBean.php b/lib/Service/TravelResources/Model/QueryKfcOptiionItemsBean.php new file mode 100644 index 0000000..d6995a7 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryKfcOptiionItemsBean.php @@ -0,0 +1,363 @@ + 'string', + 'quantity' => 'float', + 'imageUrl' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'productName' => null, + 'quantity' => null, + 'imageUrl' => 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 = [ + 'productName' => 'productName', + 'quantity' => 'quantity', + 'imageUrl' => 'imageUrl' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'productName' => 'setProductName', + 'quantity' => 'setQuantity', + 'imageUrl' => 'setImageUrl' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'productName' => 'getProductName', + 'quantity' => 'getQuantity', + 'imageUrl' => 'getImageUrl' + ]; + + /** + * 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['productName'] = isset($data['productName']) ? $data['productName'] : null; + $this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null; + $this->container['imageUrl'] = isset($data['imageUrl']) ? $data['imageUrl'] : 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 productName + * + * @return string + */ + public function getProductName() + { + return $this->container['productName']; + } + + /** + * Sets productName + * + * @param string $productName
商品名称
+ * + * @return $this + */ + public function setProductName($productName) + { + $this->container['productName'] = $productName; + + return $this; + } + + /** + * Gets quantity + * + * @return float + */ + public function getQuantity() + { + return $this->container['quantity']; + } + + /** + * Sets quantity + * + * @param float $quantity
数量
+ * + * @return $this + */ + public function setQuantity($quantity) + { + $this->container['quantity'] = $quantity; + + return $this; + } + + /** + * Gets imageUrl + * + * @return string + */ + public function getImageUrl() + { + return $this->container['imageUrl']; + } + + /** + * Sets imageUrl + * + * @param string $imageUrl
图片地址
+ * + * @return $this + */ + public function setImageUrl($imageUrl) + { + $this->container['imageUrl'] = $imageUrl; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryKfcOrderRequest.php b/lib/Service/TravelResources/Model/QueryKfcOrderRequest.php new file mode 100644 index 0000000..63ec6db --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryKfcOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return QueryKfcOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'queryKfcOrder'; + } + + +} diff --git a/lib/Service/TravelResources/Model/QueryKfcOrderRequestMarshaller.php b/lib/Service/TravelResources/Model/QueryKfcOrderRequestMarshaller.php new file mode 100644 index 0000000..3543edc --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryKfcOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryKfcOrderRequestMarshaller::__init(); diff --git a/lib/Service/TravelResources/Model/QueryKfcOrderResponse.php b/lib/Service/TravelResources/Model/QueryKfcOrderResponse.php new file mode 100644 index 0000000..3c5899a --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryKfcOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryKfcOrderResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TravelResources/Model/QueryKfcOrderResponseDTO.php b/lib/Service/TravelResources/Model/QueryKfcOrderResponseDTO.php new file mode 100644 index 0000000..10aed10 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryKfcOrderResponseDTO.php @@ -0,0 +1,837 @@ + 'string', + 'data' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QuerKfcOrderDataBeanDTO', + 'orderStatus' => 'string', + 'supplierChannel' => 'string', + 'message' => 'string', + 'paymentUniqueOrderNo' => 'string', + 'orderAmount' => 'float', + 'complateTime' => 'string', + 'cancelTime' => 'string', + 'orderSuccessTime' => 'string', + 'systemOrderNo' => 'string', + 'paySuccessTime' => 'string', + 'parentMerchantNo' => 'string', + 'merchantNo' => 'string', + 'merchantRequestNo' => 'string', + 'parentMerchantRequestNo' => 'string', + 'supplierOrderNo' => 'string', + 'trxType' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'code' => null, + 'data' => null, + 'orderStatus' => null, + 'supplierChannel' => null, + 'message' => null, + 'paymentUniqueOrderNo' => null, + 'orderAmount' => null, + 'complateTime' => null, + 'cancelTime' => null, + 'orderSuccessTime' => null, + 'systemOrderNo' => null, + 'paySuccessTime' => null, + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantRequestNo' => null, + 'parentMerchantRequestNo' => null, + 'supplierOrderNo' => null, + 'trxType' => 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', + 'data' => 'data', + 'orderStatus' => 'orderStatus', + 'supplierChannel' => 'supplierChannel', + 'message' => 'message', + 'paymentUniqueOrderNo' => 'paymentUniqueOrderNo', + 'orderAmount' => 'orderAmount', + 'complateTime' => 'complateTime', + 'cancelTime' => 'cancelTime', + 'orderSuccessTime' => 'orderSuccessTime', + 'systemOrderNo' => 'systemOrderNo', + 'paySuccessTime' => 'paySuccessTime', + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantRequestNo' => 'merchantRequestNo', + 'parentMerchantRequestNo' => 'parentMerchantRequestNo', + 'supplierOrderNo' => 'supplierOrderNo', + 'trxType' => 'trxType' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'code' => 'setCode', + 'data' => 'setData', + 'orderStatus' => 'setOrderStatus', + 'supplierChannel' => 'setSupplierChannel', + 'message' => 'setMessage', + 'paymentUniqueOrderNo' => 'setPaymentUniqueOrderNo', + 'orderAmount' => 'setOrderAmount', + 'complateTime' => 'setComplateTime', + 'cancelTime' => 'setCancelTime', + 'orderSuccessTime' => 'setOrderSuccessTime', + 'systemOrderNo' => 'setSystemOrderNo', + 'paySuccessTime' => 'setPaySuccessTime', + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantRequestNo' => 'setMerchantRequestNo', + 'parentMerchantRequestNo' => 'setParentMerchantRequestNo', + 'supplierOrderNo' => 'setSupplierOrderNo', + 'trxType' => 'setTrxType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'code' => 'getCode', + 'data' => 'getData', + 'orderStatus' => 'getOrderStatus', + 'supplierChannel' => 'getSupplierChannel', + 'message' => 'getMessage', + 'paymentUniqueOrderNo' => 'getPaymentUniqueOrderNo', + 'orderAmount' => 'getOrderAmount', + 'complateTime' => 'getComplateTime', + 'cancelTime' => 'getCancelTime', + 'orderSuccessTime' => 'getOrderSuccessTime', + 'systemOrderNo' => 'getSystemOrderNo', + 'paySuccessTime' => 'getPaySuccessTime', + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantRequestNo' => 'getMerchantRequestNo', + 'parentMerchantRequestNo' => 'getParentMerchantRequestNo', + 'supplierOrderNo' => 'getSupplierOrderNo', + 'trxType' => 'getTrxType' + ]; + + /** + * 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['data'] = isset($data['data']) ? $data['data'] : null; + $this->container['orderStatus'] = isset($data['orderStatus']) ? $data['orderStatus'] : null; + $this->container['supplierChannel'] = isset($data['supplierChannel']) ? $data['supplierChannel'] : null; + $this->container['message'] = isset($data['message']) ? $data['message'] : null; + $this->container['paymentUniqueOrderNo'] = isset($data['paymentUniqueOrderNo']) ? $data['paymentUniqueOrderNo'] : null; + $this->container['orderAmount'] = isset($data['orderAmount']) ? $data['orderAmount'] : null; + $this->container['complateTime'] = isset($data['complateTime']) ? $data['complateTime'] : null; + $this->container['cancelTime'] = isset($data['cancelTime']) ? $data['cancelTime'] : null; + $this->container['orderSuccessTime'] = isset($data['orderSuccessTime']) ? $data['orderSuccessTime'] : null; + $this->container['systemOrderNo'] = isset($data['systemOrderNo']) ? $data['systemOrderNo'] : null; + $this->container['paySuccessTime'] = isset($data['paySuccessTime']) ? $data['paySuccessTime'] : null; + $this->container['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantRequestNo'] = isset($data['merchantRequestNo']) ? $data['merchantRequestNo'] : null; + $this->container['parentMerchantRequestNo'] = isset($data['parentMerchantRequestNo']) ? $data['parentMerchantRequestNo'] : null; + $this->container['supplierOrderNo'] = isset($data['supplierOrderNo']) ? $data['supplierOrderNo'] : null; + $this->container['trxType'] = isset($data['trxType']) ? $data['trxType'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['orderStatus'] === null) { + $invalidProperties[] = "'orderStatus' can't be null"; + } + if ($this->container['supplierChannel'] === null) { + $invalidProperties[] = "'supplierChannel' can't be null"; + } + if ($this->container['orderAmount'] === null) { + $invalidProperties[] = "'orderAmount' can't be null"; + } + if ($this->container['orderSuccessTime'] === null) { + $invalidProperties[] = "'orderSuccessTime' can't be null"; + } + if ($this->container['systemOrderNo'] === null) { + $invalidProperties[] = "'systemOrderNo' can't be null"; + } + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['merchantRequestNo'] === null) { + $invalidProperties[] = "'merchantRequestNo' can't be null"; + } + 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

代表本次请求成功,订单状态需要关注orderStatus

+ * + * @return $this + */ + public function setCode($code) + { + $this->container['code'] = $code; + + return $this; + } + + /** + * Gets data + * + * @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QuerKfcOrderDataBeanDTO + */ + public function getData() + { + return $this->container['data']; + } + + /** + * Sets data + * + * @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QuerKfcOrderDataBeanDTO $data data + * + * @return $this + */ + public function setData($data) + { + $this->container['data'] = $data; + + return $this; + } + + /** + * Gets orderStatus + * + * @return string + */ + public function getOrderStatus() + { + return $this->container['orderStatus']; + } + + /** + * Sets orderStatus + * + * @param string $orderStatus
订单状态:
0:待支付
1:待出货(已支付)
2:已出货
3:已取消
+ * + * @return $this + */ + public function setOrderStatus($orderStatus) + { + $this->container['orderStatus'] = $orderStatus; + + return $this; + } + + /** + * Gets supplierChannel + * + * @return string + */ + public function getSupplierChannel() + { + return $this->container['supplierChannel']; + } + + /** + * Sets supplierChannel + * + * @param string $supplierChannel
供应商渠道
+ * + * @return $this + */ + public function setSupplierChannel($supplierChannel) + { + $this->container['supplierChannel'] = $supplierChannel; + + return $this; + } + + /** + * Gets message + * + * @return string + */ + public function getMessage() + { + return $this->container['message']; + } + + /** + * Sets message + * + * @param string $message message + * + * @return $this + */ + public function setMessage($message) + { + $this->container['message'] = $message; + + return $this; + } + + /** + * Gets paymentUniqueOrderNo + * + * @return string + */ + public function getPaymentUniqueOrderNo() + { + return $this->container['paymentUniqueOrderNo']; + } + + /** + * Sets paymentUniqueOrderNo + * + * @param string $paymentUniqueOrderNo
支付请求流水号
+ * + * @return $this + */ + public function setPaymentUniqueOrderNo($paymentUniqueOrderNo) + { + $this->container['paymentUniqueOrderNo'] = $paymentUniqueOrderNo; + + 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 complateTime + * + * @return string + */ + public function getComplateTime() + { + return $this->container['complateTime']; + } + + /** + * Sets complateTime + * + * @param string $complateTime
完成时间。订单出货成功时返回
+ * + * @return $this + */ + public function setComplateTime($complateTime) + { + $this->container['complateTime'] = $complateTime; + + return $this; + } + + /** + * Gets cancelTime + * + * @return string + */ + public function getCancelTime() + { + return $this->container['cancelTime']; + } + + /** + * Sets cancelTime + * + * @param string $cancelTime
取消时间
+ * + * @return $this + */ + public function setCancelTime($cancelTime) + { + $this->container['cancelTime'] = $cancelTime; + + return $this; + } + + /** + * Gets orderSuccessTime + * + * @return string + */ + public function getOrderSuccessTime() + { + return $this->container['orderSuccessTime']; + } + + /** + * Sets orderSuccessTime + * + * @param string $orderSuccessTime
下单成功时间。下单成功时返回
+ * + * @return $this + */ + public function setOrderSuccessTime($orderSuccessTime) + { + $this->container['orderSuccessTime'] = $orderSuccessTime; + + return $this; + } + + /** + * Gets systemOrderNo + * + * @return string + */ + public function getSystemOrderNo() + { + return $this->container['systemOrderNo']; + } + + /** + * Sets systemOrderNo + * + * @param string $systemOrderNo
系统返回唯一订单号
+ * + * @return $this + */ + public function setSystemOrderNo($systemOrderNo) + { + $this->container['systemOrderNo'] = $systemOrderNo; + + return $this; + } + + /** + * Gets paySuccessTime + * + * @return string + */ + public function getPaySuccessTime() + { + return $this->container['paySuccessTime']; + } + + /** + * Sets paySuccessTime + * + * @param string $paySuccessTime
支付成功时间。支付成功时返回
+ * + * @return $this + */ + public function setPaySuccessTime($paySuccessTime) + { + $this->container['paySuccessTime'] = $paySuccessTime; + + return $this; + } + + /** + * Gets parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

业务商编

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantRequestNo + * + * @return string + */ + public function getMerchantRequestNo() + { + return $this->container['merchantRequestNo']; + } + + /** + * Sets merchantRequestNo + * + * @param string $merchantRequestNo

商户订单号

+ * + * @return $this + */ + public function setMerchantRequestNo($merchantRequestNo) + { + $this->container['merchantRequestNo'] = $merchantRequestNo; + + return $this; + } + + /** + * Gets parentMerchantRequestNo + * + * @return string + */ + public function getParentMerchantRequestNo() + { + return $this->container['parentMerchantRequestNo']; + } + + /** + * Sets parentMerchantRequestNo + * + * @param string $parentMerchantRequestNo
请求方订单号
+ * + * @return $this + */ + public function setParentMerchantRequestNo($parentMerchantRequestNo) + { + $this->container['parentMerchantRequestNo'] = $parentMerchantRequestNo; + + return $this; + } + + /** + * Gets supplierOrderNo + * + * @return string + */ + public function getSupplierOrderNo() + { + return $this->container['supplierOrderNo']; + } + + /** + * Sets supplierOrderNo + * + * @param string $supplierOrderNo
资源方订单号
+ * + * @return $this + */ + public function setSupplierOrderNo($supplierOrderNo) + { + $this->container['supplierOrderNo'] = $supplierOrderNo; + + return $this; + } + + /** + * Gets trxType + * + * @return string + */ + public function getTrxType() + { + return $this->container['trxType']; + } + + /** + * Sets trxType + * + * @param string $trxType
在字段用来表示通知类型是交易还是退款。
只有在异步通知结果里该参数才有值
 
+ * + * @return $this + */ + public function setTrxType($trxType) + { + $this->container['trxType'] = $trxType; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryKfcOrderResponseUnMarshaller.php b/lib/Service/TravelResources/Model/QueryKfcOrderResponseUnMarshaller.php new file mode 100644 index 0000000..0f5fb6c --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryKfcOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ + 'string', + 'eatType' => 'int', + 'storeAddress' => 'string', + 'storeName' => 'string', + 'items' => '\Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcItemsBean[]', + 'storeCode' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'cityName' => null, + 'eatType' => 'int32', + 'storeAddress' => null, + 'storeName' => null, + 'items' => null, + 'storeCode' => 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 = [ + 'cityName' => 'cityName', + 'eatType' => 'eatType', + 'storeAddress' => 'storeAddress', + 'storeName' => 'storeName', + 'items' => 'items', + 'storeCode' => 'storeCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cityName' => 'setCityName', + 'eatType' => 'setEatType', + 'storeAddress' => 'setStoreAddress', + 'storeName' => 'setStoreName', + 'items' => 'setItems', + 'storeCode' => 'setStoreCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cityName' => 'getCityName', + 'eatType' => 'getEatType', + 'storeAddress' => 'getStoreAddress', + 'storeName' => 'getStoreName', + 'items' => 'getItems', + 'storeCode' => 'getStoreCode' + ]; + + /** + * 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['cityName'] = isset($data['cityName']) ? $data['cityName'] : null; + $this->container['eatType'] = isset($data['eatType']) ? $data['eatType'] : null; + $this->container['storeAddress'] = isset($data['storeAddress']) ? $data['storeAddress'] : null; + $this->container['storeName'] = isset($data['storeName']) ? $data['storeName'] : null; + $this->container['items'] = isset($data['items']) ? $data['items'] : null; + $this->container['storeCode'] = isset($data['storeCode']) ? $data['storeCode'] : 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 cityName + * + * @return string + */ + public function getCityName() + { + return $this->container['cityName']; + } + + /** + * Sets cityName + * + * @param string $cityName
城市名称
+ * + * @return $this + */ + public function setCityName($cityName) + { + $this->container['cityName'] = $cityName; + + return $this; + } + + /** + * Gets eatType + * + * @return int + */ + public function getEatType() + { + return $this->container['eatType']; + } + + /** + * Sets eatType + * + * @param int $eatType
1:堂食 2:外带
+ * + * @return $this + */ + public function setEatType($eatType) + { + $this->container['eatType'] = $eatType; + + return $this; + } + + /** + * Gets storeAddress + * + * @return string + */ + public function getStoreAddress() + { + return $this->container['storeAddress']; + } + + /** + * Sets storeAddress + * + * @param string $storeAddress
餐厅地址
+ * + * @return $this + */ + public function setStoreAddress($storeAddress) + { + $this->container['storeAddress'] = $storeAddress; + + return $this; + } + + /** + * Gets storeName + * + * @return string + */ + public function getStoreName() + { + return $this->container['storeName']; + } + + /** + * Sets storeName + * + * @param string $storeName
餐厅名称
+ * + * @return $this + */ + public function setStoreName($storeName) + { + $this->container['storeName'] = $storeName; + + return $this; + } + + /** + * Gets items + * + * @return \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcItemsBean[] + */ + public function getItems() + { + return $this->container['items']; + } + + /** + * Sets items + * + * @param \Yeepay\Yop\Sdk\Service\TravelResources\Model\QueryKfcItemsBean[] $items
餐品明细
+ * + * @return $this + */ + public function setItems($items) + { + $this->container['items'] = $items; + + return $this; + } + + /** + * Gets storeCode + * + * @return string + */ + public function getStoreCode() + { + return $this->container['storeCode']; + } + + /** + * Sets storeCode + * + * @param string $storeCode
门店编号
+ * + * @return $this + */ + public function setStoreCode($storeCode) + { + $this->container['storeCode'] = $storeCode; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryOrderRequest.php b/lib/Service/TravelResources/Model/QueryOrderRequest.php new file mode 100644 index 0000000..1affc65 --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryOrderRequest.php @@ -0,0 +1,42 @@ +body; + } + + /** + * Sets body + * + * @param $body + * @return QueryOrderRequest + */ + public function setBody($body) + { + $this->body = $body; + return $this; + } + + public static function getOperationId() + { + return 'queryOrder'; + } + + +} diff --git a/lib/Service/TravelResources/Model/QueryOrderRequestDTO.php b/lib/Service/TravelResources/Model/QueryOrderRequestDTO.php new file mode 100644 index 0000000..6a7788c --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryOrderRequestDTO.php @@ -0,0 +1,402 @@ + 'string', + 'merchantNo' => 'string', + 'merchantRequestNo' => 'string', + 'parentMerchantRequestNo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $swaggerFormats = [ + 'parentMerchantNo' => null, + 'merchantNo' => null, + 'merchantRequestNo' => null, + 'parentMerchantRequestNo' => 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 = [ + 'parentMerchantNo' => 'parentMerchantNo', + 'merchantNo' => 'merchantNo', + 'merchantRequestNo' => 'merchantRequestNo', + 'parentMerchantRequestNo' => 'parentMerchantRequestNo' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'parentMerchantNo' => 'setParentMerchantNo', + 'merchantNo' => 'setMerchantNo', + 'merchantRequestNo' => 'setMerchantRequestNo', + 'parentMerchantRequestNo' => 'setParentMerchantRequestNo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'parentMerchantNo' => 'getParentMerchantNo', + 'merchantNo' => 'getMerchantNo', + 'merchantRequestNo' => 'getMerchantRequestNo', + 'parentMerchantRequestNo' => 'getParentMerchantRequestNo' + ]; + + /** + * 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['parentMerchantNo'] = isset($data['parentMerchantNo']) ? $data['parentMerchantNo'] : null; + $this->container['merchantNo'] = isset($data['merchantNo']) ? $data['merchantNo'] : null; + $this->container['merchantRequestNo'] = isset($data['merchantRequestNo']) ? $data['merchantRequestNo'] : null; + $this->container['parentMerchantRequestNo'] = isset($data['parentMerchantRequestNo']) ? $data['parentMerchantRequestNo'] : null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['parentMerchantNo'] === null) { + $invalidProperties[] = "'parentMerchantNo' can't be null"; + } + if ($this->container['merchantNo'] === null) { + $invalidProperties[] = "'merchantNo' can't be null"; + } + if ($this->container['merchantRequestNo'] === null) { + $invalidProperties[] = "'merchantRequestNo' can't be null"; + } + 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 parentMerchantNo + * + * @return string + */ + public function getParentMerchantNo() + { + return $this->container['parentMerchantNo']; + } + + /** + * Sets parentMerchantNo + * + * @param string $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

业务商编

+ * + * @return $this + */ + public function setMerchantNo($merchantNo) + { + $this->container['merchantNo'] = $merchantNo; + + return $this; + } + + /** + * Gets merchantRequestNo + * + * @return string + */ + public function getMerchantRequestNo() + { + return $this->container['merchantRequestNo']; + } + + /** + * Sets merchantRequestNo + * + * @param string $merchantRequestNo

商户订单号

+ * + * @return $this + */ + public function setMerchantRequestNo($merchantRequestNo) + { + $this->container['merchantRequestNo'] = $merchantRequestNo; + + return $this; + } + + /** + * Gets parentMerchantRequestNo + * + * @return string + */ + public function getParentMerchantRequestNo() + { + return $this->container['parentMerchantRequestNo']; + } + + /** + * Sets parentMerchantRequestNo + * + * @param string $parentMerchantRequestNo
请求方订单号
+ * + * @return $this + */ + public function setParentMerchantRequestNo($parentMerchantRequestNo) + { + $this->container['parentMerchantRequestNo'] = $parentMerchantRequestNo; + + 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)); + } +} + + diff --git a/lib/Service/TravelResources/Model/QueryOrderRequestMarshaller.php b/lib/Service/TravelResources/Model/QueryOrderRequestMarshaller.php new file mode 100644 index 0000000..f51552c --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryOrderRequestMarshaller.php @@ -0,0 +1,80 @@ +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 = (string)$request->getBody(); + $internalRequest->setContent($content); + $internalRequest->addHeader(Headers::CONTENT_LENGTH, strlen($content)); + $internalRequest->addHeader(Headers::CONTENT_TYPE, $this->contentType); + + return $internalRequest; + } +} +QueryOrderRequestMarshaller::__init(); diff --git a/lib/Service/TravelResources/Model/QueryOrderResponse.php b/lib/Service/TravelResources/Model/QueryOrderResponse.php new file mode 100644 index 0000000..d559add --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryOrderResponse.php @@ -0,0 +1,34 @@ +result = $result; + } + + /** + * @return QueryCinemaOrderResponseDTO + */ + function getResult() + { + return $this->result; + } +} diff --git a/lib/Service/TravelResources/Model/QueryOrderResponseUnMarshaller.php b/lib/Service/TravelResources/Model/QueryOrderResponseUnMarshaller.php new file mode 100644 index 0000000..190b77d --- /dev/null +++ b/lib/Service/TravelResources/Model/QueryOrderResponseUnMarshaller.php @@ -0,0 +1,39 @@ +clientHandler = new ClientHandler($clientParams); + } + + /** + * @param Model\CreateOrderRequest $request + * @return Model\CreateOrderResponse + * @throws YopClientException + */ + public function createOrder(Model\CreateOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\CreateOrderRequestMarshaller::getInstance(), + Model\CreateOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\KfcOrderRequest $request + * @return Model\KfcOrderResponse + * @throws YopClientException + */ + public function kfcOrder(Model\KfcOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\KfcOrderRequestMarshaller::getInstance(), + Model\KfcOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\KfcOrder0Request $request + * @return Model\KfcOrder0Response + * @throws YopClientException + */ + public function kfcOrder_0(Model\KfcOrder0Request $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\KfcOrder0RequestMarshaller::getInstance(), + Model\KfcOrder0ResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryCinemaOrderRequest $request + * @return Model\QueryCinemaOrderResponse + * @throws YopClientException + */ + public function queryCinemaOrder(Model\QueryCinemaOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryCinemaOrderRequestMarshaller::getInstance(), + Model\QueryCinemaOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryKfcOrderRequest $request + * @return Model\QueryKfcOrderResponse + * @throws YopClientException + */ + public function queryKfcOrder(Model\QueryKfcOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryKfcOrderRequestMarshaller::getInstance(), + Model\QueryKfcOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } + /** + * @param Model\QueryOrderRequest $request + * @return Model\QueryOrderResponse + * @throws YopClientException + */ + public function queryOrder(Model\QueryOrderRequest $request) + { + if ($request == null) { + throw new YopClientException("request is required."); + } + $clientExecutionParams = new ClientExecutionParams($request, Model\QueryOrderRequestMarshaller::getInstance(), + Model\QueryOrderResponseUnMarshaller::getInstance()); + return $this->clientHandler->execute($clientExecutionParams); + } +} diff --git a/lib/Service/TravelResources/TravelResourcesClientBuilder.php b/lib/Service/TravelResources/TravelResourcesClientBuilder.php new file mode 100644 index 0000000..6d0261e --- /dev/null +++ b/lib/Service/TravelResources/TravelResourcesClientBuilder.php @@ -0,0 +1,73 @@ +register('createOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('kfcOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('kfcOrder_0', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryCinemaOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryKfcOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + self::$authorizationReqRegistry->register('queryOrder', AuthorizationReqSupport::getAuthorizationReq('YOP-RSA2048-SHA256')); + } + + /** + * @var ClientParams + */ + private $clientParams; + + /** + * TravelResourcesClientBuilder constructor. + * @param ClientParams $clientParams + */ + public function __construct(ClientParams $clientParams) + { + $this->clientParams = $clientParams; + } + + public function build() + { + return new TravelResourcesClient($this->clientParams); + } + + /** + * @param $config AppSdkConfig|array|AppSdkConfigProvider + * @return TravelResourcesClientBuilder + * @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 TravelResourcesClientBuilder($clientParams); + } + +} +TravelResourcesClientBuilder::__init(); diff --git a/src/Commands/Account.php b/src/Commands/Account.php index dbb3d62..c5f7202 100644 --- a/src/Commands/Account.php +++ b/src/Commands/Account.php @@ -3,6 +3,7 @@ namespace Leady\YeePay\Commands; use Exception; +use Illuminate\Support\Facades\Log; use Yeepay\Yop\Sdk\Service\Account\AccountClientBuilder; use Yeepay\Yop\Sdk\Service\Account\Model\AccountinfosQueryRequest; use Yeepay\Yop\Sdk\Service\Account\Model\AutoWithdrawRuleQueryRequest; @@ -44,7 +45,7 @@ class Account extends InitConfig { $request = new TransferB2bQueryRequest(); $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setRequestNo($requestNo); + ->setRequestNo($requestNo); $response = $this->client->transferB2bQuery($request); $result = $response->getResult(); if ($result['returnCode'] == 'UA00000') { @@ -58,13 +59,13 @@ class Account extends InitConfig { $request = new TransferB2bOrderRequest(); $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setRequestNo($data['requestNo']) - ->setFromMerchantNo(config('yeepay.merchantNo')) - ->setToMerchantNo($data['merchantNo']) - ->setOrderAmount($data['amount']) - ->setFeeChargeSide($data['chargeSide']) - ->setUsage($data['usage']) - ->setNotifyUrl($data['notifyUrl']); + ->setRequestNo($data['requestNo']) + ->setFromMerchantNo(config('yeepay.merchantNo')) + ->setToMerchantNo($data['merchantNo']) + ->setOrderAmount($data['amount']) + ->setFeeChargeSide($data['chargeSide']) + ->setUsage($data['usage']) + ->setNotifyUrl($data['notifyUrl']); $response = $this->client->transferB2bOrder($request); $result = $response->getResult(); if ($result['returnCode'] == 'UA00000') { @@ -91,9 +92,9 @@ class Account extends InitConfig { $request = new WithdrawCardBindRequest(); $request->setMerchantNo($data['merchantNo']) - ->setBankCardType($data['bankCardType']) - ->setAccountNo($data['accountNo']) - ->setBankCode($data['bankCode']); + ->setBankCardType($data['bankCardType']) + ->setAccountNo($data['accountNo']) + ->setBankCode($data['bankCode']); $response = $this->client->withdrawCardBind($request); $result = $response->getResult(); if ($result['returnCode'] == 'UA00000') { @@ -107,8 +108,8 @@ class Account extends InitConfig { $request = new WithdrawCardModifyRequest(); $request->setMerchantNo($data['merchantNo']) - ->setBankCardOperateType('CANCELLED') - ->setBindId($data['bindId']); + ->setBankCardOperateType('CANCELLED') + ->setBindId($data['bindId']); $response = $this->client->withdrawCardModify($request); $result = $response->getResult(); @@ -132,22 +133,33 @@ class Account extends InitConfig } } + /** + * Notes: 付款-下单 + * + * @Author: 玄尘 + * @Date: 2024/4/1 10:38 + * @param array $data + * @return array + * @throws \Yeepay\Yop\Sdk\Exception\YopClientException + */ public function PayOrder(array $data) { $request = new PayOrderRequest(); $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setMerchantNo(config('yeepay.merchantNo')) - ->setRequestNo($data['requestNo']) - ->setOrderAmount($data['amount']) - ->setFeeChargeSide('PAYEE') - ->setReceiveType('REAL_TIME') - ->setReceiverBankCode($data['receiverBankCode']) - ->setReceiverAccountNo($data['receiverAccountNo']) - ->setReceiverAccountName($data['receiverAccountName']) - ->setBankAccountType($data['bankAccountType'] ?? 'DEBIT_CARD') - ->setNotifyUrl($data['notifyUrl']); + ->setMerchantNo(config('yeepay.merchantNo')) + ->setRequestNo($data['requestNo']) + ->setOrderAmount($data['amount']) + ->setFeeChargeSide('PAYEE') + ->setReceiveType('REAL_TIME') + ->setFeeChargeSide('PAYEE') + ->setReceiverBankCode($data['receiverBankCode'] ?? '') + ->setReceiverAccountNo($data['receiverAccountNo']) + ->setReceiverAccountName($data['receiverAccountName']) + ->setBankAccountType($data['bankAccountType'] ?? 'DEBIT_CARD') + ->setNotifyUrl($data['notifyUrl']); $response = $this->client->payOrder($request); $result = $response->getResult(); + Log::channel('yeepay')->info('PayOrder', $result); if ($result['returnCode'] == 'UA00000') { return $this->success($result); } else { @@ -159,12 +171,12 @@ class Account extends InitConfig { $request = new WithdrawOrderRequest(); $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setMerchantNo($data['merchantNo']) - ->setRequestNo($data['requestNo']) - ->setBankCardId($data['bankCardId']) - ->setReceiveType('TWO_HOUR') - ->setOrderAmount($data['amount']) - ->setNotifyUrl($data['notifyUrl']); + ->setMerchantNo($data['merchantNo']) + ->setRequestNo($data['requestNo']) + ->setBankCardId($data['bankCardId']) + ->setReceiveType('TWO_HOUR') + ->setOrderAmount($data['amount']) + ->setNotifyUrl($data['notifyUrl']); $response = $this->client->withdrawOrder($request); $result = $response->getResult(); if ($result['returnCode'] == 'UA00000') { @@ -176,18 +188,18 @@ class Account extends InitConfig public function AutoWithdrawRule(string $merchantNo) { - try{ - $request=new AutoWithdrawRuleQueryRequest(); + try { + $request = new AutoWithdrawRuleQueryRequest(); $request->setParentMerchantNo(config('yeepay.merchantNo')) ->setMerchantNo($merchantNo); - $response=$this->client->autoWithdrawRuleQuery($request); - $result=$response->getResult(); + $response = $this->client->autoWithdrawRuleQuery($request); + $result = $response->getResult(); if ($result['returnCode'] == 'UA00000') { return $this->success($result); } else { return $this->error($result['returnMsg']); } - }catch (Exception $e){ + } catch (Exception $e) { return $this->error($e->getMessage()); } } diff --git a/src/Commands/Aggpay.php b/src/Commands/Aggpay.php index 457fc29..29a1587 100644 --- a/src/Commands/Aggpay.php +++ b/src/Commands/Aggpay.php @@ -5,84 +5,123 @@ namespace Leady\YeePay\Commands; use Exception; use Yeepay\Yop\Sdk\Service\Aggpay\AggpayClientBuilder; use Yeepay\Yop\Sdk\Service\Aggpay\Model\PrePayRequest; +use Yeepay\Yop\Sdk\Service\Aggpay\Model\TutelagePrePayRequest; use Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigAdd0Request; use Yeepay\Yop\Sdk\Service\Aggpay\Model\WechatConfigQuery0Request; class Aggpay extends InitConfig { - - protected $client; - - public function __construct() - { - parent::__construct(); - $this->client = AggpayClientBuilder::builder($this->getSdkConfig())->build(); - } - - public function PrePay(array $data) - { - try { - $request = new PrePayRequest(); - $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setMerchantNo(config('yeepay.merchantNo')) - ->setOrderId($data['orderId'] ?? '') - ->setOrderAmount($data['orderAmount'] ?? '') - ->setExpiredTime(now()->addMinutes(30)->toDateTimeString()) - ->setNotifyUrl($data['notifyUrl'] ?? '') - ->setRedirectUrl($data['redirectUrl'] ?? '') - ->setMemo($data['memo'] ?? '') - ->setGoodsName($data['goodsName'] ?? '') - ->setPayWay($data['payWay'] ?? 'USER_SCAN') - ->setChannel($data['channel'] ?? '') - ->setUserIp($data['userIp']) - ->setFundProcessType($data['fundProcessType'] ?? 'REAL_TIME') - ->setAppId($data['appId'] ?? '') - ->setUserId($data['userId'] ?? '') - ->setScene('ONLINE'); - $response = $this->client->prePay($request); - $result = $response->getResult(); - if ($result['code'] == '00000') { - return $this->success($result); - } else { - return $this->error($result['returnMsg']); - } - } catch (Exception $e) { - return $this->error($e->getMessage()); - } - - } - - public function WechatConfig(array $data) - { - $url = $this->getJson($data['url'] ?? ''); - $appId = $this->getJson($data['appId'] ?? ''); - - $request = new WechatConfigAdd0Request(); - $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setMerchantNo(config('yeepay.merchantNo')) - ->setTradeAuthDirList($url) - ->setAppIdList($appId); - $response = $this->client->wechatConfigAdd_0($request); - $result = $response->getResult(); - if ($result['code'] == '00000') { - return $this->success($result); - } else { - return $this->error($result['returnMsg']); - } - } - - public function WechatConfigQuery() - { - $request = new WechatConfigQuery0Request(); - $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setMerchantNo(config('yeepay.merchantNo')); - $response = $this->client->wechatConfigQuery_0($request); - $result = $response->getResult(); - if ($result['code'] == '00000') { - return $this->success($result); - } else { - return $this->error($result['returnMsg']); - } - } - + + protected $client; + + public function __construct() + { + parent::__construct(); + $this->client = AggpayClientBuilder::builder($this->getSdkConfig())->build(); + } + + public function PrePay(array $data) + { + try { + $request = new PrePayRequest(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setOrderId($data['orderId'] ?? '') + ->setOrderAmount($data['orderAmount'] ?? '') + ->setExpiredTime(now()->addMinutes(30)->toDateTimeString()) + ->setNotifyUrl($data['notifyUrl'] ?? '') + ->setRedirectUrl($data['redirectUrl'] ?? '') + ->setMemo($data['memo'] ?? '') + ->setGoodsName($data['goodsName'] ?? '') + ->setPayWay($data['payWay'] ?? 'USER_SCAN') + ->setChannel($data['channel'] ?? '') + ->setUserIp($data['userIp']) + ->setFundProcessType($data['fundProcessType'] ?? 'REAL_TIME') + ->setAppId($data['appId'] ?? '') + ->setUserId($data['userId'] ?? '') + ->setScene('OFFLINE'); + + $response = $this->client->prePay($request); + $result = $response->getResult(); + if ($result['code'] == '00000') { + return $this->success($result); + } else { + return $this->error($result['returnMsg']); + } + } catch (Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * Notes: 聚合支付托管下单 + * + * @Author: 玄尘 + * @Date: 2024/4/1 15:19 + */ + public function tutelagePrePay(array $data) + { + $request = new TutelagePrePayRequest(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setOrderId($data['orderId'] ?? '') + ->setOrderAmount($data['orderAmount'] ?? '') + ->setExpiredTime(now()->addMinutes(30)->toDateTimeString()) + ->setNotifyUrl($data['notifyUrl'] ?? '') + ->setRedirectUrl($data['redirectUrl'] ?? '') + ->setMemo($data['memo'] ?? '') + ->setGoodsName($data['goodsName'] ?? '') + ->setPayWay($data['payWay'] ?? 'USER_SCAN') + ->setChannel($data['channel'] ?? '') + ->setUserIp($data['userIp']) + ->setToken($data['token'] ?? '') + ->setFundProcessType($data['fundProcessType'] ?? 'REAL_TIME') + ->setScene('OFFLINE'); + + try { + $response = $this->client->tutelagePrePay($request); + $result = $response->getResult(); + if ($result['code'] == '00000') { + return $this->success($result); + } else { + return $this->error($result['returnMsg']); + } + } catch (\Exception $e) { + return $this->error($e->getMessage()); + } + } + + public function WechatConfig(array $data) + { + $url = $this->getJson($data['url'] ?? ''); + $appId = $this->getJson($data['appId'] ?? ''); + $request = new WechatConfigAdd0Request(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setTradeAuthDirList($url) + ->setAppIdList($appId); + $response = $this->client->wechatConfigAdd_0($request); + $result = $response->getResult(); + if ($result['code'] == '00000') { + return $this->success($result); + } else { + return $this->error($result['returnMsg']); + } + } + + public function WechatConfigQuery(array $data) + { + $request = new WechatConfigQuery0Request(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setAppIdType($data['appIdType'] ?? ''); + $response = $this->client->wechatConfigQuery_0($request); + $result = $response->getResult(); + if ($result['code'] == '00000') { + return $this->success($result); + } else { + return $this->error($result['returnMsg']); + } + } + } \ No newline at end of file diff --git a/src/Commands/Trade.php b/src/Commands/Trade.php index 9d26b2a..5549b08 100644 --- a/src/Commands/Trade.php +++ b/src/Commands/Trade.php @@ -3,44 +3,144 @@ namespace Leady\YeePay\Commands; use Exception; +use Yeepay\Yop\Sdk\Service\Trade\Model\OrderQueryRequest; use Yeepay\Yop\Sdk\Service\Trade\Model\OrderRequest; +use Yeepay\Yop\Sdk\Service\Trade\Model\RefundQueryRequest; +use Yeepay\Yop\Sdk\Service\Trade\Model\RefundRequest; use Yeepay\Yop\Sdk\Service\Trade\TradeClientBuilder; class Trade extends InitConfig { - - protected $client; - - public function __construct() - { - parent::__construct(); - $this->client = TradeClientBuilder::builder($this->getSdkConfig())->build(); - } - - public function order(array $data) - { - try { - $request = new OrderRequest(); - $request->setParentMerchantNo(config('yeepay.merchantNo')) - ->setMerchantNo(config('yeepay.merchantNo')) - ->setOrderId($data['order_id']) - ->setOrderAmount($data['amount']) - ->setGoodsName($data['goods_name']) - ->setFundProcessType($data['fundProcessType'] ?? 'REAL_TIME') - ->setExpiredTime($data['expiredTime'] ?? now()->addMinutes(30)) - ->setNotifyUrl($data['notifyUrl']); - $respnonse = $this->client->order($request); - - $result = $respnonse->getResult(); - if ($result['code'] == 'OPR00000') { - return $this->success($result); - } else { - return $this->error($result['message']); - } - } catch (Exception $e) { - return $this->error($e->getMessage()); - } - - } - + + protected $client; + + public function __construct() + { + parent::__construct(); + $this->client = TradeClientBuilder::builder($this->getSdkConfig())->build(); + } + + /** + * Notes: 统一下单 + * + * @Author: 玄尘 + * @Date: 2024/4/1 10:00 + * @param array $data + * @return array + */ + public function order(array $data) + { + try { + $request = new OrderRequest(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setOrderId($data['order_id']) + ->setOrderAmount($data['amount']) + ->setGoodsName($data['goods_name']) + ->setFundProcessType($data['fundProcessType'] ?? 'REAL_TIME') + ->setExpiredTime($data['expiredTime'] ?? now()->addMinutes(30)) + ->setNotifyUrl($data['notifyUrl']); + $respnonse = $this->client->order($request); + + $result = $respnonse->getResult(); + if ($result['code'] == 'OPR00000') { + return $this->success($result); + } else { + return $this->error($result['message']); + } + } catch (Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * Notes: 查询订单 + * + * @Author: 玄尘 + * @Date: 2024/4/1 9:57 + * @param $orderId + * @return array + */ + public function query($orderId) + { + try { + $request = new OrderQueryRequest(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setOrderId($orderId); + + $respnonse = $this->client->orderQuery($request); + + $result = $respnonse->getResult(); + if ($result['code'] == 'OPR00000') { + return $this->success($result); + } else { + return $this->error($result['message']); + } + } catch (Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * Notes: 退款 + * + * @Author: 玄尘 + * @Date: 2024/4/1 10:01 + * @param array $data + * @return array + */ + public function refund(array $data) + { + try { + $request = new RefundRequest(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setOrderId($data['order_id']) + ->setRefundRequestId($data['refundRequestId']) + ->setRefundAmount($data['refundAmount']) + ->setDescription($data['description'] ?? '') + ->setNotifyUrl($data['notifyUrl']); + + $respnonse = $this->client->refund($request); + + $result = $respnonse->getResult(); + if ($result['code'] == 'OPR00000') { + return $this->success($result); + } else { + return $this->error($result['message']); + } + } catch (Exception $e) { + return $this->error($e->getMessage()); + } + } + + /** + * Notes: 查询退款状态 + * + * @Author: 玄尘 + * @Date: 2024/4/1 10:13 + */ + public function refundQuery(array $data) + { + try { + $request = new RefundQueryRequest(); + $request->setParentMerchantNo(config('yeepay.merchantNo')) + ->setMerchantNo(config('yeepay.merchantNo')) + ->setOrderId($data['order_id']) + ->setRefundRequestId($data['refundRequestId']); + + $respnonse = $this->client->refundQuery($request); + + $result = $respnonse->getResult(); + if ($result['code'] == 'OPR00000') { + return $this->success($result); + } else { + return $this->error($result['message']); + } + } catch (Exception $e) { + return $this->error($e->getMessage()); + } + } + } \ No newline at end of file