├── LICENSE ├── README.md ├── composer.json ├── examples ├── address │ └── createAddress.php ├── card │ ├── createCard.php │ └── getCards.php ├── charges │ ├── cancelCharge.php │ ├── cancelChargePartial.php │ ├── captureCharge.php │ ├── captureChargePartial.php │ ├── getChargeById.php │ └── retryCharge.php ├── customer │ ├── createCustomer.php │ ├── getCustomerById.php │ └── updateCustomer.php ├── invoice │ └── getInvoiceById.php ├── marketplace │ ├── createAnticipation.php │ ├── createRecipient.php │ ├── createSplit.php │ └── createTransfer.php ├── order │ ├── createOrderBankTransfer.php │ ├── createOrderBoleto.php │ ├── createOrderCheckout.php │ ├── createOrderCreditCard.php │ ├── createOrderDebitCard.php │ ├── createOrderVoucher.php │ └── getOrderById.php ├── plan │ └── createPlan.php └── subscription │ ├── cancelSubscription.php │ ├── createSubscriptionPrepaidBoleto.php │ ├── createSubscriptionPrepaidCreditCard.php │ ├── getSubscriptionById.php │ └── updateSubscriptionCard.php ├── phpunit.xml ├── src ├── APIException.php ├── APIHelper.php ├── Configuration.php ├── Controllers │ ├── BaseController.php │ ├── ChargesController.php │ ├── CustomersController.php │ ├── InvoicesController.php │ ├── OrdersController.php │ ├── PlansController.php │ ├── RecipientsController.php │ ├── SellersController.php │ ├── SubscriptionsController.php │ ├── TokensController.php │ ├── TransactionsController.php │ └── TransfersController.php ├── Exceptions │ └── ErrorException.php ├── Http │ ├── HttpCallBack.php │ ├── HttpContext.php │ ├── HttpMethod.php │ ├── HttpRequest.php │ └── HttpResponse.php ├── Models │ ├── Address.php │ ├── Address1.php │ ├── ApplePay.php │ ├── Authentication.php │ ├── Authentication2.php │ ├── BankAccount.php │ ├── BankAccount1.php │ ├── BankTransfer.php │ ├── BankTransfer1.php │ ├── BankTransfer2.php │ ├── BillingAddress.php │ ├── BillingAddress1.php │ ├── Billingaddress3.php │ ├── Boleto1.php │ ├── CancelSplitRequest.php │ ├── Card.php │ ├── Card1.php │ ├── Card11.php │ ├── Card9.php │ ├── Charge.php │ ├── ChargesCaptureRequest.php │ ├── ChargesCaptureResponse.php │ ├── ChargesCardRequest.php │ ├── ChargesCardResponse.php │ ├── ChargesConfirmPaymentResponse.php │ ├── ChargesDueDateRequest.php │ ├── ChargesDueDateResponse.php │ ├── ChargesMetadataRequest.php │ ├── ChargesMetadataResponse.php │ ├── ChargesPaymentMethodRequest.php │ ├── ChargesPaymentMethodResponse.php │ ├── ChargesRequest.php │ ├── ChargesRequest1.php │ ├── ChargesResponse.php │ ├── ChargesResponse2.php │ ├── ChargesRetryResponse.php │ ├── ChargesTransactionsResponse.php │ ├── Checkout.php │ ├── ClearSaleRequest.php │ ├── Contactless.php │ ├── CreateAccessTokenRequest.php │ ├── CreateAddressRequest.php │ ├── CreateAnticipationRequest.php │ ├── CreateAntifraudRequest.php │ ├── CreateApplePayHeaderRequest.php │ ├── CreateApplePayRequest.php │ ├── CreateAutomaticAnticipationSettingsRequest.php │ ├── CreateBankAccountRequest.php │ ├── CreateBankTransferPaymentRequest.php │ ├── CreateBoletoPaymentRequest.php │ ├── CreateCancelChargeRequest.php │ ├── CreateCancelChargeSplitRulesRequest.php │ ├── CreateCancelSubscriptionRequest.php │ ├── CreateCaptureChargeRequest.php │ ├── CreateCardOptionsRequest.php │ ├── CreateCardPaymentContactlessPOIRequest.php │ ├── CreateCardPaymentContactlessRequest.php │ ├── CreateCardPaymentTokenRequest.php │ ├── CreateCardRequest.php │ ├── CreateCardTokenRequest.php │ ├── CreateCashPaymentRequest.php │ ├── CreateChargeRequest.php │ ├── CreateCheckoutBankTransferRequest.php │ ├── CreateCheckoutBoletoPaymentRequest.php │ ├── CreateCheckoutCardInstallmentOptionRequest.php │ ├── CreateCheckoutCreditCardPaymentRequest.php │ ├── CreateCheckoutDebitCardPaymentRequest.php │ ├── CreateCheckoutPaymentRequest.php │ ├── CreateClearSaleRequest.php │ ├── CreateConfirmPaymentRequest.php │ ├── CreateCreditCardPaymentRequest.php │ ├── CreateCustomerRequest.php │ ├── CreateDebitCardPaymentRequest.php │ ├── CreateDeviceRequest.php │ ├── CreateDiscountRequest.php │ ├── CreateEmvDataDecryptRequest.php │ ├── CreateEmvDataDukptDecryptRequest.php │ ├── CreateEmvDataTlvDecryptRequest.php │ ├── CreateEmvDecryptRequest.php │ ├── CreateFineRequest.php │ ├── CreateGooglePayHeaderRequest.php │ ├── CreateGooglePayRequest.php │ ├── CreateIncrementRequest.php │ ├── CreateInterestRequest.php │ ├── CreateInvoiceRequest.php │ ├── CreateLocationRequest.php │ ├── CreateOrderItemRequest.php │ ├── CreateOrderRequest.php │ ├── CreatePaymentAuthenticationRequest.php │ ├── CreatePaymentRequest.php │ ├── CreatePeriodRequest.php │ ├── CreatePhoneRequest.php │ ├── CreatePhonesRequest.php │ ├── CreatePixPaymentRequest.php │ ├── CreatePlanItemRequest.php │ ├── CreatePlanRequest.php │ ├── CreatePriceBracketRequest.php │ ├── CreatePricingSchemeRequest.php │ ├── CreatePrivateLabelPaymentRequest.php │ ├── CreateRecipientRequest.php │ ├── CreateSellerRequest.php │ ├── CreateSetupRequest.php │ ├── CreateShippingRequest.php │ ├── CreateSplitOptionsRequest.php │ ├── CreateSplitRequest.php │ ├── CreateSubMerchantRequest.php │ ├── CreateSubscriptionItemRequest.php │ ├── CreateSubscriptionRequest.php │ ├── CreateSubscriptionSplitRequest.php │ ├── CreateThreeDSecureRequest.php │ ├── CreateTokenRequest.php │ ├── CreateTransactionReportFileRequest.php │ ├── CreateTransfer.php │ ├── CreateTransferRequest.php │ ├── CreateTransferSettingsRequest.php │ ├── CreateUsageRequest.php │ ├── CreateVoucherPaymentRequest.php │ ├── CreateWithdrawRequest.php │ ├── CreditCard1.php │ ├── CreditCard2.php │ ├── CurrentCycle.php │ ├── Customer.php │ ├── Customer8.php │ ├── CustomersAccessTokensRequest.php │ ├── CustomersAccessTokensResponse.php │ ├── CustomersAccessTokensResponse1.php │ ├── CustomersAddressesRequest.php │ ├── CustomersAddressesRequest1.php │ ├── CustomersAddressesResponse.php │ ├── CustomersAddressesResponse1.php │ ├── CustomersCardsRenewResponse.php │ ├── CustomersCardsRequest.php │ ├── CustomersCardsRequest1.php │ ├── CustomersCardsResponse.php │ ├── CustomersCardsResponse1.php │ ├── CustomersMetadataRequest.php │ ├── CustomersMetadataResponse.php │ ├── CustomersRequest.php │ ├── CustomersRequest1.php │ ├── CustomersResponse.php │ ├── CustomersResponse3.php │ ├── Cycle.php │ ├── DebitCard1.php │ ├── DebitCard2.php │ ├── DefaultBankAccount.php │ ├── DefaultBankAccount1.php │ ├── Device.php │ ├── Device1.php │ ├── Fine.php │ ├── GatewayResponse.php │ ├── GetAccessTokenResponse.php │ ├── GetAddressResponse.php │ ├── GetAnticipationLimitResponse.php │ ├── GetAnticipationLimitsResponse.php │ ├── GetAnticipationResponse.php │ ├── GetAntifraudResponse.php │ ├── GetAutomaticAnticipationResponse.php │ ├── GetBalanceResponse.php │ ├── GetBankAccountResponse.php │ ├── GetBankTransferTransactionResponse.php │ ├── GetBillingAddressResponse.php │ ├── GetBoletoTransactionResponse.php │ ├── GetCardResponse.php │ ├── GetCardTokenResponse.php │ ├── GetCashTransactionResponse.php │ ├── GetChargeResponse.php │ ├── GetChargesSummaryResponse.php │ ├── GetCheckoutBankTransferPaymentResponse.php │ ├── GetCheckoutBoletoPaymentResponse.php │ ├── GetCheckoutCardInstallmentOptionsResponse.php │ ├── GetCheckoutCreditCardPaymentResponse.php │ ├── GetCheckoutDebitCardPaymentResponse.php │ ├── GetCheckoutPaymentResponse.php │ ├── GetCheckoutPaymentSettingsResponse.php │ ├── GetCreditCardTransactionResponse.php │ ├── GetCustomerResponse.php │ ├── GetDebitCardTransactionResponse.php │ ├── GetDeviceResponse.php │ ├── GetDiscountResponse.php │ ├── GetFineResponse.php │ ├── GetGatewayErrorResponse.php │ ├── GetGatewayRecipientResponse.php │ ├── GetGatewayResponseResponse.php │ ├── GetIncrementResponse.php │ ├── GetInterestResponse.php │ ├── GetInvoiceItemResponse.php │ ├── GetInvoiceResponse.php │ ├── GetLocationResponse.php │ ├── GetOrderItemResponse.php │ ├── GetOrderResponse.php │ ├── GetPaymentAuthenticationResponse.php │ ├── GetPeriodResponse.php │ ├── GetPhoneResponse.php │ ├── GetPhonesResponse.php │ ├── GetPixBankAccountResponse.php │ ├── GetPixPayerResponse.php │ ├── GetPixTransactionResponse.php │ ├── GetPlanItemResponse.php │ ├── GetPlanResponse.php │ ├── GetPriceBracketResponse.php │ ├── GetPricingSchemeResponse.php │ ├── GetPrivateLabelTransactionResponse.php │ ├── GetRecipientResponse.php │ ├── GetSafetyPayTransactionResponse.php │ ├── GetSellerResponse.php │ ├── GetSellersRequest.php │ ├── GetSetupResponse.php │ ├── GetShippingResponse.php │ ├── GetSplitOptionsResponse.php │ ├── GetSplitResponse.php │ ├── GetSubscriptionItemResponse.php │ ├── GetSubscriptionResponse.php │ ├── GetSubscriptionSplitResponse.php │ ├── GetThreeDSecureResponse.php │ ├── GetTokenResponse.php │ ├── GetTransactionReportFileResponse.php │ ├── GetTransactionResponse.php │ ├── GetTransfer.php │ ├── GetTransferResponse.php │ ├── GetTransferSettingsResponse.php │ ├── GetTransferSourceResponse.php │ ├── GetTransferTargetResponse.php │ ├── GetUsageReportResponse.php │ ├── GetUsageResponse.php │ ├── GetUsagesDetailsResponse.php │ ├── GetVoucherTransactionResponse.php │ ├── GetWithdrawResponse.php │ ├── GetWithdrawSourceResponse.php │ ├── GetWithdrawTargetResponse.php │ ├── GooglePay.php │ ├── Header.php │ ├── Header1.php │ ├── Interest.php │ ├── Invoice.php │ ├── InvoicesMetadataRequest.php │ ├── InvoicesMetadataResponse.php │ ├── InvoicesResponse.php │ ├── InvoicesResponse2.php │ ├── InvoicesStatusResponse.php │ ├── ListAccessTokensResponse.php │ ├── ListAddressesResponse.php │ ├── ListAnticipationResponse.php │ ├── ListCardsResponse.php │ ├── ListChargeTransactionsResponse.php │ ├── ListChargesResponse.php │ ├── ListCustomersResponse.php │ ├── ListCyclesResponse.php │ ├── ListDiscountsResponse.php │ ├── ListIncrementsResponse.php │ ├── ListInvoicesResponse.php │ ├── ListOrderResponse.php │ ├── ListPlansResponse.php │ ├── ListRecipientResponse.php │ ├── ListSellerResponse.php │ ├── ListSubscriptionItemsResponse.php │ ├── ListSubscriptionsResponse.php │ ├── ListTransactionsFilesResponse.php │ ├── ListTransactionsResponse.php │ ├── ListTransferResponse.php │ ├── ListTransfers.php │ ├── ListUsagesDetailsResponse.php │ ├── ListUsagesResponse.php │ ├── ListWithdrawals.php │ ├── Location.php │ ├── Max.php │ ├── Min.php │ ├── Options1.php │ ├── Options2.php │ ├── Order.php │ ├── OrdersClosedResponse.php │ ├── OrdersItemsRequest.php │ ├── OrdersItemsRequest1.php │ ├── OrdersItemsResponse.php │ ├── OrdersItemsResponse1.php │ ├── OrdersMetadataRequest.php │ ├── OrdersMetadataResponse.php │ ├── OrdersRequest.php │ ├── OrdersResponse.php │ ├── OrdersResponse1.php │ ├── Paging.php │ ├── PagingResponse.php │ ├── Payment.php │ ├── Period.php │ ├── Pix.php │ ├── PixAdditionalInformation.php │ ├── Plan.php │ ├── PlansItemsRequest.php │ ├── PlansItemsRequest1.php │ ├── PlansItemsResponse.php │ ├── PlansMetadataRequest.php │ ├── PlansMetadataResponse.php │ ├── PlansRequest.php │ ├── PlansRequest1.php │ ├── PlansResponse.php │ ├── PlansResponse1.php │ ├── PriceBracket.php │ ├── PricingScheme.php │ ├── PricingScheme3.php │ ├── PricingScheme4.php │ ├── PrivateLabel.php │ ├── Recipient.php │ ├── RecipientsAnticipationLimitsResponse.php │ ├── RecipientsAnticipationsRequest.php │ ├── RecipientsAnticipationsResponse.php │ ├── RecipientsAnticipationsResponse1.php │ ├── RecipientsAutomaticAnticipationSettingsResponse.php │ ├── RecipientsBalanceResponse.php │ ├── RecipientsCodeResponse.php │ ├── RecipientsDefaultBankAccountRequest.php │ ├── RecipientsDefaultBankAccountResponse.php │ ├── RecipientsMetadataRequest.php │ ├── RecipientsMetadataResponse.php │ ├── RecipientsRequest.php │ ├── RecipientsRequest1.php │ ├── RecipientsResponse.php │ ├── RecipientsResponse1.php │ ├── RecipientsTransferSettingsResponse.php │ ├── RecipientsTransfersRequest.php │ ├── RecipientsTransfersResponse.php │ ├── RecipientsTransfersResponse1.php │ ├── Setup.php │ ├── Setup1.php │ ├── Shipping.php │ ├── Shipping3.php │ ├── Split.php │ ├── Submerchant.php │ ├── SubscriptionsBillingDateRequest.php │ ├── SubscriptionsCardRequest.php │ ├── SubscriptionsCyclesPayRequest.php │ ├── SubscriptionsCyclesPayResponse.php │ ├── SubscriptionsCyclesResponse.php │ ├── SubscriptionsCyclesResponse2.php │ ├── SubscriptionsDiscountsRequest.php │ ├── SubscriptionsDiscountsResponse.php │ ├── SubscriptionsGatewayAffiliationIdRequest.php │ ├── SubscriptionsIncrementsRequest.php │ ├── SubscriptionsIncrementsResponse.php │ ├── SubscriptionsItemsRequest.php │ ├── SubscriptionsItemsRequest1.php │ ├── SubscriptionsItemsResponse3.php │ ├── SubscriptionsItemsUsagesResponse.php │ ├── SubscriptionsItemsUsagesResponse1.php │ ├── SubscriptionsItemsUsagesUsageIdResponse.php │ ├── SubscriptionsMetadataRequest.php │ ├── SubscriptionsMinimumPriceRequest.php │ ├── SubscriptionsPartialInvoiceResponse.php │ ├── SubscriptionsPaymentMethodRequest.php │ ├── SubscriptionsPeriodsLatestEndAtRequest.php │ ├── SubscriptionsRequest.php │ ├── SubscriptionsRequest1.php │ ├── SubscriptionsResponse3.php │ ├── SubscriptionsStartAtRequest.php │ ├── ThreedSecure.php │ ├── ThreedSecure1.php │ ├── Token.php │ ├── TokensRequest.php │ ├── TokensResponse.php │ ├── UpdateAddressRequest.php │ ├── UpdateAutomaticAnticipationSettingsRequest.php │ ├── UpdateCardRequest.php │ ├── UpdateChargeCardRequest.php │ ├── UpdateChargeDueDateRequest.php │ ├── UpdateChargePaymentMethodRequest.php │ ├── UpdateCurrentCycleEndDateRequest.php │ ├── UpdateCurrentCycleStatusRequest.php │ ├── UpdateCustomerRequest.php │ ├── UpdateInvoiceStatusRequest.php │ ├── UpdateMetadataRequest.php │ ├── UpdateOrderItemRequest.php │ ├── UpdateOrderStatusRequest.php │ ├── UpdatePlanItemRequest.php │ ├── UpdatePlanRequest.php │ ├── UpdatePriceBracketRequest.php │ ├── UpdatePricingSchemeRequest.php │ ├── UpdateRecipientBankAccountRequest.php │ ├── UpdateRecipientRequest.php │ ├── UpdateSellerRequest.php │ ├── UpdateSubscriptionAffiliationIdRequest.php │ ├── UpdateSubscriptionBillingDateRequest.php │ ├── UpdateSubscriptionCardRequest.php │ ├── UpdateSubscriptionDueDaysRequest.php │ ├── UpdateSubscriptionItemRequest.php │ ├── UpdateSubscriptionMinimumPriceRequest.php │ ├── UpdateSubscriptionPaymentMethodRequest.php │ ├── UpdateSubscriptionSplitRequest.php │ ├── UpdateSubscriptionStartAtRequest.php │ ├── UpdateTransferSettingsRequest.php │ ├── Usages.php │ └── Voucher.php ├── MundiAPIClient.php └── Utils │ └── DateTimeHelper.php └── tests ├── Controllers ├── ChargesControllerTest.php ├── CustomersControllerTest.php ├── InvoicesControllerTest.php ├── OrdersControllerTest.php ├── PlansControllerTest.php ├── RecipientsControllerTest.php ├── SubscriptionsControllerTest.php └── TransfersControllerTest.php ├── HttpCallBackCatcher.php ├── TestHelper.php └── bootstrap.php /LICENSE: -------------------------------------------------------------------------------- 1 | License: 2 | ======== 3 | The MIT License (MIT) 4 | http://opensource.org/licenses/MIT 5 | 6 | Copyright (c) 2014 - 2016 APIMATIC Limited 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Trade Mark: 27 | ========== 28 | APIMATIC is a trade mark for APIMATIC Limited -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "mundipagg/mundiapi", 3 | "type": "library", 4 | "description": "Mundipagg API", 5 | "keywords": ["MundiAPI","API","SDK"], 6 | "homepage": "https://apimatic.io", 7 | "license": "MIT", 8 | "authors": [ 9 | { 10 | "name": "APIMatic SDK Generator", 11 | "email": "support@apimatic.io", 12 | "homepage": "https://apimatic.io", 13 | "role": "API Tool" 14 | } 15 | ], 16 | "require": { 17 | "php": ">=5.4.0", 18 | "ext-curl": "*", 19 | "ext-json": "*", 20 | "ext-mbstring": "*", 21 | "apimatic/unirest-php": "^2.0.0", 22 | "apimatic/jsonmapper": "^1.3.1" 23 | }, 24 | "require-dev": { 25 | "squizlabs/php_codesniffer": "^2.7", 26 | "phpunit/phpunit": "4.8.*" 27 | }, 28 | "autoload": { 29 | "psr-4": { 30 | "MundiAPILib\\": "src/" 31 | } 32 | } 33 | } -------------------------------------------------------------------------------- /examples/address/createAddress.php: -------------------------------------------------------------------------------- 1 | getCustomers(); 14 | 15 | $customerId = "cus_ExAmPlExxxxxxxxx"; 16 | 17 | $request = new \MundiAPILib\Models\CreateAddressRequest(); 18 | 19 | $request = new \MundiAPILib\Models\CreateAddressRequest(); 20 | $request->line1 = "10880, Malibu Point, Malibu Central"; 21 | $request->line2 = "7º floor"; 22 | $request->zipCode = "90265"; 23 | $request->city = "Malibu"; 24 | $request->state = "CA"; 25 | $request->country = "US"; 26 | $request->metadata = new \MundiAPILib\Models\UpdateMetadataRequest(); 27 | $request->metadata->id = "my_address_id"; 28 | 29 | $result = $customerController->createAddress($customerId, $request); 30 | 31 | echo json_encode($result, JSON_PRETTY_PRINT); 32 | -------------------------------------------------------------------------------- /examples/card/getCards.php: -------------------------------------------------------------------------------- 1 | getCustomers(); 14 | 15 | $customerId = "cus_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $customerController->getCards($customerId, 1, 30); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/charges/cancelCharge.php: -------------------------------------------------------------------------------- 1 | getCharges(); 14 | 15 | $chargeId = "ch_ExAmPlExxxxxxxxx"; 16 | $request = new \MundiAPILib\Models\CreateCancelChargeRequest(); 17 | 18 | $result = $chargesController->cancelCharge($chargeId, $request); 19 | 20 | echo json_encode($result, JSON_PRETTY_PRINT); 21 | -------------------------------------------------------------------------------- /examples/charges/cancelChargePartial.php: -------------------------------------------------------------------------------- 1 | getCharges(); 14 | 15 | $chargeId = "ch_ExAmPlExxxxxxxxx"; 16 | $request = new \MundiAPILib\Models\CreateCancelChargeRequest(); 17 | $request->amount = 100; // this value should be in cents 18 | 19 | $result = $chargesController->cancelCharge($chargeId, $request); 20 | 21 | echo json_encode($result, JSON_PRETTY_PRINT); 22 | 23 | -------------------------------------------------------------------------------- /examples/charges/captureCharge.php: -------------------------------------------------------------------------------- 1 | getCharges(); 14 | 15 | $chargeId = "ch_ExAmPlExxxxxxxxx"; 16 | $request = new \MundiAPILib\Models\CreateCaptureChargeRequest(); 17 | $request->code = "new_code"; 18 | 19 | $result = $chargesController->captureCharge($chargeId, $request); 20 | 21 | echo json_encode($result, JSON_PRETTY_PRINT); 22 | 23 | -------------------------------------------------------------------------------- /examples/charges/captureChargePartial.php: -------------------------------------------------------------------------------- 1 | getCharges(); 14 | 15 | $chargeId = "ch_ExAmPlExxxxxxxxx"; 16 | $request = new \MundiAPILib\Models\CreateCaptureChargeRequest(); 17 | $request->code = "new_code"; 18 | $request->amount = 100; // this value should be in cents 19 | 20 | $result = $chargesController->captureCharge($chargeId, $request); 21 | 22 | echo json_encode($result, JSON_PRETTY_PRINT); 23 | -------------------------------------------------------------------------------- /examples/charges/getChargeById.php: -------------------------------------------------------------------------------- 1 | getCharges(); 14 | 15 | $chargeId = "ch_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $chargesController->getCharge($chargeId); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); 20 | -------------------------------------------------------------------------------- /examples/charges/retryCharge.php: -------------------------------------------------------------------------------- 1 | getCharges(); 14 | 15 | $chargeId = "ch_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $chargesController->retryCharge($chargeId); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); 20 | -------------------------------------------------------------------------------- /examples/customer/getCustomerById.php: -------------------------------------------------------------------------------- 1 | getCustomers(); 14 | 15 | $customerId = "cus_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $customersController->getCustomer($customerId); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); 20 | -------------------------------------------------------------------------------- /examples/customer/updateCustomer.php: -------------------------------------------------------------------------------- 1 | getCustomers(); 14 | 15 | $request = new \MundiAPILib\Models\UpdateCustomerRequest(); 16 | $request->name = "Peter Parker"; 17 | $request->email = "parker@avengers.com"; 18 | 19 | $customerId = "cus_ExAmPlExxxxxxxxx"; 20 | 21 | $result = $customerController->updateCustomer($customerId, $request); 22 | 23 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/invoice/getInvoiceById.php: -------------------------------------------------------------------------------- 1 | getInvoices(); 14 | 15 | $invoiceId = "in_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $invoicesController->getInvoice($invoiceId); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); 20 | -------------------------------------------------------------------------------- /examples/marketplace/createAnticipation.php: -------------------------------------------------------------------------------- 1 | getRecipients(); 14 | 15 | $request = new \MundiAPILib\Models\CreateAnticipationRequest(); 16 | $request->amount = 10000; // this value should be in cents 17 | $request->timeframe = "start"; 18 | $request->paymentDate = DateTime::createFromFormat("Y-m-d", "2020-12-12"); 19 | 20 | $recipientId = "rp_ExAmPlExxxxxxxxx"; 21 | 22 | $result = $recipientsController->createAnticipation($recipientId, $request); 23 | 24 | echo json_encode($result, JSON_PRETTY_PRINT); 25 | -------------------------------------------------------------------------------- /examples/marketplace/createRecipient.php: -------------------------------------------------------------------------------- 1 | getRecipients(); 14 | 15 | $request = new \MundiAPILib\Models\CreateRecipientRequest(); 16 | $request->name = "Tony Stark"; 17 | $request->email = "tstark@mundipagg.com"; 18 | $request->description = "Recebedor tony stark"; 19 | $request->document = "26224451990"; 20 | $request->type = "individual"; 21 | $request->defaultBankAccount = new \MundiAPILib\Models\CreateBankAccountRequest(); 22 | $request->defaultBankAccount->holderName = "Tony Stark"; 23 | $request->defaultBankAccount->holderType = "individual"; 24 | $request->defaultBankAccount->holderDocument = "26224451990"; 25 | $request->defaultBankAccount->bank = "341"; 26 | $request->defaultBankAccount->branchNumber = "12345"; 27 | $request->defaultBankAccount->branchCheckDigit = "6"; 28 | $request->defaultBankAccount->accountNumber = "12345"; 29 | $request->defaultBankAccount->accountCheckDigit = "6"; 30 | $request->defaultBankAccount->type = "checking"; 31 | 32 | $result = $recipientsController->createRecipient($request); 33 | 34 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/marketplace/createTransfer.php: -------------------------------------------------------------------------------- 1 | getRecipients(); 14 | 15 | $request = new \MundiAPILib\Models\CreateTransferRequest(); 16 | $request->amount = 100; // this value should be in cents 17 | 18 | $recipientId = "rp_ExAmPlExxxxxxxxx"; 19 | 20 | $result = $recipientsController->createTransfer($recipientId, $request); 21 | 22 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/order/createOrderBankTransfer.php: -------------------------------------------------------------------------------- 1 | getOrders(); 14 | 15 | $customer = new \MundiAPILib\Models\CreateCustomerRequest(); 16 | $customer->name = "sdk customer test"; 17 | $customer->email = "tonystark@avengers.com"; 18 | 19 | $bankTransfer = new \MundiAPILib\Models\CreateBankTransferPaymentRequest(); 20 | $bankTransfer->bank = "001"; 21 | 22 | $request = new \MundiAPILib\Models\CreateOrderRequest(); 23 | 24 | $request->items = [new \MundiAPILib\Models\CreateOrderItemRequest()]; 25 | $request->items[0]->description = "Tesseract Bracelet"; 26 | $request->items[0]->quantity = 3; 27 | $request->items[0]->amount = 1490; // this value should be in cents 28 | 29 | $request->payments = [new \MundiAPILib\Models\CreatePaymentRequest()]; 30 | $request->payments[0]->paymentMethod = "bank_transfer"; 31 | $request->payments[0]->bankTransfer = $bankTransfer; 32 | $request->customer = $customer; 33 | 34 | $result = $orderController->createOrder($request); 35 | 36 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/order/createOrderDebitCard.php: -------------------------------------------------------------------------------- 1 | getOrders(); 14 | 15 | $customer = new \MundiAPILib\Models\CreateCustomerRequest(); 16 | $customer->name = "sdk customer test"; 17 | 18 | $debitCard = new \MundiAPILib\Models\CreateDebitCardPaymentRequest(); 19 | $debitCard->statementDescriptor = "test descriptor"; 20 | $debitCard->card = new \MundiAPILib\Models\CreateCardRequest(); 21 | $debitCard->card->number = "4000000000000010"; 22 | $debitCard->card->holderName = "Tony Stark"; 23 | $debitCard->card->expMonth = 1; 24 | $debitCard->card->expYear = 2025; 25 | $debitCard->card->cvv = "123"; 26 | 27 | $request = new \MundiAPILib\Models\CreateOrderRequest(); 28 | 29 | $request->items = [new \MundiAPILib\Models\CreateOrderItemRequest()]; 30 | $request->items[0]->description = "Tesseract Bracelet"; 31 | $request->items[0]->quantity = 3; 32 | $request->items[0]->amount = 1490; // this value should be in cents 33 | 34 | $request->payments = [new \MundiAPILib\Models\CreatePaymentRequest()]; 35 | $request->payments[0]->paymentMethod = "debit_card"; 36 | $request->payments[0]->debitCard = $debitCard; 37 | $request->customer = $customer; 38 | 39 | $result = $orderController->createOrder($request); 40 | 41 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/order/getOrderById.php: -------------------------------------------------------------------------------- 1 | getOrders(); 14 | 15 | $orderId = "or_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $orderController->getOrder($orderId); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/subscription/cancelSubscription.php: -------------------------------------------------------------------------------- 1 | getSubscriptions(); 14 | 15 | $subscriptionId = "sub_ExAmPlExxxxxxxxx"; 16 | 17 | $request = new \MundiAPILib\Models\CreateCancelSubscriptionRequest(); 18 | $request->cancelPendingInvoices = true; 19 | 20 | $result = $subscriptionsController->cancelSubscription($subscriptionId, $request); 21 | 22 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/subscription/getSubscriptionById.php: -------------------------------------------------------------------------------- 1 | getSubscriptions(); 14 | 15 | $subscriptionId = "sub_ExAmPlExxxxxxxxx"; 16 | 17 | $result = $subscriptionsController->getSubscription($subscriptionId); 18 | 19 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /examples/subscription/updateSubscriptionCard.php: -------------------------------------------------------------------------------- 1 | getSubscriptions(); 14 | 15 | $subscriptionId = "sub_ExAmPlExxxxxxxxx"; 16 | 17 | $request = new \MundiAPILib\Models\UpdateSubscriptionCardRequest(); 18 | $request->card = new \MundiAPILib\Models\CreateCardRequest(); 19 | $request->card->number = "4532912167490007"; 20 | $request->card->holderName = "Tony Stark"; 21 | $request->card->expMonth = 1; 22 | $request->card->expYear = 2028; 23 | $request->card->cvv = "123"; 24 | $request->card->billingAddress = new \MundiAPILib\Models\CreateAddressRequest(); 25 | $request->card->billingAddress->line1 = "375 Av. General Justo Centro"; 26 | $request->card->billingAddress->line2 = "8º andar"; 27 | $request->card->billingAddress->zipCode = "20021130"; 28 | $request->card->billingAddress->city = "Rio de Janeiro"; 29 | $request->card->billingAddress->state = "RJ"; 30 | $request->card->billingAddress->country = "BR"; 31 | 32 | $result = $subscriptionsController->updateSubscriptionCard($subscriptionId, $request); 33 | 34 | echo json_encode($result, JSON_PRETTY_PRINT); -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 15 | 16 | 17 | ./tests 18 | 19 | 20 | -------------------------------------------------------------------------------- /src/Configuration.php: -------------------------------------------------------------------------------- 1 | request = $request; 35 | $this->response = $response; 36 | } 37 | 38 | /** 39 | * Getter for the Http Request 40 | * @return HttpRequest request 41 | */ 42 | public function getRequest() 43 | { 44 | return $this->request; 45 | } 46 | 47 | /** 48 | * Getter for the Http Response 49 | * @return HttpResponse response 50 | */ 51 | public function getResponse() 52 | { 53 | return $this->response; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Http/HttpMethod.php: -------------------------------------------------------------------------------- 1 | statusCode = $statusCode; 42 | $this->headers = $headers; 43 | $this->rawBody = $rawBody; 44 | } 45 | 46 | /** 47 | * Get status code 48 | * @return int Status code 49 | */ 50 | public function getStatusCode() 51 | { 52 | return $this->statusCode; 53 | } 54 | 55 | /** 56 | * Get headers 57 | * @return array Map of headers 58 | */ 59 | public function getHeaders() 60 | { 61 | return $this->headers; 62 | } 63 | 64 | /** 65 | * Get raw response body 66 | * @return string Raw body 67 | */ 68 | public function getRawBody() 69 | { 70 | return $this->rawBody; 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /src/Models/Authentication.php: -------------------------------------------------------------------------------- 1 | type 35 | * @param ThreedSecure $threedSecure Initialization value for $this->threedSecure 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->type = func_get_arg(0); 41 | $this->threedSecure = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['type'] = $this->type; 53 | $json['threed_secure'] = $this->threedSecure; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/Authentication2.php: -------------------------------------------------------------------------------- 1 | type 35 | * @param ThreedSecure1 $threedSecure Initialization value for $this->threedSecure 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->type = func_get_arg(0); 41 | $this->threedSecure = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['type'] = $this->type; 53 | $json['threed_secure'] = $this->threedSecure; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/BankTransfer.php: -------------------------------------------------------------------------------- 1 | bank 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->bank = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['bank'] = $this->bank; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/BankTransfer1.php: -------------------------------------------------------------------------------- 1 | bank 34 | * @param integer $retries Initialization value for $this->retries 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->bank = func_get_arg(0); 40 | $this->retries = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['bank'] = $this->bank; 52 | $json['retries'] = $this->retries; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/BankTransfer2.php: -------------------------------------------------------------------------------- 1 | bank 34 | * @param integer $retries Initialization value for $this->retries 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->bank = func_get_arg(0); 40 | $this->retries = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['bank'] = $this->bank; 52 | $json['retries'] = $this->retries; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ChargesDueDateRequest.php: -------------------------------------------------------------------------------- 1 | dueAt 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->dueAt = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['due_at'] = isset($this->dueAt) ? 45 | DateTimeHelper::toRfc3339DateTime($this->dueAt) : null; 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/ChargesMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/ChargesResponse2.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ChargesTransactionsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ClearSaleRequest.php: -------------------------------------------------------------------------------- 1 | customSla 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->customSla = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['custom_sla'] = $this->customSla; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/CreateAccessTokenRequest.php: -------------------------------------------------------------------------------- 1 | expiresIn 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->expiresIn = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['expires_in'] = $this->expiresIn; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/CreateAntifraudRequest.php: -------------------------------------------------------------------------------- 1 | type 34 | * @param CreateClearSaleRequest $clearsale Initialization value for $this->clearsale 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->type = func_get_arg(0); 40 | $this->clearsale = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['type'] = $this->type; 52 | $json['clearsale'] = $this->clearsale; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateBankTransferPaymentRequest.php: -------------------------------------------------------------------------------- 1 | bank 34 | * @param integer $retries Initialization value for $this->retries 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->bank = func_get_arg(0); 40 | $this->retries = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['bank'] = $this->bank; 52 | $json['retries'] = $this->retries; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateCancelSubscriptionRequest.php: -------------------------------------------------------------------------------- 1 | cancelPendingInvoices 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->cancelPendingInvoices = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['cancel_pending_invoices'] = $this->cancelPendingInvoices; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/CreateCardOptionsRequest.php: -------------------------------------------------------------------------------- 1 | verifyCard 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->verifyCard = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['verify_card'] = $this->verifyCard; 45 | 46 | return $json; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/Models/CreateCashPaymentRequest.php: -------------------------------------------------------------------------------- 1 | description 34 | * @param bool $confirm Initialization value for $this->confirm 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->description = func_get_arg(0); 40 | $this->confirm = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['description'] = $this->description; 52 | $json['confirm'] = $this->confirm; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateCheckoutBankTransferRequest.php: -------------------------------------------------------------------------------- 1 | bank 34 | * @param integer $retries Initialization value for $this->retries 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->bank = func_get_arg(0); 40 | $this->retries = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['bank'] = $this->bank; 52 | $json['retries'] = $this->retries; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateCheckoutCardInstallmentOptionRequest.php: -------------------------------------------------------------------------------- 1 | number 34 | * @param integer $total Initialization value for $this->total 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->number = func_get_arg(0); 40 | $this->total = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['number'] = $this->number; 52 | $json['total'] = $this->total; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateClearSaleRequest.php: -------------------------------------------------------------------------------- 1 | customSla 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->customSla = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['custom_sla'] = $this->customSla; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/CreateDeviceRequest.php: -------------------------------------------------------------------------------- 1 | platform 26 | */ 27 | public function __construct() 28 | { 29 | if (1 == func_num_args()) { 30 | $this->platform = func_get_arg(0); 31 | } 32 | } 33 | 34 | 35 | /** 36 | * Encode this object to JSON 37 | */ 38 | public function jsonSerialize() 39 | { 40 | $json = array(); 41 | $json['platform'] = $this->platform; 42 | 43 | return $json; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/Models/CreateEmvDataDukptDecryptRequest.php: -------------------------------------------------------------------------------- 1 | ksn 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->ksn = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['ksn'] = $this->ksn; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/CreateGooglePayHeaderRequest.php: -------------------------------------------------------------------------------- 1 | ephemeralPublicKey 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->ephemeralPublicKey = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['ephemeral_public_key'] = $this->ephemeralPublicKey; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/CreateInvoiceRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/CreateLocationRequest.php: -------------------------------------------------------------------------------- 1 | latitude 34 | * @param string $longitude Initialization value for $this->longitude 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->latitude = func_get_arg(0); 40 | $this->longitude = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['latitude'] = $this->latitude; 52 | $json['longitude'] = $this->longitude; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreatePaymentAuthenticationRequest.php: -------------------------------------------------------------------------------- 1 | type 35 | * @param ThreedSecure1 $threedSecure Initialization value for $this->threedSecure 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->type = func_get_arg(0); 41 | $this->threedSecure = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['type'] = $this->type; 53 | $json['threed_secure'] = $this->threedSecure; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/CreatePeriodRequest.php: -------------------------------------------------------------------------------- 1 | endAt 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->endAt = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['end_at'] = isset($this->endAt) ? 45 | DateTimeHelper::toRfc3339DateTime($this->endAt) : null; 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/CreatePhonesRequest.php: -------------------------------------------------------------------------------- 1 | homePhone 34 | * @param GetPhoneResponse $mobilePhone Initialization value for $this->mobilePhone 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->homePhone = func_get_arg(0); 40 | $this->mobilePhone = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['home_phone'] = $this->homePhone; 52 | $json['mobile_phone'] = $this->mobilePhone; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateSubscriptionSplitRequest.php: -------------------------------------------------------------------------------- 1 | enabled 34 | * @param array $rules Initialization value for $this->rules 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->enabled = func_get_arg(0); 40 | $this->rules = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['enabled'] = $this->enabled; 52 | $json['rules'] = $this->rules; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateTokenRequest.php: -------------------------------------------------------------------------------- 1 | type 34 | * @param Card11 $card Initialization value for $this->card 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->type = func_get_arg(0); 40 | $this->card = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['type'] = $this->type; 52 | $json['card'] = $this->card; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateTransferRequest.php: -------------------------------------------------------------------------------- 1 | amount 34 | * @param array $metadata Initialization value for $this->metadata 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->amount = func_get_arg(0); 40 | $this->metadata = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['amount'] = $this->amount; 52 | $json['metadata'] = $this->metadata; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CreateWithdrawRequest.php: -------------------------------------------------------------------------------- 1 | amount 33 | * @param array $metadata Initialization value for $this->metadata 34 | */ 35 | public function __construct() 36 | { 37 | if (2 == func_num_args()) { 38 | $this->amount = func_get_arg(0); 39 | $this->metadata = func_get_arg(1); 40 | } 41 | } 42 | 43 | 44 | /** 45 | * Encode this object to JSON 46 | */ 47 | public function jsonSerialize() 48 | { 49 | $json = array(); 50 | $json['amount'] = $this->amount; 51 | $json['metadata'] = $this->metadata; 52 | 53 | return $json; 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /src/Models/CustomersAccessTokensRequest.php: -------------------------------------------------------------------------------- 1 | expiresIn 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->expiresIn = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['expires_in'] = $this->expiresIn; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/CustomersAccessTokensResponse1.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CustomersAddressesResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CustomersCardsResponse1.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/CustomersMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/CustomersResponse3.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/Device.php: -------------------------------------------------------------------------------- 1 | platform 26 | */ 27 | public function __construct() 28 | { 29 | if (1 == func_num_args()) { 30 | $this->platform = func_get_arg(0); 31 | } 32 | } 33 | 34 | 35 | /** 36 | * Encode this object to JSON 37 | */ 38 | public function jsonSerialize() 39 | { 40 | $json = array(); 41 | $json['platform'] = $this->platform; 42 | 43 | return $json; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/Models/Device1.php: -------------------------------------------------------------------------------- 1 | platform 26 | */ 27 | public function __construct() 28 | { 29 | if (1 == func_num_args()) { 30 | $this->platform = func_get_arg(0); 31 | } 32 | } 33 | 34 | 35 | /** 36 | * Encode this object to JSON 37 | */ 38 | public function jsonSerialize() 39 | { 40 | $json = array(); 41 | $json['platform'] = $this->platform; 42 | 43 | return $json; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/Models/GatewayResponse.php: -------------------------------------------------------------------------------- 1 | code 34 | * @param array $errors Initialization value for $this->errors 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->code = func_get_arg(0); 40 | $this->errors = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['code'] = $this->code; 52 | $json['errors'] = $this->errors; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/GetAnticipationLimitResponse.php: -------------------------------------------------------------------------------- 1 | amount 35 | * @param integer $anticipationFee Initialization value for $this->anticipationFee 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->amount = func_get_arg(0); 41 | $this->anticipationFee = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['amount'] = $this->amount; 53 | $json['anticipation_fee'] = $this->anticipationFee; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/GetAnticipationLimitsResponse.php: -------------------------------------------------------------------------------- 1 | max 34 | * @param Min $min Initialization value for $this->min 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->max = func_get_arg(0); 40 | $this->min = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['max'] = $this->max; 52 | $json['min'] = $this->min; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/GetCashTransactionResponse.php: -------------------------------------------------------------------------------- 1 | description 30 | */ 31 | public function __construct() 32 | { 33 | if (1 == func_num_args()) { 34 | $this->description = func_get_arg(0); 35 | } 36 | } 37 | 38 | 39 | /** 40 | * Encode this object to JSON 41 | */ 42 | public function jsonSerialize() 43 | { 44 | $json = array(); 45 | $json['description'] = $this->description; 46 | $json = array_merge($json, parent::jsonSerialize()); 47 | 48 | return $json; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /src/Models/GetChargesSummaryResponse.php: -------------------------------------------------------------------------------- 1 | total 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->total = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['total'] = $this->total; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/GetCheckoutBankTransferPaymentResponse.php: -------------------------------------------------------------------------------- 1 | bank 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->bank = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['bank'] = $this->bank; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/GetCheckoutCardInstallmentOptionsResponse.php: -------------------------------------------------------------------------------- 1 | number 34 | * @param integer $total Initialization value for $this->total 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->number = func_get_arg(0); 40 | $this->total = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['number'] = $this->number; 52 | $json['total'] = $this->total; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/GetDeviceResponse.php: -------------------------------------------------------------------------------- 1 | platform 26 | */ 27 | public function __construct() 28 | { 29 | if (1 == func_num_args()) { 30 | $this->platform = func_get_arg(0); 31 | } 32 | } 33 | 34 | 35 | /** 36 | * Encode this object to JSON 37 | */ 38 | public function jsonSerialize() 39 | { 40 | $json = array(); 41 | $json['platform'] = $this->platform; 42 | 43 | return $json; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/Models/GetFineResponse.php: -------------------------------------------------------------------------------- 1 | days 41 | * @param string $type Initialization value for $this->type 42 | * @param integer $amount Initialization value for $this->amount 43 | */ 44 | public function __construct() 45 | { 46 | if (3 == func_num_args()) { 47 | $this->days = func_get_arg(0); 48 | $this->type = func_get_arg(1); 49 | $this->amount = func_get_arg(2); 50 | } 51 | } 52 | 53 | 54 | /** 55 | * Encode this object to JSON 56 | */ 57 | public function jsonSerialize() 58 | { 59 | $json = array(); 60 | $json['days'] = $this->days; 61 | $json['type'] = $this->type; 62 | $json['amount'] = $this->amount; 63 | 64 | return $json; 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /src/Models/GetGatewayErrorResponse.php: -------------------------------------------------------------------------------- 1 | message 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->message = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['message'] = $this->message; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/GetGatewayResponseResponse.php: -------------------------------------------------------------------------------- 1 | code 34 | * @param array $errors Initialization value for $this->errors 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->code = func_get_arg(0); 40 | $this->errors = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['code'] = $this->code; 52 | $json['errors'] = $this->errors; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/GetLocationResponse.php: -------------------------------------------------------------------------------- 1 | latitude 34 | * @param string $longitude Initialization value for $this->longitude 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->latitude = func_get_arg(0); 40 | $this->longitude = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['latitude'] = $this->latitude; 52 | $json['longitude'] = $this->longitude; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/GetPaymentAuthenticationResponse.php: -------------------------------------------------------------------------------- 1 | type 35 | * @param ThreedSecure $threedSecure Initialization value for $this->threedSecure 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->type = func_get_arg(0); 41 | $this->threedSecure = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['type'] = $this->type; 53 | $json['threed_secure'] = $this->threedSecure; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/GetSubscriptionSplitResponse.php: -------------------------------------------------------------------------------- 1 | enabled 34 | * @param array $rules Initialization value for $this->rules 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->enabled = func_get_arg(0); 40 | $this->rules = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['enabled'] = $this->enabled; 52 | $json['rules'] = $this->rules; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/GetTransactionReportFileResponse.php: -------------------------------------------------------------------------------- 1 | name 36 | * @param \DateTime $date Initialization value for $this->date 37 | */ 38 | public function __construct() 39 | { 40 | if (2 == func_num_args()) { 41 | $this->name = func_get_arg(0); 42 | $this->date = func_get_arg(1); 43 | } 44 | } 45 | 46 | 47 | /** 48 | * Encode this object to JSON 49 | */ 50 | public function jsonSerialize() 51 | { 52 | $json = array(); 53 | $json['name'] = $this->name; 54 | $json['date'] = DateTimeHelper::toRfc3339DateTime($this->date); 55 | 56 | return $json; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/Models/GetTransferSourceResponse.php: -------------------------------------------------------------------------------- 1 | sourceId 35 | * @param string $type Initialization value for $this->type 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->sourceId = func_get_arg(0); 41 | $this->type = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['source_id'] = $this->sourceId; 53 | $json['type'] = $this->type; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/GetTransferTargetResponse.php: -------------------------------------------------------------------------------- 1 | targetId 35 | * @param string $type Initialization value for $this->type 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->targetId = func_get_arg(0); 41 | $this->type = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['target_id'] = $this->targetId; 53 | $json['type'] = $this->type; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/GetWithdrawSourceResponse.php: -------------------------------------------------------------------------------- 1 | sourceId 35 | * @param string $type Initialization value for $this->type 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->sourceId = func_get_arg(0); 41 | $this->type = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['source_id'] = $this->sourceId; 53 | $json['type'] = $this->type; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/GetWithdrawTargetResponse.php: -------------------------------------------------------------------------------- 1 | targetId 35 | * @param string $type Initialization value for $this->type 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->targetId = func_get_arg(0); 41 | $this->type = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['target_id'] = $this->targetId; 53 | $json['type'] = $this->type; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/Header1.php: -------------------------------------------------------------------------------- 1 | ephemeralPublicKey 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->ephemeralPublicKey = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['ephemeral_public_key'] = $this->ephemeralPublicKey; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/InvoicesMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/InvoicesResponse2.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListAccessTokensResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListAddressesResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListAnticipationResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListCardsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListChargeTransactionsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListChargesResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListCustomersResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListCyclesResponse.php: -------------------------------------------------------------------------------- 1 | data 32 | * @param Paging $paging Initialization value for $this->paging 33 | */ 34 | public function __construct() 35 | { 36 | if (2 == func_num_args()) { 37 | $this->data = func_get_arg(0); 38 | $this->paging = func_get_arg(1); 39 | } 40 | } 41 | 42 | 43 | /** 44 | * Encode this object to JSON 45 | */ 46 | public function jsonSerialize() 47 | { 48 | $json = array(); 49 | $json['data'] = $this->data; 50 | $json['paging'] = $this->paging; 51 | 52 | return $json; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/Models/ListDiscountsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListIncrementsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListInvoicesResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListOrderResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListPlansResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListRecipientResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListSellerResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param PagingResponse $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListSubscriptionItemsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListSubscriptionsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListTransactionsFilesResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListTransactionsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListTransferResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListTransfers.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListUsagesDetailsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListUsagesResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/ListWithdrawals.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/Location.php: -------------------------------------------------------------------------------- 1 | latitude 34 | * @param string $longitude Initialization value for $this->longitude 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->latitude = func_get_arg(0); 40 | $this->longitude = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['latitude'] = $this->latitude; 52 | $json['longitude'] = $this->longitude; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/Max.php: -------------------------------------------------------------------------------- 1 | amount 35 | * @param integer $anticipationFee Initialization value for $this->anticipationFee 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->amount = func_get_arg(0); 41 | $this->anticipationFee = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['amount'] = $this->amount; 53 | $json['anticipation_fee'] = $this->anticipationFee; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/Min.php: -------------------------------------------------------------------------------- 1 | amount 35 | * @param integer $anticipationFee Initialization value for $this->anticipationFee 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->amount = func_get_arg(0); 41 | $this->anticipationFee = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['amount'] = $this->amount; 53 | $json['anticipation_fee'] = $this->anticipationFee; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/Options1.php: -------------------------------------------------------------------------------- 1 | verifyCard 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->verifyCard = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['verify_card'] = $this->verifyCard; 45 | 46 | return $json; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /src/Models/OrdersMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/OrdersResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/PixAdditionalInformation.php: -------------------------------------------------------------------------------- 1 | name 36 | * @param string $value Initialization value for $this->value 37 | */ 38 | public function __construct() 39 | { 40 | if (2 == func_num_args()) { 41 | $this->name = func_get_arg(0); 42 | $this->value = func_get_arg(1); 43 | } 44 | } 45 | 46 | 47 | /** 48 | * Encode this object to JSON 49 | */ 50 | public function jsonSerialize() 51 | { 52 | $json = array(); 53 | $json['Name'] = $this->name; 54 | $json['Value'] = $this->value; 55 | 56 | return $json; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/Models/PlansMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/PlansResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/RecipientsAnticipationLimitsResponse.php: -------------------------------------------------------------------------------- 1 | amount 35 | * @param integer $anticipationFee Initialization value for $this->anticipationFee 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->amount = func_get_arg(0); 41 | $this->anticipationFee = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['amount'] = $this->amount; 53 | $json['anticipation_fee'] = $this->anticipationFee; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/RecipientsAnticipationsResponse1.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/RecipientsDefaultBankAccountRequest.php: -------------------------------------------------------------------------------- 1 | bankAccount 36 | * @param string $paymentMode Initialization value for $this->paymentMode 37 | */ 38 | public function __construct() 39 | { 40 | if (2 == func_num_args()) { 41 | $this->bankAccount = func_get_arg(0); 42 | $this->paymentMode = func_get_arg(1); 43 | } 44 | } 45 | 46 | 47 | /** 48 | * Encode this object to JSON 49 | */ 50 | public function jsonSerialize() 51 | { 52 | $json = array(); 53 | $json['bank_account'] = $this->bankAccount; 54 | $json['payment_mode'] = $this->paymentMode; 55 | 56 | return $json; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/Models/RecipientsMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/RecipientsResponse.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/RecipientsTransfersRequest.php: -------------------------------------------------------------------------------- 1 | amount 34 | * @param array $metadata Initialization value for $this->metadata 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->amount = func_get_arg(0); 40 | $this->metadata = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['amount'] = $this->amount; 52 | $json['metadata'] = $this->metadata; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/RecipientsTransfersResponse1.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/Split.php: -------------------------------------------------------------------------------- 1 | enabled 34 | * @param array $rules Initialization value for $this->rules 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->enabled = func_get_arg(0); 40 | $this->rules = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['enabled'] = $this->enabled; 52 | $json['rules'] = $this->rules; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsBillingDateRequest.php: -------------------------------------------------------------------------------- 1 | nextBillingAt 30 | */ 31 | public function __construct() 32 | { 33 | if (1 == func_num_args()) { 34 | $this->nextBillingAt = func_get_arg(0); 35 | } 36 | } 37 | 38 | 39 | /** 40 | * Encode this object to JSON 41 | */ 42 | public function jsonSerialize() 43 | { 44 | $json = array(); 45 | $json['next_billing_at'] = DateTimeHelper::toRfc3339DateTime($this->nextBillingAt); 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsCardRequest.php: -------------------------------------------------------------------------------- 1 | card 35 | * @param string $cardId Initialization value for $this->cardId 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->card = func_get_arg(0); 41 | $this->cardId = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['card'] = $this->card; 53 | $json['card_id'] = $this->cardId; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsCyclesPayRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsCyclesResponse2.php: -------------------------------------------------------------------------------- 1 | data 32 | * @param Paging $paging Initialization value for $this->paging 33 | */ 34 | public function __construct() 35 | { 36 | if (2 == func_num_args()) { 37 | $this->data = func_get_arg(0); 38 | $this->paging = func_get_arg(1); 39 | } 40 | } 41 | 42 | 43 | /** 44 | * Encode this object to JSON 45 | */ 46 | public function jsonSerialize() 47 | { 48 | $json = array(); 49 | $json['data'] = $this->data; 50 | $json['paging'] = $this->paging; 51 | 52 | return $json; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsGatewayAffiliationIdRequest.php: -------------------------------------------------------------------------------- 1 | gatewayAffiliationId 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->gatewayAffiliationId = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['gateway_affiliation_id'] = $this->gatewayAffiliationId; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsItemsResponse3.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsItemsUsagesResponse1.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsMinimumPriceRequest.php: -------------------------------------------------------------------------------- 1 | minimumPrice 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->minimumPrice = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['minimum_price'] = $this->minimumPrice; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsPeriodsLatestEndAtRequest.php: -------------------------------------------------------------------------------- 1 | endAt 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->endAt = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['end_at'] = isset($this->endAt) ? 45 | DateTimeHelper::toRfc3339DateTime($this->endAt) : null; 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsRequest.php: -------------------------------------------------------------------------------- 1 | cancelPendingInvoices 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->cancelPendingInvoices = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['cancel_pending_invoices'] = $this->cancelPendingInvoices; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsResponse3.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/SubscriptionsStartAtRequest.php: -------------------------------------------------------------------------------- 1 | startAt 30 | */ 31 | public function __construct() 32 | { 33 | if (1 == func_num_args()) { 34 | $this->startAt = func_get_arg(0); 35 | } 36 | } 37 | 38 | 39 | /** 40 | * Encode this object to JSON 41 | */ 42 | public function jsonSerialize() 43 | { 44 | $json = array(); 45 | $json['start_at'] = DateTimeHelper::toRfc3339DateTime($this->startAt); 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/TokensRequest.php: -------------------------------------------------------------------------------- 1 | type 34 | * @param Card11 $card Initialization value for $this->card 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->type = func_get_arg(0); 40 | $this->card = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['type'] = $this->type; 52 | $json['card'] = $this->card; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/UpdateChargeDueDateRequest.php: -------------------------------------------------------------------------------- 1 | dueAt 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->dueAt = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['due_at'] = isset($this->dueAt) ? 45 | DateTimeHelper::toRfc3339DateTime($this->dueAt) : null; 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/UpdateCurrentCycleEndDateRequest.php: -------------------------------------------------------------------------------- 1 | endAt 29 | */ 30 | public function __construct() 31 | { 32 | if (1 == func_num_args()) { 33 | $this->endAt = func_get_arg(0); 34 | } 35 | } 36 | 37 | 38 | /** 39 | * Encode this object to JSON 40 | */ 41 | public function jsonSerialize() 42 | { 43 | $json = array(); 44 | $json['end_at'] = isset($this->endAt) ? 45 | DateTimeHelper::toRfc3339DateTime($this->endAt) : null; 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/UpdateCurrentCycleStatusRequest.php: -------------------------------------------------------------------------------- 1 | status 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->status = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['status'] = $this->status; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/UpdateInvoiceStatusRequest.php: -------------------------------------------------------------------------------- 1 | status 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->status = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['status'] = $this->status; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/UpdateMetadataRequest.php: -------------------------------------------------------------------------------- 1 | metadata 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->metadata = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['metadata'] = $this->metadata; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/UpdateOrderStatusRequest.php: -------------------------------------------------------------------------------- 1 | status 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->status = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['status'] = $this->status; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/UpdateRecipientBankAccountRequest.php: -------------------------------------------------------------------------------- 1 | bankAccount 36 | * @param string $paymentMode Initialization value for $this->paymentMode 37 | */ 38 | public function __construct() 39 | { 40 | if (2 == func_num_args()) { 41 | $this->bankAccount = func_get_arg(0); 42 | $this->paymentMode = func_get_arg(1); 43 | } 44 | } 45 | 46 | 47 | /** 48 | * Encode this object to JSON 49 | */ 50 | public function jsonSerialize() 51 | { 52 | $json = array(); 53 | $json['bank_account'] = $this->bankAccount; 54 | $json['payment_mode'] = $this->paymentMode; 55 | 56 | return $json; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionAffiliationIdRequest.php: -------------------------------------------------------------------------------- 1 | gatewayAffiliationId 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->gatewayAffiliationId = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['gateway_affiliation_id'] = $this->gatewayAffiliationId; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionBillingDateRequest.php: -------------------------------------------------------------------------------- 1 | nextBillingAt 30 | */ 31 | public function __construct() 32 | { 33 | if (1 == func_num_args()) { 34 | $this->nextBillingAt = func_get_arg(0); 35 | } 36 | } 37 | 38 | 39 | /** 40 | * Encode this object to JSON 41 | */ 42 | public function jsonSerialize() 43 | { 44 | $json = array(); 45 | $json['next_billing_at'] = DateTimeHelper::toRfc3339DateTime($this->nextBillingAt); 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionCardRequest.php: -------------------------------------------------------------------------------- 1 | card 35 | * @param string $cardId Initialization value for $this->cardId 36 | */ 37 | public function __construct() 38 | { 39 | if (2 == func_num_args()) { 40 | $this->card = func_get_arg(0); 41 | $this->cardId = func_get_arg(1); 42 | } 43 | } 44 | 45 | 46 | /** 47 | * Encode this object to JSON 48 | */ 49 | public function jsonSerialize() 50 | { 51 | $json = array(); 52 | $json['card'] = $this->card; 53 | $json['card_id'] = $this->cardId; 54 | 55 | return $json; 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionDueDaysRequest.php: -------------------------------------------------------------------------------- 1 | boletoDueDays 28 | */ 29 | public function __construct() 30 | { 31 | if (1 == func_num_args()) { 32 | $this->boletoDueDays = func_get_arg(0); 33 | } 34 | } 35 | 36 | 37 | /** 38 | * Encode this object to JSON 39 | */ 40 | public function jsonSerialize() 41 | { 42 | $json = array(); 43 | $json['boleto_due_days'] = $this->boletoDueDays; 44 | 45 | return $json; 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionMinimumPriceRequest.php: -------------------------------------------------------------------------------- 1 | minimumPrice 27 | */ 28 | public function __construct() 29 | { 30 | if (1 == func_num_args()) { 31 | $this->minimumPrice = func_get_arg(0); 32 | } 33 | } 34 | 35 | 36 | /** 37 | * Encode this object to JSON 38 | */ 39 | public function jsonSerialize() 40 | { 41 | $json = array(); 42 | $json['minimum_price'] = $this->minimumPrice; 43 | 44 | return $json; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionSplitRequest.php: -------------------------------------------------------------------------------- 1 | enabled 34 | * @param array $rules Initialization value for $this->rules 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->enabled = func_get_arg(0); 40 | $this->rules = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['enabled'] = $this->enabled; 52 | $json['rules'] = $this->rules; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /src/Models/UpdateSubscriptionStartAtRequest.php: -------------------------------------------------------------------------------- 1 | startAt 30 | */ 31 | public function __construct() 32 | { 33 | if (1 == func_num_args()) { 34 | $this->startAt = func_get_arg(0); 35 | } 36 | } 37 | 38 | 39 | /** 40 | * Encode this object to JSON 41 | */ 42 | public function jsonSerialize() 43 | { 44 | $json = array(); 45 | $json['start_at'] = DateTimeHelper::toRfc3339DateTime($this->startAt); 46 | 47 | return $json; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /src/Models/Usages.php: -------------------------------------------------------------------------------- 1 | data 34 | * @param Paging $paging Initialization value for $this->paging 35 | */ 36 | public function __construct() 37 | { 38 | if (2 == func_num_args()) { 39 | $this->data = func_get_arg(0); 40 | $this->paging = func_get_arg(1); 41 | } 42 | } 43 | 44 | 45 | /** 46 | * Encode this object to JSON 47 | */ 48 | public function jsonSerialize() 49 | { 50 | $json = array(); 51 | $json['data'] = $this->data; 52 | $json['paging'] = $this->paging; 53 | 54 | return $json; 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /tests/HttpCallBackCatcher.php: -------------------------------------------------------------------------------- 1 | request = $httpContext->getRequest(); 37 | $instance->response = $httpContext->getResponse(); 38 | }); 39 | } 40 | 41 | /** 42 | * Get the HTTP Request object associated with this API call 43 | * @return MundiAPILib\Http\HttpRequest 44 | */ 45 | public function getRequest() 46 | { 47 | return $this->request; 48 | } 49 | 50 | /** 51 | * Get the HTTP Response object associated with this API call 52 | * @return MundiAPILib\Http\HttpResponse 53 | */ 54 | public function getResponse() 55 | { 56 | return $this->response; 57 | } 58 | } 59 | -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 |